animejs 4.3.3 → 4.3.5
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 +73 -58
- package/dist/bundles/anime.esm.min.js +2 -2
- package/dist/bundles/anime.umd.js +73 -58
- 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 +3 -1
- package/dist/modules/core/consts.d.ts +1 -0
- package/dist/modules/core/consts.js +3 -2
- package/dist/modules/core/globals.cjs +2 -2
- package/dist/modules/core/globals.js +2 -2
- package/dist/modules/core/helpers.cjs +5 -5
- package/dist/modules/core/helpers.js +6 -6
- 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 +5 -4
- package/dist/modules/events/scroll.js +5 -4
- 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 +55 -46
- package/dist/modules/layout/layout.js +55 -46
- 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 +8 -4
- package/dist/modules/timeline/timeline.js +8 -4
- 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 +2 -2
- package/dist/modules/waapi/composition.js +2 -2
- 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 - core - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -111,6 +111,7 @@ const noop = () => {};
|
|
|
111
111
|
|
|
112
112
|
// Regex
|
|
113
113
|
|
|
114
|
+
const validRgbHslRgx = /\)\s*[-.\d]/;
|
|
114
115
|
const hexTestRgx = /(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i;
|
|
115
116
|
const rgbExecRgx = /rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i;
|
|
116
117
|
const rgbaExecRgx = /rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i;
|
|
@@ -156,6 +157,7 @@ exports.transformsFragmentStrings = transformsFragmentStrings;
|
|
|
156
157
|
exports.transformsSymbol = transformsSymbol;
|
|
157
158
|
exports.tweenTypes = tweenTypes;
|
|
158
159
|
exports.unitsExecRgx = unitsExecRgx;
|
|
160
|
+
exports.validRgbHslRgx = validRgbHslRgx;
|
|
159
161
|
exports.validTransforms = validTransforms;
|
|
160
162
|
exports.valueTypes = valueTypes;
|
|
161
163
|
exports.win = win;
|
|
@@ -48,6 +48,7 @@ export const shortTransforms: Map<any, any>;
|
|
|
48
48
|
export const validTransforms: string[];
|
|
49
49
|
export const transformsFragmentStrings: {};
|
|
50
50
|
export function noop(): void;
|
|
51
|
+
export const validRgbHslRgx: RegExp;
|
|
51
52
|
export const hexTestRgx: RegExp;
|
|
52
53
|
export const rgbExecRgx: RegExp;
|
|
53
54
|
export const rgbaExecRgx: RegExp;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - core - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -109,6 +109,7 @@ const noop = () => {};
|
|
|
109
109
|
|
|
110
110
|
// Regex
|
|
111
111
|
|
|
112
|
+
const validRgbHslRgx = /\)\s*[-.\d]/;
|
|
112
113
|
const hexTestRgx = /(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i;
|
|
113
114
|
const rgbExecRgx = /rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i;
|
|
114
115
|
const rgbaExecRgx = /rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i;
|
|
@@ -123,4 +124,4 @@ const transformsExecRgx = /(\w+)(\([^)]+\)+)/g; // Match inline transforms with
|
|
|
123
124
|
const relativeValuesExecRgx = /(\*=|\+=|-=)/;
|
|
124
125
|
const cssVariableMatchRgx = /var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/;
|
|
125
126
|
|
|
126
|
-
export { K, compositionTypes, cssVarPrefix, cssVariableMatchRgx, digitWithExponentRgx, doc, emptyString, hexTestRgx, hslExecRgx, hslaExecRgx, isBrowser, isDomSymbol, isRegisteredTargetSymbol, isSvgSymbol, lowerCaseRgx, maxFps, maxValue, minValue, morphPointsSymbol, noop, proxyTargetSymbol, relativeValuesExecRgx, rgbExecRgx, rgbaExecRgx, shortTransforms, tickModes, transformsExecRgx, transformsFragmentStrings, transformsSymbol, tweenTypes, unitsExecRgx, validTransforms, valueTypes, win };
|
|
127
|
+
export { K, compositionTypes, cssVarPrefix, cssVariableMatchRgx, digitWithExponentRgx, doc, emptyString, hexTestRgx, hslExecRgx, hslaExecRgx, isBrowser, isDomSymbol, isRegisteredTargetSymbol, isSvgSymbol, lowerCaseRgx, maxFps, maxValue, minValue, morphPointsSymbol, noop, proxyTargetSymbol, relativeValuesExecRgx, rgbExecRgx, rgbaExecRgx, shortTransforms, tickModes, transformsExecRgx, transformsFragmentStrings, transformsSymbol, tweenTypes, unitsExecRgx, validRgbHslRgx, validTransforms, valueTypes, win };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - core - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -67,7 +67,7 @@ const globals = {
|
|
|
67
67
|
|
|
68
68
|
const devTools = consts.isBrowser && consts.win.AnimeJSDevTools;
|
|
69
69
|
|
|
70
|
-
const globalVersions = { version: '4.3.
|
|
70
|
+
const globalVersions = { version: '4.3.5', engine: null };
|
|
71
71
|
|
|
72
72
|
if (consts.isBrowser) {
|
|
73
73
|
if (!consts.win.AnimeJS) consts.win.AnimeJS = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - core - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -65,7 +65,7 @@ const globals = {
|
|
|
65
65
|
|
|
66
66
|
const devTools = isBrowser && win.AnimeJSDevTools;
|
|
67
67
|
|
|
68
|
-
const globalVersions = { version: '4.3.
|
|
68
|
+
const globalVersions = { version: '4.3.5', engine: null };
|
|
69
69
|
|
|
70
70
|
if (isBrowser) {
|
|
71
71
|
if (!win.AnimeJS) win.AnimeJS = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - core - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -56,11 +56,11 @@ const isSvg = a => consts.isBrowser && a instanceof SVGElement;
|
|
|
56
56
|
/**@param {any} a @return {Boolean} */
|
|
57
57
|
const isHex = a => consts.hexTestRgx.test(a);
|
|
58
58
|
/**@param {any} a @return {Boolean} */
|
|
59
|
-
const isRgb = a => stringStartsWith(a, 'rgb')
|
|
59
|
+
const isRgb = a => stringStartsWith(a, 'rgb');
|
|
60
60
|
/**@param {any} a @return {Boolean} */
|
|
61
|
-
const isHsl = a => stringStartsWith(a, 'hsl')
|
|
62
|
-
/**@param {any} a @return {Boolean} */
|
|
63
|
-
const isCol = a => isHex(a) || isRgb(a) || isHsl(a);
|
|
61
|
+
const isHsl = a => stringStartsWith(a, 'hsl');
|
|
62
|
+
/**@param {any} a @return {Boolean} */ // Make sure boxShadow syntax like 'rgb(255, 0, 0) 0px 0px 6px 0px' is not a valid color type
|
|
63
|
+
const isCol = a => isHex(a) || ((isRgb(a) || isHsl(a)) && (a[a.length - 1] === ')' || !consts.validRgbHslRgx.test(a)));
|
|
64
64
|
/**@param {any} a @return {Boolean} */
|
|
65
65
|
const isKey = a => !globals.globals.defaults.hasOwnProperty(a);
|
|
66
66
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - core - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { isBrowser, maxValue, minValue, hexTestRgx, lowerCaseRgx } from './consts.js';
|
|
8
|
+
import { isBrowser, maxValue, minValue, hexTestRgx, lowerCaseRgx, validRgbHslRgx } from './consts.js';
|
|
9
9
|
import { globals } from './globals.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -54,11 +54,11 @@ const isSvg = a => isBrowser && a instanceof SVGElement;
|
|
|
54
54
|
/**@param {any} a @return {Boolean} */
|
|
55
55
|
const isHex = a => hexTestRgx.test(a);
|
|
56
56
|
/**@param {any} a @return {Boolean} */
|
|
57
|
-
const isRgb = a => stringStartsWith(a, 'rgb')
|
|
57
|
+
const isRgb = a => stringStartsWith(a, 'rgb');
|
|
58
58
|
/**@param {any} a @return {Boolean} */
|
|
59
|
-
const isHsl = a => stringStartsWith(a, 'hsl')
|
|
60
|
-
/**@param {any} a @return {Boolean} */
|
|
61
|
-
const isCol = a => isHex(a) || isRgb(a) || isHsl(a);
|
|
59
|
+
const isHsl = a => stringStartsWith(a, 'hsl');
|
|
60
|
+
/**@param {any} a @return {Boolean} */ // Make sure boxShadow syntax like 'rgb(255, 0, 0) 0px 0px 6px 0px' is not a valid color type
|
|
61
|
+
const isCol = a => isHex(a) || ((isRgb(a) || isHsl(a)) && (a[a.length - 1] === ')' || !validRgbHslRgx.test(a)));
|
|
62
62
|
/**@param {any} a @return {Boolean} */
|
|
63
63
|
const isKey = a => !globals.defaults.hasOwnProperty(a);
|
|
64
64
|
|