motion-start 0.1.19 → 0.1.21
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/animation/utils/is-animatable.d.ts +5 -0
- package/dist/animation/utils/is-animatable.d.ts.map +1 -1
- package/dist/animation/utils/is-animatable.js +1 -1
- package/dist/components/AnimatePresence/AnimatePresence.svelte +221 -188
- package/dist/components/AnimatePresence/AnimatePresence.svelte.d.ts.map +1 -1
- package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte +77 -63
- package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte.d.ts.map +1 -1
- package/dist/components/AnimatePresence/PresenceChild/types.d.ts +1 -0
- package/dist/components/AnimatePresence/PresenceChild/types.d.ts.map +1 -1
- package/dist/components/AnimatePresence/use-presence.d.ts.map +1 -1
- package/dist/components/AnimatePresence/use-presence.js +15 -12
- package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts +5 -0
- package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/utils/crossfader.js +1 -1
- package/dist/context/LayoutEpochContext.d.ts +9 -0
- package/dist/context/LayoutEpochContext.d.ts.map +1 -0
- package/dist/context/LayoutEpochContext.js +13 -0
- package/dist/context/PresenceContext.d.ts +1 -0
- package/dist/context/PresenceContext.d.ts.map +1 -1
- package/dist/motion/features/Exit.svelte +6 -10
- package/dist/motion/features/Exit.svelte.d.ts +19 -5
- package/dist/motion/features/Exit.svelte.d.ts.map +1 -1
- package/dist/motion/features/layout/Animate.svelte +2 -0
- package/dist/motion/features/layout/Animate.svelte.d.ts.map +1 -1
- package/dist/motion/features/layout/Measure.svelte +144 -100
- package/dist/motion/features/layout/Measure.svelte.d.ts.map +1 -1
- package/dist/motion/features/layout/MeasureContextProvider.svelte +14 -1
- package/dist/motion/features/layout/MeasureContextProvider.svelte.d.ts.map +1 -1
- package/dist/motion/features/layout/utils.d.ts +5 -0
- package/dist/motion/features/layout/utils.d.ts.map +1 -1
- package/dist/motion/features/layout/utils.js +1 -1
- package/dist/motion/utils/UseVisualElement.svelte +10 -6
- package/dist/motion/utils/UseVisualElement.svelte.d.ts.map +1 -1
- package/dist/render/dom/projection/default-scale-correctors.d.ts +5 -0
- package/dist/render/dom/projection/default-scale-correctors.d.ts.map +1 -1
- package/dist/render/dom/projection/default-scale-correctors.js +1 -1
- package/dist/render/dom/utils/unit-conversion.d.ts +5 -0
- package/dist/render/dom/utils/unit-conversion.d.ts.map +1 -1
- package/dist/render/dom/utils/unit-conversion.js +1 -1
- package/dist/render/dom/value-types/animatable-none.d.ts +5 -0
- package/dist/render/dom/value-types/animatable-none.d.ts.map +1 -1
- package/dist/render/dom/value-types/animatable-none.js +1 -1
- package/dist/render/dom/value-types/defaults.d.ts +5 -0
- package/dist/render/dom/value-types/defaults.d.ts.map +1 -1
- package/dist/render/dom/value-types/defaults.js +1 -1
- package/dist/render/dom/value-types/dimensions.d.ts +5 -0
- package/dist/render/dom/value-types/dimensions.d.ts.map +1 -1
- package/dist/render/dom/value-types/dimensions.js +1 -1
- package/dist/render/dom/value-types/find.d.ts +5 -0
- package/dist/render/dom/value-types/find.d.ts.map +1 -1
- package/dist/render/dom/value-types/find.js +1 -1
- package/dist/render/dom/value-types/number.d.ts +5 -0
- package/dist/render/dom/value-types/number.d.ts.map +1 -1
- package/dist/render/dom/value-types/number.js +1 -1
- package/dist/render/dom/value-types/type-int.d.ts +5 -0
- package/dist/render/dom/value-types/type-int.d.ts.map +1 -1
- package/dist/render/dom/value-types/type-int.js +1 -1
- package/dist/render/svg/utils/path.d.ts +5 -0
- package/dist/render/svg/utils/path.d.ts.map +1 -1
- package/dist/render/svg/utils/path.js +1 -1
- package/dist/render/svg/utils/transform-origin.d.ts +5 -0
- package/dist/render/svg/utils/transform-origin.d.ts.map +1 -1
- package/dist/render/svg/utils/transform-origin.js +1 -1
- package/dist/utils/geometry/delta-apply.d.ts +5 -0
- package/dist/utils/geometry/delta-apply.d.ts.map +1 -1
- package/dist/utils/geometry/delta-apply.js +1 -1
- package/dist/utils/geometry/delta-calc.d.ts +5 -0
- package/dist/utils/geometry/delta-calc.d.ts.map +1 -1
- package/dist/utils/geometry/delta-calc.js +1 -1
- package/dist/utils/transform.d.ts +5 -0
- package/dist/utils/transform.d.ts.map +1 -1
- package/dist/utils/transform.js +1 -1
- package/dist/value/index.d.ts +5 -0
- package/dist/value/index.d.ts.map +1 -1
- package/dist/value/index.js +1 -1
- package/dist/value/scroll/use-element-scroll.d.ts +1 -1
- package/dist/value/scroll/use-element-scroll.d.ts.map +1 -1
- package/dist/value/scroll/use-element-scroll.js +2 -2
- package/dist/value/scroll/use-viewport-scroll.d.ts +1 -1
- package/dist/value/scroll/use-viewport-scroll.d.ts.map +1 -1
- package/dist/value/scroll/use-viewport-scroll.js +2 -2
- package/dist/value/use-combine-values.d.ts +1 -1
- package/dist/value/use-combine-values.d.ts.map +1 -1
- package/dist/value/use-combine-values.js +1 -1
- package/dist/value/use-motion-template.d.ts +1 -1
- package/dist/value/use-motion-template.d.ts.map +1 -1
- package/dist/value/use-motion-template.js +2 -2
- package/dist/value/use-spring.d.ts +6 -1
- package/dist/value/use-spring.d.ts.map +1 -1
- package/dist/value/use-spring.js +4 -4
- package/dist/value/use-transform.d.ts +2 -2
- package/dist/value/use-transform.d.ts.map +1 -1
- package/dist/value/use-transform.js +2 -2
- package/dist/value/utils/is-motion-value.d.ts +1 -1
- package/dist/value/utils/is-motion-value.d.ts.map +1 -1
- package/dist/value/utils/resolve-motion-value.d.ts +2 -2
- package/dist/value/utils/resolve-motion-value.d.ts.map +1 -1
- package/dist/value/utils/resolve-motion-value.js +0 -5
- package/package.json +6 -12
|
@@ -11,7 +11,7 @@ var BoundingBoxDimension;
|
|
|
11
11
|
based on framer-motion@4.0.3,
|
|
12
12
|
Copyright (c) 2018 Framer B.V.
|
|
13
13
|
*/
|
|
14
|
-
import
|
|
14
|
+
import '../../../utils/fix-process-env.js';
|
|
15
15
|
import { number, px } from 'style-value-types';
|
|
16
16
|
import { isKeyframesTarget } from '../../../animation/utils/is-keyframes-target.js';
|
|
17
17
|
// import { invariant } from '../../../utils/errors.js';
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
based on framer-motion@4.0.3,
|
|
7
|
+
Copyright (c) 2018 Framer B.V.
|
|
8
|
+
*/
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
5
10
|
declare function getAnimatableNone(key: string, value: string): any;
|
|
6
11
|
export { getAnimatableNone };
|
|
7
12
|
//# sourceMappingURL=animatable-none.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animatable-none.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/animatable-none.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"animatable-none.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/animatable-none.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C,iBAAS,iBAAiB,CAAC,GAAG,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,OAOlD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
10
10
|
import { filter, complex } from 'style-value-types';
|
|
11
11
|
import { getDefaultValueType } from './defaults.js';
|
|
12
12
|
function getAnimatableNone(key, value) {
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ValueTypeMap } from './types';
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env.js';
|
|
6
11
|
/**
|
|
7
12
|
* A map of default value types for common values
|
|
8
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/defaults.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/defaults.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C;;GAEG;AACH,QAAA,IAAI,iBAAiB,EAef,YAAY,CAAC;AACnB;;GAEG;AACH,QAAA,IAAI,mBAAmB,GAAI,KAAK,MAAM,0CAA2B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env.js';
|
|
6
6
|
import { color, filter } from 'style-value-types';
|
|
7
7
|
import { numberValueTypes } from './number.js';
|
|
8
8
|
/**
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
based on framer-motion@4.0.3,
|
|
7
|
+
Copyright (c) 2018 Framer B.V.
|
|
8
|
+
*/
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
5
10
|
import type { CustomValueType } from '../../../types.js';
|
|
6
11
|
/**
|
|
7
12
|
* A list of value types commonly used for dimensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/dimensions.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/dimensions.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,QAAA,IAAI,mBAAmB,yCAA+C,CAAC;AACvE;;GAEG;AACH,QAAA,IAAI,sBAAsB,GAAa,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,IAAI,sDAEjF,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
10
10
|
import { number, px, percent, degrees, vw, vh } from 'style-value-types';
|
|
11
11
|
import { testValueType } from './test.js';
|
|
12
12
|
import { auto } from './type-auto.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/find.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/find.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAEF;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAS3C;;GAEG;AACH,QAAA,IAAI,aAAa,GAAI,GAAG,GAAG,KAEvB,OAAO,mBAAmB,EAAE,SAAS,GACrC;IACA,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,GAAG,OAAO,mBAAmB,EAAE,IAAI,GAAG,OAAO,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC;IACvG,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,mBAAmB,EAAE,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC;IACzG,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC,GACD,SAAS,CAAC;AAEd,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
10
10
|
import { color, complex } from 'style-value-types';
|
|
11
11
|
import { dimensionValueTypes } from './dimensions.js';
|
|
12
12
|
import { testValueType } from './test.js';
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ValueTypeMap } from "./types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env.js';
|
|
6
11
|
declare var numberValueTypes: ValueTypeMap;
|
|
7
12
|
export { numberValueTypes };
|
|
8
13
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/number.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/number.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C,QAAA,IAAI,gBAAgB,EAiEf,YAAY,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env.js';
|
|
6
6
|
import { px, degrees, scale, alpha, progressPercentage } from 'style-value-types';
|
|
7
7
|
import { int } from './type-int.js';
|
|
8
8
|
var numberValueTypes = {
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
based on framer-motion@4.0.3,
|
|
7
|
+
Copyright (c) 2018 Framer B.V.
|
|
8
|
+
*/
|
|
9
|
+
import '../../../utils/fix-process-env';
|
|
5
10
|
declare var int: {
|
|
6
11
|
transform: (x: number) => number;
|
|
7
12
|
test: (v: any) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-int.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/type-int.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"type-int.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/type-int.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAEF;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAGxC,QAAA,IAAI,GAAG,EAA0E;IAChF,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,mBAAmB,EAAE,WAAW,CAAC,GAAG,SAAS,CAAC;IAChG,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env';
|
|
10
10
|
import { number } from 'style-value-types';
|
|
11
11
|
var int = Object.assign(Object.assign({}, number), { transform: Math.round });
|
|
12
12
|
export { int };
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ResolvedValues } from "../../types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env';
|
|
6
11
|
/**
|
|
7
12
|
* Build SVG path properties. Uses the path's measured length to convert
|
|
8
13
|
* our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/path.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/path.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAexC;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,QAazI;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env';
|
|
6
6
|
import { px } from 'style-value-types';
|
|
7
7
|
// Convert a progress 0-1 to a pixels value based on the provided length
|
|
8
8
|
var progressToPixels = function (progress, length) {
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { SVGDimensions } from "../types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env';
|
|
6
11
|
/**
|
|
7
12
|
* The SVG transform origin defaults are different to CSS and is less intuitive,
|
|
8
13
|
* so we use the measured dimensions of the SVG to reconcile these.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-origin.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/transform-origin.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"transform-origin.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/transform-origin.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAQxC;;;GAGG;AACH,iBAAS,sBAAsB,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,UAI5G;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env';
|
|
6
6
|
import { px } from 'style-value-types';
|
|
7
7
|
function calcOrigin(origin, offset, size) {
|
|
8
8
|
return typeof origin === "string"
|
|
@@ -4,6 +4,11 @@ Copyright (c) 2018 Framer B.V.
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Axis, AxisBox2D, BoxDelta, Point2D } from '../../types/geometry';
|
|
6
6
|
import type { ResolvedValues, VisualElement } from '../../render/types';
|
|
7
|
+
/**
|
|
8
|
+
based on framer-motion@4.1.15,
|
|
9
|
+
Copyright (c) 2018 Framer B.V.
|
|
10
|
+
*/
|
|
11
|
+
import '../fix-process-env.js';
|
|
7
12
|
/**
|
|
8
13
|
* Reset an axis to the provided origin box.
|
|
9
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-apply.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-apply.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"delta-apply.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-apply.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExE;;;EAGE;AACF,OAAO,uBAAuB,CAAC;AAI/B;;;;GAIG;AACH,iBAAS,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,QAG9C;AACD;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,QAGrD;AACD;;GAEG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,UAIpE;AACD;;GAEG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,UAK/G;AACD;;GAEG;AACH,iBAAS,cAAc,CACtB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,WAAW,EAAE,MAAM,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e,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,UAAU,GACV,CAAC"}
|
|
@@ -5,6 +5,11 @@ Copyright (c) 2018 Framer B.V.
|
|
|
5
5
|
import type { Axis, AxisDelta, BoxDelta, AxisBox2D } from "../../types/geometry";
|
|
6
6
|
import type { ResolvedValues } from "../../render/types";
|
|
7
7
|
import type { TargetProjection } from "../../render/utils/state";
|
|
8
|
+
/**
|
|
9
|
+
based on framer-motion@4.1.15,
|
|
10
|
+
Copyright (c) 2018 Framer B.V.
|
|
11
|
+
*/
|
|
12
|
+
import '../fix-process-env';
|
|
8
13
|
/**
|
|
9
14
|
* Returns true if the provided value is within maxDistance of the provided target
|
|
10
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-calc.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-calc.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"delta-calc.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-calc.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE;;;EAGE;AACF,OAAO,oBAAoB,CAAC;AAI5B;;GAEG;AACH,iBAAS,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,WAInE;AAID;;;GAGG;AACH,iBAAS,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,UAW7C;AACD;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,QAWrF;AACD;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,QAGpG;AAQD,iBAAS,gBAAgB,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,QAGnE;AACD,iBAAS,eAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,QAGxF;AAED,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.15,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../fix-process-env';
|
|
6
6
|
import { mix, distance, clamp, progress } from 'popmotion';
|
|
7
7
|
var clampProgress = function (v) { return clamp(0, 1, v); };
|
|
8
8
|
/**
|
|
@@ -26,6 +26,11 @@ export interface TransformOptions<T> {
|
|
|
26
26
|
*/
|
|
27
27
|
mixer?: (from: T, to: T) => (v: number) => any;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
based on framer-motion@4.0.3,
|
|
31
|
+
Copyright (c) 2018 Framer B.V.
|
|
32
|
+
*/
|
|
33
|
+
import './fix-process-env';
|
|
29
34
|
/**
|
|
30
35
|
* Transforms numbers into other values by mapping them from an input range to an output range.
|
|
31
36
|
* Returns the type of the input provided.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/utils/transform.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/utils/transform.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;CAC/C;AAED;;;EAGE;AACF,OAAO,mBAAmB,CAAC;AAO3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACpH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,iBAAS,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,CAAC,CAAC;AAYxH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/utils/transform.js
CHANGED
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import './fix-process-env';
|
|
10
10
|
import { interpolate } from 'popmotion';
|
|
11
11
|
var isCustomValueType = (v) => typeof v === 'object' && v.mix;
|
|
12
12
|
var getMixer = (v) => (isCustomValueType(v) ? v.mix : undefined);
|
package/dist/value/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/index.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,6BAA6B,CAAC;AAGrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE;;;EAGE;AACF,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACzC;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAA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F"}
|
package/dist/value/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../utils/fix-process-env.js';
|
|
6
6
|
import sync, { getFrameData } from 'framesync';
|
|
7
7
|
import { velocityPerSecond } from 'popmotion';
|
|
8
8
|
import { SubscriptionManager } from '../utils/subscription-manager.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import type { ScrollMotionValues } from './utils';
|
|
5
|
+
import type { ScrollMotionValues } from './utils.js';
|
|
6
6
|
export declare const useElementScroll: (ref: {
|
|
7
7
|
current: HTMLElement | null;
|
|
8
8
|
}) => ScrollMotionValues;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-element-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-element-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-element-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-element-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AA2BrD,eAAO,MAAM,gBAAgB,GAAI,KAAK;IAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,KA4BnD,kBACjB,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.16,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { createScrollMotionValues, createScrollUpdater } from './utils';
|
|
6
|
-
import { addDomEvent } from '../../events/use-dom-event';
|
|
5
|
+
import { createScrollMotionValues, createScrollUpdater } from './utils.js';
|
|
6
|
+
import { addDomEvent } from '../../events/use-dom-event.js';
|
|
7
7
|
const getElementScrollOffsets = (element) => () => {
|
|
8
8
|
return {
|
|
9
9
|
xOffset: element.scrollLeft,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-viewport-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-viewport-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-viewport-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-viewport-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAyCrD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,IAYE,kBAAkB,CACpD"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.16,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { createScrollMotionValues, createScrollUpdater, } from "./utils";
|
|
6
|
-
import { addDomEvent } from "../../events/use-dom-event";
|
|
5
|
+
import { createScrollMotionValues, createScrollUpdater, } from "./utils.js";
|
|
6
|
+
import { addDomEvent } from "../../events/use-dom-event.js";
|
|
7
7
|
import { tick } from "svelte";
|
|
8
8
|
let viewportScrollValues;
|
|
9
9
|
function getViewportScrollOffsets() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import type { MotionValue } from '.';
|
|
5
|
+
import type { MotionValue } from './index.js';
|
|
6
6
|
export declare const useCombineMotionValues: <R>(values: (MotionValue | (() => R))[], combineValues: () => R) => MotionValue<R> & {
|
|
7
7
|
reset: (values: MotionValue[], combineValues: () => R) => void;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-combine-values.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-combine-values.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-combine-values.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-combine-values.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAS9C,eAAO,MAAM,sBAAsB,GAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,eAAe,MAAM,CAAC;WAiBpE,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,KAAK,IAAI;CAqBvF,CAAC"}
|
|
@@ -3,7 +3,7 @@ based on framer-motion@4.0.3,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import sync from 'framesync';
|
|
6
|
-
import { motionValue } from '.';
|
|
6
|
+
import { motionValue } from './index.js';
|
|
7
7
|
export const useCombineMotionValues = (values, combineValues) => {
|
|
8
8
|
let subscriptions = [];
|
|
9
9
|
let vals = values;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-motion-template.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-motion-template.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-motion-template.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-motion-template.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,iBAAiB,GAAI,WAAW,oBAAoB,EAAE,GAAG,QAAQ,WAAW,EAAE,KAwBvE,WAAW,CAAC,MAAM,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;CACrH,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { MotionValue } from ".";
|
|
6
|
-
import { useCombineMotionValues } from "./use-combine-values";
|
|
5
|
+
import { MotionValue } from "./index.js";
|
|
6
|
+
import { useCombineMotionValues } from "./use-combine-values.js";
|
|
7
7
|
/**
|
|
8
8
|
* Combine multiple motion values into a new one using a string template literal.
|
|
9
9
|
*
|
|
@@ -3,7 +3,12 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { SpringOptions } from 'popmotion';
|
|
6
|
-
import type { MotionValue } from '.';
|
|
6
|
+
import type { MotionValue } from './index.js';
|
|
7
|
+
/**
|
|
8
|
+
based on framer-motion@4.1.16,
|
|
9
|
+
Copyright (c) 2018 Framer B.V.
|
|
10
|
+
*/
|
|
11
|
+
import '../utils/fix-process-env.js';
|
|
7
12
|
/**
|
|
8
13
|
* Creates a `MotionValue` that, when `set`, will use a spring animation to animate to its new state.
|
|
9
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-spring.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-spring.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-spring.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-spring.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;EAGE;AAEF,OAAO,6BAA6B,CAAC;AAQrC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,WAAW,GAAG,MAAM,EAAE,SAAQ,aAAkB,EAAE,kBAAgB;WAM3F,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI;CAgC/C,CAAC"}
|
package/dist/value/use-spring.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
based on framer-motion@4.1.16,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../utils/fix-process-env.js';
|
|
6
6
|
import { getContext } from 'svelte';
|
|
7
|
-
import { MotionConfigContext } from '../context/MotionConfigContext';
|
|
7
|
+
import { MotionConfigContext } from '../context/MotionConfigContext.js';
|
|
8
8
|
import { get } from 'svelte/store';
|
|
9
|
-
import { useMotionValue } from './use-motion-value';
|
|
10
|
-
import { isMotionValue } from './utils/is-motion-value';
|
|
9
|
+
import { useMotionValue } from './use-motion-value.js';
|
|
10
|
+
import { isMotionValue } from './utils/is-motion-value.js';
|
|
11
11
|
import { animate } from 'popmotion';
|
|
12
12
|
/**
|
|
13
13
|
* Creates a `MotionValue` that, when `set`, will use a spring animation to animate to its new state.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TransformOptions } from '../utils/transform';
|
|
1
|
+
import type { TransformOptions } from '../utils/transform.js';
|
|
2
2
|
/**
|
|
3
3
|
based on framer-motion@4.1.17,
|
|
4
4
|
Copyright (c) 2018 Framer B.V.
|
|
5
5
|
*/
|
|
6
|
-
import type { MotionValue } from '.';
|
|
6
|
+
import type { MotionValue } from './index.js';
|
|
7
7
|
export type InputRange = number[];
|
|
8
8
|
type SingleTransformer<I, O> = (input: I) => O;
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D;;;GAGG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAK9C,MAAM,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAClC,KAAK,iBAAiB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAU/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,CAAC,EAAE,EAChB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC3B,WAAW,CAAC,CAAC,CAAC,GAAG;IACnB,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CACrH,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EACrB,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GAClC,WAAW,CAAC,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAA;CAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transform } from '../utils/transform';
|
|
2
|
-
import { useCombineMotionValues } from './use-combine-values';
|
|
1
|
+
import { transform } from '../utils/transform.js';
|
|
2
|
+
import { useCombineMotionValues } from './use-combine-values.js';
|
|
3
3
|
/**
|
|
4
4
|
* Pass an array of `MotionValue`s and a function to combine them. In this example, `z` will be the `x` multiplied by `y`.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/is-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"is-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/is-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;EAGE;AACF,QAAA,IAAI,aAAa,GAAa,OAAO,GAAG,KAAG,KAAK,IAAI,WAEnD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { MotionValue } from
|
|
6
|
-
import type { CustomValueType } from
|
|
5
|
+
import type { MotionValue } from '../index.js';
|
|
6
|
+
import type { CustomValueType } from '../../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/resolve-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"resolve-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/resolve-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAStD;;;;;;GAMG;AACH,iBAAS,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAKpG;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|