animejs 4.3.0-beta.0 → 4.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/anime.esm.js +5 -5
- package/dist/bundles/anime.esm.min.js +2 -2
- package/dist/bundles/anime.umd.js +5 -5
- package/dist/bundles/anime.umd.min.js +2 -2
- package/dist/modules/animatable/animatable.cjs +1 -1
- package/dist/modules/animatable/animatable.js +1 -1
- package/dist/modules/animatable/index.cjs +1 -1
- package/dist/modules/animatable/index.js +1 -1
- package/dist/modules/animation/additive.cjs +1 -1
- package/dist/modules/animation/additive.js +1 -1
- package/dist/modules/animation/animation.cjs +1 -1
- package/dist/modules/animation/animation.js +1 -1
- package/dist/modules/animation/composition.cjs +1 -1
- package/dist/modules/animation/composition.js +1 -1
- package/dist/modules/animation/index.cjs +1 -1
- package/dist/modules/animation/index.js +1 -1
- package/dist/modules/core/clock.cjs +1 -1
- package/dist/modules/core/clock.js +1 -1
- package/dist/modules/core/colors.cjs +1 -1
- package/dist/modules/core/colors.js +1 -1
- package/dist/modules/core/consts.cjs +1 -1
- package/dist/modules/core/consts.js +1 -1
- package/dist/modules/core/globals.cjs +2 -2
- package/dist/modules/core/globals.js +2 -2
- package/dist/modules/core/helpers.cjs +1 -1
- package/dist/modules/core/helpers.js +1 -1
- package/dist/modules/core/render.cjs +1 -1
- package/dist/modules/core/render.js +1 -1
- package/dist/modules/core/styles.cjs +1 -1
- package/dist/modules/core/styles.js +1 -1
- package/dist/modules/core/targets.cjs +1 -1
- package/dist/modules/core/targets.js +1 -1
- package/dist/modules/core/transforms.cjs +1 -1
- package/dist/modules/core/transforms.js +1 -1
- package/dist/modules/core/units.cjs +1 -1
- package/dist/modules/core/units.js +1 -1
- package/dist/modules/core/values.cjs +1 -1
- package/dist/modules/core/values.js +1 -1
- package/dist/modules/draggable/draggable.cjs +1 -1
- package/dist/modules/draggable/draggable.js +1 -1
- package/dist/modules/draggable/index.cjs +1 -1
- package/dist/modules/draggable/index.js +1 -1
- package/dist/modules/easings/cubic-bezier/index.cjs +1 -1
- package/dist/modules/easings/cubic-bezier/index.js +1 -1
- package/dist/modules/easings/eases/index.cjs +1 -1
- package/dist/modules/easings/eases/index.js +1 -1
- package/dist/modules/easings/eases/parser.cjs +1 -1
- package/dist/modules/easings/eases/parser.js +1 -1
- package/dist/modules/easings/index.cjs +1 -1
- package/dist/modules/easings/index.js +1 -1
- package/dist/modules/easings/irregular/index.cjs +1 -1
- package/dist/modules/easings/irregular/index.js +1 -1
- package/dist/modules/easings/linear/index.cjs +1 -1
- package/dist/modules/easings/linear/index.js +1 -1
- package/dist/modules/easings/none.cjs +1 -1
- package/dist/modules/easings/none.js +1 -1
- package/dist/modules/easings/spring/index.cjs +1 -1
- package/dist/modules/easings/spring/index.js +1 -1
- package/dist/modules/easings/steps/index.cjs +1 -1
- package/dist/modules/easings/steps/index.js +1 -1
- package/dist/modules/engine/engine.cjs +1 -1
- package/dist/modules/engine/engine.js +1 -1
- package/dist/modules/engine/index.cjs +1 -1
- package/dist/modules/engine/index.js +1 -1
- package/dist/modules/events/index.cjs +1 -1
- package/dist/modules/events/index.js +1 -1
- package/dist/modules/events/scroll.cjs +1 -1
- package/dist/modules/events/scroll.js +1 -1
- package/dist/modules/index.cjs +1 -1
- package/dist/modules/index.js +1 -1
- package/dist/modules/layout/index.cjs +1 -1
- package/dist/modules/layout/index.js +1 -1
- package/dist/modules/layout/layout.cjs +4 -4
- package/dist/modules/layout/layout.d.ts +3 -3
- package/dist/modules/layout/layout.js +4 -4
- package/dist/modules/scope/index.cjs +1 -1
- package/dist/modules/scope/index.js +1 -1
- package/dist/modules/scope/scope.cjs +1 -1
- package/dist/modules/scope/scope.js +1 -1
- package/dist/modules/svg/drawable.cjs +1 -1
- package/dist/modules/svg/drawable.js +1 -1
- package/dist/modules/svg/helpers.cjs +1 -1
- package/dist/modules/svg/helpers.js +1 -1
- package/dist/modules/svg/index.cjs +1 -1
- package/dist/modules/svg/index.js +1 -1
- package/dist/modules/svg/morphto.cjs +1 -1
- package/dist/modules/svg/morphto.js +1 -1
- package/dist/modules/svg/motionpath.cjs +1 -1
- package/dist/modules/svg/motionpath.js +1 -1
- package/dist/modules/text/index.cjs +1 -1
- package/dist/modules/text/index.js +1 -1
- package/dist/modules/text/split.cjs +1 -1
- package/dist/modules/text/split.js +1 -1
- package/dist/modules/timeline/index.cjs +1 -1
- package/dist/modules/timeline/index.js +1 -1
- package/dist/modules/timeline/position.cjs +1 -1
- package/dist/modules/timeline/position.js +1 -1
- package/dist/modules/timeline/timeline.cjs +1 -1
- package/dist/modules/timeline/timeline.js +1 -1
- package/dist/modules/timer/index.cjs +1 -1
- package/dist/modules/timer/index.js +1 -1
- package/dist/modules/timer/timer.cjs +1 -1
- package/dist/modules/timer/timer.js +1 -1
- package/dist/modules/utils/chainable.cjs +1 -1
- package/dist/modules/utils/chainable.js +1 -1
- package/dist/modules/utils/index.cjs +1 -1
- package/dist/modules/utils/index.js +1 -1
- package/dist/modules/utils/number.cjs +1 -1
- package/dist/modules/utils/number.js +1 -1
- package/dist/modules/utils/random.cjs +1 -1
- package/dist/modules/utils/random.js +1 -1
- package/dist/modules/utils/stagger.cjs +1 -1
- package/dist/modules/utils/stagger.js +1 -1
- package/dist/modules/utils/target.cjs +1 -1
- package/dist/modules/utils/target.js +1 -1
- package/dist/modules/utils/time.cjs +1 -1
- package/dist/modules/utils/time.js +1 -1
- package/dist/modules/waapi/composition.cjs +1 -1
- package/dist/modules/waapi/composition.js +1 -1
- package/dist/modules/waapi/index.cjs +1 -1
- package/dist/modules/waapi/index.js +1 -1
- package/dist/modules/waapi/waapi.cjs +1 -1
- package/dist/modules/waapi/waapi.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - layout - CJS
|
|
3
|
-
* @version v4.3.0-beta.
|
|
3
|
+
* @version v4.3.0-beta.1
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2025 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -53,8 +53,8 @@ var globals = require('../core/globals.cjs');
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* @typedef {Object} LayoutAnimationParams
|
|
56
|
-
* @property {Number} [duration]
|
|
57
56
|
* @property {Number|FunctionValue} [delay]
|
|
57
|
+
* @property {Number|FunctionValue} [duration]
|
|
58
58
|
* @property {EasingParam} [ease]
|
|
59
59
|
* @property {LayoutStateParams} [frozen]
|
|
60
60
|
* @property {LayoutStateParams} [added]
|
|
@@ -857,12 +857,12 @@ class AutoLayout {
|
|
|
857
857
|
this.children = params.children || '*';
|
|
858
858
|
/** @type {Boolean} */
|
|
859
859
|
this.absoluteCoords = false;
|
|
860
|
-
/** @type {Number} */
|
|
860
|
+
/** @type {Number|FunctionValue} */
|
|
861
861
|
this.duration = values.setValue(params.duration, 500);
|
|
862
862
|
/** @type {Number|FunctionValue} */
|
|
863
863
|
this.delay = values.setValue(params.delay, 0);
|
|
864
864
|
/** @type {EasingParam} */
|
|
865
|
-
this.ease = values.setValue(params.ease, '
|
|
865
|
+
this.ease = values.setValue(params.ease, 'inOut(3.5)');
|
|
866
866
|
/** @type {Callback<this>} */
|
|
867
867
|
this.onComplete = values.setValue(params.onComplete, /** @type {Callback<this>} */(consts.noop));
|
|
868
868
|
/** @type {LayoutStateParams} */
|
|
@@ -14,8 +14,8 @@ export class AutoLayout {
|
|
|
14
14
|
children: LayoutChildrenParam;
|
|
15
15
|
/** @type {Boolean} */
|
|
16
16
|
absoluteCoords: boolean;
|
|
17
|
-
/** @type {Number} */
|
|
18
|
-
duration: number;
|
|
17
|
+
/** @type {Number|FunctionValue} */
|
|
18
|
+
duration: number | FunctionValue;
|
|
19
19
|
/** @type {Number|FunctionValue} */
|
|
20
20
|
delay: number | FunctionValue;
|
|
21
21
|
/** @type {EasingParam} */
|
|
@@ -74,8 +74,8 @@ export function createLayout(root: DOMTargetSelector, params?: AutoLayoutParams)
|
|
|
74
74
|
export type LayoutChildrenParam = DOMTargetSelector | Array<DOMTargetSelector>;
|
|
75
75
|
export type LayoutStateParams = Record<string, number | string>;
|
|
76
76
|
export type LayoutAnimationParams = {
|
|
77
|
-
duration?: number;
|
|
78
77
|
delay?: number | FunctionValue;
|
|
78
|
+
duration?: number | FunctionValue;
|
|
79
79
|
ease?: EasingParam;
|
|
80
80
|
frozen?: LayoutStateParams;
|
|
81
81
|
added?: LayoutStateParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - layout - ESM
|
|
3
|
-
* @version v4.3.0-beta.
|
|
3
|
+
* @version v4.3.0-beta.1
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2025 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -51,8 +51,8 @@ import { scope } from '../core/globals.js';
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* @typedef {Object} LayoutAnimationParams
|
|
54
|
-
* @property {Number} [duration]
|
|
55
54
|
* @property {Number|FunctionValue} [delay]
|
|
55
|
+
* @property {Number|FunctionValue} [duration]
|
|
56
56
|
* @property {EasingParam} [ease]
|
|
57
57
|
* @property {LayoutStateParams} [frozen]
|
|
58
58
|
* @property {LayoutStateParams} [added]
|
|
@@ -855,12 +855,12 @@ class AutoLayout {
|
|
|
855
855
|
this.children = params.children || '*';
|
|
856
856
|
/** @type {Boolean} */
|
|
857
857
|
this.absoluteCoords = false;
|
|
858
|
-
/** @type {Number} */
|
|
858
|
+
/** @type {Number|FunctionValue} */
|
|
859
859
|
this.duration = setValue(params.duration, 500);
|
|
860
860
|
/** @type {Number|FunctionValue} */
|
|
861
861
|
this.delay = setValue(params.delay, 0);
|
|
862
862
|
/** @type {EasingParam} */
|
|
863
|
-
this.ease = setValue(params.ease, '
|
|
863
|
+
this.ease = setValue(params.ease, 'inOut(3.5)');
|
|
864
864
|
/** @type {Callback<this>} */
|
|
865
865
|
this.onComplete = setValue(params.onComplete, /** @type {Callback<this>} */(noop));
|
|
866
866
|
/** @type {LayoutStateParams} */
|