vevet 3.6.0 → 3.7.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.
@@ -1,25 +1,51 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.easing = exports.Easing = void 0;
7
- var easing_progress_1 = __importDefault(require("easing-progress"));
3
+ exports.easing = exports.EaseOutSine = exports.EaseOutQuint = exports.EaseOutQuart = exports.EaseOutQuad = exports.EaseOutExpo = exports.EaseOutElastic = exports.EaseOutCubic = exports.EaseOutCirc = exports.EaseOutBounce = exports.EaseOutBack = exports.EaseInSine = exports.EaseInQuint = exports.EaseInQuart = exports.EaseInQuad = exports.EaseInOutSine = exports.EaseInOutQuint = exports.EaseInOutQuart = exports.EaseInOutQuad = exports.EaseInOutExpo = exports.EaseInOutElastic = exports.EaseInOutCubic = exports.EaseInOutCirc = exports.EaseInOutBounce = exports.EaseInOutBack = exports.EaseInExpo = exports.EaseInElastic = exports.EaseInCubic = exports.EaseInCirc = exports.EaseInBounce = exports.EaseInBack = void 0;
4
+ var easing_progress_1 = require("easing-progress");
8
5
  var easing_progress_2 = require("easing-progress");
9
- Object.defineProperty(exports, "Easing", { enumerable: true, get: function () { return easing_progress_2.Easing; } });
6
+ Object.defineProperty(exports, "EaseInBack", { enumerable: true, get: function () { return easing_progress_2.EaseInBack; } });
7
+ Object.defineProperty(exports, "EaseInBounce", { enumerable: true, get: function () { return easing_progress_2.EaseInBounce; } });
8
+ Object.defineProperty(exports, "EaseInCirc", { enumerable: true, get: function () { return easing_progress_2.EaseInCirc; } });
9
+ Object.defineProperty(exports, "EaseInCubic", { enumerable: true, get: function () { return easing_progress_2.EaseInCubic; } });
10
+ Object.defineProperty(exports, "EaseInElastic", { enumerable: true, get: function () { return easing_progress_2.EaseInElastic; } });
11
+ Object.defineProperty(exports, "EaseInExpo", { enumerable: true, get: function () { return easing_progress_2.EaseInExpo; } });
12
+ Object.defineProperty(exports, "EaseInOutBack", { enumerable: true, get: function () { return easing_progress_2.EaseInOutBack; } });
13
+ Object.defineProperty(exports, "EaseInOutBounce", { enumerable: true, get: function () { return easing_progress_2.EaseInOutBounce; } });
14
+ Object.defineProperty(exports, "EaseInOutCirc", { enumerable: true, get: function () { return easing_progress_2.EaseInOutCirc; } });
15
+ Object.defineProperty(exports, "EaseInOutCubic", { enumerable: true, get: function () { return easing_progress_2.EaseInOutCubic; } });
16
+ Object.defineProperty(exports, "EaseInOutElastic", { enumerable: true, get: function () { return easing_progress_2.EaseInOutElastic; } });
17
+ Object.defineProperty(exports, "EaseInOutExpo", { enumerable: true, get: function () { return easing_progress_2.EaseInOutExpo; } });
18
+ Object.defineProperty(exports, "EaseInOutQuad", { enumerable: true, get: function () { return easing_progress_2.EaseInOutQuad; } });
19
+ Object.defineProperty(exports, "EaseInOutQuart", { enumerable: true, get: function () { return easing_progress_2.EaseInOutQuart; } });
20
+ Object.defineProperty(exports, "EaseInOutQuint", { enumerable: true, get: function () { return easing_progress_2.EaseInOutQuint; } });
21
+ Object.defineProperty(exports, "EaseInOutSine", { enumerable: true, get: function () { return easing_progress_2.EaseInOutSine; } });
22
+ Object.defineProperty(exports, "EaseInQuad", { enumerable: true, get: function () { return easing_progress_2.EaseInQuad; } });
23
+ Object.defineProperty(exports, "EaseInQuart", { enumerable: true, get: function () { return easing_progress_2.EaseInQuart; } });
24
+ Object.defineProperty(exports, "EaseInQuint", { enumerable: true, get: function () { return easing_progress_2.EaseInQuint; } });
25
+ Object.defineProperty(exports, "EaseInSine", { enumerable: true, get: function () { return easing_progress_2.EaseInSine; } });
26
+ Object.defineProperty(exports, "EaseOutBack", { enumerable: true, get: function () { return easing_progress_2.EaseOutBack; } });
27
+ Object.defineProperty(exports, "EaseOutBounce", { enumerable: true, get: function () { return easing_progress_2.EaseOutBounce; } });
28
+ Object.defineProperty(exports, "EaseOutCirc", { enumerable: true, get: function () { return easing_progress_2.EaseOutCirc; } });
29
+ Object.defineProperty(exports, "EaseOutCubic", { enumerable: true, get: function () { return easing_progress_2.EaseOutCubic; } });
30
+ Object.defineProperty(exports, "EaseOutElastic", { enumerable: true, get: function () { return easing_progress_2.EaseOutElastic; } });
31
+ Object.defineProperty(exports, "EaseOutExpo", { enumerable: true, get: function () { return easing_progress_2.EaseOutExpo; } });
32
+ Object.defineProperty(exports, "EaseOutQuad", { enumerable: true, get: function () { return easing_progress_2.EaseOutQuad; } });
33
+ Object.defineProperty(exports, "EaseOutQuart", { enumerable: true, get: function () { return easing_progress_2.EaseOutQuart; } });
34
+ Object.defineProperty(exports, "EaseOutQuint", { enumerable: true, get: function () { return easing_progress_2.EaseOutQuint; } });
35
+ Object.defineProperty(exports, "EaseOutSine", { enumerable: true, get: function () { return easing_progress_2.EaseOutSine; } });
10
36
  /**
11
37
  * Easing progress
12
38
  *
13
39
  * @example
14
40
  *
15
- * easing(0.35, Easing.easeInBounce); // => 0.167
41
+ * easing(0.35, EaseInBounce); // => 0.167
16
42
  * easing(0.35, [.25, .1, .25, 1]); // => 0.604
17
43
  * easing(0.35, (value) => Math.sin(Math.PI * 0.5 * value)); // => 0.522
18
44
  */
19
45
  var easing = function (progress, easingType) {
20
46
  var _a, _b;
21
47
  if (easingType === void 0) { easingType = (_b = (_a = window.vevetApp) === null || _a === void 0 ? void 0 : _a.props.easing) !== null && _b !== void 0 ? _b : false; }
22
- return (0, easing_progress_1.default)(progress, easingType);
48
+ return (0, easing_progress_1.easing)(progress, easingType);
23
49
  };
24
50
  exports.easing = easing;
25
51
  //# sourceMappingURL=easing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"easing.js","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":";;;;;;AAAA,oEAA6C;AAE7C,mDAAyC;AAAhC,yGAAA,MAAM,OAAA;AAEf;;;;;;;;GAQG;AACI,IAAM,MAAM,GAA0B,UAC3C,QAAQ,EACR,UAAmD;;IAAnD,2BAAA,EAAA,mBAAa,MAAA,MAAM,CAAC,QAAQ,0CAAE,KAAK,CAAC,MAAM,mCAAI,KAAK;IAChD,OAAA,IAAA,yBAAc,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;CAAA,CAAC;AAH7B,QAAA,MAAM,UAGuB"}
1
+ {"version":3,"file":"easing.js","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":";;;AAAA,mDAA2D;AAE3D,mDA+ByB;AA9BvB,6GAAA,UAAU,OAAA;AACV,+GAAA,YAAY,OAAA;AACZ,6GAAA,UAAU,OAAA;AACV,8GAAA,WAAW,OAAA;AACX,gHAAA,aAAa,OAAA;AACb,6GAAA,UAAU,OAAA;AACV,gHAAA,aAAa,OAAA;AACb,kHAAA,eAAe,OAAA;AACf,gHAAA,aAAa,OAAA;AACb,iHAAA,cAAc,OAAA;AACd,mHAAA,gBAAgB,OAAA;AAChB,gHAAA,aAAa,OAAA;AACb,gHAAA,aAAa,OAAA;AACb,iHAAA,cAAc,OAAA;AACd,iHAAA,cAAc,OAAA;AACd,gHAAA,aAAa,OAAA;AACb,6GAAA,UAAU,OAAA;AACV,8GAAA,WAAW,OAAA;AACX,8GAAA,WAAW,OAAA;AACX,6GAAA,UAAU,OAAA;AACV,8GAAA,WAAW,OAAA;AACX,gHAAA,aAAa,OAAA;AACb,8GAAA,WAAW,OAAA;AACX,+GAAA,YAAY,OAAA;AACZ,iHAAA,cAAc,OAAA;AACd,8GAAA,WAAW,OAAA;AACX,8GAAA,WAAW,OAAA;AACX,+GAAA,YAAY,OAAA;AACZ,+GAAA,YAAY,OAAA;AACZ,8GAAA,WAAW,OAAA;AASb;;;;;;;;GAQG;AACI,IAAM,MAAM,GAA0B,UAC3C,QAAQ,EACR,UAAmD;;IAAnD,2BAAA,EAAA,mBAAa,MAAA,MAAM,CAAC,QAAQ,0CAAE,KAAK,CAAC,MAAM,mCAAI,KAAK;IAChD,OAAA,IAAA,wBAAc,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;CAAA,CAAC;AAH7B,QAAA,MAAM,UAGuB"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var version = '3.6.0';
3
+ var version = '3.7.0';
4
4
  exports.default = version;
5
5
  //# sourceMappingURL=version.js.map
@@ -1,11 +1,11 @@
1
- import easingProgress from 'easing-progress';
2
- export { Easing } from 'easing-progress';
1
+ import { easing as easingProgress } from 'easing-progress';
2
+ export { EaseInBack, EaseInBounce, EaseInCirc, EaseInCubic, EaseInElastic, EaseInExpo, EaseInOutBack, EaseInOutBounce, EaseInOutCirc, EaseInOutCubic, EaseInOutElastic, EaseInOutExpo, EaseInOutQuad, EaseInOutQuart, EaseInOutQuint, EaseInOutSine, EaseInQuad, EaseInQuart, EaseInQuint, EaseInSine, EaseOutBack, EaseOutBounce, EaseOutCirc, EaseOutCubic, EaseOutElastic, EaseOutExpo, EaseOutQuad, EaseOutQuart, EaseOutQuint, EaseOutSine, } from 'easing-progress';
3
3
  /**
4
4
  * Easing progress
5
5
  *
6
6
  * @example
7
7
  *
8
- * easing(0.35, Easing.easeInBounce); // => 0.167
8
+ * easing(0.35, EaseInBounce); // => 0.167
9
9
  * easing(0.35, [.25, .1, .25, 1]); // => 0.604
10
10
  * easing(0.35, (value) => Math.sin(Math.PI * 0.5 * value)); // => 0.522
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"easing.js","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,MAAM,GAA0B,CAC3C,QAAQ,EACR,UAAmD,EACnD,EAAE,0CADF,EAAA,mBAAa,MAAA,MAAM,CAAC,QAAQ,0CAAE,KAAK,CAAC,MAAM,mCAAI,KAAK,IAChD,OAAA,cAAc,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA,EAAA,CAAC"}
1
+ {"version":3,"file":"easing.js","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EACL,UAAU,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAQzB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,MAAM,GAA0B,CAC3C,QAAQ,EACR,UAAmD,EACnD,EAAE,0CADF,EAAA,mBAAa,MAAA,MAAM,CAAC,QAAQ,0CAAE,KAAK,CAAC,MAAM,mCAAI,KAAK,IAChD,OAAA,cAAc,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA,EAAA,CAAC"}
@@ -1,3 +1,3 @@
1
- const version = '3.6.0';
1
+ const version = '3.7.0';
2
2
  export default version;
3
3
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- import { EasingType } from 'easing-progress';
1
+ import { TEasingType } from '../utils/math';
2
2
  export declare namespace NApplication {
3
3
  interface IProps {
4
4
  shouldPrintVersion: boolean;
@@ -26,7 +26,7 @@ export declare namespace NApplication {
26
26
  * Easing function that is used in animation as the default value
27
27
  * @default [.25, .1, .25, 1]
28
28
  */
29
- easing: EasingType;
29
+ easing: TEasingType;
30
30
  /**
31
31
  * Check if the browser supports WebP
32
32
  * @default false
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Application/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,MAAM;QACrB,kBAAkB,EAAE,OAAO,CAAC;QAC5B;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,cAAc,EAAE,MAAM,CAAC;QACvB;;;WAGG;QACH,MAAM,EAAE,UAAU,CAAC;QACnB;;;WAGG;QACH,sBAAsB,EAAE,OAAO,CAAC;KACjC;CACF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Application/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,MAAM;QACrB,kBAAkB,EAAE,OAAO,CAAC;QAC5B;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,cAAc,EAAE,MAAM,CAAC;QACvB;;;WAGG;QACH,MAAM,EAAE,WAAW,CAAC;QACpB;;;WAGG;QACH,sBAAsB,EAAE,OAAO,CAAC;KACjC;CACF"}
@@ -7,7 +7,7 @@ export type { NBaseTimeline };
7
7
  */
8
8
  export declare class BaseTimeline<StaticProps extends NBaseTimeline.IStaticProps = NBaseTimeline.IStaticProps, ChangeableProps extends NBaseTimeline.IChangeableProps = NBaseTimeline.IChangeableProps, CallbacksTypes extends NBaseTimeline.ICallbacksTypes = NBaseTimeline.ICallbacksTypes> extends ComponentClass<StaticProps, ChangeableProps, CallbacksTypes> {
9
9
  protected _getDefaultProps(): import("ts-essentials").DeepRequired<StaticProps & ChangeableProps> & {
10
- easing: import("easing-progress").EasingType;
10
+ easing: import("../../utils/math").TEasingType;
11
11
  scope: number[];
12
12
  hasNestedEasingProgress: boolean;
13
13
  };
@@ -8,7 +8,7 @@ export declare class Timeline<StaticProps extends NTimeline.IStaticProps = NTime
8
8
  protected _getDefaultProps(): import("ts-essentials").DeepRequired<StaticProps & ChangeableProps> & {
9
9
  duration: number;
10
10
  shouldDestroyOnEnd: boolean;
11
- easing: import("easing-progress").EasingType;
11
+ easing: import("../../utils/math").TEasingType;
12
12
  scope: number[];
13
13
  hasNestedEasingProgress: boolean;
14
14
  };
@@ -1,11 +1,12 @@
1
- import easingProgress from 'easing-progress';
2
- export { Easing } from 'easing-progress';
1
+ import { easing as easingProgress } from 'easing-progress';
2
+ export { EaseInBack, EaseInBounce, EaseInCirc, EaseInCubic, EaseInElastic, EaseInExpo, EaseInOutBack, EaseInOutBounce, EaseInOutCirc, EaseInOutCubic, EaseInOutElastic, EaseInOutExpo, EaseInOutQuad, EaseInOutQuart, EaseInOutQuint, EaseInOutSine, EaseInQuad, EaseInQuart, EaseInQuint, EaseInSine, EaseOutBack, EaseOutBounce, EaseOutCirc, EaseOutCubic, EaseOutElastic, EaseOutExpo, EaseOutQuad, EaseOutQuart, EaseOutQuint, EaseOutSine, } from 'easing-progress';
3
+ export type { TEasingBezier, TEasingFunction, TEasingType, } from 'easing-progress';
3
4
  /**
4
5
  * Easing progress
5
6
  *
6
7
  * @example
7
8
  *
8
- * easing(0.35, Easing.easeInBounce); // => 0.167
9
+ * easing(0.35, EaseInBounce); // => 0.167
9
10
  * easing(0.35, [.25, .1, .25, 1]); // => 0.604
10
11
  * easing(0.35, (value) => Math.sin(Math.PI * 0.5 * value)); // => 0.522
11
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,cAGa,CAAC"}
1
+ {"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EACL,UAAU,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,aAAa,EACb,eAAe,EACf,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,cAGa,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const version = "3.6.0";
1
+ declare const version = "3.7.0";
2
2
  export default version;
3
3
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vevet",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Vevet - a JavaScript library of ready-made solutions and helpers",
5
5
  "scripts": {
6
6
  "storybook": "storybook dev -p 6006",
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "@anton.bobrov/p-cancelable": "^4.0.1-1",
61
61
  "detect-browser": "^5.3.0",
62
- "easing-progress": "^0.0.4",
62
+ "easing-progress": "^1.0.0",
63
63
  "get-image-pos": "^0.0.11",
64
64
  "ismobilejs": "^1.1.1",
65
65
  "lodash.mergewith": "^4.6.2",
@@ -1,4 +1,4 @@
1
- import { EasingType } from 'easing-progress';
1
+ import { TEasingType } from '@/utils/math';
2
2
 
3
3
  export namespace NApplication {
4
4
  export interface IProps {
@@ -27,7 +27,7 @@ export namespace NApplication {
27
27
  * Easing function that is used in animation as the default value
28
28
  * @default [.25, .1, .25, 1]
29
29
  */
30
- easing: EasingType;
30
+ easing: TEasingType;
31
31
  /**
32
32
  * Check if the browser supports WebP
33
33
  * @default false
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useEffect, useRef, useState } from 'react';
2
2
  import { BaseTimeline } from '..';
3
- import { Easing } from '@/utils/math';
3
+ import { EaseInOutBounce } from '@/utils/math';
4
4
 
5
5
  export const Basic: FC = () => {
6
6
  const thumbRef = useRef<HTMLDivElement>(null);
@@ -8,7 +8,7 @@ export const Basic: FC = () => {
8
8
  const [timeline, setTimeline] = useState<BaseTimeline>();
9
9
 
10
10
  useEffect(() => {
11
- const instance = new BaseTimeline({ easing: Easing.easeInOutBounce });
11
+ const instance = new BaseTimeline({ easing: EaseInOutBounce });
12
12
  setTimeline(instance);
13
13
 
14
14
  instance.addCallback('progress', ({ easing }) => {
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useEffect, useRef, useState } from 'react';
2
2
  import { BaseTimeline } from '..';
3
- import { Easing, spreadScope } from '@/utils/math';
3
+ import { EaseInOutBounce, spreadScope } from '@/utils/math';
4
4
 
5
5
  export const Nested: FC = () => {
6
6
  const containerRef = useRef<HTMLDivElement>(null);
@@ -8,7 +8,7 @@ export const Nested: FC = () => {
8
8
 
9
9
  useEffect(() => {
10
10
  const instance = new BaseTimeline({
11
- easing: Easing.easeInOutBounce,
11
+ easing: EaseInOutBounce,
12
12
  hasNestedEasingProgress: true,
13
13
  });
14
14
  setTimeline(instance);
@@ -23,7 +23,7 @@ export const Nested: FC = () => {
23
23
  children.forEach((child, index) => {
24
24
  const nestedTm = new BaseTimeline({
25
25
  nestedScope: scopes[index],
26
- easing: Easing.easeInOutBounce,
26
+ easing: EaseInOutBounce,
27
27
  });
28
28
 
29
29
  nestedTm.addCallback('progress', ({ easing }) => {
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useEffect, useRef, useState } from 'react';
2
2
  import { Timeline } from '..';
3
- import { Easing } from '@/utils/math';
3
+ import { EaseInOutBounce } from '@/utils/math';
4
4
 
5
5
  export const Basic: FC = () => {
6
6
  const thumbRef = useRef<HTMLDivElement>(null);
@@ -11,7 +11,7 @@ export const Basic: FC = () => {
11
11
  useEffect(() => {
12
12
  const instance = new Timeline({
13
13
  duration: 3500,
14
- easing: Easing.easeInOutBounce,
14
+ easing: EaseInOutBounce,
15
15
  });
16
16
 
17
17
  setTimeline(instance);
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useEffect, useRef, useState } from 'react';
2
2
  import { Timeline } from '..';
3
- import { Easing, spreadScope } from '@/utils/math';
3
+ import { EaseInOutBounce, spreadScope } from '@/utils/math';
4
4
  import { BaseTimeline } from '../../BaseTimeline';
5
5
 
6
6
  export const Nested: FC = () => {
@@ -12,7 +12,7 @@ export const Nested: FC = () => {
12
12
  useEffect(() => {
13
13
  const instance = new Timeline({
14
14
  duration: 3500,
15
- easing: Easing.easeInOutBounce,
15
+ easing: EaseInOutBounce,
16
16
  });
17
17
 
18
18
  setTimeline(instance);
@@ -33,7 +33,7 @@ export const Nested: FC = () => {
33
33
  children.forEach((child, index) => {
34
34
  const nestedTm = new BaseTimeline({
35
35
  nestedScope: scopes[index],
36
- easing: Easing.easeInOutBounce,
36
+ easing: EaseInOutBounce,
37
37
  });
38
38
 
39
39
  nestedTm.addCallback('progress', ({ easing }) => {
@@ -1,13 +1,50 @@
1
- import easingProgress from 'easing-progress';
1
+ import { easing as easingProgress } from 'easing-progress';
2
2
 
3
- export { Easing } from 'easing-progress';
3
+ export {
4
+ EaseInBack,
5
+ EaseInBounce,
6
+ EaseInCirc,
7
+ EaseInCubic,
8
+ EaseInElastic,
9
+ EaseInExpo,
10
+ EaseInOutBack,
11
+ EaseInOutBounce,
12
+ EaseInOutCirc,
13
+ EaseInOutCubic,
14
+ EaseInOutElastic,
15
+ EaseInOutExpo,
16
+ EaseInOutQuad,
17
+ EaseInOutQuart,
18
+ EaseInOutQuint,
19
+ EaseInOutSine,
20
+ EaseInQuad,
21
+ EaseInQuart,
22
+ EaseInQuint,
23
+ EaseInSine,
24
+ EaseOutBack,
25
+ EaseOutBounce,
26
+ EaseOutCirc,
27
+ EaseOutCubic,
28
+ EaseOutElastic,
29
+ EaseOutExpo,
30
+ EaseOutQuad,
31
+ EaseOutQuart,
32
+ EaseOutQuint,
33
+ EaseOutSine,
34
+ } from 'easing-progress';
35
+
36
+ export type {
37
+ TEasingBezier,
38
+ TEasingFunction,
39
+ TEasingType,
40
+ } from 'easing-progress';
4
41
 
5
42
  /**
6
43
  * Easing progress
7
44
  *
8
45
  * @example
9
46
  *
10
- * easing(0.35, Easing.easeInBounce); // => 0.167
47
+ * easing(0.35, EaseInBounce); // => 0.167
11
48
  * easing(0.35, [.25, .1, .25, 1]); // => 0.604
12
49
  * easing(0.35, (value) => Math.sin(Math.PI * 0.5 * value)); // => 0.522
13
50
  */
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
- const version = '3.6.0';
1
+ const version = '3.7.0';
2
2
  export default version;