shaders 2.2.47 → 2.2.48

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 (126) hide show
  1. package/dist/core/FlowField-BJFGOUZL.js +103 -0
  2. package/dist/core/registry.js +90 -88
  3. package/dist/core/shaderRegistry.d.ts.map +1 -1
  4. package/dist/core/shaders/FlowField/index.d.ts +36 -0
  5. package/dist/core/shaders/FlowField/index.d.ts.map +1 -0
  6. package/dist/core/shaders/FlowField/index.js +5 -0
  7. package/dist/core/shaders/GlassTiles/index.js +1 -1
  8. package/dist/core/shaders/Glow/index.js +1 -1
  9. package/dist/core/shaders/Godrays/index.js +1 -1
  10. package/dist/core/shaders/Grayscale/index.js +1 -1
  11. package/dist/core/shaders/Grid/index.js +1 -1
  12. package/dist/core/shaders/GridDistortion/index.js +1 -1
  13. package/dist/core/shaders/Group/index.js +1 -1
  14. package/dist/core/shaders/Halftone/index.js +1 -1
  15. package/dist/core/shaders/HueShift/index.js +1 -1
  16. package/dist/core/shaders/ImageTexture/index.js +1 -1
  17. package/dist/core/shaders/Invert/index.js +1 -1
  18. package/dist/core/shaders/Kaleidoscope/index.js +1 -1
  19. package/dist/core/shaders/LinearBlur/index.js +1 -1
  20. package/dist/core/shaders/LinearGradient/index.js +1 -1
  21. package/dist/core/shaders/Liquify/index.js +1 -1
  22. package/dist/core/shaders/Mirror/index.js +1 -1
  23. package/dist/core/shaders/Perspective/index.js +1 -1
  24. package/dist/core/shaders/Pixelate/index.js +1 -1
  25. package/dist/core/shaders/PolarCoordinates/index.js +1 -1
  26. package/dist/core/shaders/Posterize/index.js +1 -1
  27. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  28. package/dist/core/shaders/RadialGradient/index.js +1 -1
  29. package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
  30. package/dist/core/shaders/Ripples/index.js +1 -1
  31. package/dist/core/shaders/Saturation/index.js +1 -1
  32. package/dist/core/shaders/Sharpness/index.js +1 -1
  33. package/dist/core/shaders/Shatter/index.js +1 -1
  34. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  35. package/dist/core/shaders/SineWave/index.js +1 -1
  36. package/dist/core/shaders/SolidColor/index.js +1 -1
  37. package/dist/core/shaders/Spherize/index.js +1 -1
  38. package/dist/core/shaders/Spiral/index.js +1 -1
  39. package/dist/core/shaders/Strands/index.js +1 -1
  40. package/dist/core/shaders/Stretch/index.js +1 -1
  41. package/dist/core/shaders/Stripes/index.js +1 -1
  42. package/dist/core/shaders/Swirl/index.js +1 -1
  43. package/dist/core/shaders/TiltShift/index.js +1 -1
  44. package/dist/core/shaders/Tint/index.js +1 -1
  45. package/dist/core/shaders/Tritone/index.js +1 -1
  46. package/dist/core/shaders/Twirl/index.js +1 -1
  47. package/dist/core/shaders/Vibrance/index.js +1 -1
  48. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  49. package/dist/core/shaders/WebcamTexture/index.js +1 -1
  50. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  51. package/dist/react/FlowField.js +144 -0
  52. package/dist/react/components/FlowField.d.ts +31 -0
  53. package/dist/react/components/FlowField.d.ts.map +1 -0
  54. package/dist/react/index.d.ts +1 -0
  55. package/dist/react/index.d.ts.map +1 -1
  56. package/dist/react/index.js +2 -1
  57. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  58. package/dist/react/utils/generatePresetCode.js +5 -0
  59. package/dist/registry.js +136 -0
  60. package/dist/solid/components/FlowField.d.ts +28 -0
  61. package/dist/solid/components/FlowField.d.ts.map +1 -0
  62. package/dist/solid/components/FlowField.js +148 -0
  63. package/dist/solid/index.d.ts +1 -0
  64. package/dist/solid/index.d.ts.map +1 -1
  65. package/dist/solid/index.js +92 -90
  66. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  67. package/dist/solid/utils/generatePresetCode.js +5 -0
  68. package/dist/svelte/components/FlowField.svelte.d.ts +19 -0
  69. package/dist/svelte/{generatePresetCode-on2wdSC3.js → generatePresetCode-BD0Ac86C.js} +5 -0
  70. package/dist/svelte/index.d.ts +1 -0
  71. package/dist/svelte/index.js +201 -90
  72. package/dist/svelte/utils/generatePresetCode.js +1 -1
  73. package/dist/vue/FlowField.js +3 -0
  74. package/dist/vue/FlowField.vue_vue_type_script_setup_true_lang.js +127 -0
  75. package/dist/vue/components/FlowField.vue.d.ts +57 -0
  76. package/dist/vue/components/FlowField.vue.d.ts.map +1 -0
  77. package/dist/vue/index.d.ts +1 -0
  78. package/dist/vue/index.d.ts.map +1 -1
  79. package/dist/vue/index.js +2 -1
  80. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  81. package/dist/vue/utils/generatePresetCode.js +5 -0
  82. package/package.json +9 -1
  83. /package/dist/core/{GlassTiles-C6LLjlnB.js → GlassTiles-DzYvo92U.js} +0 -0
  84. /package/dist/core/{Glow-C2avDr73.js → Glow-C4JrnNxe.js} +0 -0
  85. /package/dist/core/{Godrays-RVh5ylQ-.js → Godrays-CPWOcLmc.js} +0 -0
  86. /package/dist/core/{Grayscale-BH3tLDGN.js → Grayscale-BFS-Abdh.js} +0 -0
  87. /package/dist/core/{Grid-CdslWvoH.js → Grid-CsIIl3LT.js} +0 -0
  88. /package/dist/core/{GridDistortion-fimECOse.js → GridDistortion-Cq3hRKXK.js} +0 -0
  89. /package/dist/core/{Group-ByGv48Lm.js → Group-DHokCeZ1.js} +0 -0
  90. /package/dist/core/{Halftone-Cb5yrPnj.js → Halftone-BQsMiTyE.js} +0 -0
  91. /package/dist/core/{HueShift-DQ2WgImx.js → HueShift-BTjEGl3Z.js} +0 -0
  92. /package/dist/core/{ImageTexture-DKFb8ze3.js → ImageTexture-CY8Q8h_o.js} +0 -0
  93. /package/dist/core/{Invert-w9duGaUu.js → Invert-B8vSeK8d.js} +0 -0
  94. /package/dist/core/{Kaleidoscope-3Kt0m_sh.js → Kaleidoscope-Dr-ja0XH.js} +0 -0
  95. /package/dist/core/{LinearBlur-B-rumcdD.js → LinearBlur-DgT4B0nH.js} +0 -0
  96. /package/dist/core/{LinearGradient-Al78T7WU.js → LinearGradient-DTifAwSC.js} +0 -0
  97. /package/dist/core/{Liquify-BJgkphoQ.js → Liquify-_eLJRjd7.js} +0 -0
  98. /package/dist/core/{Mirror-CnEZ7wHa.js → Mirror-CnCw4TpZ.js} +0 -0
  99. /package/dist/core/{Perspective-CPhjpprG.js → Perspective-BpgcHA7E.js} +0 -0
  100. /package/dist/core/{Pixelate-rlHN9jV1.js → Pixelate-Bt2jxIDd.js} +0 -0
  101. /package/dist/core/{PolarCoordinates-Bfa-U0fi.js → PolarCoordinates-BJ8-cfC7.js} +0 -0
  102. /package/dist/core/{Posterize-DDzCt2n9.js → Posterize-Bs-iNEVB.js} +0 -0
  103. /package/dist/core/{ProgressiveBlur-9-KRqfdm.js → ProgressiveBlur-DELpd9wJ.js} +0 -0
  104. /package/dist/core/{RadialGradient-BHuQVJ4Q.js → RadialGradient-DQ4JGS5G.js} +0 -0
  105. /package/dist/core/{RectangularCoordinates-CMd1Rp4Y.js → RectangularCoordinates-DXSP_gdW.js} +0 -0
  106. /package/dist/core/{Ripples-Cil48gEl.js → Ripples-DwDKIvtQ.js} +0 -0
  107. /package/dist/core/{Saturation-D_yZO7cz.js → Saturation-ekyl1D9y.js} +0 -0
  108. /package/dist/core/{Sharpness-229T6rR0.js → Sharpness-DlWZ-yPe.js} +0 -0
  109. /package/dist/core/{Shatter-B9tvT-jr.js → Shatter-BeD72o80.js} +0 -0
  110. /package/dist/core/{SimplexNoise-YauHkNYZ.js → SimplexNoise-DIo9v2-R.js} +0 -0
  111. /package/dist/core/{SineWave-BEm0T7c8.js → SineWave-DFNnXFYQ.js} +0 -0
  112. /package/dist/core/{SolidColor-BSC8voa9.js → SolidColor-B4eYGf_i.js} +0 -0
  113. /package/dist/core/{Spherize-C6xkW6TJ.js → Spherize-BIVrRcZG.js} +0 -0
  114. /package/dist/core/{Spiral-BY5eOKPL.js → Spiral-CqjRxq1I.js} +0 -0
  115. /package/dist/core/{Strands-C5-TqTXW.js → Strands-B-a2SQB2.js} +0 -0
  116. /package/dist/core/{Stretch-CatYi4MC.js → Stretch-CZv3u-3X.js} +0 -0
  117. /package/dist/core/{Stripes-BbNIMHDl.js → Stripes-CXUFg1Gt.js} +0 -0
  118. /package/dist/core/{Swirl-ytfGCJTs.js → Swirl-BcEmYjJs.js} +0 -0
  119. /package/dist/core/{TiltShift-CvEKlLKc.js → TiltShift-679S-uVs.js} +0 -0
  120. /package/dist/core/{Tint-PBKR7M-T.js → Tint-DS7IJWfS.js} +0 -0
  121. /package/dist/core/{Tritone-D1rsE5HX.js → Tritone-m_0hwkvN.js} +0 -0
  122. /package/dist/core/{Twirl-BQzDHvml.js → Twirl-DcuGsZAB.js} +0 -0
  123. /package/dist/core/{Vibrance-JFvD6I5g.js → Vibrance-BafFCMLv.js} +0 -0
  124. /package/dist/core/{WaveDistortion-D9Dox1gF.js → WaveDistortion-CQkMSDMg.js} +0 -0
  125. /package/dist/core/{WebcamTexture-BnrsnuMO.js → WebcamTexture-C5oIVQlF.js} +0 -0
  126. /package/dist/core/{ZoomBlur-D9At8opY.js → ZoomBlur-pFDohu2G.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { n as generatePresetCode } from "./generatePresetCode-on2wdSC3.js";
1
+ import { n as generatePresetCode } from "./generatePresetCode-BD0Ac86C.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
4
  import { getContext, onDestroy, onMount, setContext } from "svelte";
@@ -23,50 +23,51 @@ import { componentDefinition as componentDefinition$16 } from "../core/shaders/D
23
23
  import { componentDefinition as componentDefinition$17 } from "../core/shaders/Duotone/index.js";
24
24
  import { componentDefinition as componentDefinition$18 } from "../core/shaders/FilmGrain/index.js";
25
25
  import { componentDefinition as componentDefinition$19 } from "../core/shaders/FloatingParticles/index.js";
26
- import { componentDefinition as componentDefinition$20 } from "../core/shaders/GlassTiles/index.js";
27
- import { componentDefinition as componentDefinition$21 } from "../core/shaders/Glow/index.js";
28
- import { componentDefinition as componentDefinition$22 } from "../core/shaders/Godrays/index.js";
29
- import { componentDefinition as componentDefinition$23 } from "../core/shaders/Grayscale/index.js";
30
- import { componentDefinition as componentDefinition$24 } from "../core/shaders/Grid/index.js";
31
- import { componentDefinition as componentDefinition$25 } from "../core/shaders/GridDistortion/index.js";
32
- import { componentDefinition as componentDefinition$26 } from "../core/shaders/Group/index.js";
33
- import { componentDefinition as componentDefinition$27 } from "../core/shaders/Halftone/index.js";
34
- import { componentDefinition as componentDefinition$28 } from "../core/shaders/HueShift/index.js";
35
- import { componentDefinition as componentDefinition$29 } from "../core/shaders/ImageTexture/index.js";
36
- import { componentDefinition as componentDefinition$30 } from "../core/shaders/Invert/index.js";
37
- import { componentDefinition as componentDefinition$31 } from "../core/shaders/Kaleidoscope/index.js";
38
- import { componentDefinition as componentDefinition$32 } from "../core/shaders/LinearBlur/index.js";
39
- import { componentDefinition as componentDefinition$33 } from "../core/shaders/LinearGradient/index.js";
40
- import { componentDefinition as componentDefinition$34 } from "../core/shaders/Liquify/index.js";
41
- import { componentDefinition as componentDefinition$35 } from "../core/shaders/Mirror/index.js";
42
- import { componentDefinition as componentDefinition$36 } from "../core/shaders/Perspective/index.js";
43
- import { componentDefinition as componentDefinition$37 } from "../core/shaders/Pixelate/index.js";
44
- import { componentDefinition as componentDefinition$38 } from "../core/shaders/PolarCoordinates/index.js";
45
- import { componentDefinition as componentDefinition$39 } from "../core/shaders/Posterize/index.js";
46
- import { componentDefinition as componentDefinition$40 } from "../core/shaders/ProgressiveBlur/index.js";
47
- import { componentDefinition as componentDefinition$41 } from "../core/shaders/RadialGradient/index.js";
48
- import { componentDefinition as componentDefinition$42 } from "../core/shaders/RectangularCoordinates/index.js";
49
- import { componentDefinition as componentDefinition$43 } from "../core/shaders/Ripples/index.js";
50
- import { componentDefinition as componentDefinition$44 } from "../core/shaders/Saturation/index.js";
51
- import { componentDefinition as componentDefinition$45 } from "../core/shaders/Sharpness/index.js";
52
- import { componentDefinition as componentDefinition$46 } from "../core/shaders/Shatter/index.js";
53
- import { componentDefinition as componentDefinition$47 } from "../core/shaders/SimplexNoise/index.js";
54
- import { componentDefinition as componentDefinition$48 } from "../core/shaders/SineWave/index.js";
55
- import { componentDefinition as componentDefinition$49 } from "../core/shaders/SolidColor/index.js";
56
- import { componentDefinition as componentDefinition$50 } from "../core/shaders/Spherize/index.js";
57
- import { componentDefinition as componentDefinition$51 } from "../core/shaders/Spiral/index.js";
58
- import { componentDefinition as componentDefinition$52 } from "../core/shaders/Strands/index.js";
59
- import { componentDefinition as componentDefinition$53 } from "../core/shaders/Stretch/index.js";
60
- import { componentDefinition as componentDefinition$54 } from "../core/shaders/Stripes/index.js";
61
- import { componentDefinition as componentDefinition$55 } from "../core/shaders/Swirl/index.js";
62
- import { componentDefinition as componentDefinition$56 } from "../core/shaders/TiltShift/index.js";
63
- import { componentDefinition as componentDefinition$57 } from "../core/shaders/Tint/index.js";
64
- import { componentDefinition as componentDefinition$58 } from "../core/shaders/Tritone/index.js";
65
- import { componentDefinition as componentDefinition$59 } from "../core/shaders/Twirl/index.js";
66
- import { componentDefinition as componentDefinition$60 } from "../core/shaders/Vibrance/index.js";
67
- import { componentDefinition as componentDefinition$61 } from "../core/shaders/WaveDistortion/index.js";
68
- import { componentDefinition as componentDefinition$62 } from "../core/shaders/WebcamTexture/index.js";
69
- import { componentDefinition as componentDefinition$63 } from "../core/shaders/ZoomBlur/index.js";
26
+ import { componentDefinition as componentDefinition$20 } from "../core/shaders/FlowField/index.js";
27
+ import { componentDefinition as componentDefinition$21 } from "../core/shaders/GlassTiles/index.js";
28
+ import { componentDefinition as componentDefinition$22 } from "../core/shaders/Glow/index.js";
29
+ import { componentDefinition as componentDefinition$23 } from "../core/shaders/Godrays/index.js";
30
+ import { componentDefinition as componentDefinition$24 } from "../core/shaders/Grayscale/index.js";
31
+ import { componentDefinition as componentDefinition$25 } from "../core/shaders/Grid/index.js";
32
+ import { componentDefinition as componentDefinition$26 } from "../core/shaders/GridDistortion/index.js";
33
+ import { componentDefinition as componentDefinition$27 } from "../core/shaders/Group/index.js";
34
+ import { componentDefinition as componentDefinition$28 } from "../core/shaders/Halftone/index.js";
35
+ import { componentDefinition as componentDefinition$29 } from "../core/shaders/HueShift/index.js";
36
+ import { componentDefinition as componentDefinition$30 } from "../core/shaders/ImageTexture/index.js";
37
+ import { componentDefinition as componentDefinition$31 } from "../core/shaders/Invert/index.js";
38
+ import { componentDefinition as componentDefinition$32 } from "../core/shaders/Kaleidoscope/index.js";
39
+ import { componentDefinition as componentDefinition$33 } from "../core/shaders/LinearBlur/index.js";
40
+ import { componentDefinition as componentDefinition$34 } from "../core/shaders/LinearGradient/index.js";
41
+ import { componentDefinition as componentDefinition$35 } from "../core/shaders/Liquify/index.js";
42
+ import { componentDefinition as componentDefinition$36 } from "../core/shaders/Mirror/index.js";
43
+ import { componentDefinition as componentDefinition$37 } from "../core/shaders/Perspective/index.js";
44
+ import { componentDefinition as componentDefinition$38 } from "../core/shaders/Pixelate/index.js";
45
+ import { componentDefinition as componentDefinition$39 } from "../core/shaders/PolarCoordinates/index.js";
46
+ import { componentDefinition as componentDefinition$40 } from "../core/shaders/Posterize/index.js";
47
+ import { componentDefinition as componentDefinition$41 } from "../core/shaders/ProgressiveBlur/index.js";
48
+ import { componentDefinition as componentDefinition$42 } from "../core/shaders/RadialGradient/index.js";
49
+ import { componentDefinition as componentDefinition$43 } from "../core/shaders/RectangularCoordinates/index.js";
50
+ import { componentDefinition as componentDefinition$44 } from "../core/shaders/Ripples/index.js";
51
+ import { componentDefinition as componentDefinition$45 } from "../core/shaders/Saturation/index.js";
52
+ import { componentDefinition as componentDefinition$46 } from "../core/shaders/Sharpness/index.js";
53
+ import { componentDefinition as componentDefinition$47 } from "../core/shaders/Shatter/index.js";
54
+ import { componentDefinition as componentDefinition$48 } from "../core/shaders/SimplexNoise/index.js";
55
+ import { componentDefinition as componentDefinition$49 } from "../core/shaders/SineWave/index.js";
56
+ import { componentDefinition as componentDefinition$50 } from "../core/shaders/SolidColor/index.js";
57
+ import { componentDefinition as componentDefinition$51 } from "../core/shaders/Spherize/index.js";
58
+ import { componentDefinition as componentDefinition$52 } from "../core/shaders/Spiral/index.js";
59
+ import { componentDefinition as componentDefinition$53 } from "../core/shaders/Strands/index.js";
60
+ import { componentDefinition as componentDefinition$54 } from "../core/shaders/Stretch/index.js";
61
+ import { componentDefinition as componentDefinition$55 } from "../core/shaders/Stripes/index.js";
62
+ import { componentDefinition as componentDefinition$56 } from "../core/shaders/Swirl/index.js";
63
+ import { componentDefinition as componentDefinition$57 } from "../core/shaders/TiltShift/index.js";
64
+ import { componentDefinition as componentDefinition$58 } from "../core/shaders/Tint/index.js";
65
+ import { componentDefinition as componentDefinition$59 } from "../core/shaders/Tritone/index.js";
66
+ import { componentDefinition as componentDefinition$60 } from "../core/shaders/Twirl/index.js";
67
+ import { componentDefinition as componentDefinition$61 } from "../core/shaders/Vibrance/index.js";
68
+ import { componentDefinition as componentDefinition$62 } from "../core/shaders/WaveDistortion/index.js";
69
+ import { componentDefinition as componentDefinition$63 } from "../core/shaders/WebcamTexture/index.js";
70
+ import { componentDefinition as componentDefinition$64 } from "../core/shaders/ZoomBlur/index.js";
70
71
  import { vec4 } from "three/tsl";
71
72
  import { TelemetryCollector, isExternalUser, shouldCollectTelemetry } from "../core/telemetry/index.js";
72
73
  function AngularBlur($$anchor, $$props) {
@@ -2269,7 +2270,7 @@ function FloatingParticles($$anchor, $$props) {
2269
2270
  children?.($$anchor);
2270
2271
  $.pop();
2271
2272
  }
2272
- function GlassTiles($$anchor, $$props) {
2273
+ function FlowField($$anchor, $$props) {
2273
2274
  $.push($$props, true);
2274
2275
  const DEFAULT_TRANSFORM = {
2275
2276
  offsetX: 0,
@@ -2379,7 +2380,7 @@ function GlassTiles($$anchor, $$props) {
2379
2380
  children?.($$anchor);
2380
2381
  $.pop();
2381
2382
  }
2382
- function Glow($$anchor, $$props) {
2383
+ function GlassTiles($$anchor, $$props) {
2383
2384
  $.push($$props, true);
2384
2385
  const DEFAULT_TRANSFORM = {
2385
2386
  offsetX: 0,
@@ -2489,7 +2490,7 @@ function Glow($$anchor, $$props) {
2489
2490
  children?.($$anchor);
2490
2491
  $.pop();
2491
2492
  }
2492
- function Godrays($$anchor, $$props) {
2493
+ function Glow($$anchor, $$props) {
2493
2494
  $.push($$props, true);
2494
2495
  const DEFAULT_TRANSFORM = {
2495
2496
  offsetX: 0,
@@ -2599,7 +2600,7 @@ function Godrays($$anchor, $$props) {
2599
2600
  children?.($$anchor);
2600
2601
  $.pop();
2601
2602
  }
2602
- function Grayscale($$anchor, $$props) {
2603
+ function Godrays($$anchor, $$props) {
2603
2604
  $.push($$props, true);
2604
2605
  const DEFAULT_TRANSFORM = {
2605
2606
  offsetX: 0,
@@ -2709,7 +2710,7 @@ function Grayscale($$anchor, $$props) {
2709
2710
  children?.($$anchor);
2710
2711
  $.pop();
2711
2712
  }
2712
- function Grid($$anchor, $$props) {
2713
+ function Grayscale($$anchor, $$props) {
2713
2714
  $.push($$props, true);
2714
2715
  const DEFAULT_TRANSFORM = {
2715
2716
  offsetX: 0,
@@ -2819,7 +2820,7 @@ function Grid($$anchor, $$props) {
2819
2820
  children?.($$anchor);
2820
2821
  $.pop();
2821
2822
  }
2822
- function GridDistortion($$anchor, $$props) {
2823
+ function Grid($$anchor, $$props) {
2823
2824
  $.push($$props, true);
2824
2825
  const DEFAULT_TRANSFORM = {
2825
2826
  offsetX: 0,
@@ -2929,7 +2930,7 @@ function GridDistortion($$anchor, $$props) {
2929
2930
  children?.($$anchor);
2930
2931
  $.pop();
2931
2932
  }
2932
- function Group($$anchor, $$props) {
2933
+ function GridDistortion($$anchor, $$props) {
2933
2934
  $.push($$props, true);
2934
2935
  const DEFAULT_TRANSFORM = {
2935
2936
  offsetX: 0,
@@ -3039,7 +3040,7 @@ function Group($$anchor, $$props) {
3039
3040
  children?.($$anchor);
3040
3041
  $.pop();
3041
3042
  }
3042
- function Halftone($$anchor, $$props) {
3043
+ function Group($$anchor, $$props) {
3043
3044
  $.push($$props, true);
3044
3045
  const DEFAULT_TRANSFORM = {
3045
3046
  offsetX: 0,
@@ -3149,7 +3150,7 @@ function Halftone($$anchor, $$props) {
3149
3150
  children?.($$anchor);
3150
3151
  $.pop();
3151
3152
  }
3152
- function HueShift($$anchor, $$props) {
3153
+ function Halftone($$anchor, $$props) {
3153
3154
  $.push($$props, true);
3154
3155
  const DEFAULT_TRANSFORM = {
3155
3156
  offsetX: 0,
@@ -3259,7 +3260,7 @@ function HueShift($$anchor, $$props) {
3259
3260
  children?.($$anchor);
3260
3261
  $.pop();
3261
3262
  }
3262
- function ImageTexture($$anchor, $$props) {
3263
+ function HueShift($$anchor, $$props) {
3263
3264
  $.push($$props, true);
3264
3265
  const DEFAULT_TRANSFORM = {
3265
3266
  offsetX: 0,
@@ -3369,7 +3370,7 @@ function ImageTexture($$anchor, $$props) {
3369
3370
  children?.($$anchor);
3370
3371
  $.pop();
3371
3372
  }
3372
- function Invert($$anchor, $$props) {
3373
+ function ImageTexture($$anchor, $$props) {
3373
3374
  $.push($$props, true);
3374
3375
  const DEFAULT_TRANSFORM = {
3375
3376
  offsetX: 0,
@@ -3479,7 +3480,7 @@ function Invert($$anchor, $$props) {
3479
3480
  children?.($$anchor);
3480
3481
  $.pop();
3481
3482
  }
3482
- function Kaleidoscope($$anchor, $$props) {
3483
+ function Invert($$anchor, $$props) {
3483
3484
  $.push($$props, true);
3484
3485
  const DEFAULT_TRANSFORM = {
3485
3486
  offsetX: 0,
@@ -3589,7 +3590,7 @@ function Kaleidoscope($$anchor, $$props) {
3589
3590
  children?.($$anchor);
3590
3591
  $.pop();
3591
3592
  }
3592
- function LinearBlur($$anchor, $$props) {
3593
+ function Kaleidoscope($$anchor, $$props) {
3593
3594
  $.push($$props, true);
3594
3595
  const DEFAULT_TRANSFORM = {
3595
3596
  offsetX: 0,
@@ -3699,7 +3700,7 @@ function LinearBlur($$anchor, $$props) {
3699
3700
  children?.($$anchor);
3700
3701
  $.pop();
3701
3702
  }
3702
- function LinearGradient($$anchor, $$props) {
3703
+ function LinearBlur($$anchor, $$props) {
3703
3704
  $.push($$props, true);
3704
3705
  const DEFAULT_TRANSFORM = {
3705
3706
  offsetX: 0,
@@ -3809,7 +3810,7 @@ function LinearGradient($$anchor, $$props) {
3809
3810
  children?.($$anchor);
3810
3811
  $.pop();
3811
3812
  }
3812
- function Liquify($$anchor, $$props) {
3813
+ function LinearGradient($$anchor, $$props) {
3813
3814
  $.push($$props, true);
3814
3815
  const DEFAULT_TRANSFORM = {
3815
3816
  offsetX: 0,
@@ -3919,7 +3920,7 @@ function Liquify($$anchor, $$props) {
3919
3920
  children?.($$anchor);
3920
3921
  $.pop();
3921
3922
  }
3922
- function Mirror($$anchor, $$props) {
3923
+ function Liquify($$anchor, $$props) {
3923
3924
  $.push($$props, true);
3924
3925
  const DEFAULT_TRANSFORM = {
3925
3926
  offsetX: 0,
@@ -4029,7 +4030,7 @@ function Mirror($$anchor, $$props) {
4029
4030
  children?.($$anchor);
4030
4031
  $.pop();
4031
4032
  }
4032
- function Perspective($$anchor, $$props) {
4033
+ function Mirror($$anchor, $$props) {
4033
4034
  $.push($$props, true);
4034
4035
  const DEFAULT_TRANSFORM = {
4035
4036
  offsetX: 0,
@@ -4139,7 +4140,7 @@ function Perspective($$anchor, $$props) {
4139
4140
  children?.($$anchor);
4140
4141
  $.pop();
4141
4142
  }
4142
- function Pixelate($$anchor, $$props) {
4143
+ function Perspective($$anchor, $$props) {
4143
4144
  $.push($$props, true);
4144
4145
  const DEFAULT_TRANSFORM = {
4145
4146
  offsetX: 0,
@@ -4249,7 +4250,7 @@ function Pixelate($$anchor, $$props) {
4249
4250
  children?.($$anchor);
4250
4251
  $.pop();
4251
4252
  }
4252
- function PolarCoordinates($$anchor, $$props) {
4253
+ function Pixelate($$anchor, $$props) {
4253
4254
  $.push($$props, true);
4254
4255
  const DEFAULT_TRANSFORM = {
4255
4256
  offsetX: 0,
@@ -4359,7 +4360,7 @@ function PolarCoordinates($$anchor, $$props) {
4359
4360
  children?.($$anchor);
4360
4361
  $.pop();
4361
4362
  }
4362
- function Posterize($$anchor, $$props) {
4363
+ function PolarCoordinates($$anchor, $$props) {
4363
4364
  $.push($$props, true);
4364
4365
  const DEFAULT_TRANSFORM = {
4365
4366
  offsetX: 0,
@@ -4469,7 +4470,7 @@ function Posterize($$anchor, $$props) {
4469
4470
  children?.($$anchor);
4470
4471
  $.pop();
4471
4472
  }
4472
- function ProgressiveBlur($$anchor, $$props) {
4473
+ function Posterize($$anchor, $$props) {
4473
4474
  $.push($$props, true);
4474
4475
  const DEFAULT_TRANSFORM = {
4475
4476
  offsetX: 0,
@@ -4579,7 +4580,7 @@ function ProgressiveBlur($$anchor, $$props) {
4579
4580
  children?.($$anchor);
4580
4581
  $.pop();
4581
4582
  }
4582
- function RadialGradient($$anchor, $$props) {
4583
+ function ProgressiveBlur($$anchor, $$props) {
4583
4584
  $.push($$props, true);
4584
4585
  const DEFAULT_TRANSFORM = {
4585
4586
  offsetX: 0,
@@ -4689,7 +4690,7 @@ function RadialGradient($$anchor, $$props) {
4689
4690
  children?.($$anchor);
4690
4691
  $.pop();
4691
4692
  }
4692
- function RectangularCoordinates($$anchor, $$props) {
4693
+ function RadialGradient($$anchor, $$props) {
4693
4694
  $.push($$props, true);
4694
4695
  const DEFAULT_TRANSFORM = {
4695
4696
  offsetX: 0,
@@ -4799,7 +4800,7 @@ function RectangularCoordinates($$anchor, $$props) {
4799
4800
  children?.($$anchor);
4800
4801
  $.pop();
4801
4802
  }
4802
- function Ripples($$anchor, $$props) {
4803
+ function RectangularCoordinates($$anchor, $$props) {
4803
4804
  $.push($$props, true);
4804
4805
  const DEFAULT_TRANSFORM = {
4805
4806
  offsetX: 0,
@@ -4909,7 +4910,7 @@ function Ripples($$anchor, $$props) {
4909
4910
  children?.($$anchor);
4910
4911
  $.pop();
4911
4912
  }
4912
- function Saturation($$anchor, $$props) {
4913
+ function Ripples($$anchor, $$props) {
4913
4914
  $.push($$props, true);
4914
4915
  const DEFAULT_TRANSFORM = {
4915
4916
  offsetX: 0,
@@ -5019,7 +5020,7 @@ function Saturation($$anchor, $$props) {
5019
5020
  children?.($$anchor);
5020
5021
  $.pop();
5021
5022
  }
5022
- function Sharpness($$anchor, $$props) {
5023
+ function Saturation($$anchor, $$props) {
5023
5024
  $.push($$props, true);
5024
5025
  const DEFAULT_TRANSFORM = {
5025
5026
  offsetX: 0,
@@ -5129,7 +5130,7 @@ function Sharpness($$anchor, $$props) {
5129
5130
  children?.($$anchor);
5130
5131
  $.pop();
5131
5132
  }
5132
- function Shatter($$anchor, $$props) {
5133
+ function Sharpness($$anchor, $$props) {
5133
5134
  $.push($$props, true);
5134
5135
  const DEFAULT_TRANSFORM = {
5135
5136
  offsetX: 0,
@@ -5239,7 +5240,7 @@ function Shatter($$anchor, $$props) {
5239
5240
  children?.($$anchor);
5240
5241
  $.pop();
5241
5242
  }
5242
- function SimplexNoise($$anchor, $$props) {
5243
+ function Shatter($$anchor, $$props) {
5243
5244
  $.push($$props, true);
5244
5245
  const DEFAULT_TRANSFORM = {
5245
5246
  offsetX: 0,
@@ -5349,7 +5350,7 @@ function SimplexNoise($$anchor, $$props) {
5349
5350
  children?.($$anchor);
5350
5351
  $.pop();
5351
5352
  }
5352
- function SineWave($$anchor, $$props) {
5353
+ function SimplexNoise($$anchor, $$props) {
5353
5354
  $.push($$props, true);
5354
5355
  const DEFAULT_TRANSFORM = {
5355
5356
  offsetX: 0,
@@ -5459,7 +5460,7 @@ function SineWave($$anchor, $$props) {
5459
5460
  children?.($$anchor);
5460
5461
  $.pop();
5461
5462
  }
5462
- function SolidColor($$anchor, $$props) {
5463
+ function SineWave($$anchor, $$props) {
5463
5464
  $.push($$props, true);
5464
5465
  const DEFAULT_TRANSFORM = {
5465
5466
  offsetX: 0,
@@ -5569,7 +5570,7 @@ function SolidColor($$anchor, $$props) {
5569
5570
  children?.($$anchor);
5570
5571
  $.pop();
5571
5572
  }
5572
- function Spherize($$anchor, $$props) {
5573
+ function SolidColor($$anchor, $$props) {
5573
5574
  $.push($$props, true);
5574
5575
  const DEFAULT_TRANSFORM = {
5575
5576
  offsetX: 0,
@@ -5679,7 +5680,7 @@ function Spherize($$anchor, $$props) {
5679
5680
  children?.($$anchor);
5680
5681
  $.pop();
5681
5682
  }
5682
- function Spiral($$anchor, $$props) {
5683
+ function Spherize($$anchor, $$props) {
5683
5684
  $.push($$props, true);
5684
5685
  const DEFAULT_TRANSFORM = {
5685
5686
  offsetX: 0,
@@ -5789,7 +5790,7 @@ function Spiral($$anchor, $$props) {
5789
5790
  children?.($$anchor);
5790
5791
  $.pop();
5791
5792
  }
5792
- function Strands($$anchor, $$props) {
5793
+ function Spiral($$anchor, $$props) {
5793
5794
  $.push($$props, true);
5794
5795
  const DEFAULT_TRANSFORM = {
5795
5796
  offsetX: 0,
@@ -5899,7 +5900,7 @@ function Strands($$anchor, $$props) {
5899
5900
  children?.($$anchor);
5900
5901
  $.pop();
5901
5902
  }
5902
- function Stretch($$anchor, $$props) {
5903
+ function Strands($$anchor, $$props) {
5903
5904
  $.push($$props, true);
5904
5905
  const DEFAULT_TRANSFORM = {
5905
5906
  offsetX: 0,
@@ -6009,7 +6010,7 @@ function Stretch($$anchor, $$props) {
6009
6010
  children?.($$anchor);
6010
6011
  $.pop();
6011
6012
  }
6012
- function Stripes($$anchor, $$props) {
6013
+ function Stretch($$anchor, $$props) {
6013
6014
  $.push($$props, true);
6014
6015
  const DEFAULT_TRANSFORM = {
6015
6016
  offsetX: 0,
@@ -6119,7 +6120,7 @@ function Stripes($$anchor, $$props) {
6119
6120
  children?.($$anchor);
6120
6121
  $.pop();
6121
6122
  }
6122
- function Swirl($$anchor, $$props) {
6123
+ function Stripes($$anchor, $$props) {
6123
6124
  $.push($$props, true);
6124
6125
  const DEFAULT_TRANSFORM = {
6125
6126
  offsetX: 0,
@@ -6229,7 +6230,7 @@ function Swirl($$anchor, $$props) {
6229
6230
  children?.($$anchor);
6230
6231
  $.pop();
6231
6232
  }
6232
- function TiltShift($$anchor, $$props) {
6233
+ function Swirl($$anchor, $$props) {
6233
6234
  $.push($$props, true);
6234
6235
  const DEFAULT_TRANSFORM = {
6235
6236
  offsetX: 0,
@@ -6339,7 +6340,7 @@ function TiltShift($$anchor, $$props) {
6339
6340
  children?.($$anchor);
6340
6341
  $.pop();
6341
6342
  }
6342
- function Tint($$anchor, $$props) {
6343
+ function TiltShift($$anchor, $$props) {
6343
6344
  $.push($$props, true);
6344
6345
  const DEFAULT_TRANSFORM = {
6345
6346
  offsetX: 0,
@@ -6449,7 +6450,7 @@ function Tint($$anchor, $$props) {
6449
6450
  children?.($$anchor);
6450
6451
  $.pop();
6451
6452
  }
6452
- function Tritone($$anchor, $$props) {
6453
+ function Tint($$anchor, $$props) {
6453
6454
  $.push($$props, true);
6454
6455
  const DEFAULT_TRANSFORM = {
6455
6456
  offsetX: 0,
@@ -6559,7 +6560,7 @@ function Tritone($$anchor, $$props) {
6559
6560
  children?.($$anchor);
6560
6561
  $.pop();
6561
6562
  }
6562
- function Twirl($$anchor, $$props) {
6563
+ function Tritone($$anchor, $$props) {
6563
6564
  $.push($$props, true);
6564
6565
  const DEFAULT_TRANSFORM = {
6565
6566
  offsetX: 0,
@@ -6669,7 +6670,7 @@ function Twirl($$anchor, $$props) {
6669
6670
  children?.($$anchor);
6670
6671
  $.pop();
6671
6672
  }
6672
- function Vibrance($$anchor, $$props) {
6673
+ function Twirl($$anchor, $$props) {
6673
6674
  $.push($$props, true);
6674
6675
  const DEFAULT_TRANSFORM = {
6675
6676
  offsetX: 0,
@@ -6779,7 +6780,7 @@ function Vibrance($$anchor, $$props) {
6779
6780
  children?.($$anchor);
6780
6781
  $.pop();
6781
6782
  }
6782
- function WaveDistortion($$anchor, $$props) {
6783
+ function Vibrance($$anchor, $$props) {
6783
6784
  $.push($$props, true);
6784
6785
  const DEFAULT_TRANSFORM = {
6785
6786
  offsetX: 0,
@@ -6889,7 +6890,7 @@ function WaveDistortion($$anchor, $$props) {
6889
6890
  children?.($$anchor);
6890
6891
  $.pop();
6891
6892
  }
6892
- function WebcamTexture($$anchor, $$props) {
6893
+ function WaveDistortion($$anchor, $$props) {
6893
6894
  $.push($$props, true);
6894
6895
  const DEFAULT_TRANSFORM = {
6895
6896
  offsetX: 0,
@@ -6999,7 +7000,7 @@ function WebcamTexture($$anchor, $$props) {
6999
7000
  children?.($$anchor);
7000
7001
  $.pop();
7001
7002
  }
7002
- function ZoomBlur($$anchor, $$props) {
7003
+ function WebcamTexture($$anchor, $$props) {
7003
7004
  $.push($$props, true);
7004
7005
  const DEFAULT_TRANSFORM = {
7005
7006
  offsetX: 0,
@@ -7109,6 +7110,116 @@ function ZoomBlur($$anchor, $$props) {
7109
7110
  children?.($$anchor);
7110
7111
  $.pop();
7111
7112
  }
7113
+ function ZoomBlur($$anchor, $$props) {
7114
+ $.push($$props, true);
7115
+ const DEFAULT_TRANSFORM = {
7116
+ offsetX: 0,
7117
+ offsetY: 0,
7118
+ rotation: 0,
7119
+ scale: 1,
7120
+ anchorX: .5,
7121
+ anchorY: .5,
7122
+ edges: "transparent"
7123
+ };
7124
+ const componentDefaults = {
7125
+ blendMode: "normal",
7126
+ renderOrder: 0,
7127
+ visible: true,
7128
+ ...Object.entries(componentDefinition$64.props).reduce((acc, [key, config]) => {
7129
+ acc[key] = config.default;
7130
+ return acc;
7131
+ }, {})
7132
+ };
7133
+ const props = $.rest_props($$props, [
7134
+ "$$slots",
7135
+ "$$events",
7136
+ "$$legacy"
7137
+ ]);
7138
+ const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
7139
+ const opacity = $$props.opacity;
7140
+ const visible = $$props.visible ?? componentDefaults.visible;
7141
+ const id = $$props.id;
7142
+ const maskSource = $$props.maskSource;
7143
+ const maskType = $$props.maskType;
7144
+ const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
7145
+ const { children } = props;
7146
+ const effectiveTransform = $.derived(() => ({
7147
+ ...DEFAULT_TRANSFORM,
7148
+ ...$$props.transform
7149
+ }));
7150
+ const parentId = getContext("shaderParentId");
7151
+ if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
7152
+ const instanceId = id || `${componentDefinition$64.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
7153
+ setContext("shaderParentId", instanceId);
7154
+ const shaderReadyProps = $.derived(() => {
7155
+ let baseProps = { ...componentDefaults };
7156
+ for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
7157
+ const propValue = props[key];
7158
+ const defaultValue = componentDefaults[key];
7159
+ if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
7160
+ }
7161
+ return baseProps;
7162
+ });
7163
+ const uniforms = createUniformsMap(componentDefinition$64, $.get(shaderReadyProps), instanceId);
7164
+ const parentRegister = getContext("shaderNodeRegister");
7165
+ if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
7166
+ const parentUniformUpdate = getContext("shaderUniformUpdate");
7167
+ if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
7168
+ const parentMetadataUpdate = getContext("shaderMetadataUpdate");
7169
+ if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
7170
+ let isRegistered = $.state(false);
7171
+ Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
7172
+ $.user_effect(() => {
7173
+ if (!$.get(isRegistered)) return;
7174
+ if (uniform && uniform.value !== void 0) {
7175
+ const newValue = props[propName];
7176
+ if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
7177
+ }
7178
+ });
7179
+ });
7180
+ $.user_effect(() => {
7181
+ if (!$.get(isRegistered)) return;
7182
+ parentMetadataUpdate(instanceId, {
7183
+ blendMode,
7184
+ opacity,
7185
+ visible: visible === false ? false : true,
7186
+ id,
7187
+ mask: maskSource ? {
7188
+ source: maskSource,
7189
+ type: maskType || "alpha"
7190
+ } : void 0,
7191
+ renderOrder,
7192
+ transform: $.get(effectiveTransform)
7193
+ });
7194
+ });
7195
+ onMount(() => {
7196
+ if (componentDefinition$64 && typeof componentDefinition$64.fragmentNode === "function") {
7197
+ parentRegister(instanceId, componentDefinition$64.fragmentNode, parentId, {
7198
+ blendMode,
7199
+ opacity,
7200
+ visible: visible !== false ? true : false,
7201
+ id,
7202
+ mask: maskSource ? {
7203
+ source: maskSource,
7204
+ type: maskType || "alpha"
7205
+ } : void 0,
7206
+ renderOrder,
7207
+ transform: $.get(effectiveTransform)
7208
+ }, uniforms);
7209
+ $.set(isRegistered, true);
7210
+ } else console.error("componentDefinition.fragmentNode is not a function:", {
7211
+ componentDefinition: componentDefinition$64,
7212
+ fragmentNode: componentDefinition$64?.fragmentNode,
7213
+ type: typeof componentDefinition$64?.fragmentNode
7214
+ });
7215
+ });
7216
+ onDestroy(() => {
7217
+ $.set(isRegistered, false);
7218
+ parentRegister(instanceId, null, null, null, null);
7219
+ });
7220
+ children?.($$anchor);
7221
+ $.pop();
7222
+ }
7112
7223
  var root = $.from_html(`<div><canvas data-renderer="shaders" style="width: 100%; height: 100%; display: block;"></canvas> <!></div>`);
7113
7224
  function Shader($$anchor, $$props) {
7114
7225
  $.push($$props, true);
@@ -7224,4 +7335,4 @@ function Shader($$anchor, $$props) {
7224
7335
  $.append($$anchor, div);
7225
7336
  $.pop();
7226
7337
  }
7227
- export { AngularBlur, Ascii, Beam, Blob, Blur, BrightnessContrast, Bulge, CRTScreen, ChannelBlur, Checkerboard, ChromaFlow, ChromaticAberration, Circle, CursorTrail, DiffuseBlur, Dither, DotGrid, Duotone, FilmGrain, FloatingParticles, GlassTiles, Glow, Godrays, Grayscale, Grid, GridDistortion, Group, Halftone, HueShift, ImageTexture, Invert, Kaleidoscope, LinearBlur, LinearGradient, Liquify, Mirror, Perspective, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, Shatter, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Stripes, Swirl, TiltShift, Tint, Tritone, Twirl, Vibrance, WaveDistortion, WebcamTexture, ZoomBlur, generatePresetCode };
7338
+ export { AngularBlur, Ascii, Beam, Blob, Blur, BrightnessContrast, Bulge, CRTScreen, ChannelBlur, Checkerboard, ChromaFlow, ChromaticAberration, Circle, CursorTrail, DiffuseBlur, Dither, DotGrid, Duotone, FilmGrain, FloatingParticles, FlowField, GlassTiles, Glow, Godrays, Grayscale, Grid, GridDistortion, Group, Halftone, HueShift, ImageTexture, Invert, Kaleidoscope, LinearBlur, LinearGradient, Liquify, Mirror, Perspective, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, Shatter, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Stripes, Swirl, TiltShift, Tint, Tritone, Twirl, Vibrance, WaveDistortion, WebcamTexture, ZoomBlur, generatePresetCode };
@@ -1,2 +1,2 @@
1
- import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-on2wdSC3.js";
1
+ import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-BD0Ac86C.js";
2
2
  export { availableComponents, generatePresetCode };
@@ -0,0 +1,3 @@
1
+ import FlowField_vue_vue_type_script_setup_true_lang_default from "./FlowField.vue_vue_type_script_setup_true_lang.js";
2
+ var FlowField_default = FlowField_vue_vue_type_script_setup_true_lang_default;
3
+ export { FlowField_default as default };