use-scroll-animate 6.6.0 → 6.8.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/chunks/{gpu-EjV49FQk.js → gpu-CsP2ZB3x.js} +2 -2
  3. package/dist/chunks/{gpu-EjV49FQk.js.map → gpu-CsP2ZB3x.js.map} +1 -1
  4. package/dist/chunks/{registry-Bu5NrAyA.js → registry-D23neB4M.js} +2 -2
  5. package/dist/chunks/{registry-Bu5NrAyA.js.map → registry-D23neB4M.js.map} +1 -1
  6. package/dist/components/angular.js +1 -1
  7. package/dist/components/effects.js +1 -1
  8. package/dist/components/fx-3d.js +1 -1
  9. package/dist/components/fx-gpu.js +2 -2
  10. package/dist/components/fx-light.js +1 -1
  11. package/dist/components/fx-morph.js +1 -1
  12. package/dist/components/fx-physics.cjs +344 -0
  13. package/dist/components/fx-physics.cjs.map +1 -0
  14. package/dist/components/fx-physics.d.cts +92 -0
  15. package/dist/components/fx-physics.d.ts +92 -0
  16. package/dist/components/fx-physics.js +340 -0
  17. package/dist/components/fx-physics.js.map +1 -0
  18. package/dist/components/fx-text.js +1 -1
  19. package/dist/components/fx-transitions.cjs +249 -0
  20. package/dist/components/fx-transitions.cjs.map +1 -0
  21. package/dist/components/fx-transitions.d.cts +77 -0
  22. package/dist/components/fx-transitions.d.ts +77 -0
  23. package/dist/components/fx-transitions.js +244 -0
  24. package/dist/components/fx-transitions.js.map +1 -0
  25. package/dist/components/fx-weather.cjs +265 -0
  26. package/dist/components/fx-weather.cjs.map +1 -0
  27. package/dist/components/fx-weather.d.cts +70 -0
  28. package/dist/components/fx-weather.d.ts +70 -0
  29. package/dist/components/fx-weather.js +261 -0
  30. package/dist/components/fx-weather.js.map +1 -0
  31. package/dist/components/fx.js +2 -2
  32. package/dist/components/fx2.cjs +19 -0
  33. package/dist/components/fx2.cjs.map +1 -1
  34. package/dist/components/fx2.d.cts +107 -1
  35. package/dist/components/fx2.d.ts +107 -1
  36. package/dist/components/fx2.js +16 -4
  37. package/dist/components/fx2.js.map +1 -1
  38. package/dist/components/solid.js +1 -1
  39. package/dist/components/svelte.js +1 -1
  40. package/dist/components/vue.js +1 -1
  41. package/dist/components/widgets.cjs +1033 -37
  42. package/dist/components/widgets.cjs.map +1 -1
  43. package/dist/components/widgets.d.cts +143 -2
  44. package/dist/components/widgets.d.ts +143 -2
  45. package/dist/components/widgets.js +1022 -38
  46. package/dist/components/widgets.js.map +1 -1
  47. package/dist/components.js +1 -1
  48. package/dist/widgets.umd.js +1 -1
  49. package/dist/widgets.umd.js.map +1 -1
  50. package/docs/ROADMAP.md +2 -2
  51. package/docs/components.md +50 -0
  52. package/package.json +31 -1
@@ -164,6 +164,112 @@ declare const MORPH2_FX: EffectDefinition[];
164
164
  /** Register the 6.6 morph & SVG pack (idempotent). */
165
165
  declare function registerMorphEffects2(): void;
166
166
 
167
+ /**
168
+ * 6.7 — Transitions 2.0 (`motionary/components/fx-transitions`), registered
169
+ * through `registerEffect()` (kind `page`; option `mode: 'in' | 'out'`):
170
+ *
171
+ * - `ripple-dissolve` — a circle with a ripple ring grows from the pointer
172
+ * (or `x` / `y` 0–1) and reveals / hides the element.
173
+ * - `shatter` — the element breaks into shards that fly apart (out) or
174
+ * fly together (in).
175
+ * - `mosaic-flip` — a grid of tiles flips over in a diagonal wave.
176
+ * - `liquid-wipe` — a wavy liquid edge sweeps across.
177
+ * - `page-curl` — the element turns like a page around its left edge.
178
+ * - `camera-dolly` — a dolly zoom: scale + depth blur + fade.
179
+ *
180
+ * `pageTransition(update, effect)` runs a DOM update inside the View
181
+ * Transitions API (when available) and plays the effect on the new snapshot;
182
+ * without the API it runs `update()` and plays the effect on `target`.
183
+ * `crossDocumentTransitions(effect)` opts an MPA into cross-document view
184
+ * transitions (`@view-transition { navigation: auto }`) with the same look.
185
+ * Reduced motion: plain short fades.
186
+ */
187
+
188
+ declare const TRANSITIONS2_FX: EffectDefinition[];
189
+ /**
190
+ * Run `update` (a DOM change) as a transition: inside `document.startViewTransition`
191
+ * when supported (the new snapshot plays `effect`), otherwise `update()` then the
192
+ * effect on `target` (default `document.body`'s first element).
193
+ */
194
+ declare function pageTransition(update: () => void | Promise<void>, effect?: string, options?: Record<string, unknown>, target?: HTMLElement): Promise<void>;
195
+ /** Opt a multi-page site into cross-document view transitions with an effect's look. Returns a remover. */
196
+ declare function crossDocumentTransitions(effect?: string, duration?: number): () => void;
197
+ /** Register the 6.7 transitions pack (idempotent). */
198
+ declare function registerTransitionEffects2(): void;
199
+
200
+ /**
201
+ * 6.8 — Weather & ambience (`motionary/components/fx-weather`), registered
202
+ * through `registerEffect()` (kind `background`, Canvas 2D):
203
+ *
204
+ * - `rain-glass` — droplets sit on a window pane, grow, and run down leaving
205
+ * trails.
206
+ * - `snowfall` — flakes drift down and pile up along the bottom edge.
207
+ * - `lightning` — a safe storm: branching bolts at most once per `interval`
208
+ * (≥ 2.5 s, far below the WCAG 2.3.1 limit of 3 flashes / s), the sky glow
209
+ * is capped at 22 % brightness and there is no flash at all under reduced
210
+ * motion.
211
+ * - `fog` — soft layered fog banks drifting at different speeds.
212
+ * - `aurora-veil` — curtains of northern lights waving over a night sky.
213
+ * - `day-cycle` — the sky moves through dawn, day, dusk and night with the sun
214
+ * and moon on an arc (`cycle` seconds, or a fixed `hour` 0–24).
215
+ *
216
+ * Every effect renders only while visible, adapts its quality and draws one
217
+ * static frame under reduced motion.
218
+ */
219
+
220
+ /** Sky colours (top, bottom) for an hour 0–24. */
221
+ declare function skyAt(hour: number): [string, string];
222
+ declare const WEATHER_FX: EffectDefinition[];
223
+ /** Register the 6.8 weather & ambience pack (idempotent). */
224
+ declare function registerWeatherEffects(): void;
225
+
226
+ /**
227
+ * 6.8 — Interactive physics 2.0 (`motionary/components/fx-physics`) on a tiny
228
+ * Verlet integrator (`VerletWorld`), registered through `registerEffect()`:
229
+ *
230
+ * - `soft-body` (kind `hover`) — the element wobbles like jelly: pointer
231
+ * motion pushes a damped spring that squashes and skews it.
232
+ * - `magnet` (kind `hover`) — the element's children are pulled toward the
233
+ * pointer on springs and settle back when it leaves.
234
+ * - `cloth` (kind `background`) — a cloth hangs from the top edge and ripples
235
+ * when the pointer moves through it.
236
+ * - `rope` (kind `background`) — a rope with a weight swings from the top;
237
+ * the pointer pushes it.
238
+ * - `pinball` (kind `background`) — balls fall through round bumpers that
239
+ * light up on a hit; click to drop another ball.
240
+ *
241
+ * Canvas effects render only while visible; reduced motion draws one static
242
+ * frame and the hover effects do nothing.
243
+ */
244
+
245
+ interface VerletPoint {
246
+ x: number;
247
+ y: number;
248
+ px: number;
249
+ py: number;
250
+ pinned: boolean;
251
+ }
252
+ /** A minimal Verlet world: points, distance sticks, gravity, damping. */
253
+ declare class VerletWorld {
254
+ gravity: number;
255
+ damping: number;
256
+ iterations: number;
257
+ points: VerletPoint[];
258
+ sticks: [number, number, number][];
259
+ constructor(gravity?: number, damping?: number, iterations?: number);
260
+ add(x: number, y: number, pinned?: boolean): number;
261
+ link(a: number, b: number, len?: number): void;
262
+ step(dt: number, bounds?: {
263
+ w: number;
264
+ h: number;
265
+ }): void;
266
+ /** Push points within `r` px of (x, y) by (dx, dy). */
267
+ push(x: number, y: number, dx: number, dy: number, r?: number): void;
268
+ }
269
+ declare const PHYSICS2_FX: EffectDefinition[];
270
+ /** Register the 6.8 physics 2.0 pack (idempotent). */
271
+ declare function registerPhysicsEffects2(): void;
272
+
167
273
  /**
168
274
  * 5.5 — generative backgrounds on Canvas 2D, registered through
169
275
  * `registerEffect()` (kind `background`): `flow-field`, `voronoi`,
@@ -236,5 +342,5 @@ declare const FX2_PACKS: Record<string, EffectDefinition[]>;
236
342
  /** Register every 6.x pack (idempotent). */
237
343
  declare function registerFx2(): void;
238
344
 
239
- export { DEPTH3_FX, FX2_PACKS, GLSL_HEAD, GPU_FX, LIGHT_FX, MORPH2_FX, TEXT3_FX, fieldFallback, pointsToPath, register3dEffects, registerFx2, registerGpuEffects, registerLightEffects, registerMorphEffects2, registerTextEffects3, samplePath, shaderBackground, splitChars, supportsWebGL2, trackPointer };
345
+ export { DEPTH3_FX, FX2_PACKS, GLSL_HEAD, GPU_FX, LIGHT_FX, MORPH2_FX, PHYSICS2_FX, TEXT3_FX, TRANSITIONS2_FX, VerletWorld, WEATHER_FX, crossDocumentTransitions, fieldFallback, pageTransition, pointsToPath, register3dEffects, registerFx2, registerGpuEffects, registerLightEffects, registerMorphEffects2, registerPhysicsEffects2, registerTextEffects3, registerTransitionEffects2, registerWeatherEffects, samplePath, shaderBackground, skyAt, splitChars, supportsWebGL2, trackPointer };
240
346
  export type { ShaderSpec };
@@ -164,6 +164,112 @@ declare const MORPH2_FX: EffectDefinition[];
164
164
  /** Register the 6.6 morph & SVG pack (idempotent). */
165
165
  declare function registerMorphEffects2(): void;
166
166
 
167
+ /**
168
+ * 6.7 — Transitions 2.0 (`motionary/components/fx-transitions`), registered
169
+ * through `registerEffect()` (kind `page`; option `mode: 'in' | 'out'`):
170
+ *
171
+ * - `ripple-dissolve` — a circle with a ripple ring grows from the pointer
172
+ * (or `x` / `y` 0–1) and reveals / hides the element.
173
+ * - `shatter` — the element breaks into shards that fly apart (out) or
174
+ * fly together (in).
175
+ * - `mosaic-flip` — a grid of tiles flips over in a diagonal wave.
176
+ * - `liquid-wipe` — a wavy liquid edge sweeps across.
177
+ * - `page-curl` — the element turns like a page around its left edge.
178
+ * - `camera-dolly` — a dolly zoom: scale + depth blur + fade.
179
+ *
180
+ * `pageTransition(update, effect)` runs a DOM update inside the View
181
+ * Transitions API (when available) and plays the effect on the new snapshot;
182
+ * without the API it runs `update()` and plays the effect on `target`.
183
+ * `crossDocumentTransitions(effect)` opts an MPA into cross-document view
184
+ * transitions (`@view-transition { navigation: auto }`) with the same look.
185
+ * Reduced motion: plain short fades.
186
+ */
187
+
188
+ declare const TRANSITIONS2_FX: EffectDefinition[];
189
+ /**
190
+ * Run `update` (a DOM change) as a transition: inside `document.startViewTransition`
191
+ * when supported (the new snapshot plays `effect`), otherwise `update()` then the
192
+ * effect on `target` (default `document.body`'s first element).
193
+ */
194
+ declare function pageTransition(update: () => void | Promise<void>, effect?: string, options?: Record<string, unknown>, target?: HTMLElement): Promise<void>;
195
+ /** Opt a multi-page site into cross-document view transitions with an effect's look. Returns a remover. */
196
+ declare function crossDocumentTransitions(effect?: string, duration?: number): () => void;
197
+ /** Register the 6.7 transitions pack (idempotent). */
198
+ declare function registerTransitionEffects2(): void;
199
+
200
+ /**
201
+ * 6.8 — Weather & ambience (`motionary/components/fx-weather`), registered
202
+ * through `registerEffect()` (kind `background`, Canvas 2D):
203
+ *
204
+ * - `rain-glass` — droplets sit on a window pane, grow, and run down leaving
205
+ * trails.
206
+ * - `snowfall` — flakes drift down and pile up along the bottom edge.
207
+ * - `lightning` — a safe storm: branching bolts at most once per `interval`
208
+ * (≥ 2.5 s, far below the WCAG 2.3.1 limit of 3 flashes / s), the sky glow
209
+ * is capped at 22 % brightness and there is no flash at all under reduced
210
+ * motion.
211
+ * - `fog` — soft layered fog banks drifting at different speeds.
212
+ * - `aurora-veil` — curtains of northern lights waving over a night sky.
213
+ * - `day-cycle` — the sky moves through dawn, day, dusk and night with the sun
214
+ * and moon on an arc (`cycle` seconds, or a fixed `hour` 0–24).
215
+ *
216
+ * Every effect renders only while visible, adapts its quality and draws one
217
+ * static frame under reduced motion.
218
+ */
219
+
220
+ /** Sky colours (top, bottom) for an hour 0–24. */
221
+ declare function skyAt(hour: number): [string, string];
222
+ declare const WEATHER_FX: EffectDefinition[];
223
+ /** Register the 6.8 weather & ambience pack (idempotent). */
224
+ declare function registerWeatherEffects(): void;
225
+
226
+ /**
227
+ * 6.8 — Interactive physics 2.0 (`motionary/components/fx-physics`) on a tiny
228
+ * Verlet integrator (`VerletWorld`), registered through `registerEffect()`:
229
+ *
230
+ * - `soft-body` (kind `hover`) — the element wobbles like jelly: pointer
231
+ * motion pushes a damped spring that squashes and skews it.
232
+ * - `magnet` (kind `hover`) — the element's children are pulled toward the
233
+ * pointer on springs and settle back when it leaves.
234
+ * - `cloth` (kind `background`) — a cloth hangs from the top edge and ripples
235
+ * when the pointer moves through it.
236
+ * - `rope` (kind `background`) — a rope with a weight swings from the top;
237
+ * the pointer pushes it.
238
+ * - `pinball` (kind `background`) — balls fall through round bumpers that
239
+ * light up on a hit; click to drop another ball.
240
+ *
241
+ * Canvas effects render only while visible; reduced motion draws one static
242
+ * frame and the hover effects do nothing.
243
+ */
244
+
245
+ interface VerletPoint {
246
+ x: number;
247
+ y: number;
248
+ px: number;
249
+ py: number;
250
+ pinned: boolean;
251
+ }
252
+ /** A minimal Verlet world: points, distance sticks, gravity, damping. */
253
+ declare class VerletWorld {
254
+ gravity: number;
255
+ damping: number;
256
+ iterations: number;
257
+ points: VerletPoint[];
258
+ sticks: [number, number, number][];
259
+ constructor(gravity?: number, damping?: number, iterations?: number);
260
+ add(x: number, y: number, pinned?: boolean): number;
261
+ link(a: number, b: number, len?: number): void;
262
+ step(dt: number, bounds?: {
263
+ w: number;
264
+ h: number;
265
+ }): void;
266
+ /** Push points within `r` px of (x, y) by (dx, dy). */
267
+ push(x: number, y: number, dx: number, dy: number, r?: number): void;
268
+ }
269
+ declare const PHYSICS2_FX: EffectDefinition[];
270
+ /** Register the 6.8 physics 2.0 pack (idempotent). */
271
+ declare function registerPhysicsEffects2(): void;
272
+
167
273
  /**
168
274
  * 5.5 — generative backgrounds on Canvas 2D, registered through
169
275
  * `registerEffect()` (kind `background`): `flow-field`, `voronoi`,
@@ -236,5 +342,5 @@ declare const FX2_PACKS: Record<string, EffectDefinition[]>;
236
342
  /** Register every 6.x pack (idempotent). */
237
343
  declare function registerFx2(): void;
238
344
 
239
- export { DEPTH3_FX, FX2_PACKS, GLSL_HEAD, GPU_FX, LIGHT_FX, MORPH2_FX, TEXT3_FX, fieldFallback, pointsToPath, register3dEffects, registerFx2, registerGpuEffects, registerLightEffects, registerMorphEffects2, registerTextEffects3, samplePath, shaderBackground, splitChars, supportsWebGL2, trackPointer };
345
+ export { DEPTH3_FX, FX2_PACKS, GLSL_HEAD, GPU_FX, LIGHT_FX, MORPH2_FX, PHYSICS2_FX, TEXT3_FX, TRANSITIONS2_FX, VerletWorld, WEATHER_FX, crossDocumentTransitions, fieldFallback, pageTransition, pointsToPath, register3dEffects, registerFx2, registerGpuEffects, registerLightEffects, registerMorphEffects2, registerPhysicsEffects2, registerTextEffects3, registerTransitionEffects2, registerWeatherEffects, samplePath, shaderBackground, skyAt, splitChars, supportsWebGL2, trackPointer };
240
346
  export type { ShaderSpec };
@@ -1,5 +1,5 @@
1
- import { G as GPU_FX, r as registerGpuEffects } from '../chunks/gpu-EjV49FQk.js';
2
- export { a as GLSL_HEAD, f as fieldFallback, s as shaderBackground, b as supportsWebGL2 } from '../chunks/gpu-EjV49FQk.js';
1
+ import { G as GPU_FX, r as registerGpuEffects } from '../chunks/gpu-CsP2ZB3x.js';
2
+ export { a as GLSL_HEAD, f as fieldFallback, s as shaderBackground, b as supportsWebGL2 } from '../chunks/gpu-CsP2ZB3x.js';
3
3
  import { TEXT3_FX, registerTextEffects3 } from './fx-text.js';
4
4
  export { splitChars } from './fx-text.js';
5
5
  import { LIGHT_FX, registerLightEffects } from './fx-light.js';
@@ -7,7 +7,13 @@ export { trackPointer } from './fx-light.js';
7
7
  import { DEPTH3_FX, register3dEffects } from './fx-3d.js';
8
8
  import { MORPH2_FX, registerMorphEffects2 } from './fx-morph.js';
9
9
  export { pointsToPath, samplePath } from './fx-morph.js';
10
- import '../chunks/registry-Bu5NrAyA.js';
10
+ import { TRANSITIONS2_FX, registerTransitionEffects2 } from './fx-transitions.js';
11
+ export { crossDocumentTransitions, pageTransition } from './fx-transitions.js';
12
+ import { WEATHER_FX, registerWeatherEffects } from './fx-weather.js';
13
+ export { skyAt } from './fx-weather.js';
14
+ import { PHYSICS2_FX, registerPhysicsEffects2 } from './fx-physics.js';
15
+ export { VerletWorld } from './fx-physics.js';
16
+ import '../chunks/registry-D23neB4M.js';
11
17
  import '../chunks/base-DchG4q_S.js';
12
18
  import '../chunks/generative-2LhxG5BJ.js';
13
19
  import '../chunks/shared-CkKHWrtJ.js';
@@ -19,6 +25,9 @@ const FX2_PACKS = {
19
25
  light: LIGHT_FX,
20
26
  depth: DEPTH3_FX,
21
27
  morph: MORPH2_FX,
28
+ transitions: TRANSITIONS2_FX,
29
+ weather: WEATHER_FX,
30
+ physics: PHYSICS2_FX,
22
31
  };
23
32
  /** Register every 6.x pack (idempotent). */
24
33
  function registerFx2() {
@@ -27,7 +36,10 @@ function registerFx2() {
27
36
  registerLightEffects();
28
37
  register3dEffects();
29
38
  registerMorphEffects2();
39
+ registerTransitionEffects2();
40
+ registerWeatherEffects();
41
+ registerPhysicsEffects2();
30
42
  }
31
43
 
32
- export { DEPTH3_FX, FX2_PACKS, GPU_FX, LIGHT_FX, MORPH2_FX, TEXT3_FX, register3dEffects, registerFx2, registerGpuEffects, registerLightEffects, registerMorphEffects2, registerTextEffects3 };
44
+ export { DEPTH3_FX, FX2_PACKS, GPU_FX, LIGHT_FX, MORPH2_FX, PHYSICS2_FX, TEXT3_FX, TRANSITIONS2_FX, WEATHER_FX, register3dEffects, registerFx2, registerGpuEffects, registerLightEffects, registerMorphEffects2, registerPhysicsEffects2, registerTextEffects3, registerTransitionEffects2, registerWeatherEffects };
33
45
  //# sourceMappingURL=fx2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fx2.js","sources":["../../src/components/fx2/index.ts"],"sourcesContent":["/**\n * The 6.x effect packs, one entry each (`motionary/components/fx-gpu`, …) so\n * their size budgets stay separate. This module (`registerFx2()`) registers\n * them all — used by dist/widgets.umd.js and the showcase.\n */\nimport type { EffectDefinition } from '../fx/registry';\nimport { GPU_FX, registerGpuEffects } from './gpu';\nimport { TEXT3_FX, registerTextEffects3, splitChars } from './text3';\nimport { LIGHT_FX, registerLightEffects, trackPointer } from './light';\nimport { DEPTH3_FX, register3dEffects } from './depth3';\nimport { MORPH2_FX, registerMorphEffects2, samplePath, pointsToPath } from './morph2';\n\nexport { GPU_FX, registerGpuEffects, TEXT3_FX, registerTextEffects3, splitChars };\nexport { shaderBackground, supportsWebGL2, fieldFallback, GLSL_HEAD } from './gl';\nexport type { ShaderSpec } from './gl';\n\nexport { LIGHT_FX, registerLightEffects, trackPointer };\n\nexport { DEPTH3_FX, register3dEffects };\n\nexport { MORPH2_FX, registerMorphEffects2, samplePath, pointsToPath };\n\n/** The 6.x effect packs by name. */\nexport const FX2_PACKS: Record<string, EffectDefinition[]> = {\n gpu: GPU_FX,\n text: TEXT3_FX,\n light: LIGHT_FX,\n depth: DEPTH3_FX,\n morph: MORPH2_FX,\n};\n\n/** Register every 6.x pack (idempotent). */\nexport function registerFx2(): void {\n registerGpuEffects();\n registerTextEffects3();\n registerLightEffects();\n register3dEffects();\n registerMorphEffects2();\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAsBA;AACO,MAAM,SAAS,GAAuC;AAC3D,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,KAAK,EAAE,SAAS;;AAGlB;SACgB,WAAW,GAAA;AACzB,IAAA,kBAAkB,EAAE;AACpB,IAAA,oBAAoB,EAAE;AACtB,IAAA,oBAAoB,EAAE;AACtB,IAAA,iBAAiB,EAAE;AACnB,IAAA,qBAAqB,EAAE;AACzB;;;;"}
1
+ {"version":3,"file":"fx2.js","sources":["../../src/components/fx2/index.ts"],"sourcesContent":["/**\n * The 6.x effect packs, one entry each (`motionary/components/fx-gpu`, …) so\n * their size budgets stay separate. This module (`registerFx2()`) registers\n * them all — used by dist/widgets.umd.js and the showcase.\n */\nimport type { EffectDefinition } from '../fx/registry';\nimport { GPU_FX, registerGpuEffects } from './gpu';\nimport { TEXT3_FX, registerTextEffects3, splitChars } from './text3';\nimport { LIGHT_FX, registerLightEffects, trackPointer } from './light';\nimport { DEPTH3_FX, register3dEffects } from './depth3';\nimport { MORPH2_FX, registerMorphEffects2, samplePath, pointsToPath } from './morph2';\nimport { TRANSITIONS2_FX, registerTransitionEffects2, pageTransition, crossDocumentTransitions } from './transitions2';\nimport { WEATHER_FX, registerWeatherEffects, skyAt } from './weather';\nimport { PHYSICS2_FX, registerPhysicsEffects2, VerletWorld } from './physics2';\n\nexport { GPU_FX, registerGpuEffects, TEXT3_FX, registerTextEffects3, splitChars };\nexport { shaderBackground, supportsWebGL2, fieldFallback, GLSL_HEAD } from './gl';\nexport type { ShaderSpec } from './gl';\n\nexport { LIGHT_FX, registerLightEffects, trackPointer };\n\nexport { DEPTH3_FX, register3dEffects };\n\nexport { MORPH2_FX, registerMorphEffects2, samplePath, pointsToPath };\n\nexport { TRANSITIONS2_FX, registerTransitionEffects2, pageTransition, crossDocumentTransitions };\n\nexport { WEATHER_FX, registerWeatherEffects, skyAt };\n\nexport { PHYSICS2_FX, registerPhysicsEffects2, VerletWorld };\n\n/** The 6.x effect packs by name. */\nexport const FX2_PACKS: Record<string, EffectDefinition[]> = {\n gpu: GPU_FX,\n text: TEXT3_FX,\n light: LIGHT_FX,\n depth: DEPTH3_FX,\n morph: MORPH2_FX,\n transitions: TRANSITIONS2_FX,\n weather: WEATHER_FX,\n physics: PHYSICS2_FX,\n};\n\n/** Register every 6.x pack (idempotent). */\nexport function registerFx2(): void {\n registerGpuEffects();\n registerTextEffects3();\n registerLightEffects();\n register3dEffects();\n registerMorphEffects2();\n registerTransitionEffects2();\n registerWeatherEffects();\n registerPhysicsEffects2();\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA+BA;AACO,MAAM,SAAS,GAAuC;AAC3D,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,WAAW,EAAE,eAAe;AAC5B,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,OAAO,EAAE,WAAW;;AAGtB;SACgB,WAAW,GAAA;AACzB,IAAA,kBAAkB,EAAE;AACpB,IAAA,oBAAoB,EAAE;AACtB,IAAA,oBAAoB,EAAE;AACtB,IAAA,iBAAiB,EAAE;AACnB,IAAA,qBAAqB,EAAE;AACvB,IAAA,0BAA0B,EAAE;AAC5B,IAAA,sBAAsB,EAAE;AACxB,IAAA,uBAAuB,EAAE;AAC3B;;;;"}
@@ -28,7 +28,7 @@ import './depth.js';
28
28
  import './layout.js';
29
29
  import './packs.js';
30
30
  import './fx.js';
31
- import '../chunks/registry-Bu5NrAyA.js';
31
+ import '../chunks/registry-D23neB4M.js';
32
32
  import './a11y.js';
33
33
  import '../chunks/index-tags-DucKMQr_.js';
34
34
  import './perf.js';
@@ -27,7 +27,7 @@ import './depth.js';
27
27
  import './layout.js';
28
28
  import './packs.js';
29
29
  import './fx.js';
30
- import '../chunks/registry-Bu5NrAyA.js';
30
+ import '../chunks/registry-D23neB4M.js';
31
31
  import './a11y.js';
32
32
  import '../chunks/index-tags-DucKMQr_.js';
33
33
  import './perf.js';
@@ -25,7 +25,7 @@ import './depth.js';
25
25
  import './layout.js';
26
26
  import './packs.js';
27
27
  import './fx.js';
28
- import '../chunks/registry-Bu5NrAyA.js';
28
+ import '../chunks/registry-D23neB4M.js';
29
29
  import './a11y.js';
30
30
  import '../chunks/index-tags-DucKMQr_.js';
31
31
  import './perf.js';