@studiometa/js-toolkit 2.0.0-beta.9 → 2.0.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/Base/index.cjs +284 -0
- package/Base/index.d.ts +36 -28
- package/Base/index.js +113 -197
- package/Base/managers/ChildrenManager.cjs +146 -0
- package/Base/managers/ChildrenManager.d.ts +11 -3
- package/Base/managers/ChildrenManager.js +60 -59
- package/Base/managers/EventsManager.cjs +183 -0
- package/Base/managers/EventsManager.d.ts +13 -20
- package/Base/managers/EventsManager.js +72 -112
- package/Base/managers/OptionsManager.cjs +173 -0
- package/Base/managers/OptionsManager.d.ts +20 -13
- package/Base/managers/OptionsManager.js +60 -91
- package/Base/managers/RefsManager.cjs +99 -0
- package/Base/managers/RefsManager.d.ts +4 -4
- package/Base/managers/RefsManager.js +28 -38
- package/Base/managers/ServicesManager.cjs +134 -0
- package/Base/managers/ServicesManager.d.ts +14 -8
- package/Base/managers/ServicesManager.js +42 -67
- package/Base/utils.cjs +41 -0
- package/Base/utils.d.ts +4 -4
- package/Base/utils.js +12 -11
- package/decorators/index.cjs +45 -0
- package/decorators/index.d.ts +1 -0
- package/decorators/index.js +20 -8
- package/decorators/withBreakpointManager.cjs +84 -0
- package/decorators/withBreakpointManager.d.ts +2 -2
- package/decorators/withBreakpointManager.js +18 -40
- package/decorators/withBreakpointObserver.cjs +114 -0
- package/decorators/withBreakpointObserver.d.ts +1 -1
- package/decorators/withBreakpointObserver.js +45 -88
- package/decorators/withDrag.cjs +53 -0
- package/decorators/withDrag.d.ts +1 -1
- package/decorators/withDrag.js +24 -26
- package/decorators/withExtraConfig.cjs +43 -0
- package/decorators/withExtraConfig.d.ts +1 -1
- package/decorators/withExtraConfig.js +17 -12
- package/decorators/withFreezedOptions.cjs +37 -0
- package/decorators/withFreezedOptions.d.ts +14 -0
- package/decorators/withFreezedOptions.js +15 -0
- package/decorators/withIntersectionObserver.cjs +61 -0
- package/decorators/withIntersectionObserver.d.ts +1 -1
- package/decorators/withIntersectionObserver.js +29 -33
- package/decorators/withMountWhenInView.cjs +68 -0
- package/decorators/withMountWhenInView.d.ts +1 -1
- package/decorators/withMountWhenInView.js +31 -53
- package/decorators/withScrolledInView.cjs +114 -0
- package/decorators/withScrolledInView.d.ts +1 -1
- package/decorators/withScrolledInView.js +35 -39
- package/decorators/withVue2.cjs +61 -0
- package/decorators/withVue2.js +27 -32
- package/helpers/createApp.cjs +52 -0
- package/helpers/createApp.d.ts +3 -26
- package/helpers/createApp.js +12 -12
- package/helpers/getInstanceFromElement.cjs +32 -0
- package/helpers/getInstanceFromElement.d.ts +14 -0
- package/helpers/getInstanceFromElement.js +10 -0
- package/helpers/importOnInteraction.cjs +52 -0
- package/helpers/importOnInteraction.d.ts +3 -5
- package/helpers/importOnInteraction.js +17 -18
- package/helpers/importWhenIdle.cjs +49 -0
- package/helpers/importWhenIdle.d.ts +3 -5
- package/helpers/importWhenIdle.js +14 -17
- package/helpers/importWhenVisible.cjs +50 -0
- package/helpers/importWhenVisible.d.ts +4 -6
- package/helpers/importWhenVisible.js +16 -18
- package/helpers/index.cjs +37 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/index.js +12 -4
- package/helpers/utils.cjs +35 -0
- package/helpers/utils.d.ts +3 -4
- package/helpers/utils.js +7 -6
- package/index.cjs +33 -0
- package/index.js +7 -4
- package/package.json +14 -4
- package/services/Service.cjs +76 -0
- package/services/Service.d.ts +9 -9
- package/services/Service.js +19 -32
- package/services/drag.cjs +212 -0
- package/services/drag.d.ts +3 -2
- package/services/drag.js +64 -69
- package/services/index.cjs +41 -0
- package/services/index.js +16 -7
- package/services/key.cjs +104 -0
- package/services/key.d.ts +1 -1
- package/services/key.js +28 -36
- package/services/load.cjs +72 -0
- package/services/load.d.ts +1 -1
- package/services/load.js +17 -19
- package/services/pointer.cjs +162 -0
- package/services/pointer.d.ts +1 -1
- package/services/pointer.js +43 -60
- package/services/raf.cjs +83 -0
- package/services/raf.d.ts +1 -1
- package/services/raf.js +20 -28
- package/services/resize.cjs +108 -0
- package/services/resize.d.ts +1 -1
- package/services/resize.js +33 -42
- package/services/scroll.cjs +131 -0
- package/services/scroll.d.ts +1 -1
- package/services/scroll.js +26 -35
- package/utils/collide/boundingRectToCircle.cjs +34 -0
- package/utils/collide/boundingRectToCircle.d.ts +6 -6
- package/utils/collide/boundingRectToCircle.js +7 -10
- package/utils/collide/collideCircleCircle.cjs +34 -0
- package/utils/collide/collideCircleCircle.d.ts +4 -4
- package/utils/collide/collideCircleCircle.js +8 -7
- package/utils/collide/collideCircleRect.cjs +46 -0
- package/utils/collide/collideCircleRect.d.ts +8 -8
- package/utils/collide/collideCircleRect.js +10 -12
- package/utils/collide/collidePointCircle.cjs +31 -0
- package/utils/collide/collidePointCircle.d.ts +6 -6
- package/utils/collide/collidePointCircle.js +8 -5
- package/utils/collide/collidePointRect.cjs +28 -0
- package/utils/collide/collidePointRect.d.ts +7 -7
- package/utils/collide/collidePointRect.js +5 -2
- package/utils/collide/collideRectRect.cjs +28 -0
- package/utils/collide/collideRectRect.d.ts +5 -5
- package/utils/collide/collideRectRect.js +5 -2
- package/utils/collide/index.cjs +39 -0
- package/utils/collide/index.js +14 -6
- package/utils/css/classes.cjs +47 -0
- package/utils/css/classes.d.ts +13 -12
- package/utils/css/classes.js +19 -15
- package/utils/css/index.cjs +38 -0
- package/utils/css/index.d.ts +2 -2
- package/utils/css/index.js +13 -6
- package/utils/css/matrix.cjs +30 -0
- package/utils/css/matrix.d.ts +14 -15
- package/utils/css/matrix.js +7 -5
- package/utils/css/styles.cjs +44 -0
- package/utils/css/styles.d.ts +8 -20
- package/utils/css/styles.js +12 -12
- package/utils/css/transition.cjs +120 -0
- package/utils/css/transition.d.ts +15 -9
- package/utils/css/transition.js +70 -119
- package/utils/debounce.cjs +34 -0
- package/utils/debounce.d.ts +4 -4
- package/utils/debounce.js +7 -9
- package/utils/focusTrap.cjs +82 -0
- package/utils/focusTrap.d.ts +1 -0
- package/utils/focusTrap.js +31 -22
- package/utils/history.cjs +89 -0
- package/utils/history.d.ts +13 -11
- package/utils/history.js +28 -57
- package/utils/index.cjs +54 -0
- package/utils/index.d.ts +4 -1
- package/utils/index.js +32 -11
- package/utils/keyCodes.cjs +35 -0
- package/utils/keyCodes.js +5 -2
- package/utils/math/clamp.cjs +28 -0
- package/utils/math/clamp.d.ts +1 -1
- package/utils/math/clamp.js +5 -2
- package/utils/math/clamp01.cjs +32 -0
- package/utils/math/clamp01.d.ts +1 -1
- package/utils/math/clamp01.js +6 -3
- package/utils/math/damp.cjs +28 -0
- package/utils/math/damp.d.ts +6 -6
- package/utils/math/damp.js +5 -4
- package/utils/math/ease.cjs +88 -0
- package/utils/math/ease.d.ts +7 -7
- package/utils/math/ease.js +50 -25
- package/utils/math/index.cjs +43 -0
- package/utils/math/index.js +17 -8
- package/utils/math/inertiaFinalValue.cjs +37 -0
- package/utils/math/inertiaFinalValue.d.ts +5 -5
- package/utils/math/inertiaFinalValue.js +8 -10
- package/utils/math/lerp.cjs +28 -0
- package/utils/math/lerp.d.ts +4 -4
- package/utils/math/lerp.js +5 -2
- package/utils/math/map.cjs +28 -0
- package/utils/math/map.d.ts +6 -6
- package/utils/math/map.js +5 -2
- package/utils/math/round.cjs +28 -0
- package/utils/math/round.d.ts +4 -4
- package/utils/math/round.js +5 -3
- package/utils/memoize.cjs +43 -0
- package/utils/memoize.d.ts +1 -1
- package/utils/memoize.js +10 -19
- package/utils/nextFrame.cjs +38 -0
- package/utils/nextFrame.d.ts +6 -6
- package/utils/nextFrame.js +13 -10
- package/utils/nextMicrotask.cjs +28 -0
- package/utils/nextMicrotask.d.ts +8 -0
- package/utils/nextMicrotask.js +6 -0
- package/utils/nextTick.cjs +30 -0
- package/utils/nextTick.d.ts +8 -0
- package/utils/nextTick.js +8 -0
- package/utils/object/autoBind.cjs +49 -0
- package/utils/object/autoBind.d.ts +3 -3
- package/utils/object/autoBind.js +12 -22
- package/utils/object/getAllProperties.cjs +37 -0
- package/utils/object/getAllProperties.d.ts +3 -3
- package/utils/object/getAllProperties.js +10 -13
- package/utils/object/index.cjs +33 -0
- package/utils/object/index.js +8 -3
- package/utils/object/isObject.cjs +28 -0
- package/utils/object/isObject.d.ts +1 -1
- package/utils/object/isObject.js +6 -3
- package/utils/scrollTo.cjs +80 -0
- package/utils/scrollTo.d.ts +1 -1
- package/utils/scrollTo.js +20 -40
- package/utils/string/index.cjs +47 -0
- package/utils/string/index.js +22 -10
- package/utils/string/withLeadingCharacters.cjs +32 -0
- package/utils/string/withLeadingCharacters.d.ts +3 -2
- package/utils/string/withLeadingCharacters.js +7 -4
- package/utils/string/withLeadingSlash.cjs +32 -0
- package/utils/string/withLeadingSlash.d.ts +1 -1
- package/utils/string/withLeadingSlash.js +7 -4
- package/utils/string/withTrailingCharacters.cjs +32 -0
- package/utils/string/withTrailingCharacters.d.ts +3 -2
- package/utils/string/withTrailingCharacters.js +7 -4
- package/utils/string/withTrailingSlash.cjs +32 -0
- package/utils/string/withTrailingSlash.d.ts +1 -1
- package/utils/string/withTrailingSlash.js +7 -4
- package/utils/string/withoutLeadingCharacters.cjs +28 -0
- package/utils/string/withoutLeadingCharacters.d.ts +3 -2
- package/utils/string/withoutLeadingCharacters.js +6 -3
- package/utils/string/withoutLeadingCharactersRecursive.cjs +37 -0
- package/utils/string/withoutLeadingCharactersRecursive.d.ts +3 -2
- package/utils/string/withoutLeadingCharactersRecursive.js +8 -7
- package/utils/string/withoutLeadingSlash.cjs +32 -0
- package/utils/string/withoutLeadingSlash.d.ts +1 -1
- package/utils/string/withoutLeadingSlash.js +7 -4
- package/utils/string/withoutTrailingCharacters.cjs +28 -0
- package/utils/string/withoutTrailingCharacters.d.ts +3 -2
- package/utils/string/withoutTrailingCharacters.js +6 -3
- package/utils/string/withoutTrailingCharactersRecursive.cjs +37 -0
- package/utils/string/withoutTrailingCharactersRecursive.d.ts +3 -2
- package/utils/string/withoutTrailingCharactersRecursive.js +8 -7
- package/utils/string/withoutTrailingSlash.cjs +32 -0
- package/utils/string/withoutTrailingSlash.d.ts +1 -1
- package/utils/string/withoutTrailingSlash.js +7 -4
- package/utils/throttle.cjs +36 -0
- package/utils/throttle.d.ts +3 -3
- package/utils/throttle.js +9 -9
- package/index.modern.js +0 -1
- package/index.umd.js +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/js-toolkit/utils/math/ease.js
|
|
20
|
+
var ease_exports = {};
|
|
21
|
+
__export(ease_exports, {
|
|
22
|
+
createEaseInOut: () => createEaseInOut,
|
|
23
|
+
createEaseOut: () => createEaseOut,
|
|
24
|
+
easeInCirc: () => easeInCirc,
|
|
25
|
+
easeInCubic: () => easeInCubic,
|
|
26
|
+
easeInExpo: () => easeInExpo,
|
|
27
|
+
easeInOutCirc: () => easeInOutCirc,
|
|
28
|
+
easeInOutCubic: () => easeInOutCubic,
|
|
29
|
+
easeInOutExpo: () => easeInOutExpo,
|
|
30
|
+
easeInOutQuad: () => easeInOutQuad,
|
|
31
|
+
easeInOutQuart: () => easeInOutQuart,
|
|
32
|
+
easeInOutQuint: () => easeInOutQuint,
|
|
33
|
+
easeInOutSine: () => easeInOutSine,
|
|
34
|
+
easeInQuad: () => easeInQuad,
|
|
35
|
+
easeInQuart: () => easeInQuart,
|
|
36
|
+
easeInQuint: () => easeInQuint,
|
|
37
|
+
easeInSine: () => easeInSine,
|
|
38
|
+
easeOutCirc: () => easeOutCirc,
|
|
39
|
+
easeOutCubic: () => easeOutCubic,
|
|
40
|
+
easeOutExpo: () => easeOutExpo,
|
|
41
|
+
easeOutQuad: () => easeOutQuad,
|
|
42
|
+
easeOutQuart: () => easeOutQuart,
|
|
43
|
+
easeOutQuint: () => easeOutQuint,
|
|
44
|
+
easeOutSine: () => easeOutSine
|
|
45
|
+
});
|
|
46
|
+
module.exports = __toCommonJS(ease_exports);
|
|
47
|
+
function createEaseOut(easeIn) {
|
|
48
|
+
return (progress) => 1 - easeIn(1 - progress);
|
|
49
|
+
}
|
|
50
|
+
function createEaseInOut(easeIn) {
|
|
51
|
+
return (progress) => progress === 0 ? 0 : progress === 1 ? 1 : progress < 0.5 ? easeIn(progress * 2) / 2 : 1 - easeIn((1 - progress) * 2) / 2;
|
|
52
|
+
}
|
|
53
|
+
function easeInQuad(progress) {
|
|
54
|
+
return progress ** 2;
|
|
55
|
+
}
|
|
56
|
+
var easeOutQuad = createEaseOut(easeInQuad);
|
|
57
|
+
var easeInOutQuad = createEaseInOut(easeInQuad);
|
|
58
|
+
function easeInCubic(progress) {
|
|
59
|
+
return progress ** 3;
|
|
60
|
+
}
|
|
61
|
+
var easeOutCubic = createEaseOut(easeInCubic);
|
|
62
|
+
var easeInOutCubic = createEaseInOut(easeInCubic);
|
|
63
|
+
function easeInQuart(progress) {
|
|
64
|
+
return progress ** 4;
|
|
65
|
+
}
|
|
66
|
+
var easeOutQuart = createEaseOut(easeInQuart);
|
|
67
|
+
var easeInOutQuart = createEaseInOut(easeInQuart);
|
|
68
|
+
function easeInQuint(progress) {
|
|
69
|
+
return progress ** 5;
|
|
70
|
+
}
|
|
71
|
+
var easeOutQuint = createEaseOut(easeInQuint);
|
|
72
|
+
var easeInOutQuint = createEaseInOut(easeInQuint);
|
|
73
|
+
function easeInSine(progress) {
|
|
74
|
+
return progress === 1 ? 1 : -Math.cos(progress * Math.PI / 2) + 1;
|
|
75
|
+
}
|
|
76
|
+
var easeOutSine = createEaseOut(easeInSine);
|
|
77
|
+
var easeInOutSine = createEaseInOut(easeInSine);
|
|
78
|
+
function easeInCirc(progress) {
|
|
79
|
+
return -(Math.sqrt(1 - progress * progress) - 1);
|
|
80
|
+
}
|
|
81
|
+
var easeOutCirc = createEaseOut(easeInCirc);
|
|
82
|
+
var easeInOutCirc = createEaseInOut(easeInCirc);
|
|
83
|
+
function easeInExpo(progress) {
|
|
84
|
+
return 2 ** (10 * (progress - 1));
|
|
85
|
+
}
|
|
86
|
+
var easeOutExpo = createEaseOut(easeInExpo);
|
|
87
|
+
var easeInOutExpo = createEaseInOut(easeInExpo);
|
|
88
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/ease.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export function createEaseOut(easeIn: EasingFunction): EasingFunction;
|
|
|
12
12
|
* Create an in-out easing function.
|
|
13
13
|
*
|
|
14
14
|
* @param {EasingFunction} easeIn The ease in function.
|
|
15
|
-
* @
|
|
15
|
+
* @returns {EasingFunction} The in-out function.
|
|
16
16
|
*/
|
|
17
17
|
export function createEaseInOut(easeIn: EasingFunction): EasingFunction;
|
|
18
18
|
/**
|
|
@@ -23,42 +23,42 @@ export function easeInQuad(progress: number): number;
|
|
|
23
23
|
* Ease in cubic.
|
|
24
24
|
*
|
|
25
25
|
* @param {number} progress Progress value betwen 0 and 1.
|
|
26
|
-
* @
|
|
26
|
+
* @returns {number} Eased value between 0 and 1.
|
|
27
27
|
*/
|
|
28
28
|
export function easeInCubic(progress: number): number;
|
|
29
29
|
/**
|
|
30
30
|
* Ease in quart.
|
|
31
31
|
*
|
|
32
32
|
* @param {number} progress Progress value betwen 0 and 1.
|
|
33
|
-
* @
|
|
33
|
+
* @returns {number} Eased value between 0 and 1.
|
|
34
34
|
*/
|
|
35
35
|
export function easeInQuart(progress: number): number;
|
|
36
36
|
/**
|
|
37
37
|
* Ease in quint.
|
|
38
38
|
*
|
|
39
39
|
* @param {number} progress Progress value betwen 0 and 1.
|
|
40
|
-
* @
|
|
40
|
+
* @returns {number} Eased value between 0 and 1.
|
|
41
41
|
*/
|
|
42
42
|
export function easeInQuint(progress: number): number;
|
|
43
43
|
/**
|
|
44
44
|
* Ease in sine.
|
|
45
45
|
*
|
|
46
46
|
* @param {number} progress Progress value betwen 0 and 1.
|
|
47
|
-
* @
|
|
47
|
+
* @returns {number} Eased value between 0 and 1.
|
|
48
48
|
*/
|
|
49
49
|
export function easeInSine(progress: number): number;
|
|
50
50
|
/**
|
|
51
51
|
* Ease in circ.
|
|
52
52
|
*
|
|
53
53
|
* @param {number} progress Progress value betwen 0 and 1.
|
|
54
|
-
* @
|
|
54
|
+
* @returns {number} Eased value between 0 and 1.
|
|
55
55
|
*/
|
|
56
56
|
export function easeInCirc(progress: number): number;
|
|
57
57
|
/**
|
|
58
58
|
* Ease in exponential.
|
|
59
59
|
*
|
|
60
60
|
* @param {number} progress Progress value betwen 0 and 1.
|
|
61
|
-
* @
|
|
61
|
+
* @returns {number} Eased value between 0 and 1.
|
|
62
62
|
*/
|
|
63
63
|
export function easeInExpo(progress: number): number;
|
|
64
64
|
export function easeOutQuad(progress: number): number;
|
package/utils/math/ease.js
CHANGED
|
@@ -1,41 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
return progress => 1 - easeIn(1 - progress);
|
|
1
|
+
function createEaseOut(easeIn) {
|
|
2
|
+
return (progress) => 1 - easeIn(1 - progress);
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
return progress => progress === 0 ? 0 : progress === 1 ? 1 : progress < 0.5 ? easeIn(progress * 2) / 2 : 1 - easeIn((1 - progress) * 2) / 2;
|
|
4
|
+
function createEaseInOut(easeIn) {
|
|
5
|
+
return (progress) => progress === 0 ? 0 : progress === 1 ? 1 : progress < 0.5 ? easeIn(progress * 2) / 2 : 1 - easeIn((1 - progress) * 2) / 2;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
function easeInQuad(progress) {
|
|
8
8
|
return progress ** 2;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const easeOutQuad = createEaseOut(easeInQuad);
|
|
11
|
+
const easeInOutQuad = createEaseInOut(easeInQuad);
|
|
12
|
+
function easeInCubic(progress) {
|
|
13
13
|
return progress ** 3;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const easeOutCubic = createEaseOut(easeInCubic);
|
|
16
|
+
const easeInOutCubic = createEaseInOut(easeInCubic);
|
|
17
|
+
function easeInQuart(progress) {
|
|
18
18
|
return progress ** 4;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const easeOutQuart = createEaseOut(easeInQuart);
|
|
21
|
+
const easeInOutQuart = createEaseInOut(easeInQuart);
|
|
22
|
+
function easeInQuint(progress) {
|
|
23
23
|
return progress ** 5;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const easeOutQuint = createEaseOut(easeInQuint);
|
|
26
|
+
const easeInOutQuint = createEaseInOut(easeInQuint);
|
|
27
|
+
function easeInSine(progress) {
|
|
28
28
|
return progress === 1 ? 1 : -Math.cos(progress * Math.PI / 2) + 1;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
const easeOutSine = createEaseOut(easeInSine);
|
|
31
|
+
const easeInOutSine = createEaseInOut(easeInSine);
|
|
32
|
+
function easeInCirc(progress) {
|
|
33
33
|
return -(Math.sqrt(1 - progress * progress) - 1);
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
const easeOutCirc = createEaseOut(easeInCirc);
|
|
36
|
+
const easeInOutCirc = createEaseInOut(easeInCirc);
|
|
37
|
+
function easeInExpo(progress) {
|
|
38
38
|
return 2 ** (10 * (progress - 1));
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
const easeOutExpo = createEaseOut(easeInExpo);
|
|
41
|
+
const easeInOutExpo = createEaseInOut(easeInExpo);
|
|
42
|
+
export {
|
|
43
|
+
createEaseInOut,
|
|
44
|
+
createEaseOut,
|
|
45
|
+
easeInCirc,
|
|
46
|
+
easeInCubic,
|
|
47
|
+
easeInExpo,
|
|
48
|
+
easeInOutCirc,
|
|
49
|
+
easeInOutCubic,
|
|
50
|
+
easeInOutExpo,
|
|
51
|
+
easeInOutQuad,
|
|
52
|
+
easeInOutQuart,
|
|
53
|
+
easeInOutQuint,
|
|
54
|
+
easeInOutSine,
|
|
55
|
+
easeInQuad,
|
|
56
|
+
easeInQuart,
|
|
57
|
+
easeInQuint,
|
|
58
|
+
easeInSine,
|
|
59
|
+
easeOutCirc,
|
|
60
|
+
easeOutCubic,
|
|
61
|
+
easeOutExpo,
|
|
62
|
+
easeOutQuad,
|
|
63
|
+
easeOutQuart,
|
|
64
|
+
easeOutQuint,
|
|
65
|
+
easeOutSine
|
|
66
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
|
|
23
|
+
// packages/js-toolkit/utils/math/index.js
|
|
24
|
+
var math_exports = {};
|
|
25
|
+
__export(math_exports, {
|
|
26
|
+
clamp: () => import_clamp.default,
|
|
27
|
+
clamp01: () => import_clamp01.default,
|
|
28
|
+
damp: () => import_damp.default,
|
|
29
|
+
inertiaFinalValue: () => import_inertiaFinalValue.default,
|
|
30
|
+
lerp: () => import_lerp.default,
|
|
31
|
+
map: () => import_map.default,
|
|
32
|
+
round: () => import_round.default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(math_exports);
|
|
35
|
+
var import_clamp = __toESM(require("./clamp.cjs"), 1);
|
|
36
|
+
var import_clamp01 = __toESM(require("./clamp01.cjs"), 1);
|
|
37
|
+
var import_damp = __toESM(require("./damp.cjs"), 1);
|
|
38
|
+
var import_inertiaFinalValue = __toESM(require("./inertiaFinalValue.cjs"), 1);
|
|
39
|
+
var import_lerp = __toESM(require("./lerp.cjs"), 1);
|
|
40
|
+
var import_map = __toESM(require("./map.cjs"), 1);
|
|
41
|
+
var import_round = __toESM(require("./round.cjs"), 1);
|
|
42
|
+
__reExport(math_exports, require("./ease.cjs"), module.exports);
|
|
43
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/index.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export * from
|
|
1
|
+
import { default as default2 } from "./clamp.js";
|
|
2
|
+
import { default as default3 } from "./clamp01.js";
|
|
3
|
+
import { default as default4 } from "./damp.js";
|
|
4
|
+
import { default as default5 } from "./inertiaFinalValue.js";
|
|
5
|
+
import { default as default6 } from "./lerp.js";
|
|
6
|
+
import { default as default7 } from "./map.js";
|
|
7
|
+
import { default as default8 } from "./round.js";
|
|
8
|
+
export * from "./ease.js";
|
|
9
|
+
export {
|
|
10
|
+
default2 as clamp,
|
|
11
|
+
default3 as clamp01,
|
|
12
|
+
default4 as damp,
|
|
13
|
+
default5 as inertiaFinalValue,
|
|
14
|
+
default6 as lerp,
|
|
15
|
+
default7 as map,
|
|
16
|
+
default8 as round
|
|
17
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/js-toolkit/utils/math/inertiaFinalValue.js
|
|
20
|
+
var inertiaFinalValue_exports = {};
|
|
21
|
+
__export(inertiaFinalValue_exports, {
|
|
22
|
+
default: () => inertiaFinalValue
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(inertiaFinalValue_exports);
|
|
25
|
+
function inertiaFinalValue(initialValue, initialDelta, dampFactor = 0.85) {
|
|
26
|
+
if (dampFactor >= 1 || dampFactor <= 0) {
|
|
27
|
+
throw new Error(`The \`factor\` parameter must be a number greater than 0 and smaller than 1, \`${dampFactor}\` given.`);
|
|
28
|
+
}
|
|
29
|
+
let delta = initialDelta;
|
|
30
|
+
let finalValue = initialValue;
|
|
31
|
+
while (Math.abs(delta) > 0.1) {
|
|
32
|
+
finalValue += delta;
|
|
33
|
+
delta *= dampFactor;
|
|
34
|
+
}
|
|
35
|
+
return finalValue;
|
|
36
|
+
}
|
|
37
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get the final damped value for a given factor.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
* @
|
|
4
|
+
* @param {number} initialValue The final value.
|
|
5
|
+
* @param {number} initialDelta The current value.
|
|
6
|
+
* @param {number} [dampFactor=0.85] The speed to reach the target value.
|
|
7
|
+
* @returns {number} The next value.
|
|
8
8
|
*/
|
|
9
|
-
export default function inertiaFinalValue(initialValue: number, initialDelta: number, dampFactor?: number
|
|
9
|
+
export default function inertiaFinalValue(initialValue: number, initialDelta: number, dampFactor?: number): number;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
var dampFactor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.85;
|
|
3
|
-
|
|
1
|
+
function inertiaFinalValue(initialValue, initialDelta, dampFactor = 0.85) {
|
|
4
2
|
if (dampFactor >= 1 || dampFactor <= 0) {
|
|
5
|
-
throw new Error(
|
|
3
|
+
throw new Error(`The \`factor\` parameter must be a number greater than 0 and smaller than 1, \`${dampFactor}\` given.`);
|
|
6
4
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var finalValue = initialValue;
|
|
10
|
-
|
|
5
|
+
let delta = initialDelta;
|
|
6
|
+
let finalValue = initialValue;
|
|
11
7
|
while (Math.abs(delta) > 0.1) {
|
|
12
8
|
finalValue += delta;
|
|
13
9
|
delta *= dampFactor;
|
|
14
10
|
}
|
|
15
|
-
|
|
16
11
|
return finalValue;
|
|
17
|
-
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
inertiaFinalValue as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/js-toolkit/utils/math/lerp.js
|
|
20
|
+
var lerp_exports = {};
|
|
21
|
+
__export(lerp_exports, {
|
|
22
|
+
default: () => lerp
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(lerp_exports);
|
|
25
|
+
function lerp(min, max, ratio) {
|
|
26
|
+
return (1 - ratio) * min + ratio * max;
|
|
27
|
+
}
|
|
28
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/lerp.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Interpolate the ratio between a given interval.
|
|
3
3
|
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
6
|
-
* @param {
|
|
7
|
-
* @
|
|
4
|
+
* @param {number} min The interval minimum value.
|
|
5
|
+
* @param {number} max The inverval maximum value.
|
|
6
|
+
* @param {number} ratio The ratio to get.
|
|
7
|
+
* @returns {number} The value between min and max corresponding to ratio.
|
|
8
8
|
*/
|
|
9
9
|
export default function lerp(min: number, max: number, ratio: number): number;
|
package/utils/math/lerp.js
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/js-toolkit/utils/math/map.js
|
|
20
|
+
var map_exports = {};
|
|
21
|
+
__export(map_exports, {
|
|
22
|
+
default: () => map
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(map_exports);
|
|
25
|
+
function map(value, inputMin, inputMax, outputMin, outputMax) {
|
|
26
|
+
return (value - inputMin) * (outputMax - outputMin) / (inputMax - inputMin) + outputMin;
|
|
27
|
+
}
|
|
28
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/map.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Maps the value from one range of [inputMin..inputMax] to another range of [outputMin..outputMax].
|
|
3
3
|
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {
|
|
8
|
-
* @param {
|
|
9
|
-
* @
|
|
4
|
+
* @param {number} value The value to map.
|
|
5
|
+
* @param {number} inputMin The input's minimum value.
|
|
6
|
+
* @param {number} inputMax The input's maximum value.
|
|
7
|
+
* @param {number} outputMin The output's minimum value.
|
|
8
|
+
* @param {number} outputMax The output's maximum value.
|
|
9
|
+
* @returns {number} The input value mapped to the output range.
|
|
10
10
|
*/
|
|
11
11
|
export default function map(value: number, inputMin: number, inputMax: number, outputMin: number, outputMax: number): number;
|
package/utils/math/map.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
function map(value, inputMin, inputMax, outputMin, outputMax) {
|
|
2
2
|
return (value - inputMin) * (outputMax - outputMin) / (inputMax - inputMin) + outputMin;
|
|
3
|
-
}
|
|
3
|
+
}
|
|
4
|
+
export {
|
|
5
|
+
map as default
|
|
6
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/js-toolkit/utils/math/round.js
|
|
20
|
+
var round_exports = {};
|
|
21
|
+
__export(round_exports, {
|
|
22
|
+
default: () => round
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(round_exports);
|
|
25
|
+
function round(value, decimals = 0) {
|
|
26
|
+
return Number(value.toFixed(decimals));
|
|
27
|
+
}
|
|
28
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/round.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Round a value with a given number of decimals.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @
|
|
4
|
+
* @param {number} value The number to round.
|
|
5
|
+
* @param {number} [decimals=0] The number of decimals to keep.
|
|
6
|
+
* @returns {number} A rounded number to the given decimals length.
|
|
7
7
|
*/
|
|
8
|
-
export default function round(value: number, decimals?: number
|
|
8
|
+
export default function round(value: number, decimals?: number): number;
|
package/utils/math/round.js
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/js-toolkit/utils/memoize.js
|
|
20
|
+
var memoize_exports = {};
|
|
21
|
+
__export(memoize_exports, {
|
|
22
|
+
default: () => memoize
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(memoize_exports);
|
|
25
|
+
function memoize(fn, { maxAge = Number.POSITIVE_INFINITY, cacheKey = JSON.stringify, cache = /* @__PURE__ */ new Map() } = {}) {
|
|
26
|
+
return function memoized(...args) {
|
|
27
|
+
const key = cacheKey(args);
|
|
28
|
+
const date = Date.now();
|
|
29
|
+
if (cache.has(key)) {
|
|
30
|
+
const cached = cache.get(key);
|
|
31
|
+
if (date - cached.date < maxAge) {
|
|
32
|
+
return cached.data;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const data = fn(...args);
|
|
36
|
+
cache.set(key, {
|
|
37
|
+
data,
|
|
38
|
+
date: Date.now()
|
|
39
|
+
});
|
|
40
|
+
return data;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/memoize.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @template {(...args:any) => any} T
|
|
16
16
|
* @param {T} fn
|
|
17
17
|
* @param {MemorizeOptions} options
|
|
18
|
-
* @
|
|
18
|
+
* @returns {(...args:Parameters<T>) => ReturnType<T>}
|
|
19
19
|
*/
|
|
20
20
|
export default function memoize<T extends (...args: any) => any>(fn: T, { maxAge, cacheKey, cache }?: MemorizeOptions): (...args: Parameters<T>) => ReturnType<T>;
|
|
21
21
|
export type MemorizeCache = {
|
package/utils/memoize.js
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
cache = new Map()
|
|
6
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
7
|
-
return function memoized() {
|
|
8
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
|
-
args[_key] = arguments[_key];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var key = cacheKey(args);
|
|
13
|
-
var date = Date.now();
|
|
14
|
-
|
|
1
|
+
function memoize(fn, { maxAge = Number.POSITIVE_INFINITY, cacheKey = JSON.stringify, cache = /* @__PURE__ */ new Map() } = {}) {
|
|
2
|
+
return function memoized(...args) {
|
|
3
|
+
const key = cacheKey(args);
|
|
4
|
+
const date = Date.now();
|
|
15
5
|
if (cache.has(key)) {
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
const cached = cache.get(key);
|
|
18
7
|
if (date - cached.date < maxAge) {
|
|
19
8
|
return cached.data;
|
|
20
9
|
}
|
|
21
10
|
}
|
|
22
|
-
|
|
23
|
-
var data = fn(...args);
|
|
11
|
+
const data = fn(...args);
|
|
24
12
|
cache.set(key, {
|
|
25
13
|
data,
|
|
26
14
|
date: Date.now()
|
|
27
15
|
});
|
|
28
16
|
return data;
|
|
29
17
|
};
|
|
30
|
-
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
memoize as default
|
|
21
|
+
};
|