laymur-animations 0.25.0 → 0.26.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/README.md +6 -0
- package/dist/UIAnimatedElement.d.ts +10 -3
- package/dist/UIAnimatedElement.js +1 -0
- package/dist/UIAppearAnimator.d.ts +7 -3
- package/dist/UIAppearAnimator.js +71 -0
- package/dist/UIClickAnimator.d.ts +11 -4
- package/dist/UIClickAnimator.js +83 -0
- package/dist/UIDisappearAnimator.d.ts +11 -3
- package/dist/UIDisappearAnimator.js +53 -0
- package/dist/UIFlashAnimator.d.ts +39 -0
- package/dist/UIFlashAnimator.js +43 -0
- package/dist/UIFloatCallAnimator.d.ts +45 -0
- package/dist/UIFloatCallAnimator.js +67 -0
- package/dist/UIFlyToAnimator.d.ts +57 -0
- package/dist/UIFlyToAnimator.js +60 -0
- package/dist/UIJumpCallAnimator.d.ts +10 -6
- package/dist/UIJumpCallAnimator.js +97 -0
- package/dist/UIPulseCallAnimator.d.ts +11 -6
- package/dist/UIPulseCallAnimator.js +67 -0
- package/dist/UIShakeAnimator.d.ts +31 -0
- package/dist/UIShakeAnimator.js +49 -0
- package/dist/UIShineCallAnimator.d.ts +49 -0
- package/dist/UIShineCallAnimator.js +74 -0
- package/dist/UISpinCallAnimator.d.ts +8 -5
- package/dist/UISpinCallAnimator.js +74 -0
- package/dist/UISwipeCallAnimator.d.ts +9 -6
- package/dist/UISwipeCallAnimator.js +64 -0
- package/dist/UITapCallAnimator.d.ts +64 -0
- package/dist/UITapCallAnimator.js +83 -0
- package/dist/index.d.ts +27 -7
- package/dist/index.js +13 -509
- package/dist/miscellaneous.d.ts +71 -0
- package/dist/miscellaneous.js +163 -0
- package/package.json +25 -39
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import gsap from "gsap";
|
|
2
|
+
import { UIMode } from "laymur";
|
|
3
|
+
/** Anchors are set, never tweened: changing them mid-animation would shift the element */
|
|
4
|
+
const ANCHOR_PROPERTIES = ["anchorX", "anchorY"];
|
|
5
|
+
/** Appearance or disappearance running on an element */
|
|
6
|
+
const visibilityAnimations = new WeakMap();
|
|
7
|
+
/** Modes of elements hidden by the disappear animator, given back by the appear animator */
|
|
8
|
+
const hiddenModes = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Normalizes a single target or an array of targets to an array.
|
|
11
|
+
*/
|
|
12
|
+
export function resolveTargets(target) {
|
|
13
|
+
return Array.isArray(target) ? target : [target];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Converts an iteration count to the gsap repeat count, which does not count the first run.
|
|
17
|
+
* @param iterations Number of runs; -1 or NaN for infinite, at least one run otherwise
|
|
18
|
+
*/
|
|
19
|
+
export function iterationsToRepeat(iterations) {
|
|
20
|
+
return Number.isNaN(iterations) || iterations < 0 ? -1 : Math.max(iterations - 1, 0);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolves when the animation completes, with true, or is killed before that, with false.
|
|
24
|
+
* Takes over the onComplete and onInterrupt callbacks of the animation.
|
|
25
|
+
*/
|
|
26
|
+
export function settle(animation) {
|
|
27
|
+
return new Promise((resolve) => {
|
|
28
|
+
animation.eventCallback("onComplete", () => resolve(true));
|
|
29
|
+
animation.eventCallback("onInterrupt", () => resolve(false));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Kills the appearance or disappearance running on the element; its promise resolves.
|
|
34
|
+
*/
|
|
35
|
+
export function stopVisibility(element) {
|
|
36
|
+
visibilityAnimations.get(element)?.kill();
|
|
37
|
+
visibilityAnimations.delete(element);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Remembers the appearance or disappearance of the element, so the next one can replace it.
|
|
41
|
+
*/
|
|
42
|
+
export function trackVisibility(element, animation) {
|
|
43
|
+
visibilityAnimations.set(element, animation);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Whether the animation is still the appearance or disappearance of the element.
|
|
47
|
+
*/
|
|
48
|
+
export function isVisibilityTracked(element, animation) {
|
|
49
|
+
return visibilityAnimations.get(element) === animation;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Hides the element, remembering its mode for {@link restoreMode}. Does nothing for an
|
|
53
|
+
* element without a mode.
|
|
54
|
+
*/
|
|
55
|
+
export function hideElement(element) {
|
|
56
|
+
if (element.mode !== undefined && element.mode !== UIMode.HIDDEN) {
|
|
57
|
+
hiddenModes.set(element, element.mode);
|
|
58
|
+
element.mode = UIMode.HIDDEN;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Gives an element hidden by {@link hideElement} its mode back.
|
|
63
|
+
*/
|
|
64
|
+
export function restoreMode(element) {
|
|
65
|
+
const mode = hiddenModes.get(element);
|
|
66
|
+
if (mode !== undefined) {
|
|
67
|
+
hiddenModes.delete(element);
|
|
68
|
+
element.mode = mode;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Keeps track of one kind of call animation per micro.
|
|
73
|
+
*
|
|
74
|
+
* The rest values of the properties the animator owns are taken when the element is idle and
|
|
75
|
+
* kept while calls replace each other, so restarting a call mid-animation does not shift the
|
|
76
|
+
* element. Stopping brings the element back to rest; anchors are restored once it is there.
|
|
77
|
+
*/
|
|
78
|
+
export class UICallTracker {
|
|
79
|
+
constructor(properties) {
|
|
80
|
+
this.properties = properties;
|
|
81
|
+
this.entries = new WeakMap();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Starts a call, replacing the call or the return to rest running on the micro.
|
|
85
|
+
* @param micro Micro transform to animate
|
|
86
|
+
* @param build Builds the call timeline from the rest values
|
|
87
|
+
* @param onEnd Called once when the call completes, is stopped or is replaced
|
|
88
|
+
*/
|
|
89
|
+
start(micro, build, onEnd) {
|
|
90
|
+
const previous = this.entries.get(micro);
|
|
91
|
+
const rest = previous?.rest ?? this.takeRest(micro);
|
|
92
|
+
if (previous) {
|
|
93
|
+
this.kill(previous);
|
|
94
|
+
this.end(previous);
|
|
95
|
+
}
|
|
96
|
+
const entry = { rest, animation: undefined, onEnd };
|
|
97
|
+
this.entries.set(micro, entry);
|
|
98
|
+
this.track(micro, entry, build(rest));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Stops the call running on the micro and brings it back to rest.
|
|
102
|
+
* @param overrides Values to come back to instead of the rest values
|
|
103
|
+
*/
|
|
104
|
+
stop(micro, duration, ease, overrides = {}) {
|
|
105
|
+
const entry = this.entries.get(micro);
|
|
106
|
+
if (!entry) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.kill(entry);
|
|
110
|
+
const target = {};
|
|
111
|
+
for (const property of this.properties) {
|
|
112
|
+
if (!ANCHOR_PROPERTIES.includes(property)) {
|
|
113
|
+
target[property] = overrides[property] ?? entry.rest[property];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
this.track(micro, entry, gsap.to(micro, { ...target, duration, ease }));
|
|
117
|
+
this.end(entry);
|
|
118
|
+
}
|
|
119
|
+
track(micro, entry, animation) {
|
|
120
|
+
entry.animation = animation;
|
|
121
|
+
animation.eventCallback("onComplete", () => this.finish(micro, entry));
|
|
122
|
+
// Killed from outside, such as by gsap.killTweensOf: the element stays where it was
|
|
123
|
+
animation.eventCallback("onInterrupt", () => {
|
|
124
|
+
if (this.entries.get(micro) === entry) {
|
|
125
|
+
this.entries.delete(micro);
|
|
126
|
+
}
|
|
127
|
+
this.end(entry);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/** Kills the animation of the entry without it counting as an interruption */
|
|
131
|
+
kill(entry) {
|
|
132
|
+
entry.animation?.eventCallback("onInterrupt", null);
|
|
133
|
+
entry.animation?.kill();
|
|
134
|
+
}
|
|
135
|
+
takeRest(micro) {
|
|
136
|
+
return {
|
|
137
|
+
x: micro.x,
|
|
138
|
+
y: micro.y,
|
|
139
|
+
scaleX: micro.scaleX,
|
|
140
|
+
scaleY: micro.scaleY,
|
|
141
|
+
rotation: micro.rotation,
|
|
142
|
+
anchorX: micro.anchorX,
|
|
143
|
+
anchorY: micro.anchorY,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
finish(micro, entry) {
|
|
147
|
+
if (this.entries.get(micro) !== entry) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
this.entries.delete(micro);
|
|
151
|
+
for (const property of ANCHOR_PROPERTIES) {
|
|
152
|
+
if (this.properties.includes(property)) {
|
|
153
|
+
micro[property] = entry.rest[property];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
this.end(entry);
|
|
157
|
+
}
|
|
158
|
+
end(entry) {
|
|
159
|
+
const onEnd = entry.onEnd;
|
|
160
|
+
entry.onEnd = undefined;
|
|
161
|
+
onEnd?.();
|
|
162
|
+
}
|
|
163
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laymur-animations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Common animations for the Laymur UI library",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"laymur",
|
|
7
|
+
"ui",
|
|
8
|
+
"animations",
|
|
9
|
+
"three.js",
|
|
10
|
+
"gsap"
|
|
11
|
+
],
|
|
12
|
+
"author": "jango",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/jango-git/laymur-animations.git"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
5
20
|
"scripts": {
|
|
6
21
|
"clean": "rm -rf dist",
|
|
7
|
-
"build": "npm run clean &&
|
|
8
|
-
"
|
|
9
|
-
"prepublishOnly": "npm run build:prod"
|
|
22
|
+
"build": "npm run clean && tsc -p tsconfig.json",
|
|
23
|
+
"prepublishOnly": "npm run build"
|
|
10
24
|
},
|
|
11
25
|
"main": "./dist/index.js",
|
|
12
26
|
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
13
28
|
"files": [
|
|
14
29
|
"dist",
|
|
15
30
|
"README.md",
|
|
@@ -17,49 +32,20 @@
|
|
|
17
32
|
],
|
|
18
33
|
"exports": {
|
|
19
34
|
".": {
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"development": "./dist/index.js",
|
|
23
|
-
"production": "./dist/index.min.js",
|
|
24
|
-
"default": "./dist/index.min.js"
|
|
25
|
-
},
|
|
26
|
-
"require": {
|
|
27
|
-
"types": "./dist/index.d.ts",
|
|
28
|
-
"default": "./dist/index.min.js"
|
|
29
|
-
}
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js"
|
|
30
37
|
},
|
|
31
38
|
"./package.json": "./package.json"
|
|
32
39
|
},
|
|
33
|
-
"sideEffects": false,
|
|
34
|
-
"keywords": [
|
|
35
|
-
"laymur",
|
|
36
|
-
"ui",
|
|
37
|
-
"animations",
|
|
38
|
-
"three.js",
|
|
39
|
-
"gsap"
|
|
40
|
-
],
|
|
41
|
-
"author": "jango",
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"repository": {
|
|
44
|
-
"type": "git",
|
|
45
|
-
"url": "https://github.com/jango-git/laymur-animations.git"
|
|
46
|
-
},
|
|
47
|
-
"type": "module",
|
|
48
40
|
"peerDependencies": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
41
|
+
"gsap": ">=3.13.0 <4.0.0",
|
|
42
|
+
"laymur": ">=0.26.0 <0.27.0"
|
|
51
43
|
},
|
|
52
44
|
"devDependencies": {
|
|
53
|
-
"@
|
|
54
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
55
|
-
"@types/three": "^0.175.0",
|
|
45
|
+
"@types/three": "^0.157.0",
|
|
56
46
|
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
|
57
47
|
"@typescript-eslint/parser": "^8.32.0",
|
|
58
48
|
"eslint": "^9.26.0",
|
|
59
|
-
"rollup": "^4.40.2",
|
|
60
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
61
|
-
"ts-transformer-minify-privates": "^1.0.0",
|
|
62
49
|
"typescript": "^5.8.3"
|
|
63
|
-
}
|
|
64
|
-
"dependencies": {}
|
|
50
|
+
}
|
|
65
51
|
}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/UIAppearAnimator.ts","../src/UIClickAnimator.ts","../src/UIDisappearAnimator.ts","../src/UIJumpCallAnimator.ts","../src/UIPulseCallAnimator.ts","../src/UISpinCallAnimator.ts","../src/UISwipeCallAnimator.ts"],"sourcesContent":["import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst DEFAULT_X_FROM = 0;\nconst DEFAULT_X_TO = 0;\nconst DEFAULT_Y_FROM = 0;\nconst DEFAULT_Y_TO = 0;\nconst DEFAULT_SCALE_FROM = 0.5;\nconst DEFAULT_SCALE_TO = 1;\nconst DEFAULT_ALPHA_FROM = 0;\nconst DEFAULT_ALPHA_TO = 1;\nconst DEFAULT_DELAY = 0;\nconst DEFAULT_DURATION = 0.25;\nconst DEFAULT_EASE = \"back.out(1.7)\";\n\n/**\n * Configuration options for appearance animations.\n */\nexport interface UIAppearAnimatorOptions {\n /** Starting X position */\n xFrom: number;\n /** Target X position */\n xTo: number;\n /** Starting Y position */\n yFrom: number;\n /** Target Y position */\n yTo: number;\n\n /** Starting scale value */\n scaleFrom: number;\n /** Target scale value */\n scaleTo: number;\n /** Starting alpha value */\n alphaFrom: number;\n /** Target alpha value */\n alphaTo: number;\n\n /** Animation delay in seconds */\n delay: number;\n /** Animation duration in seconds */\n duration: number;\n /** GSAP easing function */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for element appearance effects.\n */\nexport class UIAppearAnimator {\n /**\n * Animates elements appearing with position, scale, and alpha transitions.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n * @returns Promise that resolves when animation completes\n */\n public static appear(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIAppearAnimatorOptions> = {},\n ): Promise<void> {\n const {\n xFrom = DEFAULT_X_FROM,\n xTo = DEFAULT_X_TO,\n yFrom = DEFAULT_Y_FROM,\n yTo = DEFAULT_Y_TO,\n scaleFrom = DEFAULT_SCALE_FROM,\n scaleTo = DEFAULT_SCALE_TO,\n alphaFrom = DEFAULT_ALPHA_FROM,\n alphaTo = DEFAULT_ALPHA_TO,\n delay = DEFAULT_DELAY,\n duration = DEFAULT_DURATION,\n ease = DEFAULT_EASE,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n const colorTarget: Record<string, unknown> = {\n duration,\n ease: \"power1.inOut\",\n };\n const microTarget: Record<string, unknown> = { duration, ease };\n\n if (xFrom !== xTo) {\n microTarget.x = xTo;\n for (const element of elements) {\n element.micro.x = xFrom;\n }\n }\n if (yFrom !== yTo) {\n microTarget.y = yTo;\n for (const element of elements) {\n element.micro.y = yFrom;\n }\n }\n if (scaleFrom !== scaleTo) {\n microTarget.scaleX = scaleTo;\n microTarget.scaleY = scaleTo;\n for (const element of elements) {\n element.micro.scaleX = scaleFrom;\n element.micro.scaleY = scaleFrom;\n }\n }\n if (alphaFrom !== alphaTo) {\n colorTarget.a = alphaTo;\n for (const element of elements) {\n element.color.a = alphaFrom;\n }\n }\n\n return new Promise((onComplete) => {\n const timeline = gsap.timeline({ delay, onComplete });\n\n for (const element of elements) {\n timeline.to(element.micro, microTarget, 0).to(element.color, colorTarget, 0);\n }\n });\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst DEFAULT_X_OFFSET = 0;\nconst DEFAULT_Y_OFFSET = -25;\nconst DEFAULT_X_SCALE = 0.85;\nconst DEFAULT_Y_SCALE = 1;\nconst DEFAULT_DELAY = 0;\nconst DEFAULT_DURATION_IN = 0.125;\nconst DEFAULT_DURATION_OUT = 0.25;\nconst DEFAULT_EASE_IN = \"power1.out\";\nconst DEFAULT_EASE_OUT = \"back.out\";\n\n/**\n * Configuration options for click animations.\n */\nexport interface UIClickAnimatorOptions {\n /** X position offset during click */\n xOffset: number;\n /** Y position offset during click */\n yOffset: number;\n /** X scale factor during click */\n xScale: number;\n /** Y scale factor during click */\n yScale: number;\n /** Animation delay in seconds */\n delay: number;\n /** Duration of click in phase in seconds */\n durationIn: number;\n /** Duration of click out phase in seconds */\n durationOut: number;\n /** GSAP easing function for click in */\n easeIn: gsap.EaseString;\n /** GSAP easing function for click out */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Animator for click feedback effects.\n */\nexport class UIClickAnimator {\n /**\n * Animates elements with click feedback including position offset and scale effects.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n * @returns Promise that resolves when animation completes\n */\n public static click(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIClickAnimatorOptions> = {},\n ): Promise<void> {\n const {\n xOffset = DEFAULT_X_OFFSET,\n yOffset = DEFAULT_Y_OFFSET,\n xScale = DEFAULT_X_SCALE,\n yScale = DEFAULT_Y_SCALE,\n delay = DEFAULT_DELAY,\n durationIn = DEFAULT_DURATION_IN,\n durationOut = DEFAULT_DURATION_OUT,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n return new Promise((onComplete) => {\n const timeline = gsap.timeline({ onComplete });\n\n const inMicroTarget: Record<string, unknown> = {\n delay,\n duration: durationIn,\n ease: easeIn,\n };\n\n const outMicroTarget: Record<string, unknown> = {\n duration: durationOut,\n ease: easeOut,\n };\n\n if (xOffset !== 0) {\n inMicroTarget.x = xOffset;\n outMicroTarget.x = 0;\n }\n\n if (yOffset !== 0) {\n inMicroTarget.y = yOffset;\n outMicroTarget.y = 0;\n }\n\n if (xScale !== 1) {\n inMicroTarget.scaleX = xScale;\n outMicroTarget.scaleX = 1;\n }\n\n if (yScale !== 1) {\n inMicroTarget.scaleY = yScale;\n outMicroTarget.scaleY = 1;\n }\n\n for (const element of elements) {\n timeline.to(element.micro, inMicroTarget, 0).to(element.micro, outMicroTarget);\n }\n });\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst DEFAULT_DELAY = 0;\nconst DEFAULT_DURATION = 0.25;\nconst DEFAULT_EASE = \"back.in(1.7)\";\nconst DEFAULT_ALPHA_TO = 0;\n\n/**\n * Configuration options for disappearance animations.\n */\nexport interface UIDisappearAnimatorOptions {\n /** Target X position */\n xTo: number;\n /** Target Y position */\n yTo: number;\n\n /** Target scale value */\n scaleTo: number;\n /** Target alpha value */\n alphaTo: number;\n\n /** Animation delay in seconds */\n delay: number;\n /** Animation duration in seconds */\n duration: number;\n /** GSAP easing function */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for element disappearance effects.\n */\nexport class UIDisappearAnimator {\n /**\n * Animates elements disappearing with position, scale, and alpha transitions.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n * @returns Promise that resolves when animation completes\n */\n public static disappear(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIDisappearAnimatorOptions> = {},\n ): Promise<void> {\n const {\n delay = DEFAULT_DELAY,\n duration = DEFAULT_DURATION,\n ease = DEFAULT_EASE,\n alphaTo = DEFAULT_ALPHA_TO,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n const microTarget: Record<string, unknown> = { duration, ease };\n const colorTarget: Record<string, unknown> = {\n duration,\n ease: \"power1.inOut\",\n a: alphaTo,\n };\n\n if (options.xTo !== undefined) {\n microTarget.x = options.xTo;\n }\n if (options.yTo !== undefined) {\n microTarget.y = options.yTo;\n }\n if (options.scaleTo !== undefined) {\n microTarget.scaleX = options.scaleTo;\n microTarget.scaleY = options.scaleTo;\n }\n\n return new Promise((onComplete) => {\n const timeline = gsap.timeline({ delay, onComplete });\n\n for (const element of elements) {\n timeline.to(element.micro, microTarget, 0).to(element.color, colorTarget, 0);\n }\n });\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst jumpCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_JUMP_HEIGHT = 35;\nconst DEFAULT_SCALE_IN = 1.15;\nconst DEFAULT_SCALE_OUT = 1.15;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 3;\nconst DEFAULT_START_WITH_COOLDOWN = true;\nconst DEFAULT_DURATION_IN = 0.5;\nconst DEFAULT_DURATION_OUT = 0.5;\nconst DEFAULT_EASE_IN = \"power1.out\";\nconst DEFAULT_EASE_OUT = \"power1.in\";\n\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for jump call animations.\n */\nexport interface UIJumpCallAnimatorCallOptions {\n /** Height of the jump in pixels */\n jumpHeight: number;\n /** Scale factor during jump start */\n scaleIn: number;\n /** Scale factor during jump end */\n scaleOut: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Duration of jump in phase in seconds */\n durationIn: number;\n /** Duration of jump out phase in seconds */\n durationOut: number;\n /** GSAP easing function for jump in */\n easeIn: gsap.EaseString;\n /** GSAP easing function for jump out */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping jump animations.\n */\nexport interface UIJumpCallAnimatorStopOptions {\n /** Duration to return to rest position in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for jump call attention effects.\n */\nexport class UIJumpCallAnimator {\n /**\n * Starts a jumping animation with scale and position effects.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static jump(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIJumpCallAnimatorCallOptions> = {},\n ): void {\n const {\n jumpHeight = DEFAULT_JUMP_HEIGHT,\n scaleIn = DEFAULT_SCALE_IN,\n scaleOut = DEFAULT_SCALE_OUT,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n durationIn = DEFAULT_DURATION_IN,\n durationOut = DEFAULT_DURATION_OUT,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n jumpCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n element.micro.anchorY = 0;\n\n timeline\n .to(element.micro, {\n scaleX: scaleIn,\n scaleY: 1 / scaleIn,\n duration: durationIn * 0.5,\n ease: \"power1.inOut\",\n })\n .to(element.micro, {\n scaleX: 1 / scaleIn,\n scaleY: scaleIn,\n duration: durationIn * 0.25,\n ease: \"power1.inOut\",\n })\n .to(element.micro, {\n scaleX: 1,\n scaleY: 1,\n duration: durationIn * 0.25,\n ease: \"power1.inOut\",\n })\n .to(\n element.micro,\n {\n y: jumpHeight,\n duration: durationIn * 0.375,\n ease: easeIn,\n },\n durationIn * 0.625 + (startWithCooldown && cooldown > 0 ? cooldown : 0),\n )\n .to(element.micro, {\n y: 0,\n duration: durationOut * 0.375,\n ease: easeOut,\n })\n .to(element.micro, {\n scaleX: scaleOut,\n scaleY: 1 / scaleOut,\n duration: durationOut * 0.225,\n ease: \"power1.out\",\n })\n .to(element.micro, {\n scaleX: 1,\n scaleY: 1,\n duration: durationOut * 0.4,\n ease: \"power1.inOut\",\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n jumpCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the jumping animation and returns elements to rest position.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopJump(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIJumpCallAnimatorStopOptions> = {},\n ): void {\n const { duration = DEFAULT_STOP_DURATION, ease = DEFAULT_STOP_EASE } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = jumpCallTweens.get(element);\n\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n jumpCallTweens.delete(element);\n\n gsap.to(element.micro, {\n y: 0,\n duration,\n ease,\n });\n }\n }\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst pulseCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_SCALE = 1.1;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 3;\nconst DEFAULT_START_WITH_COOLDOWN = true;\nconst DEFAULT_DURATION_IN = 0.25;\nconst DEFAULT_DURATION_OUT = 0.5;\nconst DEFAULT_EASE_IN = \"power1.inOut\";\nconst DEFAULT_EASE_OUT = \"power1.inOut\";\n\nconst DEFAULT_STOP_SCALE = 1;\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for pulse call animations.\n */\nexport interface UIPulseCallAnimatorOptions {\n /** Scale factor for pulse effect */\n scale: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Duration of scale in phase in seconds */\n durationIn: number;\n /** Duration of scale out phase in seconds */\n durationOut: number;\n /** GSAP easing function for scale in */\n easeIn: gsap.EaseString;\n /** GSAP easing function for scale out */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping pulse animations.\n */\nexport interface UIPulseCallAnimatorStopOptions {\n /** Target scale value when stopping */\n scale: number;\n /** Duration to return to rest scale in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for pulse attention effects.\n */\nexport class UIPulseCallAnimator {\n /**\n * Starts a pulsing animation with scale effects.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static pulse(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIPulseCallAnimatorOptions> = {},\n ): void {\n const {\n scale = DEFAULT_SCALE,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n durationIn = DEFAULT_DURATION_IN,\n durationOut = DEFAULT_DURATION_OUT,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n pulseCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n timeline\n .to(element.micro, {\n scaleX: scale,\n scaleY: scale,\n duration: durationIn,\n ease: easeIn,\n })\n .to(element.micro, {\n scaleX: element.micro.scaleX,\n scaleY: element.micro.scaleY,\n duration: durationOut,\n ease: easeOut,\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n pulseCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the pulsing animation and returns elements to rest scale.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopPulse(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIPulseCallAnimatorStopOptions> = {},\n ): void {\n const {\n scale = DEFAULT_STOP_SCALE,\n duration = DEFAULT_STOP_DURATION,\n ease = DEFAULT_STOP_EASE,\n } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = pulseCallTweens.get(element);\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n pulseCallTweens.delete(element);\n\n gsap.to(element.micro, {\n scaleX: scale,\n scaleY: scale,\n duration,\n ease,\n });\n }\n }\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst spinCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_ROTATION = 0.0435;\nconst DEFAULT_ANCHOR_X = 0.5;\nconst DEFAULT_ANCHOR_Y = 0.5;\nconst DEFAULT_SPIN_COUNT = 3;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 3;\nconst DEFAULT_START_WITH_COOLDOWN = true;\nconst DEFAULT_DURATION = 1;\nconst DEFAULT_EASE = \"power1.inOut\";\n\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for spin call animations.\n */\nexport interface UISpinCallAnimatorCallOptions {\n /** Rotation angle in radians */\n rotation: number;\n /** Anchor point X coordinate (0-1) */\n anchorX: number;\n /** Anchor point Y coordinate (0-1) */\n anchorY: number;\n /** Number of spin oscillations */\n spinCount: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Total animation duration in seconds */\n duration: number;\n /** GSAP easing function */\n ease: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping spin animations.\n */\nexport interface UISpinCallAnimatorStopOptions {\n /** Duration to return to rest rotation in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for spin call attention effects.\n */\nexport class UISpinCallAnimator {\n /**\n * Starts a spinning animation with rotation oscillations.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static spin(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISpinCallAnimatorCallOptions> = {},\n ): void {\n const {\n rotation = DEFAULT_ROTATION,\n anchorX = DEFAULT_ANCHOR_X,\n anchorY = DEFAULT_ANCHOR_Y,\n spinCount = DEFAULT_SPIN_COUNT,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n duration = DEFAULT_DURATION,\n ease = DEFAULT_EASE,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n element.micro.anchorX = anchorX;\n element.micro.anchorY = anchorY;\n\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n spinCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n const spinDuration = duration / (spinCount + 2);\n\n timeline.to(element.micro, {\n rotation,\n duration: spinDuration,\n ease,\n });\n\n let currentRotation = rotation;\n for (let i = 0; i < spinCount; i++) {\n timeline.to(element.micro, {\n rotation: (currentRotation *= -1),\n duration: spinDuration,\n ease,\n });\n }\n\n timeline.to(element.micro, {\n rotation: 0,\n duration: spinDuration,\n ease,\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n spinCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the spinning animation and returns elements to rest rotation.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopSpin(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISpinCallAnimatorStopOptions> = {},\n ): void {\n const { duration = DEFAULT_STOP_DURATION, ease = DEFAULT_STOP_EASE } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = spinCallTweens.get(element);\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n spinCallTweens.delete(element);\n\n gsap.to(element.micro, {\n rotation: 0,\n duration,\n ease,\n });\n }\n }\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst swipeCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_DX = 25;\nconst DEFAULT_DY = 0;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 0;\nconst DEFAULT_START_WITH_COOLDOWN = false;\nconst DEFAULT_DURATION = 0.4;\nconst DEFAULT_EASE_IN = \"power1.inOut\";\nconst DEFAULT_EASE_OUT = \"power1.inOut\";\n\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for swipe call animations.\n */\nexport interface UISwipeCallAnimatorCallOptions {\n /** Horizontal displacement of the swipe vector in pixels */\n dx: number;\n /** Vertical displacement of the swipe vector in pixels */\n dy: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Duration of one direction of the swipe in seconds */\n duration: number;\n /** GSAP easing function for the forward swipe */\n easeIn: gsap.EaseString;\n /** GSAP easing function for the return swipe */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping swipe animations.\n */\nexport interface UISwipeCallAnimatorStopOptions {\n /** Duration to return to rest position in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for swipe call attention effects with pingpong movement along an arbitrary vector.\n */\nexport class UISwipeCallAnimator {\n /**\n * Starts an infinite pingpong swipe animation along the vector (dx, dy).\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static swipe(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISwipeCallAnimatorCallOptions> = {},\n ): void {\n const {\n dx = DEFAULT_DX,\n dy = DEFAULT_DY,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n duration = DEFAULT_DURATION,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n swipeCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n timeline\n .to(element.micro, {\n x: element.micro.x + dx,\n y: element.micro.y + dy,\n duration,\n ease: easeIn,\n })\n .to(element.micro, {\n x: element.micro.x,\n y: element.micro.y,\n duration,\n ease: easeOut,\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n swipeCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the swipe animation and returns elements to rest position.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopSwipe(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISwipeCallAnimatorStopOptions> = {},\n ): void {\n const { duration = DEFAULT_STOP_DURATION, ease = DEFAULT_STOP_EASE } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = swipeCallTweens.get(element);\n\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n swipeCallTweens.delete(element);\n\n gsap.to(element.micro, {\n x: 0,\n y: 0,\n duration,\n ease,\n });\n }\n }\n }\n}\n"],"names":["DEFAULT_ALPHA_TO","DEFAULT_DELAY","DEFAULT_DURATION","DEFAULT_EASE","DEFAULT_DURATION_IN","DEFAULT_DURATION_OUT","DEFAULT_EASE_IN","DEFAULT_EASE_OUT","DEFAULT_ITERATIONS","DEFAULT_COOLDOWN","DEFAULT_START_WITH_COOLDOWN","DEF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C;QACxC;IACF;AAEA;;;;AAIG;AACI,IAAA,OAAO,SAAS,CACrB,MAA+C,EAC/C,UAAmD,EAAE,EAAA;QAErD,MAAM,EAAE,QAAQ,GAAG,qBAAqB,EAAE,IAAI,GAAG,iBAAiB,EAAE,GAAG,OAAO;AAC9E,QAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;AAE1D,QAAA,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC9B,MAAM,KAAK,GAAG,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC;YAE1C,IAAI,KAAK,YAAY,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACvC,KAAK,CAAC,IAAI,EAAE;AACZ,gBAAA,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC;AAE/B,gBAAA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE;AACrB,oBAAA,CAAC,EAAE,CAAC;AACJ,oBAAA,CAAC,EAAE,CAAC;oBACJ,QAAQ;oBACR,IAAI;AACL,iBAAA,CAAC;YACJ;QACF;IACF;AACD;;;;"}
|
package/dist/index.min.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import o from"gsap";const t=0,a=0,e=0,n=0,s=.5,r=1,i=0,c=1,u=0,d=.25,l="back.out(1.7)";class p{static appear(p,f={}){const{xFrom:w=t,xTo:y=a,yFrom:O=e,yTo:m=n,scaleFrom:C=s,scaleTo:A=r,alphaFrom:h=i,alphaTo:x=c,delay:X=u,duration:Y=d,ease:k=l}=f,I=Array.isArray(p)?p:[p],W={duration:Y,ease:"power1.inOut"},b={duration:Y,ease:k};if(w!==y){b.x=y;for(const o of I)o.micro.x=w}if(O!==m){b.y=m;for(const o of I)o.micro.y=O}if(C!==A){b.scaleX=A,b.scaleY=A;for(const o of I)o.micro.scaleX=C,o.micro.scaleY=C}if(h!==x){W.a=x;for(const o of I)o.color.a=h}return new Promise(t=>{const a=o.timeline({delay:X,onComplete:t});for(const o of I)a.to(o.micro,b,0).to(o.color,W,0)})}}const f=0,w=-25,y=.85,O=1,m=0,C=.125,A=.25,h="power1.out",x="back.out";class X{static click(t,a={}){const{xOffset:e=f,yOffset:n=w,xScale:s=y,yScale:r=O,delay:i=m,durationIn:c=C,durationOut:u=A,easeIn:d=h,easeOut:l=x}=a,p=Array.isArray(t)?t:[t];return new Promise(t=>{const a=o.timeline({onComplete:t}),f={delay:i,duration:c,ease:d},w={duration:u,ease:l};0!==e&&(f.x=e,w.x=0),0!==n&&(f.y=n,w.y=0),1!==s&&(f.scaleX=s,w.scaleX=1),1!==r&&(f.scaleY=r,w.scaleY=1);for(const o of p)a.to(o.micro,f,0).to(o.micro,w)})}}const Y=0,k=.25,I="back.in(1.7)",W=0;class b{static disappear(t,a={}){const{delay:e=Y,duration:n=k,ease:s=I,alphaTo:r=W}=a,i=Array.isArray(t)?t:[t],c={duration:n,ease:s},u={duration:n,ease:"power1.inOut",a:r};return void 0!==a.xTo&&(c.x=a.xTo),void 0!==a.yTo&&(c.y=a.yTo),void 0!==a.scaleTo&&(c.scaleX=a.scaleTo,c.scaleY=a.scaleTo),new Promise(t=>{const a=o.timeline({delay:e,onComplete:t});for(const o of i)a.to(o.micro,c,0).to(o.color,u,0)})}}const T=new WeakMap,F=35,M=1.15,N=1.15,P=-1,S=3,v=!0,g=.5,j=.5,H="power1.out",J="power1.in",q=.25,z="power1.inOut";class B{static jump(t,a={}){const{jumpHeight:e=F,scaleIn:n=M,scaleOut:s=N,iterations:r=P,cooldown:i=S,startWithCooldown:c=v,durationIn:u=g,durationOut:d=j,easeIn:l=H,easeOut:p=J}=a,f=Array.isArray(t)?t:[t];for(const t of f){const a=o.timeline({repeat:Number.isNaN(r)?-1:r,onComplete(){T.delete(t)}});c&&i>0&&a.to({},{duration:i}),t.micro.anchorY=0,a.to(t.micro,{scaleX:n,scaleY:1/n,duration:.5*u,ease:"power1.inOut"}).to(t.micro,{scaleX:1/n,scaleY:n,duration:.25*u,ease:"power1.inOut"}).to(t.micro,{scaleX:1,scaleY:1,duration:.25*u,ease:"power1.inOut"}).to(t.micro,{y:e,duration:.375*u,ease:l},.625*u+(c&&i>0?i:0)).to(t.micro,{y:0,duration:.375*d,ease:p}).to(t.micro,{scaleX:s,scaleY:1/s,duration:.225*d,ease:"power1.out"}).to(t.micro,{scaleX:1,scaleY:1,duration:.4*d,ease:"power1.inOut"}),!c&&i>0&&a.to({},{duration:i}),T.set(t,a)}}static stopJump(t,a={}){const{duration:e=q,ease:n=z}=a,s=Array.isArray(t)?t:[t];for(const t of s){const a=T.get(t);a instanceof o.core.Timeline&&(a.kill(),T.delete(t),o.to(t.micro,{y:0,duration:e,ease:n}))}}}const D=new WeakMap,E=1.1,G=-1,K=3,L=!0,Q=.25,R=.5,U="power1.inOut",V="power1.inOut",Z=1,$=.25,_="power1.inOut";class oo{static pulse(t,a={}){const{scale:e=E,iterations:n=G,cooldown:s=K,startWithCooldown:r=L,durationIn:i=Q,durationOut:c=R,easeIn:u=U,easeOut:d=V}=a,l=Array.isArray(t)?t:[t];for(const t of l){const a=o.timeline({repeat:Number.isNaN(n)?-1:n,onComplete(){D.delete(t)}});r&&s>0&&a.to({},{duration:s}),a.to(t.micro,{scaleX:e,scaleY:e,duration:i,ease:u}).to(t.micro,{scaleX:t.micro.scaleX,scaleY:t.micro.scaleY,duration:c,ease:d}),!r&&s>0&&a.to({},{duration:s}),D.set(t,a)}}static stopPulse(t,a={}){const{scale:e=Z,duration:n=$,ease:s=_}=a,r=Array.isArray(t)?t:[t];for(const t of r){const a=D.get(t);a instanceof o.core.Timeline&&(a.kill(),D.delete(t),o.to(t.micro,{scaleX:e,scaleY:e,duration:n,ease:s}))}}}const to=new WeakMap,ao=.0435,eo=.5,no=.5,so=3,ro=-1,io=3,co=!0,uo=1,lo="power1.inOut",po=.25,fo="power1.inOut";class wo{static spin(t,a={}){const{rotation:e=ao,anchorX:n=eo,anchorY:s=no,spinCount:r=so,iterations:i=ro,cooldown:c=io,startWithCooldown:u=co,duration:d=uo,ease:l=lo}=a,p=Array.isArray(t)?t:[t];for(const t of p){t.micro.anchorX=n,t.micro.anchorY=s;const a=o.timeline({repeat:Number.isNaN(i)?-1:i,onComplete(){to.delete(t)}});u&&c>0&&a.to({},{duration:c});const p=d/(r+2);a.to(t.micro,{rotation:e,duration:p,ease:l});let f=e;for(let o=0;r>o;o++)a.to(t.micro,{rotation:f*=-1,duration:p,ease:l});a.to(t.micro,{rotation:0,duration:p,ease:l}),!u&&c>0&&a.to({},{duration:c}),to.set(t,a)}}static stopSpin(t,a={}){const{duration:e=po,ease:n=fo}=a,s=Array.isArray(t)?t:[t];for(const t of s){const a=to.get(t);a instanceof o.core.Timeline&&(a.kill(),to.delete(t),o.to(t.micro,{rotation:0,duration:e,ease:n}))}}}const yo=new WeakMap,Oo=25,mo=0,Co=-1,Ao=0,ho=!1,xo=.4,Xo="power1.inOut",Yo="power1.inOut",ko=.25,Io="power1.inOut";class Wo{static swipe(t,a={}){const{dx:e=Oo,dy:n=mo,iterations:s=Co,cooldown:r=Ao,startWithCooldown:i=ho,duration:c=xo,easeIn:u=Xo,easeOut:d=Yo}=a,l=Array.isArray(t)?t:[t];for(const t of l){const a=o.timeline({repeat:Number.isNaN(s)?-1:s,onComplete(){yo.delete(t)}});i&&r>0&&a.to({},{duration:r}),a.to(t.micro,{x:t.micro.x+e,y:t.micro.y+n,duration:c,ease:u}).to(t.micro,{x:t.micro.x,y:t.micro.y,duration:c,ease:d}),!i&&r>0&&a.to({},{duration:r}),yo.set(t,a)}}static stopSwipe(t,a={}){const{duration:e=ko,ease:n=Io}=a,s=Array.isArray(t)?t:[t];for(const t of s){const a=yo.get(t);a instanceof o.core.Timeline&&(a.kill(),yo.delete(t),o.to(t.micro,{x:0,y:0,duration:e,ease:n}))}}}export{p as UIAppearAnimator,X as UIClickAnimator,b as UIDisappearAnimator,B as UIJumpCallAnimator,oo as UIPulseCallAnimator,wo as UISpinCallAnimator,Wo as UISwipeCallAnimator};
|
|
2
|
-
//# sourceMappingURL=index.min.js.map
|
package/dist/index.min.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.min.js","sources":["../src/UIAppearAnimator.ts","../src/UIClickAnimator.ts","../src/UIDisappearAnimator.ts","../src/UIJumpCallAnimator.ts","../src/UIPulseCallAnimator.ts","../src/UISpinCallAnimator.ts","../src/UISwipeCallAnimator.ts"],"sourcesContent":["import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst DEFAULT_X_FROM = 0;\nconst DEFAULT_X_TO = 0;\nconst DEFAULT_Y_FROM = 0;\nconst DEFAULT_Y_TO = 0;\nconst DEFAULT_SCALE_FROM = 0.5;\nconst DEFAULT_SCALE_TO = 1;\nconst DEFAULT_ALPHA_FROM = 0;\nconst DEFAULT_ALPHA_TO = 1;\nconst DEFAULT_DELAY = 0;\nconst DEFAULT_DURATION = 0.25;\nconst DEFAULT_EASE = \"back.out(1.7)\";\n\n/**\n * Configuration options for appearance animations.\n */\nexport interface UIAppearAnimatorOptions {\n /** Starting X position */\n xFrom: number;\n /** Target X position */\n xTo: number;\n /** Starting Y position */\n yFrom: number;\n /** Target Y position */\n yTo: number;\n\n /** Starting scale value */\n scaleFrom: number;\n /** Target scale value */\n scaleTo: number;\n /** Starting alpha value */\n alphaFrom: number;\n /** Target alpha value */\n alphaTo: number;\n\n /** Animation delay in seconds */\n delay: number;\n /** Animation duration in seconds */\n duration: number;\n /** GSAP easing function */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for element appearance effects.\n */\nexport class UIAppearAnimator {\n /**\n * Animates elements appearing with position, scale, and alpha transitions.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n * @returns Promise that resolves when animation completes\n */\n public static appear(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIAppearAnimatorOptions> = {},\n ): Promise<void> {\n const {\n xFrom = DEFAULT_X_FROM,\n xTo = DEFAULT_X_TO,\n yFrom = DEFAULT_Y_FROM,\n yTo = DEFAULT_Y_TO,\n scaleFrom = DEFAULT_SCALE_FROM,\n scaleTo = DEFAULT_SCALE_TO,\n alphaFrom = DEFAULT_ALPHA_FROM,\n alphaTo = DEFAULT_ALPHA_TO,\n delay = DEFAULT_DELAY,\n duration = DEFAULT_DURATION,\n ease = DEFAULT_EASE,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n const colorTarget: Record<string, unknown> = {\n duration,\n ease: \"power1.inOut\",\n };\n const microTarget: Record<string, unknown> = { duration, ease };\n\n if (xFrom !== xTo) {\n microTarget.x = xTo;\n for (const element of elements) {\n element.micro.x = xFrom;\n }\n }\n if (yFrom !== yTo) {\n microTarget.y = yTo;\n for (const element of elements) {\n element.micro.y = yFrom;\n }\n }\n if (scaleFrom !== scaleTo) {\n microTarget.scaleX = scaleTo;\n microTarget.scaleY = scaleTo;\n for (const element of elements) {\n element.micro.scaleX = scaleFrom;\n element.micro.scaleY = scaleFrom;\n }\n }\n if (alphaFrom !== alphaTo) {\n colorTarget.a = alphaTo;\n for (const element of elements) {\n element.color.a = alphaFrom;\n }\n }\n\n return new Promise((onComplete) => {\n const timeline = gsap.timeline({ delay, onComplete });\n\n for (const element of elements) {\n timeline.to(element.micro, microTarget, 0).to(element.color, colorTarget, 0);\n }\n });\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst DEFAULT_X_OFFSET = 0;\nconst DEFAULT_Y_OFFSET = -25;\nconst DEFAULT_X_SCALE = 0.85;\nconst DEFAULT_Y_SCALE = 1;\nconst DEFAULT_DELAY = 0;\nconst DEFAULT_DURATION_IN = 0.125;\nconst DEFAULT_DURATION_OUT = 0.25;\nconst DEFAULT_EASE_IN = \"power1.out\";\nconst DEFAULT_EASE_OUT = \"back.out\";\n\n/**\n * Configuration options for click animations.\n */\nexport interface UIClickAnimatorOptions {\n /** X position offset during click */\n xOffset: number;\n /** Y position offset during click */\n yOffset: number;\n /** X scale factor during click */\n xScale: number;\n /** Y scale factor during click */\n yScale: number;\n /** Animation delay in seconds */\n delay: number;\n /** Duration of click in phase in seconds */\n durationIn: number;\n /** Duration of click out phase in seconds */\n durationOut: number;\n /** GSAP easing function for click in */\n easeIn: gsap.EaseString;\n /** GSAP easing function for click out */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Animator for click feedback effects.\n */\nexport class UIClickAnimator {\n /**\n * Animates elements with click feedback including position offset and scale effects.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n * @returns Promise that resolves when animation completes\n */\n public static click(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIClickAnimatorOptions> = {},\n ): Promise<void> {\n const {\n xOffset = DEFAULT_X_OFFSET,\n yOffset = DEFAULT_Y_OFFSET,\n xScale = DEFAULT_X_SCALE,\n yScale = DEFAULT_Y_SCALE,\n delay = DEFAULT_DELAY,\n durationIn = DEFAULT_DURATION_IN,\n durationOut = DEFAULT_DURATION_OUT,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n return new Promise((onComplete) => {\n const timeline = gsap.timeline({ onComplete });\n\n const inMicroTarget: Record<string, unknown> = {\n delay,\n duration: durationIn,\n ease: easeIn,\n };\n\n const outMicroTarget: Record<string, unknown> = {\n duration: durationOut,\n ease: easeOut,\n };\n\n if (xOffset !== 0) {\n inMicroTarget.x = xOffset;\n outMicroTarget.x = 0;\n }\n\n if (yOffset !== 0) {\n inMicroTarget.y = yOffset;\n outMicroTarget.y = 0;\n }\n\n if (xScale !== 1) {\n inMicroTarget.scaleX = xScale;\n outMicroTarget.scaleX = 1;\n }\n\n if (yScale !== 1) {\n inMicroTarget.scaleY = yScale;\n outMicroTarget.scaleY = 1;\n }\n\n for (const element of elements) {\n timeline.to(element.micro, inMicroTarget, 0).to(element.micro, outMicroTarget);\n }\n });\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst DEFAULT_DELAY = 0;\nconst DEFAULT_DURATION = 0.25;\nconst DEFAULT_EASE = \"back.in(1.7)\";\nconst DEFAULT_ALPHA_TO = 0;\n\n/**\n * Configuration options for disappearance animations.\n */\nexport interface UIDisappearAnimatorOptions {\n /** Target X position */\n xTo: number;\n /** Target Y position */\n yTo: number;\n\n /** Target scale value */\n scaleTo: number;\n /** Target alpha value */\n alphaTo: number;\n\n /** Animation delay in seconds */\n delay: number;\n /** Animation duration in seconds */\n duration: number;\n /** GSAP easing function */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for element disappearance effects.\n */\nexport class UIDisappearAnimator {\n /**\n * Animates elements disappearing with position, scale, and alpha transitions.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n * @returns Promise that resolves when animation completes\n */\n public static disappear(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIDisappearAnimatorOptions> = {},\n ): Promise<void> {\n const {\n delay = DEFAULT_DELAY,\n duration = DEFAULT_DURATION,\n ease = DEFAULT_EASE,\n alphaTo = DEFAULT_ALPHA_TO,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n const microTarget: Record<string, unknown> = { duration, ease };\n const colorTarget: Record<string, unknown> = {\n duration,\n ease: \"power1.inOut\",\n a: alphaTo,\n };\n\n if (options.xTo !== undefined) {\n microTarget.x = options.xTo;\n }\n if (options.yTo !== undefined) {\n microTarget.y = options.yTo;\n }\n if (options.scaleTo !== undefined) {\n microTarget.scaleX = options.scaleTo;\n microTarget.scaleY = options.scaleTo;\n }\n\n return new Promise((onComplete) => {\n const timeline = gsap.timeline({ delay, onComplete });\n\n for (const element of elements) {\n timeline.to(element.micro, microTarget, 0).to(element.color, colorTarget, 0);\n }\n });\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst jumpCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_JUMP_HEIGHT = 35;\nconst DEFAULT_SCALE_IN = 1.15;\nconst DEFAULT_SCALE_OUT = 1.15;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 3;\nconst DEFAULT_START_WITH_COOLDOWN = true;\nconst DEFAULT_DURATION_IN = 0.5;\nconst DEFAULT_DURATION_OUT = 0.5;\nconst DEFAULT_EASE_IN = \"power1.out\";\nconst DEFAULT_EASE_OUT = \"power1.in\";\n\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for jump call animations.\n */\nexport interface UIJumpCallAnimatorCallOptions {\n /** Height of the jump in pixels */\n jumpHeight: number;\n /** Scale factor during jump start */\n scaleIn: number;\n /** Scale factor during jump end */\n scaleOut: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Duration of jump in phase in seconds */\n durationIn: number;\n /** Duration of jump out phase in seconds */\n durationOut: number;\n /** GSAP easing function for jump in */\n easeIn: gsap.EaseString;\n /** GSAP easing function for jump out */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping jump animations.\n */\nexport interface UIJumpCallAnimatorStopOptions {\n /** Duration to return to rest position in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for jump call attention effects.\n */\nexport class UIJumpCallAnimator {\n /**\n * Starts a jumping animation with scale and position effects.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static jump(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIJumpCallAnimatorCallOptions> = {},\n ): void {\n const {\n jumpHeight = DEFAULT_JUMP_HEIGHT,\n scaleIn = DEFAULT_SCALE_IN,\n scaleOut = DEFAULT_SCALE_OUT,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n durationIn = DEFAULT_DURATION_IN,\n durationOut = DEFAULT_DURATION_OUT,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n jumpCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n element.micro.anchorY = 0;\n\n timeline\n .to(element.micro, {\n scaleX: scaleIn,\n scaleY: 1 / scaleIn,\n duration: durationIn * 0.5,\n ease: \"power1.inOut\",\n })\n .to(element.micro, {\n scaleX: 1 / scaleIn,\n scaleY: scaleIn,\n duration: durationIn * 0.25,\n ease: \"power1.inOut\",\n })\n .to(element.micro, {\n scaleX: 1,\n scaleY: 1,\n duration: durationIn * 0.25,\n ease: \"power1.inOut\",\n })\n .to(\n element.micro,\n {\n y: jumpHeight,\n duration: durationIn * 0.375,\n ease: easeIn,\n },\n durationIn * 0.625 + (startWithCooldown && cooldown > 0 ? cooldown : 0),\n )\n .to(element.micro, {\n y: 0,\n duration: durationOut * 0.375,\n ease: easeOut,\n })\n .to(element.micro, {\n scaleX: scaleOut,\n scaleY: 1 / scaleOut,\n duration: durationOut * 0.225,\n ease: \"power1.out\",\n })\n .to(element.micro, {\n scaleX: 1,\n scaleY: 1,\n duration: durationOut * 0.4,\n ease: \"power1.inOut\",\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n jumpCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the jumping animation and returns elements to rest position.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopJump(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIJumpCallAnimatorStopOptions> = {},\n ): void {\n const { duration = DEFAULT_STOP_DURATION, ease = DEFAULT_STOP_EASE } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = jumpCallTweens.get(element);\n\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n jumpCallTweens.delete(element);\n\n gsap.to(element.micro, {\n y: 0,\n duration,\n ease,\n });\n }\n }\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst pulseCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_SCALE = 1.1;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 3;\nconst DEFAULT_START_WITH_COOLDOWN = true;\nconst DEFAULT_DURATION_IN = 0.25;\nconst DEFAULT_DURATION_OUT = 0.5;\nconst DEFAULT_EASE_IN = \"power1.inOut\";\nconst DEFAULT_EASE_OUT = \"power1.inOut\";\n\nconst DEFAULT_STOP_SCALE = 1;\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for pulse call animations.\n */\nexport interface UIPulseCallAnimatorOptions {\n /** Scale factor for pulse effect */\n scale: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Duration of scale in phase in seconds */\n durationIn: number;\n /** Duration of scale out phase in seconds */\n durationOut: number;\n /** GSAP easing function for scale in */\n easeIn: gsap.EaseString;\n /** GSAP easing function for scale out */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping pulse animations.\n */\nexport interface UIPulseCallAnimatorStopOptions {\n /** Target scale value when stopping */\n scale: number;\n /** Duration to return to rest scale in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for pulse attention effects.\n */\nexport class UIPulseCallAnimator {\n /**\n * Starts a pulsing animation with scale effects.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static pulse(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIPulseCallAnimatorOptions> = {},\n ): void {\n const {\n scale = DEFAULT_SCALE,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n durationIn = DEFAULT_DURATION_IN,\n durationOut = DEFAULT_DURATION_OUT,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n pulseCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n timeline\n .to(element.micro, {\n scaleX: scale,\n scaleY: scale,\n duration: durationIn,\n ease: easeIn,\n })\n .to(element.micro, {\n scaleX: element.micro.scaleX,\n scaleY: element.micro.scaleY,\n duration: durationOut,\n ease: easeOut,\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n pulseCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the pulsing animation and returns elements to rest scale.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopPulse(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UIPulseCallAnimatorStopOptions> = {},\n ): void {\n const {\n scale = DEFAULT_STOP_SCALE,\n duration = DEFAULT_STOP_DURATION,\n ease = DEFAULT_STOP_EASE,\n } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = pulseCallTweens.get(element);\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n pulseCallTweens.delete(element);\n\n gsap.to(element.micro, {\n scaleX: scale,\n scaleY: scale,\n duration,\n ease,\n });\n }\n }\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst spinCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_ROTATION = 0.0435;\nconst DEFAULT_ANCHOR_X = 0.5;\nconst DEFAULT_ANCHOR_Y = 0.5;\nconst DEFAULT_SPIN_COUNT = 3;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 3;\nconst DEFAULT_START_WITH_COOLDOWN = true;\nconst DEFAULT_DURATION = 1;\nconst DEFAULT_EASE = \"power1.inOut\";\n\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for spin call animations.\n */\nexport interface UISpinCallAnimatorCallOptions {\n /** Rotation angle in radians */\n rotation: number;\n /** Anchor point X coordinate (0-1) */\n anchorX: number;\n /** Anchor point Y coordinate (0-1) */\n anchorY: number;\n /** Number of spin oscillations */\n spinCount: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Total animation duration in seconds */\n duration: number;\n /** GSAP easing function */\n ease: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping spin animations.\n */\nexport interface UISpinCallAnimatorStopOptions {\n /** Duration to return to rest rotation in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for spin call attention effects.\n */\nexport class UISpinCallAnimator {\n /**\n * Starts a spinning animation with rotation oscillations.\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static spin(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISpinCallAnimatorCallOptions> = {},\n ): void {\n const {\n rotation = DEFAULT_ROTATION,\n anchorX = DEFAULT_ANCHOR_X,\n anchorY = DEFAULT_ANCHOR_Y,\n spinCount = DEFAULT_SPIN_COUNT,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n duration = DEFAULT_DURATION,\n ease = DEFAULT_EASE,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n element.micro.anchorX = anchorX;\n element.micro.anchorY = anchorY;\n\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n spinCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n const spinDuration = duration / (spinCount + 2);\n\n timeline.to(element.micro, {\n rotation,\n duration: spinDuration,\n ease,\n });\n\n let currentRotation = rotation;\n for (let i = 0; i < spinCount; i++) {\n timeline.to(element.micro, {\n rotation: (currentRotation *= -1),\n duration: spinDuration,\n ease,\n });\n }\n\n timeline.to(element.micro, {\n rotation: 0,\n duration: spinDuration,\n ease,\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n spinCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the spinning animation and returns elements to rest rotation.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopSpin(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISpinCallAnimatorStopOptions> = {},\n ): void {\n const { duration = DEFAULT_STOP_DURATION, ease = DEFAULT_STOP_EASE } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = spinCallTweens.get(element);\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n spinCallTweens.delete(element);\n\n gsap.to(element.micro, {\n rotation: 0,\n duration,\n ease,\n });\n }\n }\n }\n}\n","import gsap from \"gsap\";\nimport type { UIAnimatedElement } from \"./UIAnimatedElement\";\n\nconst swipeCallTweens = new WeakMap<UIAnimatedElement, gsap.core.Timeline>();\n\nconst DEFAULT_DX = 25;\nconst DEFAULT_DY = 0;\nconst DEFAULT_ITERATIONS = -1;\nconst DEFAULT_COOLDOWN = 0;\nconst DEFAULT_START_WITH_COOLDOWN = false;\nconst DEFAULT_DURATION = 0.4;\nconst DEFAULT_EASE_IN = \"power1.inOut\";\nconst DEFAULT_EASE_OUT = \"power1.inOut\";\n\nconst DEFAULT_STOP_DURATION = 0.25;\nconst DEFAULT_STOP_EASE = \"power1.inOut\";\n\n/**\n * Configuration options for swipe call animations.\n */\nexport interface UISwipeCallAnimatorCallOptions {\n /** Horizontal displacement of the swipe vector in pixels */\n dx: number;\n /** Vertical displacement of the swipe vector in pixels */\n dy: number;\n /** Number of animation iterations (-1 for infinite) */\n iterations: number;\n /** Cooldown time between iterations in seconds */\n cooldown: number;\n /** Whether to start with cooldown delay */\n startWithCooldown: boolean;\n /** Duration of one direction of the swipe in seconds */\n duration: number;\n /** GSAP easing function for the forward swipe */\n easeIn: gsap.EaseString;\n /** GSAP easing function for the return swipe */\n easeOut: gsap.EaseString;\n}\n\n/**\n * Configuration options for stopping swipe animations.\n */\nexport interface UISwipeCallAnimatorStopOptions {\n /** Duration to return to rest position in seconds */\n duration: number;\n /** GSAP easing function for stop transition */\n ease: gsap.EaseString;\n}\n\n/**\n * Animator for swipe call attention effects with pingpong movement along an arbitrary vector.\n */\nexport class UISwipeCallAnimator {\n /**\n * Starts an infinite pingpong swipe animation along the vector (dx, dy).\n * @param target - Single element or array of elements to animate\n * @param options - Animation configuration options\n */\n public static swipe(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISwipeCallAnimatorCallOptions> = {},\n ): void {\n const {\n dx = DEFAULT_DX,\n dy = DEFAULT_DY,\n iterations = DEFAULT_ITERATIONS,\n cooldown = DEFAULT_COOLDOWN,\n startWithCooldown = DEFAULT_START_WITH_COOLDOWN,\n duration = DEFAULT_DURATION,\n easeIn = DEFAULT_EASE_IN,\n easeOut = DEFAULT_EASE_OUT,\n } = options;\n\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const timeline = gsap.timeline({\n repeat: Number.isNaN(iterations) ? -1 : iterations,\n onComplete: () => {\n swipeCallTweens.delete(element);\n },\n });\n\n if (startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n timeline\n .to(element.micro, {\n x: element.micro.x + dx,\n y: element.micro.y + dy,\n duration,\n ease: easeIn,\n })\n .to(element.micro, {\n x: element.micro.x,\n y: element.micro.y,\n duration,\n ease: easeOut,\n });\n\n if (!startWithCooldown && cooldown > 0) {\n timeline.to({}, { duration: cooldown });\n }\n\n swipeCallTweens.set(element, timeline);\n }\n }\n\n /**\n * Stops the swipe animation and returns elements to rest position.\n * @param target - Single element or array of elements to stop animating\n * @param options - Stop animation configuration options\n */\n public static stopSwipe(\n target: UIAnimatedElement | UIAnimatedElement[],\n options: Partial<UISwipeCallAnimatorStopOptions> = {},\n ): void {\n const { duration = DEFAULT_STOP_DURATION, ease = DEFAULT_STOP_EASE } = options;\n const elements = Array.isArray(target) ? target : [target];\n\n for (const element of elements) {\n const tween = swipeCallTweens.get(element);\n\n if (tween instanceof gsap.core.Timeline) {\n tween.kill();\n swipeCallTweens.delete(element);\n\n gsap.to(element.micro, {\n x: 0,\n y: 0,\n duration,\n ease,\n });\n }\n }\n }\n}\n"],"names":["DEFAULT_X_FROM","DEFAULT_X_TO","DEFAULT_Y_FROM","DEFAULT_Y_TO","DEFAULT_SCALE_FROM","DEFAULT_SCALE_TO","DEFAULT_ALPHA_FROM","DEFAULT_ALPHA_TO","DEFAULT_DELAY","DEFAULT_DURATION","DEFAULT_EASE","UIAppearAnimator","appear","target","options","xFrom","xTo","yFrom","yTo","scaleFrom","scaleTo","alphaFrom","alphaTo","delay","duration","ease","elements","Array","isArray","colorTarget","microTarget","x","element","micro","y","scaleX","scaleY","a","color","Promise","onComplete","timeline","gsap","to","DEFAULT_X_OFFSET","DEFAULT_Y_OFFSET","DEFAULT_X_SCALE","DEFAULT_Y_SCALE","DEFAULT_DURATION_IN","DEFAULT_DURATION_OUT","DEFAULT_EASE_IN","DEFAULT_EASE_OUT","UIClickAnimator","click","xOffset","yOffset","xScale","yScale","durationIn","durationOut","easeIn","easeOut","inMicroTarget","outMicroTarget","UIDisappearAnimator","disappear","undefined","jumpCallTweens","WeakMap","DEFAULT_JUMP_HEIGHT","DEFAULT_SCALE_IN","DEFAULT_SCALE_OUT","DEFAULT_ITERATIONS","DEFAULT_COOLDOWN","DEFAULT_START_WITH_COOLDOWN","DEFAULT_STOP_DURATION","DEFAULT_STOP_EASE","UIJumpCallAnimator","jump","jumpHeight","scaleIn","scaleOut","iterations","cooldown","startWithCooldown","repeat","Number","isNaN","delete","anchorY","set","stopJump","tween","get","core","Timeline","kill","pulseCallTweens","DEFAULT_SCALE","DEFAULT_STOP_SCALE","UIPulseCallAnimator","pulse","scale","stopPulse","spinCallTweens","DEFAULT_ROTATION","DEFAULT_ANCHOR_X","DEFAULT_ANCHOR_Y","DEFAULT_SPIN_COUNT","UISpinCallAnimator","spin","rotation","anchorX","spinCount","spinDuration","currentRotation","i","stopSpin","swipeCallTweens","DEFAULT_DX","DEFAULT_DY","UISwipeCallAnimator","swipe","dx","dy","stopSwipe"],"mappings":"oBAGA,MAAMA,EAAiB,EACjBC,EAAe,EACfC,EAAiB,EACjBC,EAAe,EACfC,EAAqB,GACrBC,EAAmB,EACnBC,EAAqB,EACrBC,EAAmB,EACnBC,EAAgB,EAChBC,EAAmB,IACnBC,EAAe,sBAmCRC,EAOJ,aAAOC,CACZC,EACAC,EAA4C,IAE5C,MAAMC,MACJA,EAAQf,EAAcgB,IACtBA,EAAMf,EAAYgB,MAClBA,EAAQf,EAAcgB,IACtBA,EAAMf,EAAYgB,UAClBA,EAAYf,EAAkBgB,QAC9BA,EAAUf,EAAgBgB,UAC1BA,EAAYf,EAAkBgB,QAC9BA,EAAUf,EAAgBgB,MAC1BA,EAAQf,EAAagB,SACrBA,EAAWf,EAAgBgB,KAC3BA,EAAOf,GACLI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