Skip to content

Commit 9a87736

Browse files
committed
chore: clean up imports and remove unused units file
1 parent 7cc8310 commit 9a87736

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

packages/motion/src/features/gestures/drag/VisualElementDragControls.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ import { createBox } from '@/projection/geometry/models'
1111
import { eachAxis } from '@/projection/utils/each-axis'
1212
import type { Options } from '@/types'
1313
import { getContextWindow } from '@/utils'
14-
import { percent } from '@/value/types/numbers/units'
1514
import { addValueToWillChange } from '@/value/use-will-change/add-will-change'
1615
import type { Axis, BoundingBox, Point, Transition, VisualElement } from 'framer-motion'
17-
import { frame, mixNumber } from 'framer-motion/dom'
16+
import { frame, mixNumber, percent } from 'framer-motion/dom'
1817
import { measurePageBox } from '@/projection/utils/measure'
1918
import { convertBoundingBoxToBox, convertBoxToBoundingBox } from '@/projection/conversion'
2019
import { animateMotionValue } from 'framer-motion/dist/es/animation/interfaces/motion-value.mjs'

packages/motion/src/state/style.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { DOMKeyframesDefinition, ResolvedValues } from 'framer-motion'
22
import { isCssVar, isNumber } from './utils'
33
import { buildTransformTemplate, isTransform, transformAlias, transformDefinitions } from './transform'
4-
import { isMotionValue } from 'framer-motion/dom'
4+
import { isMotionValue, px } from 'framer-motion/dom'
55
import type { MotionStyle } from '@/types'
6-
import { px } from '@/value/types/numbers/units'
76

87
type MotionStyleKey = Exclude<
98
keyof CSSStyleDeclaration,

packages/motion/src/value/types/numbers/units.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)