@ssgoi/core 3.5.0 → 4.1.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/dist/animator/integrator/double-spring-integrator.d.ts +31 -0
- package/dist/animator/integrator/double-spring-integrator.d.ts.map +1 -0
- package/dist/animator/integrator/index.d.ts +13 -0
- package/dist/animator/integrator/index.d.ts.map +1 -0
- package/dist/animator/integrator/inertia-integrator.d.ts +34 -0
- package/dist/animator/integrator/inertia-integrator.d.ts.map +1 -0
- package/dist/animator/integrator/provider.d.ts +22 -0
- package/dist/animator/integrator/provider.d.ts.map +1 -0
- package/dist/animator/integrator/spring-integrator.d.ts +19 -0
- package/dist/animator/integrator/spring-integrator.d.ts.map +1 -0
- package/dist/animator/integrator/types.d.ts +34 -0
- package/dist/animator/integrator/types.d.ts.map +1 -0
- package/dist/animator/multi-animator.d.ts +18 -13
- package/dist/animator/multi-animator.d.ts.map +1 -1
- package/dist/animator/{animate → runner}/css-runner.d.ts +2 -2
- package/dist/animator/runner/css-runner.d.ts.map +1 -0
- package/dist/animator/runner/provider.d.ts +35 -0
- package/dist/animator/runner/provider.d.ts.map +1 -0
- package/dist/animator/{animate → runner}/tick-runner.d.ts +2 -2
- package/dist/animator/runner/tick-runner.d.ts.map +1 -0
- package/dist/animator/runner/ticker.d.ts.map +1 -0
- package/dist/animator/{animate → runner}/types.d.ts +6 -3
- package/dist/animator/runner/types.d.ts.map +1 -0
- package/dist/animator/{index.d.ts → single-animator.d.ts} +22 -12
- package/dist/animator/single-animator.d.ts.map +1 -0
- package/dist/animator/{animation.d.ts → types.d.ts} +2 -2
- package/dist/animator/types.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +552 -569
- package/dist/provider-Cs5iBqRD.cjs +1 -0
- package/dist/provider-Cu4NSF1Q.js +167 -0
- package/dist/transition/create-transition-callback.d.ts.map +1 -1
- package/dist/transition/transition-strategy.d.ts +8 -8
- package/dist/transition/transition-strategy.d.ts.map +1 -1
- package/dist/transitions/blur.d.ts +4 -4
- package/dist/transitions/blur.d.ts.map +1 -1
- package/dist/transitions/bounce.d.ts +4 -4
- package/dist/transitions/bounce.d.ts.map +1 -1
- package/dist/transitions/fade.d.ts +4 -4
- package/dist/transitions/fade.d.ts.map +1 -1
- package/dist/transitions/index.cjs +1 -1
- package/dist/transitions/index.d.ts +5 -0
- package/dist/transitions/index.d.ts.map +1 -1
- package/dist/transitions/index.js +141 -191
- package/dist/transitions/rotate.d.ts +4 -4
- package/dist/transitions/rotate.d.ts.map +1 -1
- package/dist/transitions/scale.d.ts +4 -4
- package/dist/transitions/scale.d.ts.map +1 -1
- package/dist/transitions/slide.d.ts +4 -4
- package/dist/transitions/slide.d.ts.map +1 -1
- package/dist/transitions/utils.d.ts +8 -0
- package/dist/transitions/utils.d.ts.map +1 -0
- package/dist/types.cjs +1 -1
- package/dist/types.d.ts +124 -38
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +41 -48
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/wait-paint.d.ts +15 -0
- package/dist/utils/wait-paint.d.ts.map +1 -0
- package/dist/view-transitions/blind.d.ts +2 -3
- package/dist/view-transitions/blind.d.ts.map +1 -1
- package/dist/view-transitions/curtain-reveal.d.ts +2 -3
- package/dist/view-transitions/curtain-reveal.d.ts.map +1 -1
- package/dist/view-transitions/depth.d.ts +2 -2
- package/dist/view-transitions/depth.d.ts.map +1 -1
- package/dist/view-transitions/drill.d.ts +2 -2
- package/dist/view-transitions/drill.d.ts.map +1 -1
- package/dist/view-transitions/fade.d.ts +2 -3
- package/dist/view-transitions/fade.d.ts.map +1 -1
- package/dist/view-transitions/film.d.ts +2 -1
- package/dist/view-transitions/film.d.ts.map +1 -1
- package/dist/view-transitions/hero.d.ts +2 -2
- package/dist/view-transitions/hero.d.ts.map +1 -1
- package/dist/view-transitions/index.cjs +19 -19
- package/dist/view-transitions/index.d.ts +1 -0
- package/dist/view-transitions/index.d.ts.map +1 -1
- package/dist/view-transitions/index.js +874 -869
- package/dist/view-transitions/instagram.d.ts +2 -2
- package/dist/view-transitions/instagram.d.ts.map +1 -1
- package/dist/view-transitions/jaemin.d.ts +2 -2
- package/dist/view-transitions/jaemin.d.ts.map +1 -1
- package/dist/view-transitions/pinterest.d.ts +2 -2
- package/dist/view-transitions/pinterest.d.ts.map +1 -1
- package/dist/view-transitions/rotate.d.ts +5 -2
- package/dist/view-transitions/rotate.d.ts.map +1 -1
- package/dist/view-transitions/scroll.d.ts +2 -2
- package/dist/view-transitions/scroll.d.ts.map +1 -1
- package/dist/view-transitions/sheet.d.ts +2 -2
- package/dist/view-transitions/sheet.d.ts.map +1 -1
- package/dist/view-transitions/slide.d.ts +2 -2
- package/dist/view-transitions/slide.d.ts.map +1 -1
- package/dist/view-transitions/snap.d.ts +14 -0
- package/dist/view-transitions/snap.d.ts.map +1 -0
- package/dist/view-transitions/strip.d.ts +6 -2
- package/dist/view-transitions/strip.d.ts.map +1 -1
- package/dist/view-transitions/swap.d.ts +2 -2
- package/dist/view-transitions/swap.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/animator/animate/css-runner.d.ts.map +0 -1
- package/dist/animator/animate/index.d.ts +0 -42
- package/dist/animator/animate/index.d.ts.map +0 -1
- package/dist/animator/animate/tick-runner.d.ts.map +0 -1
- package/dist/animator/animate/types.d.ts.map +0 -1
- package/dist/animator/animation.d.ts.map +0 -1
- package/dist/animator/index.d.ts.map +0 -1
- package/dist/animator/spring-core.d.ts +0 -82
- package/dist/animator/spring-core.d.ts.map +0 -1
- package/dist/animator/ticker.d.ts.map +0 -1
- /package/dist/animator/{ticker.d.ts → runner/ticker.d.ts} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { Integrator } from './animator/integrator';
|
|
1
2
|
export type TransitionKey = string | symbol;
|
|
3
|
+
/**
|
|
4
|
+
* Double spring follower configuration
|
|
5
|
+
* Allows customizing the follower spring independently
|
|
6
|
+
*/
|
|
7
|
+
export type DoubleSpringFollowerConfig = {
|
|
8
|
+
stiffness: number;
|
|
9
|
+
damping: number;
|
|
10
|
+
};
|
|
2
11
|
export type SpringConfig = {
|
|
3
12
|
stiffness: number;
|
|
4
13
|
damping: number;
|
|
@@ -10,12 +19,91 @@ export type SpringConfig = {
|
|
|
10
19
|
* - 1.0: same as true
|
|
11
20
|
* - 0.5: follower has half stiffness → stronger ease-in
|
|
12
21
|
* - 0.3: even stronger ease-in
|
|
22
|
+
* - { stiffness, damping }: custom follower spring config
|
|
13
23
|
*
|
|
14
24
|
* Creates a two-spring system:
|
|
15
25
|
* - Leader spring: tracks the target directly
|
|
16
26
|
* - Follower spring: tracks the leader's position (this is the output)
|
|
17
27
|
*/
|
|
18
|
-
doubleSpring?: boolean | number;
|
|
28
|
+
doubleSpring?: boolean | number | DoubleSpringFollowerConfig;
|
|
29
|
+
/**
|
|
30
|
+
* Position threshold for settling detection
|
|
31
|
+
* When distance to target is below this, position is considered settled
|
|
32
|
+
* @default 0.01
|
|
33
|
+
*/
|
|
34
|
+
restDelta?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Velocity threshold for settling detection
|
|
37
|
+
* When speed is below this, velocity is considered settled
|
|
38
|
+
* @default 0.01
|
|
39
|
+
*/
|
|
40
|
+
restSpeed?: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Resistance type for inertia physics
|
|
44
|
+
* - linear: resistance proportional to velocity (F = -r * v)
|
|
45
|
+
* - quadratic: resistance proportional to velocity squared (F = -r * v²)
|
|
46
|
+
*/
|
|
47
|
+
export type ResistanceType = "linear" | "quadratic";
|
|
48
|
+
/**
|
|
49
|
+
* Inertia configuration for ease-in effect
|
|
50
|
+
* Simulates acceleration with resistance
|
|
51
|
+
*/
|
|
52
|
+
export type InertiaConfig = {
|
|
53
|
+
/** Acceleration force (higher = faster acceleration) */
|
|
54
|
+
acceleration: number;
|
|
55
|
+
/** Resistance coefficient (higher = more resistance) */
|
|
56
|
+
resistance: number;
|
|
57
|
+
/** Resistance type (default: 'quadratic') */
|
|
58
|
+
resistanceType?: ResistanceType;
|
|
59
|
+
/**
|
|
60
|
+
* Minimum boundary value
|
|
61
|
+
* When position goes below this, spring bounce is applied
|
|
62
|
+
*/
|
|
63
|
+
min?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum boundary value
|
|
66
|
+
* When position goes above this, spring bounce is applied
|
|
67
|
+
*/
|
|
68
|
+
max?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Spring stiffness for boundary bounce effect
|
|
71
|
+
* Higher value = stiffer bounce
|
|
72
|
+
* @default 500
|
|
73
|
+
*/
|
|
74
|
+
bounceStiffness?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Spring damping for boundary bounce effect
|
|
77
|
+
* Higher value = faster settling
|
|
78
|
+
* @default 10
|
|
79
|
+
*/
|
|
80
|
+
bounceDamping?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Position threshold for settling detection
|
|
83
|
+
* When distance to target is below this, position is considered settled
|
|
84
|
+
* @default 0.01
|
|
85
|
+
*/
|
|
86
|
+
restDelta?: number;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Custom integrator factory function
|
|
90
|
+
* Allows using custom physics implementations
|
|
91
|
+
*/
|
|
92
|
+
export type IntegratorFactory = () => Integrator;
|
|
93
|
+
/**
|
|
94
|
+
* Physics options for animations
|
|
95
|
+
* Use with & to add physics options to any config type
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* type FadeOptions = { from?: number; to?: number } & PhysicsOptions;
|
|
99
|
+
*/
|
|
100
|
+
export type PhysicsOptions = {
|
|
101
|
+
/** Spring physics (ease-out) */
|
|
102
|
+
spring?: SpringConfig;
|
|
103
|
+
/** Inertia physics (ease-in) */
|
|
104
|
+
inertia?: InertiaConfig;
|
|
105
|
+
/** Custom integrator factory */
|
|
106
|
+
integrator?: IntegratorFactory;
|
|
19
107
|
};
|
|
20
108
|
/**
|
|
21
109
|
* CSS style object type
|
|
@@ -32,7 +120,7 @@ export type ScheduleType = "parallel" | "sequential" | "stagger";
|
|
|
32
120
|
* Base configuration shared by both single and multi-spring transitions
|
|
33
121
|
*/
|
|
34
122
|
export type BaseTransitionConfig = {
|
|
35
|
-
prepare?: (
|
|
123
|
+
prepare?: () => void;
|
|
36
124
|
wait?: () => Promise<void>;
|
|
37
125
|
onStart?: () => void;
|
|
38
126
|
onEnd?: () => void;
|
|
@@ -46,7 +134,11 @@ export type BaseTransitionConfig = {
|
|
|
46
134
|
* - css: Web Animation API with CSS string generation
|
|
47
135
|
*/
|
|
48
136
|
export type SingleSpringConfig = BaseTransitionConfig & {
|
|
49
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Physics configuration for animation
|
|
139
|
+
* Choose one: spring (ease-out), inertia (ease-in), or custom integrator
|
|
140
|
+
*/
|
|
141
|
+
physics?: PhysicsOptions;
|
|
50
142
|
tick?: (progress: number) => void;
|
|
51
143
|
/**
|
|
52
144
|
* Style generator for Web Animation API mode
|
|
@@ -68,14 +160,18 @@ export type SingleSpringConfig = BaseTransitionConfig & {
|
|
|
68
160
|
css?: (progress: number) => StyleObject;
|
|
69
161
|
};
|
|
70
162
|
/**
|
|
71
|
-
* Individual
|
|
163
|
+
* Individual animation item in a multi-animation config
|
|
72
164
|
*
|
|
73
165
|
* Supports two animation modes (mutually exclusive):
|
|
74
166
|
* - tick: RAF-based animation with callback on each frame
|
|
75
167
|
* - css: Web Animation API with CSS string generation
|
|
76
168
|
*/
|
|
77
|
-
export type
|
|
78
|
-
|
|
169
|
+
export type AnimationItem = {
|
|
170
|
+
/**
|
|
171
|
+
* Physics configuration for animation
|
|
172
|
+
* Choose one: spring (ease-out), inertia (ease-in), or custom integrator
|
|
173
|
+
*/
|
|
174
|
+
physics?: PhysicsOptions;
|
|
79
175
|
/**
|
|
80
176
|
* Frame callback - called on each animation frame with progress value (RAF-based)
|
|
81
177
|
*
|
|
@@ -136,27 +232,27 @@ export type SpringItem = {
|
|
|
136
232
|
offset?: number;
|
|
137
233
|
};
|
|
138
234
|
/**
|
|
139
|
-
* Multi-
|
|
235
|
+
* Multi-animation configuration
|
|
140
236
|
* Used for complex transitions with multiple coordinated animations
|
|
141
237
|
*/
|
|
142
|
-
export type
|
|
143
|
-
|
|
238
|
+
export type MultiAnimationConfig = BaseTransitionConfig & {
|
|
239
|
+
items: AnimationItem[];
|
|
144
240
|
schedule?: ScheduleType;
|
|
145
241
|
onProgress?: (completed: number, total: number) => void;
|
|
146
242
|
};
|
|
147
243
|
/**
|
|
148
|
-
* Transition configuration - supports both single and multi
|
|
244
|
+
* Transition configuration - supports both single and multi animations
|
|
149
245
|
* Uses Union Type for type safety and backward compatibility
|
|
150
246
|
*/
|
|
151
|
-
export type TransitionConfig = SingleSpringConfig |
|
|
247
|
+
export type TransitionConfig = SingleSpringConfig | MultiAnimationConfig;
|
|
152
248
|
/**
|
|
153
|
-
* Type guard to check if config is single
|
|
249
|
+
* Type guard to check if config is single animation
|
|
154
250
|
*/
|
|
155
|
-
export declare function
|
|
251
|
+
export declare function isSingleAnimation(config: TransitionConfig): config is SingleSpringConfig;
|
|
156
252
|
/**
|
|
157
|
-
* Type guard to check if config is multi-
|
|
253
|
+
* Type guard to check if config is multi-animation
|
|
158
254
|
*/
|
|
159
|
-
export declare function
|
|
255
|
+
export declare function isMultiAnimation(config: TransitionConfig): config is MultiAnimationConfig;
|
|
160
256
|
/**
|
|
161
257
|
* Type guard to check if config uses CSS mode (Web Animation API)
|
|
162
258
|
*/
|
|
@@ -170,22 +266,12 @@ export declare function isTickAnimation(config: SingleSpringConfig): config is S
|
|
|
170
266
|
tick: (progress: number) => void;
|
|
171
267
|
};
|
|
172
268
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*/
|
|
176
|
-
export declare function validateAnimationMode(config: SingleSpringConfig): void;
|
|
177
|
-
/**
|
|
178
|
-
* Validate SpringItem doesn't have both tick and css defined
|
|
179
|
-
* @throws Error if both tick and css are defined
|
|
180
|
-
*/
|
|
181
|
-
export declare function validateSpringItem(item: SpringItem): void;
|
|
182
|
-
/**
|
|
183
|
-
* Normalize TransitionConfig to MultiSpringConfig
|
|
184
|
-
* Converts SingleSpringConfig to MultiSpringConfig with single spring item
|
|
269
|
+
* Normalize TransitionConfig to MultiAnimationConfig
|
|
270
|
+
* Converts SingleSpringConfig to MultiAnimationConfig with single animation item
|
|
185
271
|
* Accepts both sync config and Promise<TransitionConfig>
|
|
186
272
|
* @internal
|
|
187
273
|
*/
|
|
188
|
-
export declare function
|
|
274
|
+
export declare function normalizeToMultiAnimation(config: TransitionConfig | Promise<TransitionConfig>): Promise<MultiAnimationConfig>;
|
|
189
275
|
export type GetTransitionConfig<TContext = undefined> = TContext extends undefined ? (node: HTMLElement) => TransitionConfig | Promise<TransitionConfig> : (node: HTMLElement, context: TContext) => TransitionConfig | Promise<TransitionConfig>;
|
|
190
276
|
export type Transition<TContext = undefined> = {
|
|
191
277
|
in?: GetTransitionConfig<TContext>;
|
|
@@ -320,12 +406,12 @@ export type NormalizedScheduleEntry = {
|
|
|
320
406
|
offset: number;
|
|
321
407
|
};
|
|
322
408
|
/**
|
|
323
|
-
* Normalized
|
|
409
|
+
* Normalized animation item for internal use
|
|
324
410
|
* - css is always in object form: { element, style }
|
|
325
411
|
* - normalizedOffset is always present
|
|
326
412
|
* @internal
|
|
327
413
|
*/
|
|
328
|
-
export type
|
|
414
|
+
export type NormalizedAnimationItem = Omit<AnimationItem, "css" | "offset"> & {
|
|
329
415
|
css?: {
|
|
330
416
|
element: HTMLElement;
|
|
331
417
|
style: (progress: number) => StyleObject;
|
|
@@ -333,26 +419,26 @@ export type NormalizedSpringItem = Omit<SpringItem, "css" | "offset"> & {
|
|
|
333
419
|
normalizedOffset: number;
|
|
334
420
|
};
|
|
335
421
|
/**
|
|
336
|
-
* Normalized multi-
|
|
422
|
+
* Normalized multi-animation config for internal use
|
|
337
423
|
* Schedule is always normalized to progress-based offsets
|
|
338
424
|
* @internal
|
|
339
425
|
*/
|
|
340
|
-
export type
|
|
341
|
-
|
|
426
|
+
export type NormalizedMultiAnimationConfig = Omit<MultiAnimationConfig, "items" | "schedule"> & {
|
|
427
|
+
items: NormalizedAnimationItem[];
|
|
342
428
|
};
|
|
343
429
|
/**
|
|
344
|
-
* Normalize
|
|
430
|
+
* Normalize MultiAnimationConfig schedule to progress-based offsets
|
|
345
431
|
*
|
|
346
432
|
* Converts user-facing schedule types to unified offset values:
|
|
347
|
-
* - parallel: All
|
|
348
|
-
* - sequential: All
|
|
349
|
-
* - stagger: Use each
|
|
433
|
+
* - parallel: All items get offset 0 (start together)
|
|
434
|
+
* - sequential: All items get offset 1 (wait for previous)
|
|
435
|
+
* - stagger: Use each item's custom offset (0-1)
|
|
350
436
|
*
|
|
351
437
|
* Also normalizes css to object form: { element, style }
|
|
352
438
|
*
|
|
353
439
|
* @internal
|
|
354
440
|
*/
|
|
355
|
-
export declare function
|
|
441
|
+
export declare function normalizeSchedule(config: MultiAnimationConfig, element?: HTMLElement): NormalizedMultiAnimationConfig;
|
|
356
442
|
/**
|
|
357
443
|
* Animation state
|
|
358
444
|
* For MultiAnimator: returns first animator's state
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C;;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,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,WAAW,GACpB,8BAA8B,CA8ChC;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -1,77 +1,70 @@
|
|
|
1
|
-
function
|
|
2
|
-
return ("tick" in
|
|
1
|
+
function p(t) {
|
|
2
|
+
return ("tick" in t || "css" in t) && !("items" in t);
|
|
3
3
|
}
|
|
4
|
-
function u(
|
|
5
|
-
return "
|
|
4
|
+
function u(t) {
|
|
5
|
+
return "items" in t;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
return "css" in
|
|
7
|
+
function f(t) {
|
|
8
|
+
return "css" in t && typeof t.css == "function";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return "tick" in
|
|
10
|
+
function h(t) {
|
|
11
|
+
return "tick" in t && typeof t.tick == "function";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"SingleSpringConfig cannot have both 'tick' and 'css' defined. Use one or the other."
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
function h(n) {
|
|
20
|
-
if (n.tick && n.css)
|
|
21
|
-
throw new Error(
|
|
22
|
-
"SpringItem cannot have both 'tick' and 'css' defined. Use one or the other."
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
async function k(n) {
|
|
26
|
-
const e = await n;
|
|
27
|
-
return u(e) ? (e.springs.forEach(h), e) : (f(e), {
|
|
13
|
+
async function k(t) {
|
|
14
|
+
const e = await t;
|
|
15
|
+
return u(e) ? {
|
|
28
16
|
prepare: e.prepare,
|
|
29
17
|
wait: e.wait,
|
|
30
18
|
onStart: e.onStart,
|
|
31
19
|
onEnd: e.onEnd,
|
|
32
|
-
|
|
20
|
+
items: e.items,
|
|
21
|
+
schedule: e.schedule
|
|
22
|
+
} : {
|
|
23
|
+
prepare: e.prepare,
|
|
24
|
+
wait: e.wait,
|
|
25
|
+
onStart: e.onStart,
|
|
26
|
+
onEnd: e.onEnd,
|
|
27
|
+
items: [
|
|
33
28
|
{
|
|
34
|
-
|
|
29
|
+
physics: e.physics,
|
|
35
30
|
tick: e.tick,
|
|
36
31
|
css: e.css
|
|
37
32
|
}
|
|
38
33
|
],
|
|
39
34
|
schedule: "parallel"
|
|
40
|
-
}
|
|
35
|
+
};
|
|
41
36
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
(
|
|
45
|
-
let
|
|
46
|
-
switch (
|
|
37
|
+
function y(t, e) {
|
|
38
|
+
const a = t.schedule ?? "parallel", r = t.items.map(
|
|
39
|
+
(i) => {
|
|
40
|
+
let n;
|
|
41
|
+
switch (a) {
|
|
47
42
|
case "parallel":
|
|
48
|
-
|
|
43
|
+
n = 0;
|
|
49
44
|
break;
|
|
50
45
|
case "sequential":
|
|
51
|
-
|
|
46
|
+
n = 1;
|
|
52
47
|
break;
|
|
53
48
|
case "stagger":
|
|
54
|
-
|
|
49
|
+
n = Math.max(0, Math.min(1, i.offset ?? 0));
|
|
55
50
|
break;
|
|
56
51
|
default:
|
|
57
|
-
|
|
52
|
+
n = 0;
|
|
58
53
|
}
|
|
59
|
-
const { css:
|
|
60
|
-
return { ...c, css: l, normalizedOffset:
|
|
54
|
+
const { css: s, offset: d, ...c } = i, l = s ? typeof s == "function" ? e ? { element: e, style: s } : void 0 : { element: s.element, style: s.style } : void 0;
|
|
55
|
+
return { ...c, css: l, normalizedOffset: n };
|
|
61
56
|
}
|
|
62
|
-
), { schedule:
|
|
57
|
+
), { schedule: m, ...o } = t;
|
|
63
58
|
return {
|
|
64
|
-
...
|
|
65
|
-
|
|
59
|
+
...o,
|
|
60
|
+
items: r
|
|
66
61
|
};
|
|
67
62
|
}
|
|
68
63
|
export {
|
|
69
|
-
|
|
70
|
-
u as
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
k as
|
|
75
|
-
f as validateAnimationMode,
|
|
76
|
-
h as validateSpringItem
|
|
64
|
+
f as isCssAnimation,
|
|
65
|
+
u as isMultiAnimation,
|
|
66
|
+
p as isSingleAnimation,
|
|
67
|
+
h as isTickAnimation,
|
|
68
|
+
y as normalizeSchedule,
|
|
69
|
+
k as normalizeToMultiAnimation
|
|
77
70
|
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Waits for the browser to complete a paint cycle.
|
|
3
|
+
*
|
|
4
|
+
* This ensures that any style changes have been applied and the element
|
|
5
|
+
* has been painted to the screen before starting animations.
|
|
6
|
+
*
|
|
7
|
+
* Currently uses double requestAnimationFrame as a reliable cross-browser
|
|
8
|
+
* approach. In the future, this could be replaced with a native API when
|
|
9
|
+
* available (e.g., a proposed `element.waitForPaint()` or similar).
|
|
10
|
+
*
|
|
11
|
+
* @param _element - The element to wait for (reserved for future API usage)
|
|
12
|
+
* @returns A promise that resolves after the paint cycle completes
|
|
13
|
+
*/
|
|
14
|
+
export declare function waitPaint(_element?: Element): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=wait-paint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-paint.d.ts","sourceRoot":"","sources":["../../src/lib/utils/wait-paint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,wBAAgB,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAW3D"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SggoiTransition, PhysicsOptions } from '../types';
|
|
2
2
|
interface BlindOptions {
|
|
3
|
-
|
|
4
|
-
outSpring?: SpringConfig;
|
|
3
|
+
physics?: PhysicsOptions;
|
|
5
4
|
transitionDelay?: number;
|
|
6
5
|
blindCount?: number;
|
|
7
6
|
direction?: "horizontal" | "vertical";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blind.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/blind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"blind.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/blind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAGf,cAAc,EACf,MAAM,UAAU,CAAC;AAelB,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eA0MlD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SggoiTransition,
|
|
1
|
+
import { SggoiTransition, PhysicsOptions } from '../types';
|
|
2
2
|
type CurtainShape = "circle" | "square" | "triangle";
|
|
3
3
|
interface CurtainRevealOptions {
|
|
4
4
|
/** Background style.
|
|
@@ -10,9 +10,8 @@ interface CurtainRevealOptions {
|
|
|
10
10
|
background?: string;
|
|
11
11
|
texts?: string[];
|
|
12
12
|
shape?: CurtainShape;
|
|
13
|
-
inSpring?: SpringConfig;
|
|
14
|
-
outSpring?: SpringConfig;
|
|
15
13
|
textStyle?: Partial<CSSStyleDeclaration>;
|
|
14
|
+
physics?: PhysicsOptions;
|
|
16
15
|
}
|
|
17
16
|
export declare const curtainReveal: (options?: CurtainRevealOptions) => SggoiTransition;
|
|
18
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curtain-reveal.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/curtain-reveal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"curtain-reveal.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/curtain-reveal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAqDhE,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAErD,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAmBD,eAAO,MAAM,aAAa,GACxB,UAAS,oBAAyB,KACjC,eA6HF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PhysicsOptions, SggoiTransition } from '../types';
|
|
2
2
|
interface DepthOptions {
|
|
3
3
|
direction?: "enter" | "exit";
|
|
4
|
-
|
|
4
|
+
physics?: PhysicsOptions;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Material Design Z-Axis depth transition
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAGhB,MAAM,UAAU,CAAC;AA0BlB,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAoBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eA8JlD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PhysicsOptions, SggoiTransition } from '../types';
|
|
2
2
|
interface DrillOptions {
|
|
3
3
|
opacity?: boolean;
|
|
4
4
|
direction?: "enter" | "exit";
|
|
5
|
-
|
|
5
|
+
physics?: PhysicsOptions;
|
|
6
6
|
}
|
|
7
7
|
export declare const drill: (options?: DrillOptions) => SggoiTransition;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drill.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/drill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"drill.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/drill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAiB7E,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAoHlD,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SggoiTransition, PhysicsOptions } from '../types';
|
|
2
2
|
interface FadeOptions {
|
|
3
|
-
inSpring?: SpringConfig;
|
|
4
|
-
outSpring?: SpringConfig;
|
|
5
3
|
transitionDelay?: number;
|
|
4
|
+
physics?: PhysicsOptions;
|
|
6
5
|
}
|
|
7
6
|
export declare const fade: (options?: FadeOptions) => SggoiTransition;
|
|
8
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,cAAc,EAAE,MAAM,UAAU,CAAC;AAY7E,UAAU,WAAW;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAwDhD,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SggoiTransition } from '../types';
|
|
1
|
+
import { PhysicsOptions, SggoiTransition } from '../types';
|
|
2
2
|
interface FilmOptions {
|
|
3
3
|
border?: {
|
|
4
4
|
color?: string;
|
|
5
5
|
};
|
|
6
|
+
physics?: PhysicsOptions;
|
|
6
7
|
}
|
|
7
8
|
export declare const film: (options?: FilmOptions) => SggoiTransition;
|
|
8
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/film.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EAGhB,MAAM,UAAU,CAAC;AAsBlB,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/film.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,eAAe,EAGhB,MAAM,UAAU,CAAC;AAsBlB,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAU,WAAW,KAAG,eA+J5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAShE,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAwIhD,CAAC"}
|