motion-dom 14.3.0 → 14.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +6733 -5531
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/animation/animate/effects.mjs +9 -1
- package/dist/es/animation/animate/effects.mjs.map +1 -1
- package/dist/es/animation/animate/element.mjs +16 -1
- package/dist/es/animation/animate/element.mjs.map +1 -1
- package/dist/es/animation/interfaces/visual-element-target.mjs +3 -1
- package/dist/es/animation/interfaces/visual-element-target.mjs.map +1 -1
- package/dist/es/animation/utils/arc.mjs +4 -4
- package/dist/es/animation/utils/arc.mjs.map +1 -1
- package/dist/es/animation/waapi/transforms/TransformAnimation.mjs +60 -8
- package/dist/es/animation/waapi/transforms/TransformAnimation.mjs.map +1 -1
- package/dist/es/effects/svg/index.mjs +1 -1
- package/dist/es/effects/svg/index.mjs.map +1 -1
- package/dist/es/events/add-pointer-event.mjs +9 -0
- package/dist/es/events/add-pointer-event.mjs.map +1 -0
- package/dist/es/events/event-info.mjs +14 -0
- package/dist/es/events/event-info.mjs.map +1 -0
- package/dist/es/gestures/drag/VisualElementDragControls.mjs +606 -0
- package/dist/es/gestures/drag/VisualElementDragControls.mjs.map +1 -0
- package/dist/es/gestures/drag/index.mjs +82 -0
- package/dist/es/gestures/drag/index.mjs.map +1 -0
- package/dist/es/gestures/drag/utils/constraints.mjs +129 -0
- package/dist/es/gestures/drag/utils/constraints.mjs.map +1 -0
- package/dist/es/gestures/pan/PanSession.mjs +269 -0
- package/dist/es/gestures/pan/PanSession.mjs.map +1 -0
- package/dist/es/index.mjs +6 -0
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/layout/LayoutAnimationBuilder.mjs +21 -1
- package/dist/es/layout/LayoutAnimationBuilder.mjs.map +1 -1
- package/dist/es/projection/animation/mix-values.mjs +16 -3
- package/dist/es/projection/animation/mix-values.mjs.map +1 -1
- package/dist/es/projection/node/create-projection-node.mjs +91 -73
- package/dist/es/projection/node/create-projection-node.mjs.map +1 -1
- package/dist/es/projection/styles/transform.mjs +3 -1
- package/dist/es/projection/styles/transform.mjs.map +1 -1
- package/dist/es/projection/utils/has-transform.mjs +1 -0
- package/dist/es/projection/utils/has-transform.mjs.map +1 -1
- package/dist/es/utils/distance.mjs +10 -0
- package/dist/es/utils/distance.mjs.map +1 -0
- package/dist/index.d.ts +274 -7
- package/dist/motion-dom.dev.js +6732 -5530
- package/dist/motion-dom.js +1 -1
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
20
20
|
transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;
|
|
21
21
|
}
|
|
22
22
|
if (latestTransform) {
|
|
23
|
-
const { transformPerspective, rotate, pathRotation, rotateX, rotateY, skewX, skewY, } = latestTransform;
|
|
23
|
+
const { transformPerspective, rotate, pathRotation, rotateX, rotateY, rotateZ, skewX, skewY, } = latestTransform;
|
|
24
24
|
if (transformPerspective)
|
|
25
25
|
transform = `perspective(${transformPerspective}px) ${transform}`;
|
|
26
26
|
if (rotate)
|
|
@@ -32,6 +32,8 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
32
32
|
transform += `rotateX(${rotateX}deg) `;
|
|
33
33
|
if (rotateY)
|
|
34
34
|
transform += `rotateY(${rotateY}deg) `;
|
|
35
|
+
if (rotateZ)
|
|
36
|
+
transform += `rotateZ(${rotateZ}deg) `;
|
|
35
37
|
if (skewX)
|
|
36
38
|
transform += `skewX(${skewX}deg) `;
|
|
37
39
|
if (skewY)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.mjs","sources":["../../../../src/projection/styles/transform.ts"],"sourcesContent":["import type { Delta, Point } from \"motion-utils\"\nimport type { ResolvedValues } from \"../../node/types\"\n\nexport function buildProjectionTransform(\n delta: Delta,\n treeScale: Point,\n latestTransform?: ResolvedValues\n): string {\n let transform = \"\"\n\n /**\n * The translations we use to calculate are always relative to the viewport coordinate space.\n * But when we apply scales, we also scale the coordinate space of an element and its children.\n * For instance if we have a treeScale (the culmination of all parent scales) of 0.5 and we need\n * to move an element 100 pixels, we actually need to move it 200 in within that scaled space.\n */\n const xTranslate = delta.x.translate / treeScale.x\n const yTranslate = delta.y.translate / treeScale.y\n const zTranslate = latestTransform?.z || 0\n if (xTranslate || yTranslate || zTranslate) {\n transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `\n }\n\n /**\n * Apply scale correction for the tree transform.\n * This will apply scale to the screen-orientated axes.\n */\n if (treeScale.x !== 1 || treeScale.y !== 1) {\n transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `\n }\n\n if (latestTransform) {\n const {\n transformPerspective,\n rotate,\n pathRotation,\n rotateX,\n rotateY,\n skewX,\n skewY,\n } = latestTransform\n if (transformPerspective)\n transform = `perspective(${transformPerspective}px) ${transform}`\n if (rotate) transform += `rotate(${rotate}deg) `\n // Additive `rotate()` so user `rotate` isn't clobbered.\n if (pathRotation) transform += `rotate(${pathRotation}deg) `\n if (rotateX) transform += `rotateX(${rotateX}deg) `\n if (rotateY) transform += `rotateY(${rotateY}deg) `\n if (skewX) transform += `skewX(${skewX}deg) `\n if (skewY) transform += `skewY(${skewY}deg) `\n }\n\n /**\n * Apply scale to match the size of the element to the size we want it.\n * This will apply scale to the element-orientated axes.\n */\n const elementScaleX = delta.x.scale * treeScale.x\n const elementScaleY = delta.y.scale * treeScale.y\n if (elementScaleX !== 1 || elementScaleY !== 1) {\n transform += `scale(${elementScaleX}, ${elementScaleY})`\n }\n\n return transform || \"none\"\n}\n"],"names":[],"mappings":"SAGgB,wBAAwB,CACpC,KAAY,EACZ,SAAgB,EAChB,eAAgC,EAAA;IAEhC,IAAI,SAAS,GAAG,EAAE;AAElB;;;;;AAKG;IACH,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;AAClD,IAAA,MAAM,UAAU,GAAG,eAAe,EAAE,CAAC,IAAI,CAAC;AAC1C,IAAA,IAAI,UAAU,IAAI,UAAU,IAAI,UAAU,EAAE;QACxC,SAAS,GAAG,eAAe,UAAU,CAAA,IAAA,EAAO,UAAU,CAAA,IAAA,EAAO,UAAU,MAAM;IACjF;AAEA;;;AAGG;AACH,IAAA,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,EAAE;AACxC,QAAA,SAAS,IAAI,CAAA,MAAA,EAAS,CAAC,GAAG,SAAS,CAAC,CAAC,CAAA,EAAA,EAAK,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI;IACjE;IAEA,IAAI,eAAe,EAAE;AACjB,QAAA,MAAM,EACF,oBAAoB,EACpB,MAAM,EACN,YAAY,EACZ,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,GACR,GAAG,eAAe;AACnB,QAAA,IAAI,oBAAoB;AACpB,YAAA,SAAS,GAAG,CAAA,YAAA,EAAe,oBAAoB,CAAA,IAAA,EAAO,SAAS,EAAE;AACrE,QAAA,IAAI,MAAM;AAAE,YAAA,SAAS,IAAI,CAAA,OAAA,EAAU,MAAM,CAAA,KAAA,CAAO;;AAEhD,QAAA,IAAI,YAAY;AAAE,YAAA,SAAS,IAAI,CAAA,OAAA,EAAU,YAAY,CAAA,KAAA,CAAO;AAC5D,QAAA,IAAI,OAAO;AAAE,YAAA,SAAS,IAAI,CAAA,QAAA,EAAW,OAAO,CAAA,KAAA,CAAO;AACnD,QAAA,IAAI,OAAO;AAAE,YAAA,SAAS,IAAI,CAAA,QAAA,EAAW,OAAO,CAAA,KAAA,CAAO;AACnD,QAAA,IAAI,KAAK;AAAE,YAAA,SAAS,IAAI,CAAA,MAAA,EAAS,KAAK,CAAA,KAAA,CAAO;AAC7C,QAAA,IAAI,KAAK;AAAE,YAAA,SAAS,IAAI,CAAA,MAAA,EAAS,KAAK,CAAA,KAAA,CAAO;IACjD;AAEA;;;AAGG;IACH,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACjD,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,EAAE;AAC5C,QAAA,SAAS,IAAI,CAAA,MAAA,EAAS,aAAa,CAAA,EAAA,EAAK,aAAa,GAAG;IAC5D;IAEA,OAAO,SAAS,IAAI,MAAM;AAC9B;;;;"}
|
|
1
|
+
{"version":3,"file":"transform.mjs","sources":["../../../../src/projection/styles/transform.ts"],"sourcesContent":["import type { Delta, Point } from \"motion-utils\"\nimport type { ResolvedValues } from \"../../node/types\"\n\nexport function buildProjectionTransform(\n delta: Delta,\n treeScale: Point,\n latestTransform?: ResolvedValues\n): string {\n let transform = \"\"\n\n /**\n * The translations we use to calculate are always relative to the viewport coordinate space.\n * But when we apply scales, we also scale the coordinate space of an element and its children.\n * For instance if we have a treeScale (the culmination of all parent scales) of 0.5 and we need\n * to move an element 100 pixels, we actually need to move it 200 in within that scaled space.\n */\n const xTranslate = delta.x.translate / treeScale.x\n const yTranslate = delta.y.translate / treeScale.y\n const zTranslate = latestTransform?.z || 0\n if (xTranslate || yTranslate || zTranslate) {\n transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `\n }\n\n /**\n * Apply scale correction for the tree transform.\n * This will apply scale to the screen-orientated axes.\n */\n if (treeScale.x !== 1 || treeScale.y !== 1) {\n transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `\n }\n\n if (latestTransform) {\n const {\n transformPerspective,\n rotate,\n pathRotation,\n rotateX,\n rotateY,\n rotateZ,\n skewX,\n skewY,\n } = latestTransform\n if (transformPerspective)\n transform = `perspective(${transformPerspective}px) ${transform}`\n if (rotate) transform += `rotate(${rotate}deg) `\n // Additive `rotate()` so user `rotate` isn't clobbered.\n if (pathRotation) transform += `rotate(${pathRotation}deg) `\n if (rotateX) transform += `rotateX(${rotateX}deg) `\n if (rotateY) transform += `rotateY(${rotateY}deg) `\n if (rotateZ) transform += `rotateZ(${rotateZ}deg) `\n if (skewX) transform += `skewX(${skewX}deg) `\n if (skewY) transform += `skewY(${skewY}deg) `\n }\n\n /**\n * Apply scale to match the size of the element to the size we want it.\n * This will apply scale to the element-orientated axes.\n */\n const elementScaleX = delta.x.scale * treeScale.x\n const elementScaleY = delta.y.scale * treeScale.y\n if (elementScaleX !== 1 || elementScaleY !== 1) {\n transform += `scale(${elementScaleX}, ${elementScaleY})`\n }\n\n return transform || \"none\"\n}\n"],"names":[],"mappings":"SAGgB,wBAAwB,CACpC,KAAY,EACZ,SAAgB,EAChB,eAAgC,EAAA;IAEhC,IAAI,SAAS,GAAG,EAAE;AAElB;;;;;AAKG;IACH,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;AAClD,IAAA,MAAM,UAAU,GAAG,eAAe,EAAE,CAAC,IAAI,CAAC;AAC1C,IAAA,IAAI,UAAU,IAAI,UAAU,IAAI,UAAU,EAAE;QACxC,SAAS,GAAG,eAAe,UAAU,CAAA,IAAA,EAAO,UAAU,CAAA,IAAA,EAAO,UAAU,MAAM;IACjF;AAEA;;;AAGG;AACH,IAAA,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,EAAE;AACxC,QAAA,SAAS,IAAI,CAAA,MAAA,EAAS,CAAC,GAAG,SAAS,CAAC,CAAC,CAAA,EAAA,EAAK,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI;IACjE;IAEA,IAAI,eAAe,EAAE;AACjB,QAAA,MAAM,EACF,oBAAoB,EACpB,MAAM,EACN,YAAY,EACZ,OAAO,EACP,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,GACR,GAAG,eAAe;AACnB,QAAA,IAAI,oBAAoB;AACpB,YAAA,SAAS,GAAG,CAAA,YAAA,EAAe,oBAAoB,CAAA,IAAA,EAAO,SAAS,EAAE;AACrE,QAAA,IAAI,MAAM;AAAE,YAAA,SAAS,IAAI,CAAA,OAAA,EAAU,MAAM,CAAA,KAAA,CAAO;;AAEhD,QAAA,IAAI,YAAY;AAAE,YAAA,SAAS,IAAI,CAAA,OAAA,EAAU,YAAY,CAAA,KAAA,CAAO;AAC5D,QAAA,IAAI,OAAO;AAAE,YAAA,SAAS,IAAI,CAAA,QAAA,EAAW,OAAO,CAAA,KAAA,CAAO;AACnD,QAAA,IAAI,OAAO;AAAE,YAAA,SAAS,IAAI,CAAA,QAAA,EAAW,OAAO,CAAA,KAAA,CAAO;AACnD,QAAA,IAAI,OAAO;AAAE,YAAA,SAAS,IAAI,CAAA,QAAA,EAAW,OAAO,CAAA,KAAA,CAAO;AACnD,QAAA,IAAI,KAAK;AAAE,YAAA,SAAS,IAAI,CAAA,MAAA,EAAS,KAAK,CAAA,KAAA,CAAO;AAC7C,QAAA,IAAI,KAAK;AAAE,YAAA,SAAS,IAAI,CAAA,MAAA,EAAS,KAAK,CAAA,KAAA,CAAO;IACjD;AAEA;;;AAGG;IACH,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACjD,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,EAAE;AAC5C,QAAA,SAAS,IAAI,CAAA,MAAA,EAAS,aAAa,CAAA,EAAA,EAAK,aAAa,GAAG;IAC5D;IAEA,OAAO,SAAS,IAAI,MAAM;AAC9B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-transform.mjs","sources":["../../../../src/projection/utils/has-transform.ts"],"sourcesContent":["import { type AnyResolvedKeyframe } from \"../../animation/types\"\nimport { ResolvedValues } from \"../../render/types\"\n\nfunction isIdentityScale(scale: AnyResolvedKeyframe | undefined) {\n return scale === undefined || scale === 1\n}\n\nexport function hasScale({ scale, scaleX, scaleY }: ResolvedValues) {\n return (\n !isIdentityScale(scale) ||\n !isIdentityScale(scaleX) ||\n !isIdentityScale(scaleY)\n )\n}\n\nexport function hasTransform(values: ResolvedValues) {\n return (\n hasScale(values) ||\n has2DTranslate(values) ||\n values.z ||\n values.rotate ||\n values.rotateX ||\n values.rotateY ||\n values.skewX ||\n values.skewY\n )\n}\n\nexport function has2DTranslate(values: ResolvedValues) {\n return is2DTranslate(values.x) || is2DTranslate(values.y)\n}\n\nfunction is2DTranslate(value: AnyResolvedKeyframe | undefined) {\n return value && value !== \"0%\"\n}\n"],"names":[],"mappings":"AAGA,SAAS,eAAe,CAAC,KAAsC,EAAA;AAC3D,IAAA,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,CAAC;AAC7C;AAEM,SAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAkB,EAAA;AAC9D,IAAA,QACI,CAAC,eAAe,CAAC,KAAK,CAAC;QACvB,CAAC,eAAe,CAAC,MAAM,CAAC;AACxB,QAAA,CAAC,eAAe,CAAC,MAAM,CAAC;AAEhC;AAEM,SAAU,YAAY,CAAC,MAAsB,EAAA;AAC/C,IAAA,QACI,QAAQ,CAAC,MAAM,CAAC;QAChB,cAAc,CAAC,MAAM,CAAC;AACtB,QAAA,MAAM,CAAC,CAAC;AACR,QAAA,MAAM,CAAC,MAAM;AACb,QAAA,MAAM,CAAC,OAAO;AACd,QAAA,MAAM,CAAC,OAAO;AACd,QAAA,MAAM,CAAC,KAAK;QACZ,MAAM,CAAC,KAAK;AAEpB;AAEM,SAAU,cAAc,CAAC,MAAsB,EAAA;AACjD,IAAA,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,aAAa,CAAC,KAAsC,EAAA;AACzD,IAAA,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI;AAClC;;;;"}
|
|
1
|
+
{"version":3,"file":"has-transform.mjs","sources":["../../../../src/projection/utils/has-transform.ts"],"sourcesContent":["import { type AnyResolvedKeyframe } from \"../../animation/types\"\nimport { ResolvedValues } from \"../../render/types\"\n\nfunction isIdentityScale(scale: AnyResolvedKeyframe | undefined) {\n return scale === undefined || scale === 1\n}\n\nexport function hasScale({ scale, scaleX, scaleY }: ResolvedValues) {\n return (\n !isIdentityScale(scale) ||\n !isIdentityScale(scaleX) ||\n !isIdentityScale(scaleY)\n )\n}\n\nexport function hasTransform(values: ResolvedValues) {\n return (\n hasScale(values) ||\n has2DTranslate(values) ||\n values.z ||\n values.rotate ||\n values.rotateX ||\n values.rotateY ||\n values.rotateZ ||\n values.skewX ||\n values.skewY\n )\n}\n\nexport function has2DTranslate(values: ResolvedValues) {\n return is2DTranslate(values.x) || is2DTranslate(values.y)\n}\n\nfunction is2DTranslate(value: AnyResolvedKeyframe | undefined) {\n return value && value !== \"0%\"\n}\n"],"names":[],"mappings":"AAGA,SAAS,eAAe,CAAC,KAAsC,EAAA;AAC3D,IAAA,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,CAAC;AAC7C;AAEM,SAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAkB,EAAA;AAC9D,IAAA,QACI,CAAC,eAAe,CAAC,KAAK,CAAC;QACvB,CAAC,eAAe,CAAC,MAAM,CAAC;AACxB,QAAA,CAAC,eAAe,CAAC,MAAM,CAAC;AAEhC;AAEM,SAAU,YAAY,CAAC,MAAsB,EAAA;AAC/C,IAAA,QACI,QAAQ,CAAC,MAAM,CAAC;QAChB,cAAc,CAAC,MAAM,CAAC;AACtB,QAAA,MAAM,CAAC,CAAC;AACR,QAAA,MAAM,CAAC,MAAM;AACb,QAAA,MAAM,CAAC,OAAO;AACd,QAAA,MAAM,CAAC,OAAO;AACd,QAAA,MAAM,CAAC,OAAO;AACd,QAAA,MAAM,CAAC,KAAK;QACZ,MAAM,CAAC,KAAK;AAEpB;AAEM,SAAU,cAAc,CAAC,MAAsB,EAAA;AACjD,IAAA,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,aAAa,CAAC,KAAsC,EAAA;AACzD,IAAA,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI;AAClC;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const distance = (a, b) => Math.abs(a - b);
|
|
2
|
+
function distance2D(a, b) {
|
|
3
|
+
// Multi-dimensional
|
|
4
|
+
const xDelta = distance(a.x, b.x);
|
|
5
|
+
const yDelta = distance(a.y, b.y);
|
|
6
|
+
return Math.sqrt(xDelta ** 2 + yDelta ** 2);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { distance, distance2D };
|
|
10
|
+
//# sourceMappingURL=distance.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distance.mjs","sources":["../../../src/utils/distance.ts"],"sourcesContent":["import { Point } from \"motion-utils\"\n\nexport const distance = (a: number, b: number) => Math.abs(a - b)\n\nexport function distance2D(a: Point, b: Point): number {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x)\n const yDelta = distance(a.y, b.y)\n return Math.sqrt(xDelta ** 2 + yDelta ** 2)\n}\n"],"names":[],"mappings":"AAEO,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,CAAS,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;AAE1D,SAAU,UAAU,CAAC,CAAQ,EAAE,CAAQ,EAAA;;AAEzC,IAAA,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACjC,IAAA,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACjC,IAAA,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC;AAC/C;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -640,7 +640,7 @@ interface MotionNodeDraggableOptions {
|
|
|
640
640
|
*
|
|
641
641
|
* Alternatively, it can accept a `ref` to another component created with React's `useRef` hook.
|
|
642
642
|
* This `ref` should be passed both to the draggable component's `dragConstraints` prop, and the `ref`
|
|
643
|
-
* of the component you want to use as constraints.
|
|
643
|
+
* of the component you want to use as constraints. The element itself can also be passed.
|
|
644
644
|
*
|
|
645
645
|
* ```jsx
|
|
646
646
|
* // In pixels
|
|
@@ -661,7 +661,7 @@ interface MotionNodeDraggableOptions {
|
|
|
661
661
|
* }
|
|
662
662
|
* ```
|
|
663
663
|
*/
|
|
664
|
-
dragConstraints?: false | Partial<BoundingBox> | {
|
|
664
|
+
dragConstraints?: false | Partial<BoundingBox> | Element | {
|
|
665
665
|
current: Element | null;
|
|
666
666
|
};
|
|
667
667
|
/**
|
|
@@ -1061,7 +1061,12 @@ interface MotionNodeOptions extends MotionNodeAnimationOptions, MotionNodeEventO
|
|
|
1061
1061
|
interface PresenceContextProps {
|
|
1062
1062
|
id: string;
|
|
1063
1063
|
isPresent: boolean;
|
|
1064
|
-
|
|
1064
|
+
/**
|
|
1065
|
+
* Registers a child with this presence. Motion components also pass
|
|
1066
|
+
* their VisualElement, so `mode="popLayout"` can find the child's
|
|
1067
|
+
* element when the child can't be given a ref.
|
|
1068
|
+
*/
|
|
1069
|
+
register: (id: string | number, node?: any) => () => void;
|
|
1065
1070
|
onExitComplete?: (id: string | number) => void;
|
|
1066
1071
|
initial?: false | VariantLabels;
|
|
1067
1072
|
custom?: any;
|
|
@@ -2370,11 +2375,24 @@ interface PathInterpolator {
|
|
|
2370
2375
|
}
|
|
2371
2376
|
/**
|
|
2372
2377
|
* Returned by a path factory such as `arc()` and passed to `transition.path`.
|
|
2373
|
-
* Implements both the keyframe-animation hook (`
|
|
2374
|
-
*
|
|
2378
|
+
* Implements both the keyframe-animation hook (`animateValues`) and the
|
|
2379
|
+
* layout-projection hook (`interpolateProjection`).
|
|
2375
2380
|
*/
|
|
2376
2381
|
interface MotionPath {
|
|
2377
|
-
|
|
2382
|
+
/**
|
|
2383
|
+
* Claim `x`/`y` from `target` (deleting them) and animate them, via
|
|
2384
|
+
* the motion values `getValue` returns, along the path. Called for
|
|
2385
|
+
* both VisualElements and elements animated by `animate()`.
|
|
2386
|
+
*/
|
|
2387
|
+
animateValues?(getValue: (key: string) => MotionValue | undefined, target: {
|
|
2388
|
+
[key: string]: unknown;
|
|
2389
|
+
}, transition: Transition | undefined, delay: number, animations: AnimationPlaybackControlsWithThen[]): void;
|
|
2390
|
+
/**
|
|
2391
|
+
* @deprecated Implement `animateValues`, which also runs for elements
|
|
2392
|
+
* animated by `animate()`. Only called for VisualElements, and only
|
|
2393
|
+
* when `animateValues` isn't implemented.
|
|
2394
|
+
*/
|
|
2395
|
+
animateVisualElement?(visualElement: VisualElement, target: TargetAndTransition, transition: Transition | undefined, delay: number, animations: AnimationPlaybackControlsWithThen[]): void;
|
|
2378
2396
|
interpolateProjection(delta: Delta): PathInterpolator | undefined;
|
|
2379
2397
|
}
|
|
2380
2398
|
type DynamicOption<T> = (i: number, total: number) => T;
|
|
@@ -3522,6 +3540,73 @@ declare const time: {
|
|
|
3522
3540
|
set: (newTime: number) => void;
|
|
3523
3541
|
};
|
|
3524
3542
|
|
|
3543
|
+
/**
|
|
3544
|
+
* @public
|
|
3545
|
+
*/
|
|
3546
|
+
interface DragOptions {
|
|
3547
|
+
/**
|
|
3548
|
+
* Restrict dragging to a single axis. By default an element can be
|
|
3549
|
+
* dragged on both axes.
|
|
3550
|
+
*/
|
|
3551
|
+
axis?: "x" | "y";
|
|
3552
|
+
/**
|
|
3553
|
+
* The permitted draggable area. Either `top`/`left`/`right`/`bottom`
|
|
3554
|
+
* distances in pixels, relative to the element's origin, or an element
|
|
3555
|
+
* the draggable element must stay within.
|
|
3556
|
+
*/
|
|
3557
|
+
constraints?: Partial<BoundingBox> | Element;
|
|
3558
|
+
/**
|
|
3559
|
+
* How far, from `0` to `1`, the element can move outside its
|
|
3560
|
+
* constraints. Can be set per edge. Defaults to `0.35`.
|
|
3561
|
+
*/
|
|
3562
|
+
elastic?: DragElastic;
|
|
3563
|
+
/**
|
|
3564
|
+
* Whether to carry the gesture's velocity into an inertia animation
|
|
3565
|
+
* on release. Defaults to `true`.
|
|
3566
|
+
*/
|
|
3567
|
+
momentum?: boolean;
|
|
3568
|
+
/**
|
|
3569
|
+
* Options for the inertia animation that runs on release.
|
|
3570
|
+
*/
|
|
3571
|
+
transition?: InertiaOptions;
|
|
3572
|
+
/**
|
|
3573
|
+
* Animate back to the origin on release.
|
|
3574
|
+
*/
|
|
3575
|
+
snapToOrigin?: boolean | "x" | "y";
|
|
3576
|
+
/**
|
|
3577
|
+
* Lock dragging to the first axis the pointer moves along.
|
|
3578
|
+
*/
|
|
3579
|
+
directionLock?: boolean;
|
|
3580
|
+
/**
|
|
3581
|
+
* Allow drag gestures to start on parent elements that are also
|
|
3582
|
+
* draggable. By default, only the innermost draggable element moves.
|
|
3583
|
+
*/
|
|
3584
|
+
propagation?: boolean;
|
|
3585
|
+
onStart?: DragHandler;
|
|
3586
|
+
onMove?: DragHandler;
|
|
3587
|
+
onEnd?: DragHandler;
|
|
3588
|
+
onDirectionLock?: (axis: "x" | "y") => void;
|
|
3589
|
+
onTransitionEnd?: () => void;
|
|
3590
|
+
/**
|
|
3591
|
+
* Called when element constraints are measured. Return a new
|
|
3592
|
+
* `BoundingBox` to override them.
|
|
3593
|
+
*/
|
|
3594
|
+
onMeasureConstraints?: (constraints: BoundingBox) => BoundingBox | void;
|
|
3595
|
+
}
|
|
3596
|
+
/**
|
|
3597
|
+
* Make elements draggable. Returns a function that removes the gesture.
|
|
3598
|
+
*
|
|
3599
|
+
* ```javascript
|
|
3600
|
+
* const stop = drag("#box", { axis: "x", constraints: { left: 0, right: 300 } })
|
|
3601
|
+
* ```
|
|
3602
|
+
*
|
|
3603
|
+
* The element's `x` and `y` are motion values shared with `animate()`
|
|
3604
|
+
* and `animateLayout()`, so these can animate the element after a drag.
|
|
3605
|
+
*
|
|
3606
|
+
* @public
|
|
3607
|
+
*/
|
|
3608
|
+
declare function drag(elementOrSelector: ElementOrSelector, options?: DragOptions): VoidFunction;
|
|
3609
|
+
|
|
3525
3610
|
declare const isDragging: {
|
|
3526
3611
|
x: boolean;
|
|
3527
3612
|
y: boolean;
|
|
@@ -3530,6 +3615,90 @@ declare function isDragActive(): boolean;
|
|
|
3530
3615
|
|
|
3531
3616
|
declare function setDragLock(axis: boolean | "x" | "y" | "lockDirection"): (() => void) | null;
|
|
3532
3617
|
|
|
3618
|
+
declare const elementDragControls: WeakMap<VisualElement<unknown, unknown, {}>, VisualElementDragControls>;
|
|
3619
|
+
interface DragControlOptions {
|
|
3620
|
+
/**
|
|
3621
|
+
* This distance after which dragging starts and a direction is locked in.
|
|
3622
|
+
*
|
|
3623
|
+
* @public
|
|
3624
|
+
*/
|
|
3625
|
+
distanceThreshold?: number;
|
|
3626
|
+
/**
|
|
3627
|
+
* Whether to immediately snap to the cursor when dragging starts.
|
|
3628
|
+
*
|
|
3629
|
+
* @public
|
|
3630
|
+
*/
|
|
3631
|
+
snapToCursor?: boolean;
|
|
3632
|
+
}
|
|
3633
|
+
declare class VisualElementDragControls {
|
|
3634
|
+
private visualElement;
|
|
3635
|
+
private panSession?;
|
|
3636
|
+
private openDragLock;
|
|
3637
|
+
isDragging: boolean;
|
|
3638
|
+
private currentDirection;
|
|
3639
|
+
private originPoint;
|
|
3640
|
+
/**
|
|
3641
|
+
* The permitted boundaries of travel, in pixels.
|
|
3642
|
+
*/
|
|
3643
|
+
private constraints;
|
|
3644
|
+
private hasMutatedConstraints;
|
|
3645
|
+
/**
|
|
3646
|
+
* The per-axis resolved elastic values.
|
|
3647
|
+
*/
|
|
3648
|
+
private elastic;
|
|
3649
|
+
/**
|
|
3650
|
+
* The latest pointer event. Used as fallback when the `cancel` and `stop` functions are called without arguments.
|
|
3651
|
+
*/
|
|
3652
|
+
private latestPointerEvent;
|
|
3653
|
+
/**
|
|
3654
|
+
* The latest pan info. Used as fallback when the `cancel` and `stop` functions are called without arguments.
|
|
3655
|
+
*/
|
|
3656
|
+
private latestPanInfo;
|
|
3657
|
+
/**
|
|
3658
|
+
* Where drag options are read from. By default these are the
|
|
3659
|
+
* VisualElement's props (as with a React `motion` component), but the
|
|
3660
|
+
* vanilla `drag()` API provides its own.
|
|
3661
|
+
*/
|
|
3662
|
+
private readProps;
|
|
3663
|
+
constructor(visualElement: VisualElement<HTMLElement>, readProps?: () => MotionNodeOptions);
|
|
3664
|
+
start(originEvent: PointerEvent, { snapToCursor, distanceThreshold }?: DragControlOptions): void;
|
|
3665
|
+
stop(event?: PointerEvent, panInfo?: PanInfo): void;
|
|
3666
|
+
cancel(): void;
|
|
3667
|
+
/**
|
|
3668
|
+
* Clean up the pan session without modifying other drag state.
|
|
3669
|
+
* This is used during unmount to ensure event listeners are removed
|
|
3670
|
+
* without affecting projection animations or drag locks.
|
|
3671
|
+
*/
|
|
3672
|
+
endPanSession(): void;
|
|
3673
|
+
private updateAxis;
|
|
3674
|
+
private resolveConstraints;
|
|
3675
|
+
private resolveRefConstraints;
|
|
3676
|
+
private startAnimation;
|
|
3677
|
+
private startAxisValueAnimation;
|
|
3678
|
+
private stopAnimation;
|
|
3679
|
+
/**
|
|
3680
|
+
* Drag works differently depending on which props are provided.
|
|
3681
|
+
*
|
|
3682
|
+
* - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.
|
|
3683
|
+
* - Otherwise, we apply the delta to the x/y motion values.
|
|
3684
|
+
*/
|
|
3685
|
+
private getAxisMotionValue;
|
|
3686
|
+
/**
|
|
3687
|
+
* Measure the live box - projection.layout may or may not include the
|
|
3688
|
+
* drag transform, depending on when it was measured.
|
|
3689
|
+
*/
|
|
3690
|
+
private snapToCursor;
|
|
3691
|
+
/**
|
|
3692
|
+
* When the viewport resizes we want to check if the measured constraints
|
|
3693
|
+
* have changed and, if so, reposition the element within those new constraints
|
|
3694
|
+
* relative to where it was before the resize.
|
|
3695
|
+
*/
|
|
3696
|
+
scalePositionWithinConstraints(): void;
|
|
3697
|
+
addListeners(): (() => void) | undefined;
|
|
3698
|
+
getProps(): MotionNodeOptions;
|
|
3699
|
+
}
|
|
3700
|
+
declare function expectsResolvedDragConstraints({ dragConstraints, onMeasureDragConstraints, }: MotionNodeOptions): boolean;
|
|
3701
|
+
|
|
3533
3702
|
/**
|
|
3534
3703
|
* Options for event listeners.
|
|
3535
3704
|
*
|
|
@@ -3575,6 +3744,81 @@ type OnHoverEndEvent = (event: PointerEvent) => void;
|
|
|
3575
3744
|
*/
|
|
3576
3745
|
declare function hover(elementOrSelector: ElementOrSelector, onHoverStart: OnHoverStartEvent, options?: EventOptions): VoidFunction;
|
|
3577
3746
|
|
|
3747
|
+
interface PanSessionHandlers {
|
|
3748
|
+
onSessionStart: PanHandler;
|
|
3749
|
+
onStart: PanHandler;
|
|
3750
|
+
onMove: PanHandler;
|
|
3751
|
+
onEnd: PanHandler;
|
|
3752
|
+
onSessionEnd: PanHandler;
|
|
3753
|
+
resumeAnimation: () => void;
|
|
3754
|
+
}
|
|
3755
|
+
interface PanSessionOptions {
|
|
3756
|
+
transformPagePoint?: TransformPoint;
|
|
3757
|
+
dragSnapToOrigin?: boolean | "x" | "y";
|
|
3758
|
+
distanceThreshold?: number;
|
|
3759
|
+
contextWindow?: (Window & typeof globalThis) | null;
|
|
3760
|
+
/**
|
|
3761
|
+
* Element being dragged. When provided, scroll events on its
|
|
3762
|
+
* ancestors and window are compensated so the gesture continues
|
|
3763
|
+
* smoothly during scroll.
|
|
3764
|
+
*/
|
|
3765
|
+
element?: HTMLElement | null;
|
|
3766
|
+
}
|
|
3767
|
+
declare class PanSession {
|
|
3768
|
+
private history;
|
|
3769
|
+
private startEvent;
|
|
3770
|
+
private lastMoveEvent;
|
|
3771
|
+
private lastMoveEventInfo;
|
|
3772
|
+
/**
|
|
3773
|
+
* Raw (untransformed) event info, re-transformed each frame
|
|
3774
|
+
* so transformPagePoint sees the current parent matrix.
|
|
3775
|
+
*/
|
|
3776
|
+
private lastRawMoveEventInfo;
|
|
3777
|
+
/**
|
|
3778
|
+
* Whether a pointermove has arrived since the last updatePoint.
|
|
3779
|
+
*/
|
|
3780
|
+
private hasPendingMove?;
|
|
3781
|
+
private transformPagePoint?;
|
|
3782
|
+
private handlers;
|
|
3783
|
+
private removeListeners;
|
|
3784
|
+
/**
|
|
3785
|
+
* For determining if an animation should resume after it is interrupted
|
|
3786
|
+
*/
|
|
3787
|
+
private dragSnapToOrigin;
|
|
3788
|
+
/**
|
|
3789
|
+
* The distance after which panning should start.
|
|
3790
|
+
*/
|
|
3791
|
+
private distanceThreshold;
|
|
3792
|
+
private contextWindow;
|
|
3793
|
+
/**
|
|
3794
|
+
* Scroll positions of scrollable ancestors and window.
|
|
3795
|
+
*/
|
|
3796
|
+
private scrollPositions;
|
|
3797
|
+
/**
|
|
3798
|
+
* Cleanup function for scroll listeners.
|
|
3799
|
+
*/
|
|
3800
|
+
private removeScrollListeners;
|
|
3801
|
+
constructor(event: PointerEvent, handlers: Partial<PanSessionHandlers>, { transformPagePoint, contextWindow, dragSnapToOrigin, distanceThreshold, element, }?: PanSessionOptions);
|
|
3802
|
+
/**
|
|
3803
|
+
* Start tracking scroll on ancestors and window.
|
|
3804
|
+
*/
|
|
3805
|
+
private startScrollTracking;
|
|
3806
|
+
private onElementScroll;
|
|
3807
|
+
private onWindowScroll;
|
|
3808
|
+
/**
|
|
3809
|
+
* Handle scroll compensation during drag.
|
|
3810
|
+
*
|
|
3811
|
+
* For element scroll: adjusts history origin since pageX/pageY doesn't change.
|
|
3812
|
+
* For window scroll: adjusts lastMoveEventInfo since pageX/pageY would change.
|
|
3813
|
+
*/
|
|
3814
|
+
private handleScroll;
|
|
3815
|
+
private updatePoint;
|
|
3816
|
+
private handlePointerMove;
|
|
3817
|
+
private handlePointerUp;
|
|
3818
|
+
updateHandlers(handlers: Partial<PanSessionHandlers>): void;
|
|
3819
|
+
end(): void;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3578
3822
|
interface PressGestureInfo {
|
|
3579
3823
|
success: boolean;
|
|
3580
3824
|
}
|
|
@@ -4725,6 +4969,15 @@ declare function animateSingleValue<V extends AnyResolvedKeyframe>(value: Motion
|
|
|
4725
4969
|
|
|
4726
4970
|
declare function addDomEvent(target: EventTarget, eventName: string, handler: EventListener, options?: AddEventListenerOptions): () => void;
|
|
4727
4971
|
|
|
4972
|
+
type EventListenerWithPointInfo = (e: PointerEvent, info: EventInfo) => void;
|
|
4973
|
+
declare function extractEventInfo(event: PointerEvent): EventInfo;
|
|
4974
|
+
declare const addPointerInfo: (handler: EventListenerWithPointInfo) => EventListener;
|
|
4975
|
+
|
|
4976
|
+
declare function addPointerEvent(target: EventTarget, eventName: string, handler: EventListenerWithPointInfo, options?: AddEventListenerOptions): () => void;
|
|
4977
|
+
|
|
4978
|
+
declare const distance: (a: number, b: number) => number;
|
|
4979
|
+
declare function distance2D(a: Point, b: Point): number;
|
|
4980
|
+
|
|
4728
4981
|
interface WithDepth {
|
|
4729
4982
|
depth: number;
|
|
4730
4983
|
}
|
|
@@ -5145,6 +5398,10 @@ declare function createProjectionNode<I>({ attachResizeListener, defaultParent,
|
|
|
5145
5398
|
prevTransformTemplateValue: string | undefined;
|
|
5146
5399
|
preserveOpacity?: boolean | undefined;
|
|
5147
5400
|
hasTreeAnimated: boolean;
|
|
5401
|
+
/**
|
|
5402
|
+
* Whether the layout animation "didUpdate" handler has been registered.
|
|
5403
|
+
*/
|
|
5404
|
+
hasLayoutListener?: boolean | undefined;
|
|
5148
5405
|
addEventListener(name: LayoutEvents, handler: any): VoidFunction;
|
|
5149
5406
|
notifyListeners(name: LayoutEvents, ...args: any): void;
|
|
5150
5407
|
hasListeners(name: LayoutEvents): boolean;
|
|
@@ -5152,6 +5409,12 @@ declare function createProjectionNode<I>({ attachResizeListener, defaultParent,
|
|
|
5152
5409
|
* Lifecycles
|
|
5153
5410
|
*/
|
|
5154
5411
|
mount(instance: I): void;
|
|
5412
|
+
/**
|
|
5413
|
+
* Only register the layout animation handler if this node requires
|
|
5414
|
+
* layout animation. This is called on mount, and again whenever options
|
|
5415
|
+
* change, as `layout` or `layoutId` may be enabled after mount.
|
|
5416
|
+
*/
|
|
5417
|
+
addLayoutListener(): void;
|
|
5155
5418
|
unmount(): void;
|
|
5156
5419
|
blockUpdate(): void;
|
|
5157
5420
|
unblockUpdate(): void;
|
|
@@ -5301,10 +5564,12 @@ declare const DocumentProjectionNode: {
|
|
|
5301
5564
|
prevTransformTemplateValue: string | undefined;
|
|
5302
5565
|
preserveOpacity?: boolean | undefined;
|
|
5303
5566
|
hasTreeAnimated: boolean;
|
|
5567
|
+
hasLayoutListener?: boolean | undefined;
|
|
5304
5568
|
addEventListener(name: LayoutEvents, handler: any): VoidFunction;
|
|
5305
5569
|
notifyListeners(name: LayoutEvents, ...args: any): void;
|
|
5306
5570
|
hasListeners(name: LayoutEvents): boolean;
|
|
5307
5571
|
mount(instance: Window): void;
|
|
5572
|
+
addLayoutListener(): void;
|
|
5308
5573
|
unmount(): void;
|
|
5309
5574
|
blockUpdate(): void;
|
|
5310
5575
|
unblockUpdate(): void;
|
|
@@ -5445,10 +5710,12 @@ declare const HTMLProjectionNode: {
|
|
|
5445
5710
|
prevTransformTemplateValue: string | undefined;
|
|
5446
5711
|
preserveOpacity?: boolean | undefined;
|
|
5447
5712
|
hasTreeAnimated: boolean;
|
|
5713
|
+
hasLayoutListener?: boolean | undefined;
|
|
5448
5714
|
addEventListener(name: LayoutEvents, handler: any): VoidFunction;
|
|
5449
5715
|
notifyListeners(name: LayoutEvents, ...args: any): void;
|
|
5450
5716
|
hasListeners(name: LayoutEvents): boolean;
|
|
5451
5717
|
mount(instance: HTMLElement): void;
|
|
5718
|
+
addLayoutListener(): void;
|
|
5452
5719
|
unmount(): void;
|
|
5453
5720
|
blockUpdate(): void;
|
|
5454
5721
|
unblockUpdate(): void;
|
|
@@ -5649,4 +5916,4 @@ declare const sync: Batcher;
|
|
|
5649
5916
|
*/
|
|
5650
5917
|
declare const cancelSync: Record<string, (process: Process) => void>;
|
|
5651
5918
|
|
|
5652
|
-
export { type AccelerateConfig, type AcceptedAnimations, type ActiveStatsBuffer, type AddEffectValue, type AnimateEffect, type AnimationDefinition, type AnimationGeneratorName, type AnimationGeneratorType, type AnimationList, type AnimationOptions, type AnimationOrchestrationOptions, type AnimationPlaybackControls, type AnimationPlaybackControlsWithThen, type AnimationPlaybackLifecycles, type AnimationPlaybackOptions, type AnimationScope, type AnimationState$1 as AnimationState, type AnimationType, type AnimationTypeState, type AnyResolvedKeyframe, type ArcOptions, AsyncMotionValueAnimation, type Batcher, type CSSStyleDeclarationWithTransform, type CSSVariableName, type CSSVariableToken, type CancelProcess, type Color, type ComplexValueInfo, type ComplexValues, type DOMKeyframesDefinition, DOMKeyframesResolver, type DOMValueAnimationOptions, DOMVisualElement, type DOMVisualElementOptions, type DecayOptions, type DelayedFunction, DocumentProjectionNode, type DragElastic, type DragHandler, type DraggableProps, type DurationSpringOptions, type DynamicOption, type Effect, type EffectKeyframes, type EffectOptions, type EffectRead, type EffectTest, type EffectTransition, type ElementOrSelector, type EventInfo, type EventOptions, Feature, type FeatureClass, FlatTree, type FollowValueOptions, type FrameData, type GeneratorFactory, type GeneratorFactoryFunction, GroupAnimation, GroupAnimationWithThen, type GroupedAnimations, type HSLA, HTMLProjectionNode, type HTMLRenderState, HTMLVisualElement, type HandoffFunction, type IProjectionNode, type InactiveStatsBuffer, type InertiaOptions, type InitialPromotionConfig, type InterpolateOptions, JSAnimation, type KeyframeGenerator, type KeyframeOptions, KeyframeResolver, LayoutAnimationBuilder, type LayoutEvents, type LayoutLifecycles, type LayoutProjectionMetrics, type LayoutProjectionStats, type LayoutUpdateData, type LayoutUpdateHandler, type LegacyAnimationControls, type MapInputRange, type Measurements, type Mixer, type MixerFactory, type MotionConfigContextProps, type MotionNodeAdvancedOptions, type MotionNodeAnimationOptions, type MotionNodeDragHandlers, type MotionNodeDraggableOptions, type MotionNodeEventOptions, type MotionNodeFocusHandlers, type MotionNodeHoverHandlers, type MotionNodeLayoutOptions, type MotionNodeOptions, type MotionNodePanHandlers, type MotionNodeTapHandlers, type MotionNodeViewportOptions, type MotionPath, type MotionStyle, MotionValue, type MotionValueAnimation, type MotionValueEventCallbacks, type MotionValueOptions, MotionValueState, type MultiTransformer, NativeAnimation, NativeAnimationExtended, type NativeAnimationOptions, type NativeAnimationOptionsExtended, NativeAnimationWrapper, type NodeGroup, NodeStack, type NumberMap, ObjectVisualElement, type OnHoverEndEvent, type OnHoverStartEvent, type OnKeyframesResolved, type OnPressEndEvent, type OnPressStartEvent, type Owner, type PanHandler, type PanInfo, type PassiveEffect, type PathInterpolator, type PathState, type Phase, type Point2D, type PointerEventOptions, type PresenceContextProps, type PressGestureInfo, type Process, type ProgressTimeline, type ProjectionEventName, type ProjectionNodeConfig, type ProjectionNodeOptions, type PropagateOptions, type RGBA, type ReducedMotionConfig, type RepeatType, type ResolvedConstraints, type ResolvedElastic, type ResolvedKeyframes, type ResolvedValueKeyframe, type ResolvedValues$1 as ResolvedValues, type SVGAttributes, type SVGForcedAttrKeyframesDefinition, type SVGForcedAttrProperties, type SVGForcedAttrTransitions, type SVGKeyframesDefinition, type SVGPathKeyframesDefinition, type SVGPathProperties, type SVGPathTransitions, type SVGRenderState, type SVGTransitions, SVGVisualElement, type ScaleCorrectionNode, type ScaleCorrector, type ScaleCorrectorDefinition, type ScaleCorrectorMap, type Schedule, type ScrapeMotionValuesFromProps, type ScrollMeasurements, type SelectorCache, type SingleTransformer, type Spring, type SpringOptions, type StaggerOptions, type StaggerOrigin, type StartAnimation, type StatsRecording, type Step, type StepId, type Steps, type StyleKeyframesDefinition, type StyleSubject, type StyleTransitions, type Subscriber, type TapHandlers, type TapInfo, type Target, type TargetAndTransition, type TargetResolver, type TimelineWithFallback, type TransformInputRange, type TransformOptions, type TransformOrigin, type TransformProperties, type TransformTemplate, type Transformer, type Transition, type TransitionWithValueOverrides, type Tween, type UnresolvedKeyframes, type UnresolvedValueKeyframe, type UseRenderState, type ValueAnimationOptions, type ValueAnimationOptionsWithRenderContext, type ValueAnimationTransition, type ValueAnimationWithDynamicDelay, type ValueIndexes, type ValueKeyframe, type ValueKeyframesDefinition, type ValueTransformer, type ValueTransition, type ValueType, type ValueTypeMap, type VariableKeyframesDefinition, type VariableTransitions, type Variant, type VariantLabels, type Variants, type VelocityOptions, type ViewTransitionAnimationDefinition, ViewTransitionBuilder, type ViewTransitionOptions, type ViewTransitionTarget, type ViewTransitionTargetDefinition, type ViewportEventHandler, type ViewportOptions, VisualElement, type VisualElementAnimationOptions, type VisualElementEventCallbacks, type VisualElementOptions, type VisualState, type WillChange, type WithAppearProps, type WithDepth, type WithQuerySelectorAll, acceleratedValues, addAttrValue, addDomEvent, addEffect, addSVGValue, addScaleCorrector, addStyleValue, addValueToWillChange, alpha, analyseComplexValue, animateEffectSubject, animateElement, animateLayout, animateMotionValue, animateSingleValue, animateTarget, animateValue, animateValues, animateVariant, animateView, animateVisualElement, animationMapKey, applyAxisDelta, applyBoxDelta, applyGeneratorOptions, applyPointDelta, applyPxDefaults, applyTreeDeltas, arc, aspectRatio, attachFollow, attachSpring, attrEffect, axisDeltaEquals, axisEquals, axisEqualsRounded, boxEquals, boxEqualsRounded, buildHTMLStyles, buildProjectionTransform, buildSVGAttrs, buildSVGPath, buildTransform, calcAxisDelta, calcBoxDelta, calcChildStagger, calcGeneratorDuration, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, camelCaseAttributes, camelToDash, cancelFrame, cancelMicrotask, cancelSync, checkVariantsDidChange, cleanDirtyNodes, collectMotionValues, color, compareByDepth, complex, containsCSSVariable, convertBoundingBoxToBox, convertBoxToBoundingBox, convertOffsetToTimes, copyAxisDeltaInto, copyAxisInto, copyBoxInto, correctBorderRadius, correctBoxShadow, createAnimationState, createAxis, createAxisDelta, createBox, createDelta, createEffect, createGeneratorEasing, createProjectionNode, createRenderBatcher, cubicBezierAsString, defaultEasing, defaultOffset, defaultTransformValue, defaultValueTypes, degrees, delay, delayInSeconds, dimensionValueTypes, eachAxis, fillOffset, fillWildcards, findDimensionValueType, findEffect, findValueType, flushKeyframeResolvers, followValue, frame, frameData, frameSteps, generateLinearEasing, getAnimatableNone, getAnimationMap, getComputedStyle, getDefaultTransition, getDefaultValueType, getFeatureDefinitions, getFinalKeyframe, getMixer, getOptimisedAppearId, getOriginIndex, getValueAsType, getValueTransition, getVariableValue, getVariantContext, getViewAnimationLayerInfo, getViewAnimations, globalProjectionState, handOffElementState, has2DTranslate, hasComplexValues, hasReducedMotionListener, hasScale, hasTransform, hex, hover, hsla, hslaToRgba, inertia, initPrefersReducedMotion, interpolate, invisibleValues, isAnimationControls, isCSSVariableName, isCSSVariableToken, isControllingVariants, isDeltaZero, isDragActive, isDragging, isElementKeyboardAccessible, isElementTextInput, isForcedMotionValue, isGenerator, isHTMLElement, isKeyframesTarget, isMotionValue, isNear, isNodeOrChild, isPrimaryPointer, isSVGElement, isSVGSVGElement, isSVGTag, isTransitionDefined, isVariantLabel, isVariantNode, isWaapiSupportedEasing, isWillChangeMotionValue, keyframes, makeAnimationInstant, mapEasingToNativeEasing, mapValue, maxGeneratorDuration, measurePageBox, measureViewportBox, microtask, mix, mixArray, mixColor, mixComplex, mixImmediate, mixLinearColor, mixNumber, mixObject, mixValues, mixVisibility, motionValue, nodeGroup, number, numberValueTypes, optimizedAppearDataAttribute, optimizedAppearDataId, originProps, parseAnimateLayoutArgs, parseCSSVariable, parseValueFromTransform, percent, pixelsToPercent, positionalKeys, prefersReducedMotion, press, progressPercentage, propEffect, propagateDirtyNodes, px, readSVGValue, readStyleValue, readTransformValue, recordStats, removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removeEffect, removePointDelta, renderHTML, renderSVG, resize, resolveElements, resolveMotionValue, resolveTransition, resolveVariant, resolveVariantFromProps, rgbUnit, rgba, rootProjectionNode, round, sampleDelta, scale, scaleCorrectors, scalePoint, scrapeMotionValuesFromProps$1 as scrapeHTMLMotionValuesFromProps, scrapeMotionValuesFromProps as scrapeSVGMotionValuesFromProps, setDragLock, setFeatureDefinitions, setStyle, setTarget, spring, springValue, stagger, startWaapiAnimation, statsBuffer, styleEffect, styleSubjectEffect, supportedWaapiEasing, supportsBrowserAnimation, supportsFlags, supportsLinearEasing, supportsPartialKeyframes, supportsScrollTimeline, supportsViewTimeline, supportsWaapi, svgEffect, svgSubjectEffect, sync, testValueType, time, transform, transformAxis, transformBox, transformBoxPoints, transformPropOrder, transformProps, transformValue, transformValueTypes, translateAxis, updateMotionValuesFromProps, variantPriorityOrder, variantProps, vh, visualElementStore, vw };
|
|
5919
|
+
export { type AccelerateConfig, type AcceptedAnimations, type ActiveStatsBuffer, type AddEffectValue, type AnimateEffect, type AnimationDefinition, type AnimationGeneratorName, type AnimationGeneratorType, type AnimationList, type AnimationOptions, type AnimationOrchestrationOptions, type AnimationPlaybackControls, type AnimationPlaybackControlsWithThen, type AnimationPlaybackLifecycles, type AnimationPlaybackOptions, type AnimationScope, type AnimationState$1 as AnimationState, type AnimationType, type AnimationTypeState, type AnyResolvedKeyframe, type ArcOptions, AsyncMotionValueAnimation, type Batcher, type CSSStyleDeclarationWithTransform, type CSSVariableName, type CSSVariableToken, type CancelProcess, type Color, type ComplexValueInfo, type ComplexValues, type DOMKeyframesDefinition, DOMKeyframesResolver, type DOMValueAnimationOptions, DOMVisualElement, type DOMVisualElementOptions, type DecayOptions, type DelayedFunction, DocumentProjectionNode, type DragControlOptions, type DragElastic, type DragHandler, type DragOptions, type DraggableProps, type DurationSpringOptions, type DynamicOption, type Effect, type EffectKeyframes, type EffectOptions, type EffectRead, type EffectTest, type EffectTransition, type ElementOrSelector, type EventInfo, type EventListenerWithPointInfo, type EventOptions, Feature, type FeatureClass, FlatTree, type FollowValueOptions, type FrameData, type GeneratorFactory, type GeneratorFactoryFunction, GroupAnimation, GroupAnimationWithThen, type GroupedAnimations, type HSLA, HTMLProjectionNode, type HTMLRenderState, HTMLVisualElement, type HandoffFunction, type IProjectionNode, type InactiveStatsBuffer, type InertiaOptions, type InitialPromotionConfig, type InterpolateOptions, JSAnimation, type KeyframeGenerator, type KeyframeOptions, KeyframeResolver, LayoutAnimationBuilder, type LayoutEvents, type LayoutLifecycles, type LayoutProjectionMetrics, type LayoutProjectionStats, type LayoutUpdateData, type LayoutUpdateHandler, type LegacyAnimationControls, type MapInputRange, type Measurements, type Mixer, type MixerFactory, type MotionConfigContextProps, type MotionNodeAdvancedOptions, type MotionNodeAnimationOptions, type MotionNodeDragHandlers, type MotionNodeDraggableOptions, type MotionNodeEventOptions, type MotionNodeFocusHandlers, type MotionNodeHoverHandlers, type MotionNodeLayoutOptions, type MotionNodeOptions, type MotionNodePanHandlers, type MotionNodeTapHandlers, type MotionNodeViewportOptions, type MotionPath, type MotionStyle, MotionValue, type MotionValueAnimation, type MotionValueEventCallbacks, type MotionValueOptions, MotionValueState, type MultiTransformer, NativeAnimation, NativeAnimationExtended, type NativeAnimationOptions, type NativeAnimationOptionsExtended, NativeAnimationWrapper, type NodeGroup, NodeStack, type NumberMap, ObjectVisualElement, type OnHoverEndEvent, type OnHoverStartEvent, type OnKeyframesResolved, type OnPressEndEvent, type OnPressStartEvent, type Owner, type PanHandler, type PanInfo, PanSession, type PassiveEffect, type PathInterpolator, type PathState, type Phase, type Point2D, type PointerEventOptions, type PresenceContextProps, type PressGestureInfo, type Process, type ProgressTimeline, type ProjectionEventName, type ProjectionNodeConfig, type ProjectionNodeOptions, type PropagateOptions, type RGBA, type ReducedMotionConfig, type RepeatType, type ResolvedConstraints, type ResolvedElastic, type ResolvedKeyframes, type ResolvedValueKeyframe, type ResolvedValues$1 as ResolvedValues, type SVGAttributes, type SVGForcedAttrKeyframesDefinition, type SVGForcedAttrProperties, type SVGForcedAttrTransitions, type SVGKeyframesDefinition, type SVGPathKeyframesDefinition, type SVGPathProperties, type SVGPathTransitions, type SVGRenderState, type SVGTransitions, SVGVisualElement, type ScaleCorrectionNode, type ScaleCorrector, type ScaleCorrectorDefinition, type ScaleCorrectorMap, type Schedule, type ScrapeMotionValuesFromProps, type ScrollMeasurements, type SelectorCache, type SingleTransformer, type Spring, type SpringOptions, type StaggerOptions, type StaggerOrigin, type StartAnimation, type StatsRecording, type Step, type StepId, type Steps, type StyleKeyframesDefinition, type StyleSubject, type StyleTransitions, type Subscriber, type TapHandlers, type TapInfo, type Target, type TargetAndTransition, type TargetResolver, type TimelineWithFallback, type TransformInputRange, type TransformOptions, type TransformOrigin, type TransformProperties, type TransformTemplate, type Transformer, type Transition, type TransitionWithValueOverrides, type Tween, type UnresolvedKeyframes, type UnresolvedValueKeyframe, type UseRenderState, type ValueAnimationOptions, type ValueAnimationOptionsWithRenderContext, type ValueAnimationTransition, type ValueAnimationWithDynamicDelay, type ValueIndexes, type ValueKeyframe, type ValueKeyframesDefinition, type ValueTransformer, type ValueTransition, type ValueType, type ValueTypeMap, type VariableKeyframesDefinition, type VariableTransitions, type Variant, type VariantLabels, type Variants, type VelocityOptions, type ViewTransitionAnimationDefinition, ViewTransitionBuilder, type ViewTransitionOptions, type ViewTransitionTarget, type ViewTransitionTargetDefinition, type ViewportEventHandler, type ViewportOptions, VisualElement, type VisualElementAnimationOptions, VisualElementDragControls, type VisualElementEventCallbacks, type VisualElementOptions, type VisualState, type WillChange, type WithAppearProps, type WithDepth, type WithQuerySelectorAll, acceleratedValues, addAttrValue, addDomEvent, addEffect, addPointerEvent, addPointerInfo, addSVGValue, addScaleCorrector, addStyleValue, addValueToWillChange, alpha, analyseComplexValue, animateEffectSubject, animateElement, animateLayout, animateMotionValue, animateSingleValue, animateTarget, animateValue, animateValues, animateVariant, animateView, animateVisualElement, animationMapKey, applyAxisDelta, applyBoxDelta, applyGeneratorOptions, applyPointDelta, applyPxDefaults, applyTreeDeltas, arc, aspectRatio, attachFollow, attachSpring, attrEffect, axisDeltaEquals, axisEquals, axisEqualsRounded, boxEquals, boxEqualsRounded, buildHTMLStyles, buildProjectionTransform, buildSVGAttrs, buildSVGPath, buildTransform, calcAxisDelta, calcBoxDelta, calcChildStagger, calcGeneratorDuration, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, camelCaseAttributes, camelToDash, cancelFrame, cancelMicrotask, cancelSync, checkVariantsDidChange, cleanDirtyNodes, collectMotionValues, color, compareByDepth, complex, containsCSSVariable, convertBoundingBoxToBox, convertBoxToBoundingBox, convertOffsetToTimes, copyAxisDeltaInto, copyAxisInto, copyBoxInto, correctBorderRadius, correctBoxShadow, createAnimationState, createAxis, createAxisDelta, createBox, createDelta, createEffect, createGeneratorEasing, createProjectionNode, createRenderBatcher, cubicBezierAsString, defaultEasing, defaultOffset, defaultTransformValue, defaultValueTypes, degrees, delay, delayInSeconds, dimensionValueTypes, distance, distance2D, drag, eachAxis, elementDragControls, expectsResolvedDragConstraints, extractEventInfo, fillOffset, fillWildcards, findDimensionValueType, findEffect, findValueType, flushKeyframeResolvers, followValue, frame, frameData, frameSteps, generateLinearEasing, getAnimatableNone, getAnimationMap, getComputedStyle, getDefaultTransition, getDefaultValueType, getFeatureDefinitions, getFinalKeyframe, getMixer, getOptimisedAppearId, getOriginIndex, getValueAsType, getValueTransition, getVariableValue, getVariantContext, getViewAnimationLayerInfo, getViewAnimations, globalProjectionState, handOffElementState, has2DTranslate, hasComplexValues, hasReducedMotionListener, hasScale, hasTransform, hex, hover, hsla, hslaToRgba, inertia, initPrefersReducedMotion, interpolate, invisibleValues, isAnimationControls, isCSSVariableName, isCSSVariableToken, isControllingVariants, isDeltaZero, isDragActive, isDragging, isElementKeyboardAccessible, isElementTextInput, isForcedMotionValue, isGenerator, isHTMLElement, isKeyframesTarget, isMotionValue, isNear, isNodeOrChild, isPrimaryPointer, isSVGElement, isSVGSVGElement, isSVGTag, isTransitionDefined, isVariantLabel, isVariantNode, isWaapiSupportedEasing, isWillChangeMotionValue, keyframes, makeAnimationInstant, mapEasingToNativeEasing, mapValue, maxGeneratorDuration, measurePageBox, measureViewportBox, microtask, mix, mixArray, mixColor, mixComplex, mixImmediate, mixLinearColor, mixNumber, mixObject, mixValues, mixVisibility, motionValue, nodeGroup, number, numberValueTypes, optimizedAppearDataAttribute, optimizedAppearDataId, originProps, parseAnimateLayoutArgs, parseCSSVariable, parseValueFromTransform, percent, pixelsToPercent, positionalKeys, prefersReducedMotion, press, progressPercentage, propEffect, propagateDirtyNodes, px, readSVGValue, readStyleValue, readTransformValue, recordStats, removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removeEffect, removePointDelta, renderHTML, renderSVG, resize, resolveElements, resolveMotionValue, resolveTransition, resolveVariant, resolveVariantFromProps, rgbUnit, rgba, rootProjectionNode, round, sampleDelta, scale, scaleCorrectors, scalePoint, scrapeMotionValuesFromProps$1 as scrapeHTMLMotionValuesFromProps, scrapeMotionValuesFromProps as scrapeSVGMotionValuesFromProps, setDragLock, setFeatureDefinitions, setStyle, setTarget, spring, springValue, stagger, startWaapiAnimation, statsBuffer, styleEffect, styleSubjectEffect, supportedWaapiEasing, supportsBrowserAnimation, supportsFlags, supportsLinearEasing, supportsPartialKeyframes, supportsScrollTimeline, supportsViewTimeline, supportsWaapi, svgEffect, svgSubjectEffect, sync, testValueType, time, transform, transformAxis, transformBox, transformBoxPoints, transformPropOrder, transformProps, transformValue, transformValueTypes, translateAxis, updateMotionValuesFromProps, variantPriorityOrder, variantProps, vh, visualElementStore, vw };
|