@plastic-js/tsumiki 0.1.21 → 0.1.22

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.
Files changed (71) hide show
  1. package/dist/components/DatePickerMobile/wheel.js +28 -14
  2. package/dist/components/DatePickerMobile/wheel.js.map +1 -1
  3. package/dist/node_modules/framesync/dist/es/create-render-step.js +54 -0
  4. package/dist/node_modules/framesync/dist/es/create-render-step.js.map +1 -0
  5. package/dist/node_modules/framesync/dist/es/index.js +61 -0
  6. package/dist/node_modules/framesync/dist/es/index.js.map +1 -0
  7. package/dist/node_modules/framesync/dist/es/on-next-frame.js +8 -0
  8. package/dist/node_modules/framesync/dist/es/on-next-frame.js.map +1 -0
  9. package/dist/node_modules/hey-listen/dist/hey-listen.es.js +15 -0
  10. package/dist/node_modules/hey-listen/dist/hey-listen.es.js.map +1 -0
  11. package/dist/node_modules/popmotion/dist/es/animations/generators/decay.js +24 -0
  12. package/dist/node_modules/popmotion/dist/es/animations/generators/decay.js.map +1 -0
  13. package/dist/node_modules/popmotion/dist/es/animations/generators/keyframes.js +40 -0
  14. package/dist/node_modules/popmotion/dist/es/animations/generators/keyframes.js.map +1 -0
  15. package/dist/node_modules/popmotion/dist/es/animations/generators/spring.js +96 -0
  16. package/dist/node_modules/popmotion/dist/es/animations/generators/spring.js.map +1 -0
  17. package/dist/node_modules/popmotion/dist/es/animations/index.js +94 -0
  18. package/dist/node_modules/popmotion/dist/es/animations/index.js.map +1 -0
  19. package/dist/node_modules/popmotion/dist/es/animations/inertia.js +74 -0
  20. package/dist/node_modules/popmotion/dist/es/animations/inertia.js.map +1 -0
  21. package/dist/node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.js +21 -0
  22. package/dist/node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.js.map +1 -0
  23. package/dist/node_modules/popmotion/dist/es/animations/utils/elapsed.js +14 -0
  24. package/dist/node_modules/popmotion/dist/es/animations/utils/elapsed.js.map +1 -0
  25. package/dist/node_modules/popmotion/dist/es/animations/utils/find-spring.js +68 -0
  26. package/dist/node_modules/popmotion/dist/es/animations/utils/find-spring.js.map +1 -0
  27. package/dist/node_modules/popmotion/dist/es/easing/index.js +28 -0
  28. package/dist/node_modules/popmotion/dist/es/easing/index.js.map +1 -0
  29. package/dist/node_modules/popmotion/dist/es/easing/utils.js +13 -0
  30. package/dist/node_modules/popmotion/dist/es/easing/utils.js.map +1 -0
  31. package/dist/node_modules/popmotion/dist/es/utils/clamp.js +6 -0
  32. package/dist/node_modules/popmotion/dist/es/utils/clamp.js.map +1 -0
  33. package/dist/node_modules/popmotion/dist/es/utils/hsla-to-rgba.js +35 -0
  34. package/dist/node_modules/popmotion/dist/es/utils/hsla-to-rgba.js.map +1 -0
  35. package/dist/node_modules/popmotion/dist/es/utils/inc.js +6 -0
  36. package/dist/node_modules/popmotion/dist/es/utils/inc.js.map +1 -0
  37. package/dist/node_modules/popmotion/dist/es/utils/interpolate.js +69 -0
  38. package/dist/node_modules/popmotion/dist/es/utils/interpolate.js.map +1 -0
  39. package/dist/node_modules/popmotion/dist/es/utils/mix-color.js +45 -0
  40. package/dist/node_modules/popmotion/dist/es/utils/mix-color.js.map +1 -0
  41. package/dist/node_modules/popmotion/dist/es/utils/mix-complex.js +61 -0
  42. package/dist/node_modules/popmotion/dist/es/utils/mix-complex.js.map +1 -0
  43. package/dist/node_modules/popmotion/dist/es/utils/mix.js +6 -0
  44. package/dist/node_modules/popmotion/dist/es/utils/mix.js.map +1 -0
  45. package/dist/node_modules/popmotion/dist/es/utils/pipe.js +7 -0
  46. package/dist/node_modules/popmotion/dist/es/utils/pipe.js.map +1 -0
  47. package/dist/node_modules/popmotion/dist/es/utils/progress.js +9 -0
  48. package/dist/node_modules/popmotion/dist/es/utils/progress.js.map +1 -0
  49. package/dist/node_modules/popmotion/dist/es/utils/velocity-per-second.js +8 -0
  50. package/dist/node_modules/popmotion/dist/es/utils/velocity-per-second.js.map +1 -0
  51. package/dist/node_modules/popmotion/node_modules/tslib/tslib.es6.js +13 -0
  52. package/dist/node_modules/popmotion/node_modules/tslib/tslib.es6.js.map +1 -0
  53. package/dist/node_modules/style-value-types/dist/es/color/hex.js +39 -0
  54. package/dist/node_modules/style-value-types/dist/es/color/hex.js.map +1 -0
  55. package/dist/node_modules/style-value-types/dist/es/color/hsla.js +16 -0
  56. package/dist/node_modules/style-value-types/dist/es/color/hsla.js.map +1 -0
  57. package/dist/node_modules/style-value-types/dist/es/color/index.js +20 -0
  58. package/dist/node_modules/style-value-types/dist/es/color/index.js.map +1 -0
  59. package/dist/node_modules/style-value-types/dist/es/color/rgba.js +15 -0
  60. package/dist/node_modules/style-value-types/dist/es/color/rgba.js.map +1 -0
  61. package/dist/node_modules/style-value-types/dist/es/color/utils.js +19 -0
  62. package/dist/node_modules/style-value-types/dist/es/color/utils.js.map +1 -0
  63. package/dist/node_modules/style-value-types/dist/es/complex/index.js +58 -0
  64. package/dist/node_modules/style-value-types/dist/es/complex/index.js.map +1 -0
  65. package/dist/node_modules/style-value-types/dist/es/numbers/index.js +13 -0
  66. package/dist/node_modules/style-value-types/dist/es/numbers/index.js.map +1 -0
  67. package/dist/node_modules/style-value-types/dist/es/numbers/units.js +16 -0
  68. package/dist/node_modules/style-value-types/dist/es/numbers/units.js.map +1 -0
  69. package/dist/node_modules/style-value-types/dist/es/utils.js +13 -0
  70. package/dist/node_modules/style-value-types/dist/es/utils.js.map +1 -0
  71. package/package.json +4 -3
@@ -0,0 +1,74 @@
1
+ import { getFrameData } from "../../../../framesync/dist/es/index.js";
2
+ import { animate } from "./index.js";
3
+ import { velocityPerSecond } from "../utils/velocity-per-second.js";
4
+ //#region node_modules/popmotion/dist/es/animations/inertia.mjs
5
+ function inertia({ from = 0, velocity = 0, min, max, power = .8, timeConstant = 750, bounceStiffness = 500, bounceDamping = 10, restDelta = 1, modifyTarget, driver, onUpdate, onComplete, onStop }) {
6
+ let currentAnimation;
7
+ function isOutOfBounds(v) {
8
+ return min !== void 0 && v < min || max !== void 0 && v > max;
9
+ }
10
+ function boundaryNearest(v) {
11
+ if (min === void 0) return max;
12
+ if (max === void 0) return min;
13
+ return Math.abs(min - v) < Math.abs(max - v) ? min : max;
14
+ }
15
+ function startAnimation(options) {
16
+ currentAnimation === null || currentAnimation === void 0 || currentAnimation.stop();
17
+ currentAnimation = animate(Object.assign(Object.assign({}, options), {
18
+ driver,
19
+ onUpdate: (v) => {
20
+ var _a;
21
+ onUpdate === null || onUpdate === void 0 || onUpdate(v);
22
+ (_a = options.onUpdate) === null || _a === void 0 || _a.call(options, v);
23
+ },
24
+ onComplete,
25
+ onStop
26
+ }));
27
+ }
28
+ function startSpring(options) {
29
+ startAnimation(Object.assign({
30
+ type: "spring",
31
+ stiffness: bounceStiffness,
32
+ damping: bounceDamping,
33
+ restDelta
34
+ }, options));
35
+ }
36
+ if (isOutOfBounds(from)) startSpring({
37
+ from,
38
+ velocity,
39
+ to: boundaryNearest(from)
40
+ });
41
+ else {
42
+ let target = power * velocity + from;
43
+ if (typeof modifyTarget !== "undefined") target = modifyTarget(target);
44
+ const boundary = boundaryNearest(target);
45
+ const heading = boundary === min ? -1 : 1;
46
+ let prev;
47
+ let current;
48
+ const checkBoundary = (v) => {
49
+ prev = current;
50
+ current = v;
51
+ velocity = velocityPerSecond(v - prev, getFrameData().delta);
52
+ if (heading === 1 && v > boundary || heading === -1 && v < boundary) startSpring({
53
+ from: v,
54
+ to: boundary,
55
+ velocity
56
+ });
57
+ };
58
+ startAnimation({
59
+ type: "decay",
60
+ from,
61
+ velocity,
62
+ timeConstant,
63
+ power,
64
+ restDelta,
65
+ modifyTarget,
66
+ onUpdate: isOutOfBounds(target) ? checkBoundary : void 0
67
+ });
68
+ }
69
+ return { stop: () => currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop() };
70
+ }
71
+ //#endregion
72
+ export { inertia };
73
+
74
+ //# sourceMappingURL=inertia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inertia.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/animations/inertia.mjs"],"sourcesContent":["import { animate } from './index.mjs';\nimport { velocityPerSecond } from '../utils/velocity-per-second.mjs';\nimport { getFrameData } from 'framesync';\n\nfunction inertia({ from = 0, velocity = 0, min, max, power = 0.8, timeConstant = 750, bounceStiffness = 500, bounceDamping = 10, restDelta = 1, modifyTarget, driver, onUpdate, onComplete, onStop, }) {\n let currentAnimation;\n function isOutOfBounds(v) {\n return (min !== undefined && v < min) || (max !== undefined && v > max);\n }\n function boundaryNearest(v) {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n }\n function startAnimation(options) {\n currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();\n currentAnimation = animate(Object.assign(Object.assign({}, options), { driver, onUpdate: (v) => {\n var _a;\n onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(v);\n (_a = options.onUpdate) === null || _a === void 0 ? void 0 : _a.call(options, v);\n }, onComplete,\n onStop }));\n }\n function startSpring(options) {\n startAnimation(Object.assign({ type: \"spring\", stiffness: bounceStiffness, damping: bounceDamping, restDelta }, options));\n }\n if (isOutOfBounds(from)) {\n startSpring({ from, velocity, to: boundaryNearest(from) });\n }\n else {\n let target = power * velocity + from;\n if (typeof modifyTarget !== \"undefined\")\n target = modifyTarget(target);\n const boundary = boundaryNearest(target);\n const heading = boundary === min ? -1 : 1;\n let prev;\n let current;\n const checkBoundary = (v) => {\n prev = current;\n current = v;\n velocity = velocityPerSecond(v - prev, getFrameData().delta);\n if ((heading === 1 && v > boundary) ||\n (heading === -1 && v < boundary)) {\n startSpring({ from: v, to: boundary, velocity });\n }\n };\n startAnimation({\n type: \"decay\",\n from,\n velocity,\n timeConstant,\n power,\n restDelta,\n modifyTarget,\n onUpdate: isOutOfBounds(target) ? checkBoundary : undefined,\n });\n }\n return {\n stop: () => currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop(),\n };\n}\n\nexport { inertia };\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,QAAQ,EAAE,OAAO,GAAG,WAAW,GAAG,KAAK,KAAK,QAAQ,IAAK,eAAe,KAAK,kBAAkB,KAAK,gBAAgB,IAAI,YAAY,GAAG,cAAc,QAAQ,UAAU,YAAY,UAAW;CACnM,IAAI;CACJ,SAAS,cAAc,GAAG;EACtB,OAAQ,QAAQ,KAAA,KAAa,IAAI,OAAS,QAAQ,KAAA,KAAa,IAAI;CACvE;CACA,SAAS,gBAAgB,GAAG;EACxB,IAAI,QAAQ,KAAA,GACR,OAAO;EACX,IAAI,QAAQ,KAAA,GACR,OAAO;EACX,OAAO,KAAK,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,MAAM,CAAC,IAAI,MAAM;CACzD;CACA,SAAS,eAAe,SAAS;EAC7B,qBAAqB,QAAQ,qBAAqB,KAAK,KAAa,iBAAiB,KAAK;EAC1F,mBAAmB,QAAQ,OAAO,OAAO,OAAO,OAAO,CAAC,GAAG,OAAO,GAAG;GAAE;GAAQ,WAAW,MAAM;IACxF,IAAI;IACJ,aAAa,QAAQ,aAAa,KAAK,KAAa,SAAS,CAAC;IAC9D,CAAC,KAAK,QAAQ,cAAc,QAAQ,OAAO,KAAK,KAAa,GAAG,KAAK,SAAS,CAAC;GACnF;GAAG;GACH;EAAO,CAAC,CAAC;CACjB;CACA,SAAS,YAAY,SAAS;EAC1B,eAAe,OAAO,OAAO;GAAE,MAAM;GAAU,WAAW;GAAiB,SAAS;GAAe;EAAU,GAAG,OAAO,CAAC;CAC5H;CACA,IAAI,cAAc,IAAI,GAClB,YAAY;EAAE;EAAM;EAAU,IAAI,gBAAgB,IAAI;CAAE,CAAC;MAExD;EACD,IAAI,SAAS,QAAQ,WAAW;EAChC,IAAI,OAAO,iBAAiB,aACxB,SAAS,aAAa,MAAM;EAChC,MAAM,WAAW,gBAAgB,MAAM;EACvC,MAAM,UAAU,aAAa,MAAM,KAAK;EACxC,IAAI;EACJ,IAAI;EACJ,MAAM,iBAAiB,MAAM;GACzB,OAAO;GACP,UAAU;GACV,WAAW,kBAAkB,IAAI,MAAM,aAAa,EAAE,KAAK;GAC3D,IAAK,YAAY,KAAK,IAAI,YACrB,YAAY,MAAM,IAAI,UACvB,YAAY;IAAE,MAAM;IAAG,IAAI;IAAU;GAAS,CAAC;EAEvD;EACA,eAAe;GACX,MAAM;GACN;GACA;GACA;GACA;GACA;GACA;GACA,UAAU,cAAc,MAAM,IAAI,gBAAgB,KAAA;EACtD,CAAC;CACL;CACA,OAAO,EACH,YAAY,qBAAqB,QAAQ,qBAAqB,KAAK,IAAI,KAAK,IAAI,iBAAiB,KAAK,EAC1G;AACJ"}
@@ -0,0 +1,21 @@
1
+ import { spring } from "../generators/spring.js";
2
+ import { keyframes } from "../generators/keyframes.js";
3
+ import { decay } from "../generators/decay.js";
4
+ //#region node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.mjs
5
+ var types = {
6
+ keyframes,
7
+ spring,
8
+ decay
9
+ };
10
+ function detectAnimationFromOptions(config) {
11
+ if (Array.isArray(config.to)) return keyframes;
12
+ else if (types[config.type]) return types[config.type];
13
+ const keys = new Set(Object.keys(config));
14
+ if (keys.has("ease") || keys.has("duration") && !keys.has("dampingRatio")) return keyframes;
15
+ else if (keys.has("dampingRatio") || keys.has("stiffness") || keys.has("mass") || keys.has("damping") || keys.has("restSpeed") || keys.has("restDelta")) return spring;
16
+ return keyframes;
17
+ }
18
+ //#endregion
19
+ export { detectAnimationFromOptions };
20
+
21
+ //# sourceMappingURL=detect-animation-from-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect-animation-from-options.js","names":[],"sources":["../../../../../../../node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.mjs"],"sourcesContent":["import { spring } from '../generators/spring.mjs';\nimport { keyframes } from '../generators/keyframes.mjs';\nimport { decay } from '../generators/decay.mjs';\n\nconst types = { keyframes, spring, decay };\nfunction detectAnimationFromOptions(config) {\n if (Array.isArray(config.to)) {\n return keyframes;\n }\n else if (types[config.type]) {\n return types[config.type];\n }\n const keys = new Set(Object.keys(config));\n if (keys.has(\"ease\") ||\n (keys.has(\"duration\") && !keys.has(\"dampingRatio\"))) {\n return keyframes;\n }\n else if (keys.has(\"dampingRatio\") ||\n keys.has(\"stiffness\") ||\n keys.has(\"mass\") ||\n keys.has(\"damping\") ||\n keys.has(\"restSpeed\") ||\n keys.has(\"restDelta\")) {\n return spring;\n }\n return keyframes;\n}\n\nexport { detectAnimationFromOptions };\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAM,QAAQ;CAAE;CAAW;CAAQ;AAAM;AACzC,SAAS,2BAA2B,QAAQ;CACxC,IAAI,MAAM,QAAQ,OAAO,EAAE,GACvB,OAAO;MAEN,IAAI,MAAM,OAAO,OAClB,OAAO,MAAM,OAAO;CAExB,MAAM,OAAO,IAAI,IAAI,OAAO,KAAK,MAAM,CAAC;CACxC,IAAI,KAAK,IAAI,MAAM,KACd,KAAK,IAAI,UAAU,KAAK,CAAC,KAAK,IAAI,cAAc,GACjD,OAAO;MAEN,IAAI,KAAK,IAAI,cAAc,KAC5B,KAAK,IAAI,WAAW,KACpB,KAAK,IAAI,MAAM,KACf,KAAK,IAAI,SAAS,KAClB,KAAK,IAAI,WAAW,KACpB,KAAK,IAAI,WAAW,GACpB,OAAO;CAEX,OAAO;AACX"}
@@ -0,0 +1,14 @@
1
+ //#region node_modules/popmotion/dist/es/animations/utils/elapsed.mjs
2
+ function loopElapsed(elapsed, duration, delay = 0) {
3
+ return elapsed - duration - delay;
4
+ }
5
+ function reverseElapsed(elapsed, duration, delay = 0, isForwardPlayback = true) {
6
+ return isForwardPlayback ? loopElapsed(duration + -elapsed, duration, delay) : duration - (elapsed - duration) + delay;
7
+ }
8
+ function hasRepeatDelayElapsed(elapsed, duration, delay, isForwardPlayback) {
9
+ return isForwardPlayback ? elapsed >= duration + delay : elapsed <= -delay;
10
+ }
11
+ //#endregion
12
+ export { hasRepeatDelayElapsed, loopElapsed, reverseElapsed };
13
+
14
+ //# sourceMappingURL=elapsed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elapsed.js","names":[],"sources":["../../../../../../../node_modules/popmotion/dist/es/animations/utils/elapsed.mjs"],"sourcesContent":["function loopElapsed(elapsed, duration, delay = 0) {\n return elapsed - duration - delay;\n}\nfunction reverseElapsed(elapsed, duration, delay = 0, isForwardPlayback = true) {\n return isForwardPlayback\n ? loopElapsed(duration + -elapsed, duration, delay)\n : duration - (elapsed - duration) + delay;\n}\nfunction hasRepeatDelayElapsed(elapsed, duration, delay, isForwardPlayback) {\n return isForwardPlayback ? elapsed >= duration + delay : elapsed <= -delay;\n}\n\nexport { hasRepeatDelayElapsed, loopElapsed, reverseElapsed };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,YAAY,SAAS,UAAU,QAAQ,GAAG;CAC/C,OAAO,UAAU,WAAW;AAChC;AACA,SAAS,eAAe,SAAS,UAAU,QAAQ,GAAG,oBAAoB,MAAM;CAC5E,OAAO,oBACD,YAAY,WAAW,CAAC,SAAS,UAAU,KAAK,IAChD,YAAY,UAAU,YAAY;AAC5C;AACA,SAAS,sBAAsB,SAAS,UAAU,OAAO,mBAAmB;CACxE,OAAO,oBAAoB,WAAW,WAAW,QAAQ,WAAW,CAAC;AACzE"}
@@ -0,0 +1,68 @@
1
+ import { warning } from "../../../../../hey-listen/dist/hey-listen.es.js";
2
+ import { clamp } from "../../utils/clamp.js";
3
+ //#region node_modules/popmotion/dist/es/animations/utils/find-spring.mjs
4
+ var safeMin = .001;
5
+ var minDuration = .01;
6
+ var minDamping = .05;
7
+ function findSpring({ duration = 800, bounce = .25, velocity = 0, mass = 1 }) {
8
+ let envelope;
9
+ let derivative;
10
+ warning(duration <= 10 * 1e3, "Spring duration must be 10 seconds or less");
11
+ let dampingRatio = 1 - bounce;
12
+ dampingRatio = clamp(minDamping, 1, dampingRatio);
13
+ duration = clamp(minDuration, 10, duration / 1e3);
14
+ if (dampingRatio < 1) {
15
+ envelope = (undampedFreq) => {
16
+ const exponentialDecay = undampedFreq * dampingRatio;
17
+ const delta = exponentialDecay * duration;
18
+ const a = exponentialDecay - velocity;
19
+ const b = calcAngularFreq(undampedFreq, dampingRatio);
20
+ const c = Math.exp(-delta);
21
+ return safeMin - a / b * c;
22
+ };
23
+ derivative = (undampedFreq) => {
24
+ const delta = undampedFreq * dampingRatio * duration;
25
+ const d = delta * velocity + velocity;
26
+ const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;
27
+ const f = Math.exp(-delta);
28
+ const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);
29
+ return (-envelope(undampedFreq) + safeMin > 0 ? -1 : 1) * ((d - e) * f) / g;
30
+ };
31
+ } else {
32
+ envelope = (undampedFreq) => {
33
+ return -.001 + Math.exp(-undampedFreq * duration) * ((undampedFreq - velocity) * duration + 1);
34
+ };
35
+ derivative = (undampedFreq) => {
36
+ return Math.exp(-undampedFreq * duration) * ((velocity - undampedFreq) * (duration * duration));
37
+ };
38
+ }
39
+ const initialGuess = 5 / duration;
40
+ const undampedFreq = approximateRoot(envelope, derivative, initialGuess);
41
+ duration = duration * 1e3;
42
+ if (isNaN(undampedFreq)) return {
43
+ stiffness: 100,
44
+ damping: 10,
45
+ duration
46
+ };
47
+ else {
48
+ const stiffness = Math.pow(undampedFreq, 2) * mass;
49
+ return {
50
+ stiffness,
51
+ damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),
52
+ duration
53
+ };
54
+ }
55
+ }
56
+ var rootIterations = 12;
57
+ function approximateRoot(envelope, derivative, initialGuess) {
58
+ let result = initialGuess;
59
+ for (let i = 1; i < rootIterations; i++) result = result - envelope(result) / derivative(result);
60
+ return result;
61
+ }
62
+ function calcAngularFreq(undampedFreq, dampingRatio) {
63
+ return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
64
+ }
65
+ //#endregion
66
+ export { calcAngularFreq, findSpring };
67
+
68
+ //# sourceMappingURL=find-spring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-spring.js","names":[],"sources":["../../../../../../../node_modules/popmotion/dist/es/animations/utils/find-spring.mjs"],"sourcesContent":["import { warning } from 'hey-listen';\nimport { clamp } from '../../utils/clamp.mjs';\n\nconst safeMin = 0.001;\nconst minDuration = 0.01;\nconst maxDuration = 10.0;\nconst minDamping = 0.05;\nconst maxDamping = 1;\nfunction findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, }) {\n let envelope;\n let derivative;\n warning(duration <= maxDuration * 1000, \"Spring duration must be 10 seconds or less\");\n let dampingRatio = 1 - bounce;\n dampingRatio = clamp(minDamping, maxDamping, dampingRatio);\n duration = clamp(minDuration, maxDuration, duration / 1000);\n if (dampingRatio < 1) {\n envelope = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const a = exponentialDecay - velocity;\n const b = calcAngularFreq(undampedFreq, dampingRatio);\n const c = Math.exp(-delta);\n return safeMin - (a / b) * c;\n };\n derivative = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const d = delta * velocity + velocity;\n const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;\n const f = Math.exp(-delta);\n const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);\n const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;\n return (factor * ((d - e) * f)) / g;\n };\n }\n else {\n envelope = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (undampedFreq - velocity) * duration + 1;\n return -safeMin + a * b;\n };\n derivative = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (velocity - undampedFreq) * (duration * duration);\n return a * b;\n };\n }\n const initialGuess = 5 / duration;\n const undampedFreq = approximateRoot(envelope, derivative, initialGuess);\n duration = duration * 1000;\n if (isNaN(undampedFreq)) {\n return {\n stiffness: 100,\n damping: 10,\n duration,\n };\n }\n else {\n const stiffness = Math.pow(undampedFreq, 2) * mass;\n return {\n stiffness,\n damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),\n duration,\n };\n }\n}\nconst rootIterations = 12;\nfunction approximateRoot(envelope, derivative, initialGuess) {\n let result = initialGuess;\n for (let i = 1; i < rootIterations; i++) {\n result = result - envelope(result) / derivative(result);\n }\n return result;\n}\nfunction calcAngularFreq(undampedFreq, dampingRatio) {\n return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n}\n\nexport { calcAngularFreq, findSpring, maxDamping, maxDuration, minDamping, minDuration };\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAM,UAAU;AAChB,IAAM,cAAc;AAEpB,IAAM,aAAa;AAEnB,SAAS,WAAW,EAAE,WAAW,KAAK,SAAS,KAAM,WAAW,GAAG,OAAO,KAAM;CAC5E,IAAI;CACJ,IAAI;CACJ,QAAQ,YAAA,KAA0B,KAAM,4CAA4C;CACpF,IAAI,eAAe,IAAI;CACvB,eAAe,MAAM,YAAA,GAAwB,YAAY;CACzD,WAAW,MAAM,aAAA,IAA0B,WAAW,GAAI;CAC1D,IAAI,eAAe,GAAG;EAClB,YAAY,iBAAiB;GACzB,MAAM,mBAAmB,eAAe;GACxC,MAAM,QAAQ,mBAAmB;GACjC,MAAM,IAAI,mBAAmB;GAC7B,MAAM,IAAI,gBAAgB,cAAc,YAAY;GACpD,MAAM,IAAI,KAAK,IAAI,CAAC,KAAK;GACzB,OAAO,UAAW,IAAI,IAAK;EAC/B;EACA,cAAc,iBAAiB;GAE3B,MAAM,QADmB,eAAe,eACP;GACjC,MAAM,IAAI,QAAQ,WAAW;GAC7B,MAAM,IAAI,KAAK,IAAI,cAAc,CAAC,IAAI,KAAK,IAAI,cAAc,CAAC,IAAI;GAClE,MAAM,IAAI,KAAK,IAAI,CAAC,KAAK;GACzB,MAAM,IAAI,gBAAgB,KAAK,IAAI,cAAc,CAAC,GAAG,YAAY;GAEjE,QADe,CAAC,SAAS,YAAY,IAAI,UAAU,IAAI,KAAK,OACzC,IAAI,KAAK,KAAM;EACtC;CACJ,OACK;EACD,YAAY,iBAAiB;GAGzB,OAAO,QAFG,KAAK,IAAI,CAAC,eAAe,QAEjB,MADP,eAAe,YAAY,WAAW;EAErD;EACA,cAAc,iBAAiB;GAG3B,OAFU,KAAK,IAAI,CAAC,eAAe,QAE5B,MADI,WAAW,iBAAiB,WAAW;EAEtD;CACJ;CACA,MAAM,eAAe,IAAI;CACzB,MAAM,eAAe,gBAAgB,UAAU,YAAY,YAAY;CACvE,WAAW,WAAW;CACtB,IAAI,MAAM,YAAY,GAClB,OAAO;EACH,WAAW;EACX,SAAS;EACT;CACJ;MAEC;EACD,MAAM,YAAY,KAAK,IAAI,cAAc,CAAC,IAAI;EAC9C,OAAO;GACH;GACA,SAAS,eAAe,IAAI,KAAK,KAAK,OAAO,SAAS;GACtD;EACJ;CACJ;AACJ;AACA,IAAM,iBAAiB;AACvB,SAAS,gBAAgB,UAAU,YAAY,cAAc;CACzD,IAAI,SAAS;CACb,KAAK,IAAI,IAAI,GAAG,IAAI,gBAAgB,KAChC,SAAS,SAAS,SAAS,MAAM,IAAI,WAAW,MAAM;CAE1D,OAAO;AACX;AACA,SAAS,gBAAgB,cAAc,cAAc;CACjD,OAAO,eAAe,KAAK,KAAK,IAAI,eAAe,YAAY;AACnE"}
@@ -0,0 +1,28 @@
1
+ import { createAnticipate, createBackIn, createExpoIn, mirrorEasing, reverseEasing } from "./utils.js";
2
+ //#region node_modules/popmotion/dist/es/easing/index.mjs
3
+ var DEFAULT_OVERSHOOT_STRENGTH = 1.525;
4
+ var BOUNCE_FIRST_THRESHOLD = 4 / 11;
5
+ var BOUNCE_SECOND_THRESHOLD = 8 / 11;
6
+ var BOUNCE_THIRD_THRESHOLD = 9 / 10;
7
+ var easeIn = createExpoIn(2);
8
+ reverseEasing(easeIn);
9
+ var easeInOut = mirrorEasing(easeIn);
10
+ var circIn = (p) => 1 - Math.sin(Math.acos(p));
11
+ mirrorEasing(reverseEasing(circIn));
12
+ var backIn = createBackIn(DEFAULT_OVERSHOOT_STRENGTH);
13
+ reverseEasing(backIn);
14
+ mirrorEasing(backIn);
15
+ createAnticipate(DEFAULT_OVERSHOOT_STRENGTH);
16
+ var ca = 4356 / 361;
17
+ var cb = 35442 / 1805;
18
+ var cc = 16061 / 1805;
19
+ var bounceOut = (p) => {
20
+ if (p === 1 || p === 0) return p;
21
+ const p2 = p * p;
22
+ return p < BOUNCE_FIRST_THRESHOLD ? 7.5625 * p2 : p < BOUNCE_SECOND_THRESHOLD ? 9.075 * p2 - 9.9 * p + 3.4 : p < BOUNCE_THIRD_THRESHOLD ? ca * p2 - cb * p + cc : 10.8 * p * p - 20.52 * p + 10.72;
23
+ };
24
+ reverseEasing(bounceOut);
25
+ //#endregion
26
+ export { easeInOut };
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/easing/index.mjs"],"sourcesContent":["import { createExpoIn, reverseEasing, mirrorEasing, createBackIn, createAnticipate } from './utils.mjs';\n\nconst DEFAULT_OVERSHOOT_STRENGTH = 1.525;\nconst BOUNCE_FIRST_THRESHOLD = 4.0 / 11.0;\nconst BOUNCE_SECOND_THRESHOLD = 8.0 / 11.0;\nconst BOUNCE_THIRD_THRESHOLD = 9.0 / 10.0;\nconst linear = p => p;\nconst easeIn = createExpoIn(2);\nconst easeOut = reverseEasing(easeIn);\nconst easeInOut = mirrorEasing(easeIn);\nconst circIn = p => 1 - Math.sin(Math.acos(p));\nconst circOut = reverseEasing(circIn);\nconst circInOut = mirrorEasing(circOut);\nconst backIn = createBackIn(DEFAULT_OVERSHOOT_STRENGTH);\nconst backOut = reverseEasing(backIn);\nconst backInOut = mirrorEasing(backIn);\nconst anticipate = createAnticipate(DEFAULT_OVERSHOOT_STRENGTH);\nconst ca = 4356.0 / 361.0;\nconst cb = 35442.0 / 1805.0;\nconst cc = 16061.0 / 1805.0;\nconst bounceOut = (p) => {\n if (p === 1 || p === 0)\n return p;\n const p2 = p * p;\n return p < BOUNCE_FIRST_THRESHOLD\n ? 7.5625 * p2\n : p < BOUNCE_SECOND_THRESHOLD\n ? 9.075 * p2 - 9.9 * p + 3.4\n : p < BOUNCE_THIRD_THRESHOLD\n ? ca * p2 - cb * p + cc\n : 10.8 * p * p - 20.52 * p + 10.72;\n};\nconst bounceIn = reverseEasing(bounceOut);\nconst bounceInOut = (p) => p < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - p * 2.0))\n : 0.5 * bounceOut(p * 2.0 - 1.0) + 0.5;\n\nexport { anticipate, backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, easeIn, easeInOut, easeOut, linear };\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAM,6BAA6B;AACnC,IAAM,yBAAyB,IAAM;AACrC,IAAM,0BAA0B,IAAM;AACtC,IAAM,yBAAyB,IAAM;AAErC,IAAM,SAAS,aAAa,CAAC;AACb,cAAc,MAAM;AACpC,IAAM,YAAY,aAAa,MAAM;AACrC,IAAM,UAAS,MAAK,IAAI,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC;AAE3B,aADF,cAAc,MACC,CAAO;AACtC,IAAM,SAAS,aAAa,0BAA0B;AACtC,cAAc,MAAM;AAClB,aAAa,MAAM;AAClB,iBAAiB,0BAA0B;AAC9D,IAAM,KAAK,OAAS;AACpB,IAAM,KAAK,QAAU;AACrB,IAAM,KAAK,QAAU;AACrB,IAAM,aAAa,MAAM;CACrB,IAAI,MAAM,KAAK,MAAM,GACjB,OAAO;CACX,MAAM,KAAK,IAAI;CACf,OAAO,IAAI,yBACL,SAAS,KACT,IAAI,0BACA,QAAQ,KAAK,MAAM,IAAI,MACvB,IAAI,yBACA,KAAK,KAAK,KAAK,IAAI,KACnB,OAAO,IAAI,IAAI,QAAQ,IAAI;AAC7C;AACiB,cAAc,SAAS"}
@@ -0,0 +1,13 @@
1
+ //#region node_modules/popmotion/dist/es/easing/utils.mjs
2
+ var reverseEasing = (easing) => (p) => 1 - easing(1 - p);
3
+ var mirrorEasing = (easing) => (p) => p <= .5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
4
+ var createExpoIn = (power) => (p) => Math.pow(p, power);
5
+ var createBackIn = (power) => (p) => p * p * ((power + 1) * p - power);
6
+ var createAnticipate = (power) => {
7
+ const backEasing = createBackIn(power);
8
+ return (p) => (p *= 2) < 1 ? .5 * backEasing(p) : .5 * (2 - Math.pow(2, -10 * (p - 1)));
9
+ };
10
+ //#endregion
11
+ export { createAnticipate, createBackIn, createExpoIn, mirrorEasing, reverseEasing };
12
+
13
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/easing/utils.mjs"],"sourcesContent":["const reverseEasing = easing => p => 1 - easing(1 - p);\nconst mirrorEasing = easing => p => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;\nconst createExpoIn = (power) => p => Math.pow(p, power);\nconst createBackIn = (power) => p => p * p * ((power + 1) * p - power);\nconst createAnticipate = (power) => {\n const backEasing = createBackIn(power);\n return p => (p *= 2) < 1\n ? 0.5 * backEasing(p)\n : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));\n};\n\nexport { createAnticipate, createBackIn, createExpoIn, mirrorEasing, reverseEasing };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,iBAAgB,YAAU,MAAK,IAAI,OAAO,IAAI,CAAC;AACrD,IAAM,gBAAe,YAAU,MAAK,KAAK,KAAM,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,OAAO,KAAK,IAAI,EAAE,KAAK;AAC/F,IAAM,gBAAgB,WAAU,MAAK,KAAK,IAAI,GAAG,KAAK;AACtD,IAAM,gBAAgB,WAAU,MAAK,IAAI,MAAM,QAAQ,KAAK,IAAI;AAChE,IAAM,oBAAoB,UAAU;CAChC,MAAM,aAAa,aAAa,KAAK;CACrC,QAAO,OAAM,KAAK,KAAK,IACjB,KAAM,WAAW,CAAC,IAClB,MAAO,IAAI,KAAK,IAAI,GAAG,OAAO,IAAI,EAAE;AAC9C"}
@@ -0,0 +1,6 @@
1
+ //#region node_modules/popmotion/dist/es/utils/clamp.mjs
2
+ var clamp = (min, max, v) => Math.min(Math.max(v, min), max);
3
+ //#endregion
4
+ export { clamp };
5
+
6
+ //# sourceMappingURL=clamp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/clamp.mjs"],"sourcesContent":["const clamp = (min, max, v) => Math.min(Math.max(v, min), max);\n\nexport { clamp };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,SAAS,KAAK,KAAK,MAAM,KAAK,IAAI,KAAK,IAAI,GAAG,GAAG,GAAG,GAAG"}
@@ -0,0 +1,35 @@
1
+ //#region node_modules/popmotion/dist/es/utils/hsla-to-rgba.mjs
2
+ function hueToRgb(p, q, t) {
3
+ if (t < 0) t += 1;
4
+ if (t > 1) t -= 1;
5
+ if (t < 1 / 6) return p + (q - p) * 6 * t;
6
+ if (t < 1 / 2) return q;
7
+ if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
8
+ return p;
9
+ }
10
+ function hslaToRgba({ hue, saturation, lightness, alpha }) {
11
+ hue /= 360;
12
+ saturation /= 100;
13
+ lightness /= 100;
14
+ let red = 0;
15
+ let green = 0;
16
+ let blue = 0;
17
+ if (!saturation) red = green = blue = lightness;
18
+ else {
19
+ const q = lightness < .5 ? lightness * (1 + saturation) : lightness + saturation - lightness * saturation;
20
+ const p = 2 * lightness - q;
21
+ red = hueToRgb(p, q, hue + 1 / 3);
22
+ green = hueToRgb(p, q, hue);
23
+ blue = hueToRgb(p, q, hue - 1 / 3);
24
+ }
25
+ return {
26
+ red: Math.round(red * 255),
27
+ green: Math.round(green * 255),
28
+ blue: Math.round(blue * 255),
29
+ alpha
30
+ };
31
+ }
32
+ //#endregion
33
+ export { hslaToRgba };
34
+
35
+ //# sourceMappingURL=hsla-to-rgba.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hsla-to-rgba.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/hsla-to-rgba.mjs"],"sourcesContent":["function hueToRgb(p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha }) {\n hue /= 360;\n saturation /= 100;\n lightness /= 100;\n let red = 0;\n let green = 0;\n let blue = 0;\n if (!saturation) {\n red = green = blue = lightness;\n }\n else {\n const q = lightness < 0.5\n ? lightness * (1 + saturation)\n : lightness + saturation - lightness * saturation;\n const p = 2 * lightness - q;\n red = hueToRgb(p, q, hue + 1 / 3);\n green = hueToRgb(p, q, hue);\n blue = hueToRgb(p, q, hue - 1 / 3);\n }\n return {\n red: Math.round(red * 255),\n green: Math.round(green * 255),\n blue: Math.round(blue * 255),\n alpha,\n };\n}\n\nexport { hslaToRgba };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,SAAS,GAAG,GAAG,GAAG;CACvB,IAAI,IAAI,GACJ,KAAK;CACT,IAAI,IAAI,GACJ,KAAK;CACT,IAAI,IAAI,IAAI,GACR,OAAO,KAAK,IAAI,KAAK,IAAI;CAC7B,IAAI,IAAI,IAAI,GACR,OAAO;CACX,IAAI,IAAI,IAAI,GACR,OAAO,KAAK,IAAI,MAAM,IAAI,IAAI,KAAK;CACvC,OAAO;AACX;AACA,SAAS,WAAW,EAAE,KAAK,YAAY,WAAW,SAAS;CACvD,OAAO;CACP,cAAc;CACd,aAAa;CACb,IAAI,MAAM;CACV,IAAI,QAAQ;CACZ,IAAI,OAAO;CACX,IAAI,CAAC,YACD,MAAM,QAAQ,OAAO;MAEpB;EACD,MAAM,IAAI,YAAY,KAChB,aAAa,IAAI,cACjB,YAAY,aAAa,YAAY;EAC3C,MAAM,IAAI,IAAI,YAAY;EAC1B,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,CAAC;EAChC,QAAQ,SAAS,GAAG,GAAG,GAAG;EAC1B,OAAO,SAAS,GAAG,GAAG,MAAM,IAAI,CAAC;CACrC;CACA,OAAO;EACH,KAAK,KAAK,MAAM,MAAM,GAAG;EACzB,OAAO,KAAK,MAAM,QAAQ,GAAG;EAC7B,MAAM,KAAK,MAAM,OAAO,GAAG;EAC3B;CACJ;AACJ"}
@@ -0,0 +1,6 @@
1
+ //#region node_modules/popmotion/dist/es/utils/inc.mjs
2
+ var isNum = (v) => typeof v === "number";
3
+ //#endregion
4
+ export { isNum };
5
+
6
+ //# sourceMappingURL=inc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inc.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/inc.mjs"],"sourcesContent":["const zeroPoint = {\n x: 0,\n y: 0,\n z: 0\n};\nconst isNum = (v) => typeof v === 'number';\n\nexport { isNum, zeroPoint };\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAM,SAAS,MAAM,OAAO,MAAM"}
@@ -0,0 +1,69 @@
1
+ import { invariant } from "../../../../hey-listen/dist/hey-listen.es.js";
2
+ import { clamp } from "./clamp.js";
3
+ import { progress } from "./progress.js";
4
+ import { mix } from "./mix.js";
5
+ import { color } from "../../../../style-value-types/dist/es/color/index.js";
6
+ import { mixColor } from "./mix-color.js";
7
+ import { pipe } from "./pipe.js";
8
+ import { mixArray, mixComplex, mixObject } from "./mix-complex.js";
9
+ //#region node_modules/popmotion/dist/es/utils/interpolate.mjs
10
+ var mixNumber = (from, to) => (p) => mix(from, to, p);
11
+ function detectMixerFactory(v) {
12
+ if (typeof v === "number") return mixNumber;
13
+ else if (typeof v === "string") if (color.test(v)) return mixColor;
14
+ else return mixComplex;
15
+ else if (Array.isArray(v)) return mixArray;
16
+ else if (typeof v === "object") return mixObject;
17
+ }
18
+ function createMixers(output, ease, customMixer) {
19
+ const mixers = [];
20
+ const mixerFactory = customMixer || detectMixerFactory(output[0]);
21
+ const numMixers = output.length - 1;
22
+ for (let i = 0; i < numMixers; i++) {
23
+ let mixer = mixerFactory(output[i], output[i + 1]);
24
+ if (ease) mixer = pipe(Array.isArray(ease) ? ease[i] : ease, mixer);
25
+ mixers.push(mixer);
26
+ }
27
+ return mixers;
28
+ }
29
+ function fastInterpolate([from, to], [mixer]) {
30
+ return (v) => mixer(progress(from, to, v));
31
+ }
32
+ function slowInterpolate(input, mixers) {
33
+ const inputLength = input.length;
34
+ const lastInputIndex = inputLength - 1;
35
+ return (v) => {
36
+ let mixerIndex = 0;
37
+ let foundMixerIndex = false;
38
+ if (v <= input[0]) foundMixerIndex = true;
39
+ else if (v >= input[lastInputIndex]) {
40
+ mixerIndex = lastInputIndex - 1;
41
+ foundMixerIndex = true;
42
+ }
43
+ if (!foundMixerIndex) {
44
+ let i = 1;
45
+ for (; i < inputLength; i++) if (input[i] > v || i === lastInputIndex) break;
46
+ mixerIndex = i - 1;
47
+ }
48
+ const progressInRange = progress(input[mixerIndex], input[mixerIndex + 1], v);
49
+ return mixers[mixerIndex](progressInRange);
50
+ };
51
+ }
52
+ function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {
53
+ const inputLength = input.length;
54
+ invariant(inputLength === output.length, "Both input and output ranges must be the same length");
55
+ invariant(!ease || !Array.isArray(ease) || ease.length === inputLength - 1, "Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values.");
56
+ if (input[0] > input[inputLength - 1]) {
57
+ input = [].concat(input);
58
+ output = [].concat(output);
59
+ input.reverse();
60
+ output.reverse();
61
+ }
62
+ const mixers = createMixers(output, ease, mixer);
63
+ const interpolator = inputLength === 2 ? fastInterpolate(input, mixers) : slowInterpolate(input, mixers);
64
+ return isClamp ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v)) : interpolator;
65
+ }
66
+ //#endregion
67
+ export { interpolate };
68
+
69
+ //# sourceMappingURL=interpolate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpolate.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/interpolate.mjs"],"sourcesContent":["import { progress } from './progress.mjs';\nimport { mix } from './mix.mjs';\nimport { mixColor } from './mix-color.mjs';\nimport { mixComplex, mixArray, mixObject } from './mix-complex.mjs';\nimport { color } from 'style-value-types';\nimport { clamp } from './clamp.mjs';\nimport { pipe } from './pipe.mjs';\nimport { invariant } from 'hey-listen';\n\nconst mixNumber = (from, to) => (p) => mix(from, to, p);\nfunction detectMixerFactory(v) {\n if (typeof v === 'number') {\n return mixNumber;\n }\n else if (typeof v === 'string') {\n if (color.test(v)) {\n return mixColor;\n }\n else {\n return mixComplex;\n }\n }\n else if (Array.isArray(v)) {\n return mixArray;\n }\n else if (typeof v === 'object') {\n return mixObject;\n }\n}\nfunction createMixers(output, ease, customMixer) {\n const mixers = [];\n const mixerFactory = customMixer || detectMixerFactory(output[0]);\n const numMixers = output.length - 1;\n for (let i = 0; i < numMixers; i++) {\n let mixer = mixerFactory(output[i], output[i + 1]);\n if (ease) {\n const easingFunction = Array.isArray(ease) ? ease[i] : ease;\n mixer = pipe(easingFunction, mixer);\n }\n mixers.push(mixer);\n }\n return mixers;\n}\nfunction fastInterpolate([from, to], [mixer]) {\n return (v) => mixer(progress(from, to, v));\n}\nfunction slowInterpolate(input, mixers) {\n const inputLength = input.length;\n const lastInputIndex = inputLength - 1;\n return (v) => {\n let mixerIndex = 0;\n let foundMixerIndex = false;\n if (v <= input[0]) {\n foundMixerIndex = true;\n }\n else if (v >= input[lastInputIndex]) {\n mixerIndex = lastInputIndex - 1;\n foundMixerIndex = true;\n }\n if (!foundMixerIndex) {\n let i = 1;\n for (; i < inputLength; i++) {\n if (input[i] > v || i === lastInputIndex) {\n break;\n }\n }\n mixerIndex = i - 1;\n }\n const progressInRange = progress(input[mixerIndex], input[mixerIndex + 1], v);\n return mixers[mixerIndex](progressInRange);\n };\n}\nfunction interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {\n const inputLength = input.length;\n invariant(inputLength === output.length, 'Both input and output ranges must be the same length');\n invariant(!ease || !Array.isArray(ease) || ease.length === inputLength - 1, 'Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values.');\n if (input[0] > input[inputLength - 1]) {\n input = [].concat(input);\n output = [].concat(output);\n input.reverse();\n output.reverse();\n }\n const mixers = createMixers(output, ease, mixer);\n const interpolator = inputLength === 2\n ? fastInterpolate(input, mixers)\n : slowInterpolate(input, mixers);\n return isClamp\n ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))\n : interpolator;\n}\n\nexport { interpolate };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,IAAM,aAAa,MAAM,QAAQ,MAAM,IAAI,MAAM,IAAI,CAAC;AACtD,SAAS,mBAAmB,GAAG;CAC3B,IAAI,OAAO,MAAM,UACb,OAAO;MAEN,IAAI,OAAO,MAAM,UAClB,IAAI,MAAM,KAAK,CAAC,GACZ,OAAO;MAGP,OAAO;MAGV,IAAI,MAAM,QAAQ,CAAC,GACpB,OAAO;MAEN,IAAI,OAAO,MAAM,UAClB,OAAO;AAEf;AACA,SAAS,aAAa,QAAQ,MAAM,aAAa;CAC7C,MAAM,SAAS,CAAC;CAChB,MAAM,eAAe,eAAe,mBAAmB,OAAO,EAAE;CAChE,MAAM,YAAY,OAAO,SAAS;CAClC,KAAK,IAAI,IAAI,GAAG,IAAI,WAAW,KAAK;EAChC,IAAI,QAAQ,aAAa,OAAO,IAAI,OAAO,IAAI,EAAE;EACjD,IAAI,MAEA,QAAQ,KADe,MAAM,QAAQ,IAAI,IAAI,KAAK,KAAK,MAC1B,KAAK;EAEtC,OAAO,KAAK,KAAK;CACrB;CACA,OAAO;AACX;AACA,SAAS,gBAAgB,CAAC,MAAM,KAAK,CAAC,QAAQ;CAC1C,QAAQ,MAAM,MAAM,SAAS,MAAM,IAAI,CAAC,CAAC;AAC7C;AACA,SAAS,gBAAgB,OAAO,QAAQ;CACpC,MAAM,cAAc,MAAM;CAC1B,MAAM,iBAAiB,cAAc;CACrC,QAAQ,MAAM;EACV,IAAI,aAAa;EACjB,IAAI,kBAAkB;EACtB,IAAI,KAAK,MAAM,IACX,kBAAkB;OAEjB,IAAI,KAAK,MAAM,iBAAiB;GACjC,aAAa,iBAAiB;GAC9B,kBAAkB;EACtB;EACA,IAAI,CAAC,iBAAiB;GAClB,IAAI,IAAI;GACR,OAAO,IAAI,aAAa,KACpB,IAAI,MAAM,KAAK,KAAK,MAAM,gBACtB;GAGR,aAAa,IAAI;EACrB;EACA,MAAM,kBAAkB,SAAS,MAAM,aAAa,MAAM,aAAa,IAAI,CAAC;EAC5E,OAAO,OAAO,YAAY,eAAe;CAC7C;AACJ;AACA,SAAS,YAAY,OAAO,QAAQ,EAAE,OAAO,UAAU,MAAM,MAAM,UAAU,CAAC,GAAG;CAC7E,MAAM,cAAc,MAAM;CAC1B,UAAU,gBAAgB,OAAO,QAAQ,sDAAsD;CAC/F,UAAU,CAAC,QAAQ,CAAC,MAAM,QAAQ,IAAI,KAAK,KAAK,WAAW,cAAc,GAAG,kIAAkI;CAC9M,IAAI,MAAM,KAAK,MAAM,cAAc,IAAI;EACnC,QAAQ,CAAC,EAAE,OAAO,KAAK;EACvB,SAAS,CAAC,EAAE,OAAO,MAAM;EACzB,MAAM,QAAQ;EACd,OAAO,QAAQ;CACnB;CACA,MAAM,SAAS,aAAa,QAAQ,MAAM,KAAK;CAC/C,MAAM,eAAe,gBAAgB,IAC/B,gBAAgB,OAAO,MAAM,IAC7B,gBAAgB,OAAO,MAAM;CACnC,OAAO,WACA,MAAM,aAAa,MAAM,MAAM,IAAI,MAAM,cAAc,IAAI,CAAC,CAAC,IAC9D;AACV"}
@@ -0,0 +1,45 @@
1
+ import { invariant } from "../../../../hey-listen/dist/hey-listen.es.js";
2
+ import { mix } from "./mix.js";
3
+ import { hsla } from "../../../../style-value-types/dist/es/color/hsla.js";
4
+ import { rgba } from "../../../../style-value-types/dist/es/color/rgba.js";
5
+ import { hex } from "../../../../style-value-types/dist/es/color/hex.js";
6
+ import { hslaToRgba } from "./hsla-to-rgba.js";
7
+ //#region node_modules/popmotion/dist/es/utils/mix-color.mjs
8
+ var mixLinearColor = (from, to, v) => {
9
+ const fromExpo = from * from;
10
+ const toExpo = to * to;
11
+ return Math.sqrt(Math.max(0, v * (toExpo - fromExpo) + fromExpo));
12
+ };
13
+ var colorTypes = [
14
+ hex,
15
+ rgba,
16
+ hsla
17
+ ];
18
+ var getColorType = (v) => colorTypes.find((type) => type.test(v));
19
+ var notAnimatable = (color) => `'${color}' is not an animatable color. Use the equivalent color code instead.`;
20
+ var mixColor = (from, to) => {
21
+ let fromColorType = getColorType(from);
22
+ let toColorType = getColorType(to);
23
+ invariant(!!fromColorType, notAnimatable(from));
24
+ invariant(!!toColorType, notAnimatable(to));
25
+ let fromColor = fromColorType.parse(from);
26
+ let toColor = toColorType.parse(to);
27
+ if (fromColorType === hsla) {
28
+ fromColor = hslaToRgba(fromColor);
29
+ fromColorType = rgba;
30
+ }
31
+ if (toColorType === hsla) {
32
+ toColor = hslaToRgba(toColor);
33
+ toColorType = rgba;
34
+ }
35
+ const blended = Object.assign({}, fromColor);
36
+ return (v) => {
37
+ for (const key in blended) if (key !== "alpha") blended[key] = mixLinearColor(fromColor[key], toColor[key], v);
38
+ blended.alpha = mix(fromColor.alpha, toColor.alpha, v);
39
+ return fromColorType.transform(blended);
40
+ };
41
+ };
42
+ //#endregion
43
+ export { mixColor };
44
+
45
+ //# sourceMappingURL=mix-color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mix-color.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/mix-color.mjs"],"sourcesContent":["import { mix } from './mix.mjs';\nimport { hsla, rgba, hex } from 'style-value-types';\nimport { invariant } from 'hey-listen';\nimport { hslaToRgba } from './hsla-to-rgba.mjs';\n\nconst mixLinearColor = (from, to, v) => {\n const fromExpo = from * from;\n const toExpo = to * to;\n return Math.sqrt(Math.max(0, v * (toExpo - fromExpo) + fromExpo));\n};\nconst colorTypes = [hex, rgba, hsla];\nconst getColorType = (v) => colorTypes.find((type) => type.test(v));\nconst notAnimatable = (color) => `'${color}' is not an animatable color. Use the equivalent color code instead.`;\nconst mixColor = (from, to) => {\n let fromColorType = getColorType(from);\n let toColorType = getColorType(to);\n invariant(!!fromColorType, notAnimatable(from));\n invariant(!!toColorType, notAnimatable(to));\n let fromColor = fromColorType.parse(from);\n let toColor = toColorType.parse(to);\n if (fromColorType === hsla) {\n fromColor = hslaToRgba(fromColor);\n fromColorType = rgba;\n }\n if (toColorType === hsla) {\n toColor = hslaToRgba(toColor);\n toColorType = rgba;\n }\n const blended = Object.assign({}, fromColor);\n return (v) => {\n for (const key in blended) {\n if (key !== \"alpha\") {\n blended[key] = mixLinearColor(fromColor[key], toColor[key], v);\n }\n }\n blended.alpha = mix(fromColor.alpha, toColor.alpha, v);\n return fromColorType.transform(blended);\n };\n};\n\nexport { mixColor, mixLinearColor };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAKA,IAAM,kBAAkB,MAAM,IAAI,MAAM;CACpC,MAAM,WAAW,OAAO;CACxB,MAAM,SAAS,KAAK;CACpB,OAAO,KAAK,KAAK,KAAK,IAAI,GAAG,KAAK,SAAS,YAAY,QAAQ,CAAC;AACpE;AACA,IAAM,aAAa;CAAC;CAAK;CAAM;AAAI;AACnC,IAAM,gBAAgB,MAAM,WAAW,MAAM,SAAS,KAAK,KAAK,CAAC,CAAC;AAClE,IAAM,iBAAiB,UAAU,IAAI,MAAM;AAC3C,IAAM,YAAY,MAAM,OAAO;CAC3B,IAAI,gBAAgB,aAAa,IAAI;CACrC,IAAI,cAAc,aAAa,EAAE;CACjC,UAAU,CAAC,CAAC,eAAe,cAAc,IAAI,CAAC;CAC9C,UAAU,CAAC,CAAC,aAAa,cAAc,EAAE,CAAC;CAC1C,IAAI,YAAY,cAAc,MAAM,IAAI;CACxC,IAAI,UAAU,YAAY,MAAM,EAAE;CAClC,IAAI,kBAAkB,MAAM;EACxB,YAAY,WAAW,SAAS;EAChC,gBAAgB;CACpB;CACA,IAAI,gBAAgB,MAAM;EACtB,UAAU,WAAW,OAAO;EAC5B,cAAc;CAClB;CACA,MAAM,UAAU,OAAO,OAAO,CAAC,GAAG,SAAS;CAC3C,QAAQ,MAAM;EACV,KAAK,MAAM,OAAO,SACd,IAAI,QAAQ,SACR,QAAQ,OAAO,eAAe,UAAU,MAAM,QAAQ,MAAM,CAAC;EAGrE,QAAQ,QAAQ,IAAI,UAAU,OAAO,QAAQ,OAAO,CAAC;EACrD,OAAO,cAAc,UAAU,OAAO;CAC1C;AACJ"}
@@ -0,0 +1,61 @@
1
+ import { warning } from "../../../../hey-listen/dist/hey-listen.es.js";
2
+ import { mix } from "./mix.js";
3
+ import { color } from "../../../../style-value-types/dist/es/color/index.js";
4
+ import { complex } from "../../../../style-value-types/dist/es/complex/index.js";
5
+ import { mixColor } from "./mix-color.js";
6
+ import { isNum } from "./inc.js";
7
+ import { pipe } from "./pipe.js";
8
+ //#region node_modules/popmotion/dist/es/utils/mix-complex.mjs
9
+ function getMixer(origin, target) {
10
+ if (isNum(origin)) return (v) => mix(origin, target, v);
11
+ else if (color.test(origin)) return mixColor(origin, target);
12
+ else return mixComplex(origin, target);
13
+ }
14
+ var mixArray = (from, to) => {
15
+ const output = [...from];
16
+ const numValues = output.length;
17
+ const blendValue = from.map((fromThis, i) => getMixer(fromThis, to[i]));
18
+ return (v) => {
19
+ for (let i = 0; i < numValues; i++) output[i] = blendValue[i](v);
20
+ return output;
21
+ };
22
+ };
23
+ var mixObject = (origin, target) => {
24
+ const output = Object.assign(Object.assign({}, origin), target);
25
+ const blendValue = {};
26
+ for (const key in output) if (origin[key] !== void 0 && target[key] !== void 0) blendValue[key] = getMixer(origin[key], target[key]);
27
+ return (v) => {
28
+ for (const key in blendValue) output[key] = blendValue[key](v);
29
+ return output;
30
+ };
31
+ };
32
+ function analyse(value) {
33
+ const parsed = complex.parse(value);
34
+ const numValues = parsed.length;
35
+ let numNumbers = 0;
36
+ let numRGB = 0;
37
+ let numHSL = 0;
38
+ for (let i = 0; i < numValues; i++) if (numNumbers || typeof parsed[i] === "number") numNumbers++;
39
+ else if (parsed[i].hue !== void 0) numHSL++;
40
+ else numRGB++;
41
+ return {
42
+ parsed,
43
+ numNumbers,
44
+ numRGB,
45
+ numHSL
46
+ };
47
+ }
48
+ var mixComplex = (origin, target) => {
49
+ const template = complex.createTransformer(target);
50
+ const originStats = analyse(origin);
51
+ const targetStats = analyse(target);
52
+ if (originStats.numHSL === targetStats.numHSL && originStats.numRGB === targetStats.numRGB && originStats.numNumbers >= targetStats.numNumbers) return pipe(mixArray(originStats.parsed, targetStats.parsed), template);
53
+ else {
54
+ warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);
55
+ return (p) => `${p > 0 ? target : origin}`;
56
+ }
57
+ };
58
+ //#endregion
59
+ export { mixArray, mixComplex, mixObject };
60
+
61
+ //# sourceMappingURL=mix-complex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mix-complex.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/mix-complex.mjs"],"sourcesContent":["import { complex, color } from 'style-value-types';\nimport { mix } from './mix.mjs';\nimport { mixColor } from './mix-color.mjs';\nimport { isNum } from './inc.mjs';\nimport { pipe } from './pipe.mjs';\nimport { warning } from 'hey-listen';\n\nfunction getMixer(origin, target) {\n if (isNum(origin)) {\n return (v) => mix(origin, target, v);\n }\n else if (color.test(origin)) {\n return mixColor(origin, target);\n }\n else {\n return mixComplex(origin, target);\n }\n}\nconst mixArray = (from, to) => {\n const output = [...from];\n const numValues = output.length;\n const blendValue = from.map((fromThis, i) => getMixer(fromThis, to[i]));\n return (v) => {\n for (let i = 0; i < numValues; i++) {\n output[i] = blendValue[i](v);\n }\n return output;\n };\n};\nconst mixObject = (origin, target) => {\n const output = Object.assign(Object.assign({}, origin), target);\n const blendValue = {};\n for (const key in output) {\n if (origin[key] !== undefined && target[key] !== undefined) {\n blendValue[key] = getMixer(origin[key], target[key]);\n }\n }\n return (v) => {\n for (const key in blendValue) {\n output[key] = blendValue[key](v);\n }\n return output;\n };\n};\nfunction analyse(value) {\n const parsed = complex.parse(value);\n const numValues = parsed.length;\n let numNumbers = 0;\n let numRGB = 0;\n let numHSL = 0;\n for (let i = 0; i < numValues; i++) {\n if (numNumbers || typeof parsed[i] === \"number\") {\n numNumbers++;\n }\n else {\n if (parsed[i].hue !== undefined) {\n numHSL++;\n }\n else {\n numRGB++;\n }\n }\n }\n return { parsed, numNumbers, numRGB, numHSL };\n}\nconst mixComplex = (origin, target) => {\n const template = complex.createTransformer(target);\n const originStats = analyse(origin);\n const targetStats = analyse(target);\n const canInterpolate = originStats.numHSL === targetStats.numHSL &&\n originStats.numRGB === targetStats.numRGB &&\n originStats.numNumbers >= targetStats.numNumbers;\n if (canInterpolate) {\n return pipe(mixArray(originStats.parsed, targetStats.parsed), template);\n }\n else {\n warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);\n return (p) => `${p > 0 ? target : origin}`;\n }\n};\n\nexport { mixArray, mixComplex, mixObject };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAOA,SAAS,SAAS,QAAQ,QAAQ;CAC9B,IAAI,MAAM,MAAM,GACZ,QAAQ,MAAM,IAAI,QAAQ,QAAQ,CAAC;MAElC,IAAI,MAAM,KAAK,MAAM,GACtB,OAAO,SAAS,QAAQ,MAAM;MAG9B,OAAO,WAAW,QAAQ,MAAM;AAExC;AACA,IAAM,YAAY,MAAM,OAAO;CAC3B,MAAM,SAAS,CAAC,GAAG,IAAI;CACvB,MAAM,YAAY,OAAO;CACzB,MAAM,aAAa,KAAK,KAAK,UAAU,MAAM,SAAS,UAAU,GAAG,EAAE,CAAC;CACtE,QAAQ,MAAM;EACV,KAAK,IAAI,IAAI,GAAG,IAAI,WAAW,KAC3B,OAAO,KAAK,WAAW,GAAG,CAAC;EAE/B,OAAO;CACX;AACJ;AACA,IAAM,aAAa,QAAQ,WAAW;CAClC,MAAM,SAAS,OAAO,OAAO,OAAO,OAAO,CAAC,GAAG,MAAM,GAAG,MAAM;CAC9D,MAAM,aAAa,CAAC;CACpB,KAAK,MAAM,OAAO,QACd,IAAI,OAAO,SAAS,KAAA,KAAa,OAAO,SAAS,KAAA,GAC7C,WAAW,OAAO,SAAS,OAAO,MAAM,OAAO,IAAI;CAG3D,QAAQ,MAAM;EACV,KAAK,MAAM,OAAO,YACd,OAAO,OAAO,WAAW,KAAK,CAAC;EAEnC,OAAO;CACX;AACJ;AACA,SAAS,QAAQ,OAAO;CACpB,MAAM,SAAS,QAAQ,MAAM,KAAK;CAClC,MAAM,YAAY,OAAO;CACzB,IAAI,aAAa;CACjB,IAAI,SAAS;CACb,IAAI,SAAS;CACb,KAAK,IAAI,IAAI,GAAG,IAAI,WAAW,KAC3B,IAAI,cAAc,OAAO,OAAO,OAAO,UACnC;MAGA,IAAI,OAAO,GAAG,QAAQ,KAAA,GAClB;MAGA;CAIZ,OAAO;EAAE;EAAQ;EAAY;EAAQ;CAAO;AAChD;AACA,IAAM,cAAc,QAAQ,WAAW;CACnC,MAAM,WAAW,QAAQ,kBAAkB,MAAM;CACjD,MAAM,cAAc,QAAQ,MAAM;CAClC,MAAM,cAAc,QAAQ,MAAM;CAIlC,IAHuB,YAAY,WAAW,YAAY,UACtD,YAAY,WAAW,YAAY,UACnC,YAAY,cAAc,YAAY,YAEtC,OAAO,KAAK,SAAS,YAAY,QAAQ,YAAY,MAAM,GAAG,QAAQ;MAErE;EACD,QAAQ,MAAM,mBAAmB,OAAO,SAAS,OAAO,yKAAyK;EACjO,QAAQ,MAAM,GAAG,IAAI,IAAI,SAAS;CACtC;AACJ"}
@@ -0,0 +1,6 @@
1
+ //#region node_modules/popmotion/dist/es/utils/mix.mjs
2
+ var mix = (from, to, progress) => -progress * from + progress * to + from;
3
+ //#endregion
4
+ export { mix };
5
+
6
+ //# sourceMappingURL=mix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mix.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/mix.mjs"],"sourcesContent":["const mix = (from, to, progress) => -progress * from + progress * to + from;\n\nexport { mix };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,OAAO,MAAM,IAAI,aAAa,CAAC,WAAW,OAAO,WAAW,KAAK"}
@@ -0,0 +1,7 @@
1
+ //#region node_modules/popmotion/dist/es/utils/pipe.mjs
2
+ var combineFunctions = (a, b) => (v) => b(a(v));
3
+ var pipe = (...transformers) => transformers.reduce(combineFunctions);
4
+ //#endregion
5
+ export { pipe };
6
+
7
+ //# sourceMappingURL=pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipe.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/pipe.mjs"],"sourcesContent":["const combineFunctions = (a, b) => (v) => b(a(v));\nconst pipe = (...transformers) => transformers.reduce(combineFunctions);\n\nexport { pipe };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,oBAAoB,GAAG,OAAO,MAAM,EAAE,EAAE,CAAC,CAAC;AAChD,IAAM,QAAQ,GAAG,iBAAiB,aAAa,OAAO,gBAAgB"}
@@ -0,0 +1,9 @@
1
+ //#region node_modules/popmotion/dist/es/utils/progress.mjs
2
+ var progress = (from, to, value) => {
3
+ const toFromDifference = to - from;
4
+ return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
5
+ };
6
+ //#endregion
7
+ export { progress };
8
+
9
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/progress.mjs"],"sourcesContent":["const progress = (from, to, value) => {\n const toFromDifference = to - from;\n return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;\n};\n\nexport { progress };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,YAAY,MAAM,IAAI,UAAU;CAClC,MAAM,mBAAmB,KAAK;CAC9B,OAAO,qBAAqB,IAAI,KAAK,QAAQ,QAAQ;AACzD"}
@@ -0,0 +1,8 @@
1
+ //#region node_modules/popmotion/dist/es/utils/velocity-per-second.mjs
2
+ function velocityPerSecond(velocity, frameDuration) {
3
+ return frameDuration ? velocity * (1e3 / frameDuration) : 0;
4
+ }
5
+ //#endregion
6
+ export { velocityPerSecond };
7
+
8
+ //# sourceMappingURL=velocity-per-second.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"velocity-per-second.js","names":[],"sources":["../../../../../../node_modules/popmotion/dist/es/utils/velocity-per-second.mjs"],"sourcesContent":["function velocityPerSecond(velocity, frameDuration) {\n return frameDuration ? velocity * (1000 / frameDuration) : 0;\n}\n\nexport { velocityPerSecond };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,kBAAkB,UAAU,eAAe;CAChD,OAAO,gBAAgB,YAAY,MAAO,iBAAiB;AAC/D"}
@@ -0,0 +1,13 @@
1
+ //#region node_modules/popmotion/node_modules/tslib/tslib.es6.js
2
+ function __rest(s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") {
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
7
+ }
8
+ return t;
9
+ }
10
+ //#endregion
11
+ export { __rest };
12
+
13
+ //# sourceMappingURL=tslib.es6.js.map