shaders 2.2.33 → 2.2.35

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 (147) hide show
  1. package/dist/core/BrightnessContrast-CaErceqR.js +43 -0
  2. package/dist/core/Sharpness-B2MrhUH5.js +41 -0
  3. package/dist/core/index.js +111 -107
  4. package/dist/core/shaderRegistry.d.ts.map +1 -1
  5. package/dist/core/shaders/BrightnessContrast/index.d.ts +21 -0
  6. package/dist/core/shaders/BrightnessContrast/index.d.ts.map +1 -0
  7. package/dist/core/shaders/BrightnessContrast/index.js +2 -0
  8. package/dist/core/shaders/Bulge/index.js +1 -1
  9. package/dist/core/shaders/CRTScreen/index.js +1 -1
  10. package/dist/core/shaders/ChannelBlur/index.js +1 -1
  11. package/dist/core/shaders/Checkerboard/index.js +1 -1
  12. package/dist/core/shaders/ChromaFlow/index.js +1 -1
  13. package/dist/core/shaders/ChromaticAberration/index.js +1 -1
  14. package/dist/core/shaders/Circle/index.js +1 -1
  15. package/dist/core/shaders/CursorTrail/index.js +1 -1
  16. package/dist/core/shaders/DiffuseBlur/index.js +1 -1
  17. package/dist/core/shaders/Dither/index.js +1 -1
  18. package/dist/core/shaders/DotGrid/index.js +1 -1
  19. package/dist/core/shaders/Duotone/index.js +1 -1
  20. package/dist/core/shaders/FilmGrain/index.js +1 -1
  21. package/dist/core/shaders/FloatingParticles/index.js +1 -1
  22. package/dist/core/shaders/GlassTiles/index.js +1 -1
  23. package/dist/core/shaders/Glow/index.js +1 -1
  24. package/dist/core/shaders/Godrays/index.js +1 -1
  25. package/dist/core/shaders/Grayscale/index.js +1 -1
  26. package/dist/core/shaders/Grid/index.js +1 -1
  27. package/dist/core/shaders/GridDistortion/index.js +1 -1
  28. package/dist/core/shaders/Group/index.js +1 -1
  29. package/dist/core/shaders/Halftone/index.js +1 -1
  30. package/dist/core/shaders/HueShift/index.js +1 -1
  31. package/dist/core/shaders/ImageTexture/index.js +1 -1
  32. package/dist/core/shaders/Invert/index.js +1 -1
  33. package/dist/core/shaders/LinearBlur/index.js +1 -1
  34. package/dist/core/shaders/LinearGradient/index.js +1 -1
  35. package/dist/core/shaders/Liquify/index.js +1 -1
  36. package/dist/core/shaders/Pixelate/index.js +1 -1
  37. package/dist/core/shaders/PolarCoordinates/index.js +1 -1
  38. package/dist/core/shaders/Posterize/index.js +1 -1
  39. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  40. package/dist/core/shaders/RadialGradient/index.js +1 -1
  41. package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
  42. package/dist/core/shaders/Ripples/index.js +1 -1
  43. package/dist/core/shaders/Saturation/index.js +1 -1
  44. package/dist/core/shaders/Sharpness/index.d.ts +14 -0
  45. package/dist/core/shaders/Sharpness/index.d.ts.map +1 -0
  46. package/dist/core/shaders/Sharpness/index.js +2 -0
  47. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  48. package/dist/core/shaders/SineWave/index.js +1 -1
  49. package/dist/core/shaders/SolidColor/index.js +1 -1
  50. package/dist/core/shaders/Spherize/index.js +1 -1
  51. package/dist/core/shaders/Spiral/index.js +1 -1
  52. package/dist/core/shaders/Strands/index.js +1 -1
  53. package/dist/core/shaders/Stretch/index.js +1 -1
  54. package/dist/core/shaders/Swirl/index.js +1 -1
  55. package/dist/core/shaders/TiltShift/index.js +1 -1
  56. package/dist/core/shaders/Tritone/index.js +1 -1
  57. package/dist/core/shaders/Twirl/index.js +1 -1
  58. package/dist/core/shaders/Vibrance/index.js +1 -1
  59. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  60. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  61. package/dist/react/components/BrightnessContrast.d.ts +31 -0
  62. package/dist/react/components/BrightnessContrast.d.ts.map +1 -0
  63. package/dist/react/components/Sharpness.d.ts +31 -0
  64. package/dist/react/components/Sharpness.d.ts.map +1 -0
  65. package/dist/react/{generatePresetCode-Ci4D5lDy.js → generatePresetCode-C4t1eM0z.js} +13 -0
  66. package/dist/react/index.d.ts +2 -0
  67. package/dist/react/index.d.ts.map +1 -1
  68. package/dist/react/index.js +703 -425
  69. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  70. package/dist/react/utils/generatePresetCode.js +1 -1
  71. package/dist/registry.js +101 -0
  72. package/dist/solid/components/BrightnessContrast.d.ts +28 -0
  73. package/dist/solid/components/BrightnessContrast.d.ts.map +1 -0
  74. package/dist/solid/components/Sharpness.d.ts +28 -0
  75. package/dist/solid/components/Sharpness.d.ts.map +1 -0
  76. package/dist/solid/index.d.ts +2 -0
  77. package/dist/solid/index.d.ts.map +1 -1
  78. package/dist/solid/index.js +648 -366
  79. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  80. package/dist/solid/utils/generatePresetCode.js +13 -0
  81. package/dist/svelte/components/BrightnessContrast.svelte.d.ts +19 -0
  82. package/dist/svelte/components/Sharpness.svelte.d.ts +19 -0
  83. package/dist/svelte/{generatePresetCode-hILbcEw8.js → generatePresetCode-CT9aNR6P.js} +13 -0
  84. package/dist/svelte/index.d.ts +2 -0
  85. package/dist/svelte/index.js +324 -102
  86. package/dist/svelte/utils/generatePresetCode.js +1 -1
  87. package/dist/vue/components/BrightnessContrast.vue.d.ts +57 -0
  88. package/dist/vue/components/BrightnessContrast.vue.d.ts.map +1 -0
  89. package/dist/vue/components/Sharpness.vue.d.ts +57 -0
  90. package/dist/vue/components/Sharpness.vue.d.ts.map +1 -0
  91. package/dist/vue/{generatePresetCode-DfkHaBG4.js → generatePresetCode-BmkyNfz6.js} +13 -0
  92. package/dist/vue/index.d.ts +2 -0
  93. package/dist/vue/index.d.ts.map +1 -1
  94. package/dist/vue/index.js +603 -360
  95. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  96. package/dist/vue/utils/generatePresetCode.js +1 -1
  97. package/package.json +17 -1
  98. /package/dist/core/{Bulge-C8-_hIFp.js → Bulge-BVcWo6On.js} +0 -0
  99. /package/dist/core/{CRTScreen-DLy8Rig6.js → CRTScreen-CcAYeqoI.js} +0 -0
  100. /package/dist/core/{ChannelBlur-BPOGOQXl.js → ChannelBlur-CQoP7Igg.js} +0 -0
  101. /package/dist/core/{Checkerboard-D_H3XYbF.js → Checkerboard-D_hGvoO7.js} +0 -0
  102. /package/dist/core/{ChromaFlow-DhzC_8Ne.js → ChromaFlow-DizYQSgf.js} +0 -0
  103. /package/dist/core/{ChromaticAberration-hi7WGiVk.js → ChromaticAberration-Bk_DMYJm.js} +0 -0
  104. /package/dist/core/{Circle-DI0gXpyD.js → Circle-BlVzkeyl.js} +0 -0
  105. /package/dist/core/{CursorTrail-B9EQ9FsP.js → CursorTrail-CxXWV7KH.js} +0 -0
  106. /package/dist/core/{DiffuseBlur-Cg7AsB3W.js → DiffuseBlur-BTSRl65K.js} +0 -0
  107. /package/dist/core/{Dither-Bb5rLGEI.js → Dither-C1KyBYuE.js} +0 -0
  108. /package/dist/core/{DotGrid-B2DXsjFE.js → DotGrid-ll8XCA0p.js} +0 -0
  109. /package/dist/core/{Duotone-CRwhugbV.js → Duotone-d2gQJr4M.js} +0 -0
  110. /package/dist/core/{FilmGrain-CY4ZO9UI.js → FilmGrain-3h6TIe1T.js} +0 -0
  111. /package/dist/core/{FloatingParticles-BduIDXKd.js → FloatingParticles-B6KvHecR.js} +0 -0
  112. /package/dist/core/{GlassTiles-BaAwsNxl.js → GlassTiles-DqT67iqr.js} +0 -0
  113. /package/dist/core/{Glow-D0boDIAW.js → Glow-BYNKuw0E.js} +0 -0
  114. /package/dist/core/{Godrays-ChqiT2zn.js → Godrays-iMO6X606.js} +0 -0
  115. /package/dist/core/{Grayscale-Bi-XBvO_.js → Grayscale-BH3tLDGN.js} +0 -0
  116. /package/dist/core/{Grid-DazyiX15.js → Grid-CdslWvoH.js} +0 -0
  117. /package/dist/core/{GridDistortion-CYQUwuXw.js → GridDistortion-D-iiGELF.js} +0 -0
  118. /package/dist/core/{Group-C0AknFDS.js → Group-ByGv48Lm.js} +0 -0
  119. /package/dist/core/{Halftone-Ddrldk6b.js → Halftone-CV0aFuRG.js} +0 -0
  120. /package/dist/core/{HueShift-DvOpzM7W.js → HueShift-DQ2WgImx.js} +0 -0
  121. /package/dist/core/{ImageTexture-D0xwHmkW.js → ImageTexture-DKFb8ze3.js} +0 -0
  122. /package/dist/core/{Invert-Bmjbp6g6.js → Invert-w9duGaUu.js} +0 -0
  123. /package/dist/core/{LinearBlur-cYfqaOhb.js → LinearBlur-CTXjolzL.js} +0 -0
  124. /package/dist/core/{LinearGradient-B6ySxWpU.js → LinearGradient-CZo6e7r8.js} +0 -0
  125. /package/dist/core/{Liquify-yoKWSK0F.js → Liquify-BbfDBMNZ.js} +0 -0
  126. /package/dist/core/{Pixelate-BmE_Zryn.js → Pixelate-C5Rx1dBp.js} +0 -0
  127. /package/dist/core/{PolarCoordinates-PLyS00-P.js → PolarCoordinates-CIh5ef8m.js} +0 -0
  128. /package/dist/core/{Posterize-DIjjPS72.js → Posterize-Byy0Ek0l.js} +0 -0
  129. /package/dist/core/{ProgressiveBlur-XD4ivmMn.js → ProgressiveBlur-Bzz24_y-.js} +0 -0
  130. /package/dist/core/{RadialGradient-pwKyDUBu.js → RadialGradient-Ci1dU-1K.js} +0 -0
  131. /package/dist/core/{RectangularCoordinates-Dq2JrmOX.js → RectangularCoordinates-tVGG7WOJ.js} +0 -0
  132. /package/dist/core/{Ripples-Ot1rx8kL.js → Ripples-BCGSt5HD.js} +0 -0
  133. /package/dist/core/{Saturation-J0nI4hmh.js → Saturation-DWR1Nruu.js} +0 -0
  134. /package/dist/core/{SimplexNoise-BfilWh05.js → SimplexNoise-j5sH7ro0.js} +0 -0
  135. /package/dist/core/{SineWave-DRqL-jda.js → SineWave-C4Lz5gO9.js} +0 -0
  136. /package/dist/core/{SolidColor-B62ZBRlK.js → SolidColor-9huPo7Qb.js} +0 -0
  137. /package/dist/core/{Spherize-DDP0_5VP.js → Spherize-ARP2hY6_.js} +0 -0
  138. /package/dist/core/{Spiral-Cx7Z8gLc.js → Spiral-d60Q9u4M.js} +0 -0
  139. /package/dist/core/{Strands-C9FBVtDe.js → Strands-DiIbhZ0r.js} +0 -0
  140. /package/dist/core/{Stretch-BCpOO3q6.js → Stretch-UYY3Qep7.js} +0 -0
  141. /package/dist/core/{Swirl-BfD35doJ.js → Swirl-jQMlfm2U.js} +0 -0
  142. /package/dist/core/{TiltShift-CvKqM1xk.js → TiltShift-Ctj-Dsom.js} +0 -0
  143. /package/dist/core/{Tritone-BeEJj4U0.js → Tritone-D2lMeIyT.js} +0 -0
  144. /package/dist/core/{Twirl-EJ3aS_lo.js → Twirl-D4opuuKg.js} +0 -0
  145. /package/dist/core/{Vibrance-BI5q7_Wt.js → Vibrance-CZCF06c0.js} +0 -0
  146. /package/dist/core/{WaveDistortion-BOWBSWEU.js → WaveDistortion-DdJtTeib.js} +0 -0
  147. /package/dist/core/{ZoomBlur-gB0BxldE.js → ZoomBlur-DfzUaH4u.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { n as generatePresetCode } from "./generatePresetCode-hILbcEw8.js";
1
+ import { n as generatePresetCode } from "./generatePresetCode-CT9aNR6P.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";
@@ -8,56 +8,58 @@ import { componentDefinition as componentDefinition$1 } from "../core/shaders/As
8
8
  import { componentDefinition as componentDefinition$2 } from "../core/shaders/Beam/index.js";
9
9
  import { componentDefinition as componentDefinition$3 } from "../core/shaders/Blob/index.js";
10
10
  import { componentDefinition as componentDefinition$4 } from "../core/shaders/Blur/index.js";
11
- import { componentDefinition as componentDefinition$5 } from "../core/shaders/Bulge/index.js";
12
- import { componentDefinition as componentDefinition$6 } from "../core/shaders/CRTScreen/index.js";
13
- import { componentDefinition as componentDefinition$7 } from "../core/shaders/ChannelBlur/index.js";
14
- import { componentDefinition as componentDefinition$8 } from "../core/shaders/Checkerboard/index.js";
15
- import { componentDefinition as componentDefinition$9 } from "../core/shaders/ChromaFlow/index.js";
16
- import { componentDefinition as componentDefinition$10 } from "../core/shaders/ChromaticAberration/index.js";
17
- import { componentDefinition as componentDefinition$11 } from "../core/shaders/Circle/index.js";
18
- import { componentDefinition as componentDefinition$12 } from "../core/shaders/CursorTrail/index.js";
19
- import { componentDefinition as componentDefinition$13 } from "../core/shaders/DiffuseBlur/index.js";
20
- import { componentDefinition as componentDefinition$14 } from "../core/shaders/Dither/index.js";
21
- import { componentDefinition as componentDefinition$15 } from "../core/shaders/DotGrid/index.js";
22
- import { componentDefinition as componentDefinition$16 } from "../core/shaders/Duotone/index.js";
23
- import { componentDefinition as componentDefinition$17 } from "../core/shaders/FilmGrain/index.js";
24
- import { componentDefinition as componentDefinition$18 } from "../core/shaders/FloatingParticles/index.js";
25
- import { componentDefinition as componentDefinition$19 } from "../core/shaders/GlassTiles/index.js";
26
- import { componentDefinition as componentDefinition$20 } from "../core/shaders/Glow/index.js";
27
- import { componentDefinition as componentDefinition$21 } from "../core/shaders/Godrays/index.js";
28
- import { componentDefinition as componentDefinition$22 } from "../core/shaders/Grayscale/index.js";
29
- import { componentDefinition as componentDefinition$23 } from "../core/shaders/Grid/index.js";
30
- import { componentDefinition as componentDefinition$24 } from "../core/shaders/GridDistortion/index.js";
31
- import { componentDefinition as componentDefinition$25 } from "../core/shaders/Group/index.js";
32
- import { componentDefinition as componentDefinition$26 } from "../core/shaders/Halftone/index.js";
33
- import { componentDefinition as componentDefinition$27 } from "../core/shaders/HueShift/index.js";
34
- import { componentDefinition as componentDefinition$28 } from "../core/shaders/ImageTexture/index.js";
35
- import { componentDefinition as componentDefinition$29 } from "../core/shaders/Invert/index.js";
36
- import { componentDefinition as componentDefinition$30 } from "../core/shaders/LinearBlur/index.js";
37
- import { componentDefinition as componentDefinition$31 } from "../core/shaders/LinearGradient/index.js";
38
- import { componentDefinition as componentDefinition$32 } from "../core/shaders/Liquify/index.js";
39
- import { componentDefinition as componentDefinition$33 } from "../core/shaders/Pixelate/index.js";
40
- import { componentDefinition as componentDefinition$34 } from "../core/shaders/PolarCoordinates/index.js";
41
- import { componentDefinition as componentDefinition$35 } from "../core/shaders/Posterize/index.js";
42
- import { componentDefinition as componentDefinition$36 } from "../core/shaders/ProgressiveBlur/index.js";
43
- import { componentDefinition as componentDefinition$37 } from "../core/shaders/RadialGradient/index.js";
44
- import { componentDefinition as componentDefinition$38 } from "../core/shaders/RectangularCoordinates/index.js";
45
- import { componentDefinition as componentDefinition$39 } from "../core/shaders/Ripples/index.js";
46
- import { componentDefinition as componentDefinition$40 } from "../core/shaders/Saturation/index.js";
47
- import { componentDefinition as componentDefinition$41 } from "../core/shaders/SimplexNoise/index.js";
48
- import { componentDefinition as componentDefinition$42 } from "../core/shaders/SineWave/index.js";
49
- import { componentDefinition as componentDefinition$43 } from "../core/shaders/SolidColor/index.js";
50
- import { componentDefinition as componentDefinition$44 } from "../core/shaders/Spherize/index.js";
51
- import { componentDefinition as componentDefinition$45 } from "../core/shaders/Spiral/index.js";
52
- import { componentDefinition as componentDefinition$46 } from "../core/shaders/Strands/index.js";
53
- import { componentDefinition as componentDefinition$47 } from "../core/shaders/Stretch/index.js";
54
- import { componentDefinition as componentDefinition$48 } from "../core/shaders/Swirl/index.js";
55
- import { componentDefinition as componentDefinition$49 } from "../core/shaders/TiltShift/index.js";
56
- import { componentDefinition as componentDefinition$50 } from "../core/shaders/Tritone/index.js";
57
- import { componentDefinition as componentDefinition$51 } from "../core/shaders/Twirl/index.js";
58
- import { componentDefinition as componentDefinition$52 } from "../core/shaders/Vibrance/index.js";
59
- import { componentDefinition as componentDefinition$53 } from "../core/shaders/WaveDistortion/index.js";
60
- import { componentDefinition as componentDefinition$54 } from "../core/shaders/ZoomBlur/index.js";
11
+ import { componentDefinition as componentDefinition$5 } from "../core/shaders/BrightnessContrast/index.js";
12
+ import { componentDefinition as componentDefinition$6 } from "../core/shaders/Bulge/index.js";
13
+ import { componentDefinition as componentDefinition$7 } from "../core/shaders/CRTScreen/index.js";
14
+ import { componentDefinition as componentDefinition$8 } from "../core/shaders/ChannelBlur/index.js";
15
+ import { componentDefinition as componentDefinition$9 } from "../core/shaders/Checkerboard/index.js";
16
+ import { componentDefinition as componentDefinition$10 } from "../core/shaders/ChromaFlow/index.js";
17
+ import { componentDefinition as componentDefinition$11 } from "../core/shaders/ChromaticAberration/index.js";
18
+ import { componentDefinition as componentDefinition$12 } from "../core/shaders/Circle/index.js";
19
+ import { componentDefinition as componentDefinition$13 } from "../core/shaders/CursorTrail/index.js";
20
+ import { componentDefinition as componentDefinition$14 } from "../core/shaders/DiffuseBlur/index.js";
21
+ import { componentDefinition as componentDefinition$15 } from "../core/shaders/Dither/index.js";
22
+ import { componentDefinition as componentDefinition$16 } from "../core/shaders/DotGrid/index.js";
23
+ import { componentDefinition as componentDefinition$17 } from "../core/shaders/Duotone/index.js";
24
+ import { componentDefinition as componentDefinition$18 } from "../core/shaders/FilmGrain/index.js";
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/LinearBlur/index.js";
38
+ import { componentDefinition as componentDefinition$32 } from "../core/shaders/LinearGradient/index.js";
39
+ import { componentDefinition as componentDefinition$33 } from "../core/shaders/Liquify/index.js";
40
+ import { componentDefinition as componentDefinition$34 } from "../core/shaders/Pixelate/index.js";
41
+ import { componentDefinition as componentDefinition$35 } from "../core/shaders/PolarCoordinates/index.js";
42
+ import { componentDefinition as componentDefinition$36 } from "../core/shaders/Posterize/index.js";
43
+ import { componentDefinition as componentDefinition$37 } from "../core/shaders/ProgressiveBlur/index.js";
44
+ import { componentDefinition as componentDefinition$38 } from "../core/shaders/RadialGradient/index.js";
45
+ import { componentDefinition as componentDefinition$39 } from "../core/shaders/RectangularCoordinates/index.js";
46
+ import { componentDefinition as componentDefinition$40 } from "../core/shaders/Ripples/index.js";
47
+ import { componentDefinition as componentDefinition$41 } from "../core/shaders/Saturation/index.js";
48
+ import { componentDefinition as componentDefinition$42 } from "../core/shaders/Sharpness/index.js";
49
+ import { componentDefinition as componentDefinition$43 } from "../core/shaders/SimplexNoise/index.js";
50
+ import { componentDefinition as componentDefinition$44 } from "../core/shaders/SineWave/index.js";
51
+ import { componentDefinition as componentDefinition$45 } from "../core/shaders/SolidColor/index.js";
52
+ import { componentDefinition as componentDefinition$46 } from "../core/shaders/Spherize/index.js";
53
+ import { componentDefinition as componentDefinition$47 } from "../core/shaders/Spiral/index.js";
54
+ import { componentDefinition as componentDefinition$48 } from "../core/shaders/Strands/index.js";
55
+ import { componentDefinition as componentDefinition$49 } from "../core/shaders/Stretch/index.js";
56
+ import { componentDefinition as componentDefinition$50 } from "../core/shaders/Swirl/index.js";
57
+ import { componentDefinition as componentDefinition$51 } from "../core/shaders/TiltShift/index.js";
58
+ import { componentDefinition as componentDefinition$52 } from "../core/shaders/Tritone/index.js";
59
+ import { componentDefinition as componentDefinition$53 } from "../core/shaders/Twirl/index.js";
60
+ import { componentDefinition as componentDefinition$54 } from "../core/shaders/Vibrance/index.js";
61
+ import { componentDefinition as componentDefinition$55 } from "../core/shaders/WaveDistortion/index.js";
62
+ import { componentDefinition as componentDefinition$56 } from "../core/shaders/ZoomBlur/index.js";
61
63
  import { vec4 } from "three/tsl";
62
64
  import { TelemetryCollector, isExternalUser, shouldCollectTelemetry } from "../core/telemetry/index.js";
63
65
  function AngularBlur($$anchor, $$props) {
@@ -610,7 +612,7 @@ function Blur($$anchor, $$props) {
610
612
  children?.($$anchor);
611
613
  $.pop();
612
614
  }
613
- function Bulge($$anchor, $$props) {
615
+ function BrightnessContrast($$anchor, $$props) {
614
616
  $.push($$props, true);
615
617
  const DEFAULT_TRANSFORM = {
616
618
  offsetX: 0,
@@ -720,7 +722,7 @@ function Bulge($$anchor, $$props) {
720
722
  children?.($$anchor);
721
723
  $.pop();
722
724
  }
723
- function CRTScreen($$anchor, $$props) {
725
+ function Bulge($$anchor, $$props) {
724
726
  $.push($$props, true);
725
727
  const DEFAULT_TRANSFORM = {
726
728
  offsetX: 0,
@@ -830,7 +832,7 @@ function CRTScreen($$anchor, $$props) {
830
832
  children?.($$anchor);
831
833
  $.pop();
832
834
  }
833
- function ChannelBlur($$anchor, $$props) {
835
+ function CRTScreen($$anchor, $$props) {
834
836
  $.push($$props, true);
835
837
  const DEFAULT_TRANSFORM = {
836
838
  offsetX: 0,
@@ -940,7 +942,7 @@ function ChannelBlur($$anchor, $$props) {
940
942
  children?.($$anchor);
941
943
  $.pop();
942
944
  }
943
- function Checkerboard($$anchor, $$props) {
945
+ function ChannelBlur($$anchor, $$props) {
944
946
  $.push($$props, true);
945
947
  const DEFAULT_TRANSFORM = {
946
948
  offsetX: 0,
@@ -1050,7 +1052,7 @@ function Checkerboard($$anchor, $$props) {
1050
1052
  children?.($$anchor);
1051
1053
  $.pop();
1052
1054
  }
1053
- function ChromaFlow($$anchor, $$props) {
1055
+ function Checkerboard($$anchor, $$props) {
1054
1056
  $.push($$props, true);
1055
1057
  const DEFAULT_TRANSFORM = {
1056
1058
  offsetX: 0,
@@ -1160,7 +1162,7 @@ function ChromaFlow($$anchor, $$props) {
1160
1162
  children?.($$anchor);
1161
1163
  $.pop();
1162
1164
  }
1163
- function ChromaticAberration($$anchor, $$props) {
1165
+ function ChromaFlow($$anchor, $$props) {
1164
1166
  $.push($$props, true);
1165
1167
  const DEFAULT_TRANSFORM = {
1166
1168
  offsetX: 0,
@@ -1270,7 +1272,7 @@ function ChromaticAberration($$anchor, $$props) {
1270
1272
  children?.($$anchor);
1271
1273
  $.pop();
1272
1274
  }
1273
- function Circle($$anchor, $$props) {
1275
+ function ChromaticAberration($$anchor, $$props) {
1274
1276
  $.push($$props, true);
1275
1277
  const DEFAULT_TRANSFORM = {
1276
1278
  offsetX: 0,
@@ -1380,7 +1382,7 @@ function Circle($$anchor, $$props) {
1380
1382
  children?.($$anchor);
1381
1383
  $.pop();
1382
1384
  }
1383
- function CursorTrail($$anchor, $$props) {
1385
+ function Circle($$anchor, $$props) {
1384
1386
  $.push($$props, true);
1385
1387
  const DEFAULT_TRANSFORM = {
1386
1388
  offsetX: 0,
@@ -1490,7 +1492,7 @@ function CursorTrail($$anchor, $$props) {
1490
1492
  children?.($$anchor);
1491
1493
  $.pop();
1492
1494
  }
1493
- function DiffuseBlur($$anchor, $$props) {
1495
+ function CursorTrail($$anchor, $$props) {
1494
1496
  $.push($$props, true);
1495
1497
  const DEFAULT_TRANSFORM = {
1496
1498
  offsetX: 0,
@@ -1600,7 +1602,7 @@ function DiffuseBlur($$anchor, $$props) {
1600
1602
  children?.($$anchor);
1601
1603
  $.pop();
1602
1604
  }
1603
- function Dither($$anchor, $$props) {
1605
+ function DiffuseBlur($$anchor, $$props) {
1604
1606
  $.push($$props, true);
1605
1607
  const DEFAULT_TRANSFORM = {
1606
1608
  offsetX: 0,
@@ -1710,7 +1712,7 @@ function Dither($$anchor, $$props) {
1710
1712
  children?.($$anchor);
1711
1713
  $.pop();
1712
1714
  }
1713
- function DotGrid($$anchor, $$props) {
1715
+ function Dither($$anchor, $$props) {
1714
1716
  $.push($$props, true);
1715
1717
  const DEFAULT_TRANSFORM = {
1716
1718
  offsetX: 0,
@@ -1820,7 +1822,7 @@ function DotGrid($$anchor, $$props) {
1820
1822
  children?.($$anchor);
1821
1823
  $.pop();
1822
1824
  }
1823
- function Duotone($$anchor, $$props) {
1825
+ function DotGrid($$anchor, $$props) {
1824
1826
  $.push($$props, true);
1825
1827
  const DEFAULT_TRANSFORM = {
1826
1828
  offsetX: 0,
@@ -1930,7 +1932,7 @@ function Duotone($$anchor, $$props) {
1930
1932
  children?.($$anchor);
1931
1933
  $.pop();
1932
1934
  }
1933
- function FilmGrain($$anchor, $$props) {
1935
+ function Duotone($$anchor, $$props) {
1934
1936
  $.push($$props, true);
1935
1937
  const DEFAULT_TRANSFORM = {
1936
1938
  offsetX: 0,
@@ -2040,7 +2042,7 @@ function FilmGrain($$anchor, $$props) {
2040
2042
  children?.($$anchor);
2041
2043
  $.pop();
2042
2044
  }
2043
- function FloatingParticles($$anchor, $$props) {
2045
+ function FilmGrain($$anchor, $$props) {
2044
2046
  $.push($$props, true);
2045
2047
  const DEFAULT_TRANSFORM = {
2046
2048
  offsetX: 0,
@@ -2150,7 +2152,7 @@ function FloatingParticles($$anchor, $$props) {
2150
2152
  children?.($$anchor);
2151
2153
  $.pop();
2152
2154
  }
2153
- function GlassTiles($$anchor, $$props) {
2155
+ function FloatingParticles($$anchor, $$props) {
2154
2156
  $.push($$props, true);
2155
2157
  const DEFAULT_TRANSFORM = {
2156
2158
  offsetX: 0,
@@ -2260,7 +2262,7 @@ function GlassTiles($$anchor, $$props) {
2260
2262
  children?.($$anchor);
2261
2263
  $.pop();
2262
2264
  }
2263
- function Glow($$anchor, $$props) {
2265
+ function GlassTiles($$anchor, $$props) {
2264
2266
  $.push($$props, true);
2265
2267
  const DEFAULT_TRANSFORM = {
2266
2268
  offsetX: 0,
@@ -2370,7 +2372,7 @@ function Glow($$anchor, $$props) {
2370
2372
  children?.($$anchor);
2371
2373
  $.pop();
2372
2374
  }
2373
- function Godrays($$anchor, $$props) {
2375
+ function Glow($$anchor, $$props) {
2374
2376
  $.push($$props, true);
2375
2377
  const DEFAULT_TRANSFORM = {
2376
2378
  offsetX: 0,
@@ -2480,7 +2482,7 @@ function Godrays($$anchor, $$props) {
2480
2482
  children?.($$anchor);
2481
2483
  $.pop();
2482
2484
  }
2483
- function Grayscale($$anchor, $$props) {
2485
+ function Godrays($$anchor, $$props) {
2484
2486
  $.push($$props, true);
2485
2487
  const DEFAULT_TRANSFORM = {
2486
2488
  offsetX: 0,
@@ -2590,7 +2592,7 @@ function Grayscale($$anchor, $$props) {
2590
2592
  children?.($$anchor);
2591
2593
  $.pop();
2592
2594
  }
2593
- function Grid($$anchor, $$props) {
2595
+ function Grayscale($$anchor, $$props) {
2594
2596
  $.push($$props, true);
2595
2597
  const DEFAULT_TRANSFORM = {
2596
2598
  offsetX: 0,
@@ -2700,7 +2702,7 @@ function Grid($$anchor, $$props) {
2700
2702
  children?.($$anchor);
2701
2703
  $.pop();
2702
2704
  }
2703
- function GridDistortion($$anchor, $$props) {
2705
+ function Grid($$anchor, $$props) {
2704
2706
  $.push($$props, true);
2705
2707
  const DEFAULT_TRANSFORM = {
2706
2708
  offsetX: 0,
@@ -2810,7 +2812,7 @@ function GridDistortion($$anchor, $$props) {
2810
2812
  children?.($$anchor);
2811
2813
  $.pop();
2812
2814
  }
2813
- function Group($$anchor, $$props) {
2815
+ function GridDistortion($$anchor, $$props) {
2814
2816
  $.push($$props, true);
2815
2817
  const DEFAULT_TRANSFORM = {
2816
2818
  offsetX: 0,
@@ -2920,7 +2922,7 @@ function Group($$anchor, $$props) {
2920
2922
  children?.($$anchor);
2921
2923
  $.pop();
2922
2924
  }
2923
- function Halftone($$anchor, $$props) {
2925
+ function Group($$anchor, $$props) {
2924
2926
  $.push($$props, true);
2925
2927
  const DEFAULT_TRANSFORM = {
2926
2928
  offsetX: 0,
@@ -3030,7 +3032,7 @@ function Halftone($$anchor, $$props) {
3030
3032
  children?.($$anchor);
3031
3033
  $.pop();
3032
3034
  }
3033
- function HueShift($$anchor, $$props) {
3035
+ function Halftone($$anchor, $$props) {
3034
3036
  $.push($$props, true);
3035
3037
  const DEFAULT_TRANSFORM = {
3036
3038
  offsetX: 0,
@@ -3140,7 +3142,7 @@ function HueShift($$anchor, $$props) {
3140
3142
  children?.($$anchor);
3141
3143
  $.pop();
3142
3144
  }
3143
- function ImageTexture($$anchor, $$props) {
3145
+ function HueShift($$anchor, $$props) {
3144
3146
  $.push($$props, true);
3145
3147
  const DEFAULT_TRANSFORM = {
3146
3148
  offsetX: 0,
@@ -3250,7 +3252,7 @@ function ImageTexture($$anchor, $$props) {
3250
3252
  children?.($$anchor);
3251
3253
  $.pop();
3252
3254
  }
3253
- function Invert($$anchor, $$props) {
3255
+ function ImageTexture($$anchor, $$props) {
3254
3256
  $.push($$props, true);
3255
3257
  const DEFAULT_TRANSFORM = {
3256
3258
  offsetX: 0,
@@ -3360,7 +3362,7 @@ function Invert($$anchor, $$props) {
3360
3362
  children?.($$anchor);
3361
3363
  $.pop();
3362
3364
  }
3363
- function LinearBlur($$anchor, $$props) {
3365
+ function Invert($$anchor, $$props) {
3364
3366
  $.push($$props, true);
3365
3367
  const DEFAULT_TRANSFORM = {
3366
3368
  offsetX: 0,
@@ -3470,7 +3472,7 @@ function LinearBlur($$anchor, $$props) {
3470
3472
  children?.($$anchor);
3471
3473
  $.pop();
3472
3474
  }
3473
- function LinearGradient($$anchor, $$props) {
3475
+ function LinearBlur($$anchor, $$props) {
3474
3476
  $.push($$props, true);
3475
3477
  const DEFAULT_TRANSFORM = {
3476
3478
  offsetX: 0,
@@ -3580,7 +3582,7 @@ function LinearGradient($$anchor, $$props) {
3580
3582
  children?.($$anchor);
3581
3583
  $.pop();
3582
3584
  }
3583
- function Liquify($$anchor, $$props) {
3585
+ function LinearGradient($$anchor, $$props) {
3584
3586
  $.push($$props, true);
3585
3587
  const DEFAULT_TRANSFORM = {
3586
3588
  offsetX: 0,
@@ -3690,7 +3692,7 @@ function Liquify($$anchor, $$props) {
3690
3692
  children?.($$anchor);
3691
3693
  $.pop();
3692
3694
  }
3693
- function Pixelate($$anchor, $$props) {
3695
+ function Liquify($$anchor, $$props) {
3694
3696
  $.push($$props, true);
3695
3697
  const DEFAULT_TRANSFORM = {
3696
3698
  offsetX: 0,
@@ -3800,7 +3802,7 @@ function Pixelate($$anchor, $$props) {
3800
3802
  children?.($$anchor);
3801
3803
  $.pop();
3802
3804
  }
3803
- function PolarCoordinates($$anchor, $$props) {
3805
+ function Pixelate($$anchor, $$props) {
3804
3806
  $.push($$props, true);
3805
3807
  const DEFAULT_TRANSFORM = {
3806
3808
  offsetX: 0,
@@ -3910,7 +3912,7 @@ function PolarCoordinates($$anchor, $$props) {
3910
3912
  children?.($$anchor);
3911
3913
  $.pop();
3912
3914
  }
3913
- function Posterize($$anchor, $$props) {
3915
+ function PolarCoordinates($$anchor, $$props) {
3914
3916
  $.push($$props, true);
3915
3917
  const DEFAULT_TRANSFORM = {
3916
3918
  offsetX: 0,
@@ -4020,7 +4022,7 @@ function Posterize($$anchor, $$props) {
4020
4022
  children?.($$anchor);
4021
4023
  $.pop();
4022
4024
  }
4023
- function ProgressiveBlur($$anchor, $$props) {
4025
+ function Posterize($$anchor, $$props) {
4024
4026
  $.push($$props, true);
4025
4027
  const DEFAULT_TRANSFORM = {
4026
4028
  offsetX: 0,
@@ -4130,7 +4132,7 @@ function ProgressiveBlur($$anchor, $$props) {
4130
4132
  children?.($$anchor);
4131
4133
  $.pop();
4132
4134
  }
4133
- function RadialGradient($$anchor, $$props) {
4135
+ function ProgressiveBlur($$anchor, $$props) {
4134
4136
  $.push($$props, true);
4135
4137
  const DEFAULT_TRANSFORM = {
4136
4138
  offsetX: 0,
@@ -4240,7 +4242,7 @@ function RadialGradient($$anchor, $$props) {
4240
4242
  children?.($$anchor);
4241
4243
  $.pop();
4242
4244
  }
4243
- function RectangularCoordinates($$anchor, $$props) {
4245
+ function RadialGradient($$anchor, $$props) {
4244
4246
  $.push($$props, true);
4245
4247
  const DEFAULT_TRANSFORM = {
4246
4248
  offsetX: 0,
@@ -4350,7 +4352,7 @@ function RectangularCoordinates($$anchor, $$props) {
4350
4352
  children?.($$anchor);
4351
4353
  $.pop();
4352
4354
  }
4353
- function Ripples($$anchor, $$props) {
4355
+ function RectangularCoordinates($$anchor, $$props) {
4354
4356
  $.push($$props, true);
4355
4357
  const DEFAULT_TRANSFORM = {
4356
4358
  offsetX: 0,
@@ -4460,7 +4462,7 @@ function Ripples($$anchor, $$props) {
4460
4462
  children?.($$anchor);
4461
4463
  $.pop();
4462
4464
  }
4463
- function Saturation($$anchor, $$props) {
4465
+ function Ripples($$anchor, $$props) {
4464
4466
  $.push($$props, true);
4465
4467
  const DEFAULT_TRANSFORM = {
4466
4468
  offsetX: 0,
@@ -4570,7 +4572,7 @@ function Saturation($$anchor, $$props) {
4570
4572
  children?.($$anchor);
4571
4573
  $.pop();
4572
4574
  }
4573
- function SimplexNoise($$anchor, $$props) {
4575
+ function Saturation($$anchor, $$props) {
4574
4576
  $.push($$props, true);
4575
4577
  const DEFAULT_TRANSFORM = {
4576
4578
  offsetX: 0,
@@ -4680,7 +4682,7 @@ function SimplexNoise($$anchor, $$props) {
4680
4682
  children?.($$anchor);
4681
4683
  $.pop();
4682
4684
  }
4683
- function SineWave($$anchor, $$props) {
4685
+ function Sharpness($$anchor, $$props) {
4684
4686
  $.push($$props, true);
4685
4687
  const DEFAULT_TRANSFORM = {
4686
4688
  offsetX: 0,
@@ -4790,7 +4792,7 @@ function SineWave($$anchor, $$props) {
4790
4792
  children?.($$anchor);
4791
4793
  $.pop();
4792
4794
  }
4793
- function SolidColor($$anchor, $$props) {
4795
+ function SimplexNoise($$anchor, $$props) {
4794
4796
  $.push($$props, true);
4795
4797
  const DEFAULT_TRANSFORM = {
4796
4798
  offsetX: 0,
@@ -4900,7 +4902,7 @@ function SolidColor($$anchor, $$props) {
4900
4902
  children?.($$anchor);
4901
4903
  $.pop();
4902
4904
  }
4903
- function Spherize($$anchor, $$props) {
4905
+ function SineWave($$anchor, $$props) {
4904
4906
  $.push($$props, true);
4905
4907
  const DEFAULT_TRANSFORM = {
4906
4908
  offsetX: 0,
@@ -5010,7 +5012,7 @@ function Spherize($$anchor, $$props) {
5010
5012
  children?.($$anchor);
5011
5013
  $.pop();
5012
5014
  }
5013
- function Spiral($$anchor, $$props) {
5015
+ function SolidColor($$anchor, $$props) {
5014
5016
  $.push($$props, true);
5015
5017
  const DEFAULT_TRANSFORM = {
5016
5018
  offsetX: 0,
@@ -5120,7 +5122,7 @@ function Spiral($$anchor, $$props) {
5120
5122
  children?.($$anchor);
5121
5123
  $.pop();
5122
5124
  }
5123
- function Strands($$anchor, $$props) {
5125
+ function Spherize($$anchor, $$props) {
5124
5126
  $.push($$props, true);
5125
5127
  const DEFAULT_TRANSFORM = {
5126
5128
  offsetX: 0,
@@ -5230,7 +5232,7 @@ function Strands($$anchor, $$props) {
5230
5232
  children?.($$anchor);
5231
5233
  $.pop();
5232
5234
  }
5233
- function Stretch($$anchor, $$props) {
5235
+ function Spiral($$anchor, $$props) {
5234
5236
  $.push($$props, true);
5235
5237
  const DEFAULT_TRANSFORM = {
5236
5238
  offsetX: 0,
@@ -5340,7 +5342,7 @@ function Stretch($$anchor, $$props) {
5340
5342
  children?.($$anchor);
5341
5343
  $.pop();
5342
5344
  }
5343
- function Swirl($$anchor, $$props) {
5345
+ function Strands($$anchor, $$props) {
5344
5346
  $.push($$props, true);
5345
5347
  const DEFAULT_TRANSFORM = {
5346
5348
  offsetX: 0,
@@ -5450,7 +5452,7 @@ function Swirl($$anchor, $$props) {
5450
5452
  children?.($$anchor);
5451
5453
  $.pop();
5452
5454
  }
5453
- function TiltShift($$anchor, $$props) {
5455
+ function Stretch($$anchor, $$props) {
5454
5456
  $.push($$props, true);
5455
5457
  const DEFAULT_TRANSFORM = {
5456
5458
  offsetX: 0,
@@ -5560,7 +5562,7 @@ function TiltShift($$anchor, $$props) {
5560
5562
  children?.($$anchor);
5561
5563
  $.pop();
5562
5564
  }
5563
- function Tritone($$anchor, $$props) {
5565
+ function Swirl($$anchor, $$props) {
5564
5566
  $.push($$props, true);
5565
5567
  const DEFAULT_TRANSFORM = {
5566
5568
  offsetX: 0,
@@ -5670,7 +5672,7 @@ function Tritone($$anchor, $$props) {
5670
5672
  children?.($$anchor);
5671
5673
  $.pop();
5672
5674
  }
5673
- function Twirl($$anchor, $$props) {
5675
+ function TiltShift($$anchor, $$props) {
5674
5676
  $.push($$props, true);
5675
5677
  const DEFAULT_TRANSFORM = {
5676
5678
  offsetX: 0,
@@ -5780,7 +5782,7 @@ function Twirl($$anchor, $$props) {
5780
5782
  children?.($$anchor);
5781
5783
  $.pop();
5782
5784
  }
5783
- function Vibrance($$anchor, $$props) {
5785
+ function Tritone($$anchor, $$props) {
5784
5786
  $.push($$props, true);
5785
5787
  const DEFAULT_TRANSFORM = {
5786
5788
  offsetX: 0,
@@ -5890,7 +5892,7 @@ function Vibrance($$anchor, $$props) {
5890
5892
  children?.($$anchor);
5891
5893
  $.pop();
5892
5894
  }
5893
- function WaveDistortion($$anchor, $$props) {
5895
+ function Twirl($$anchor, $$props) {
5894
5896
  $.push($$props, true);
5895
5897
  const DEFAULT_TRANSFORM = {
5896
5898
  offsetX: 0,
@@ -6000,7 +6002,7 @@ function WaveDistortion($$anchor, $$props) {
6000
6002
  children?.($$anchor);
6001
6003
  $.pop();
6002
6004
  }
6003
- function ZoomBlur($$anchor, $$props) {
6005
+ function Vibrance($$anchor, $$props) {
6004
6006
  $.push($$props, true);
6005
6007
  const DEFAULT_TRANSFORM = {
6006
6008
  offsetX: 0,
@@ -6110,6 +6112,226 @@ function ZoomBlur($$anchor, $$props) {
6110
6112
  children?.($$anchor);
6111
6113
  $.pop();
6112
6114
  }
6115
+ function WaveDistortion($$anchor, $$props) {
6116
+ $.push($$props, true);
6117
+ const DEFAULT_TRANSFORM = {
6118
+ offsetX: 0,
6119
+ offsetY: 0,
6120
+ rotation: 0,
6121
+ scale: 1,
6122
+ anchorX: .5,
6123
+ anchorY: .5,
6124
+ edges: "transparent"
6125
+ };
6126
+ const componentDefaults = {
6127
+ blendMode: "normal",
6128
+ renderOrder: 0,
6129
+ visible: true,
6130
+ ...Object.entries(componentDefinition$55.props).reduce((acc, [key, config]) => {
6131
+ acc[key] = config.default;
6132
+ return acc;
6133
+ }, {})
6134
+ };
6135
+ const props = $.rest_props($$props, [
6136
+ "$$slots",
6137
+ "$$events",
6138
+ "$$legacy"
6139
+ ]);
6140
+ const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
6141
+ const opacity = $$props.opacity;
6142
+ const visible = $$props.visible ?? componentDefaults.visible;
6143
+ const id = $$props.id;
6144
+ const maskSource = $$props.maskSource;
6145
+ const maskType = $$props.maskType;
6146
+ const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
6147
+ const { children } = props;
6148
+ const effectiveTransform = $.derived(() => ({
6149
+ ...DEFAULT_TRANSFORM,
6150
+ ...$$props.transform
6151
+ }));
6152
+ const parentId = getContext("shaderParentId");
6153
+ if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
6154
+ const instanceId = id || `${componentDefinition$55.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
6155
+ setContext("shaderParentId", instanceId);
6156
+ const shaderReadyProps = $.derived(() => {
6157
+ let baseProps = { ...componentDefaults };
6158
+ for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
6159
+ const propValue = props[key];
6160
+ const defaultValue = componentDefaults[key];
6161
+ if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
6162
+ }
6163
+ return baseProps;
6164
+ });
6165
+ const uniforms = createUniformsMap(componentDefinition$55, $.get(shaderReadyProps), instanceId);
6166
+ const parentRegister = getContext("shaderNodeRegister");
6167
+ if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
6168
+ const parentUniformUpdate = getContext("shaderUniformUpdate");
6169
+ if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
6170
+ const parentMetadataUpdate = getContext("shaderMetadataUpdate");
6171
+ if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
6172
+ let isRegistered = $.state(false);
6173
+ Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
6174
+ $.user_effect(() => {
6175
+ if (!$.get(isRegistered)) return;
6176
+ if (uniform && uniform.value !== void 0) {
6177
+ const newValue = props[propName];
6178
+ if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
6179
+ }
6180
+ });
6181
+ });
6182
+ $.user_effect(() => {
6183
+ if (!$.get(isRegistered)) return;
6184
+ parentMetadataUpdate(instanceId, {
6185
+ blendMode,
6186
+ opacity,
6187
+ visible: visible === false ? false : true,
6188
+ id,
6189
+ mask: maskSource ? {
6190
+ source: maskSource,
6191
+ type: maskType || "alpha"
6192
+ } : void 0,
6193
+ renderOrder,
6194
+ transform: $.get(effectiveTransform)
6195
+ });
6196
+ });
6197
+ onMount(() => {
6198
+ if (componentDefinition$55 && typeof componentDefinition$55.fragmentNode === "function") {
6199
+ parentRegister(instanceId, componentDefinition$55.fragmentNode, parentId, {
6200
+ blendMode,
6201
+ opacity,
6202
+ visible: visible !== false ? true : false,
6203
+ id,
6204
+ mask: maskSource ? {
6205
+ source: maskSource,
6206
+ type: maskType || "alpha"
6207
+ } : void 0,
6208
+ renderOrder,
6209
+ transform: $.get(effectiveTransform)
6210
+ }, uniforms);
6211
+ $.set(isRegistered, true);
6212
+ } else console.error("componentDefinition.fragmentNode is not a function:", {
6213
+ componentDefinition: componentDefinition$55,
6214
+ fragmentNode: componentDefinition$55?.fragmentNode,
6215
+ type: typeof componentDefinition$55?.fragmentNode
6216
+ });
6217
+ });
6218
+ onDestroy(() => {
6219
+ $.set(isRegistered, false);
6220
+ parentRegister(instanceId, null, null, null, null);
6221
+ });
6222
+ children?.($$anchor);
6223
+ $.pop();
6224
+ }
6225
+ function ZoomBlur($$anchor, $$props) {
6226
+ $.push($$props, true);
6227
+ const DEFAULT_TRANSFORM = {
6228
+ offsetX: 0,
6229
+ offsetY: 0,
6230
+ rotation: 0,
6231
+ scale: 1,
6232
+ anchorX: .5,
6233
+ anchorY: .5,
6234
+ edges: "transparent"
6235
+ };
6236
+ const componentDefaults = {
6237
+ blendMode: "normal",
6238
+ renderOrder: 0,
6239
+ visible: true,
6240
+ ...Object.entries(componentDefinition$56.props).reduce((acc, [key, config]) => {
6241
+ acc[key] = config.default;
6242
+ return acc;
6243
+ }, {})
6244
+ };
6245
+ const props = $.rest_props($$props, [
6246
+ "$$slots",
6247
+ "$$events",
6248
+ "$$legacy"
6249
+ ]);
6250
+ const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
6251
+ const opacity = $$props.opacity;
6252
+ const visible = $$props.visible ?? componentDefaults.visible;
6253
+ const id = $$props.id;
6254
+ const maskSource = $$props.maskSource;
6255
+ const maskType = $$props.maskType;
6256
+ const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
6257
+ const { children } = props;
6258
+ const effectiveTransform = $.derived(() => ({
6259
+ ...DEFAULT_TRANSFORM,
6260
+ ...$$props.transform
6261
+ }));
6262
+ const parentId = getContext("shaderParentId");
6263
+ if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
6264
+ const instanceId = id || `${componentDefinition$56.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
6265
+ setContext("shaderParentId", instanceId);
6266
+ const shaderReadyProps = $.derived(() => {
6267
+ let baseProps = { ...componentDefaults };
6268
+ for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
6269
+ const propValue = props[key];
6270
+ const defaultValue = componentDefaults[key];
6271
+ if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
6272
+ }
6273
+ return baseProps;
6274
+ });
6275
+ const uniforms = createUniformsMap(componentDefinition$56, $.get(shaderReadyProps), instanceId);
6276
+ const parentRegister = getContext("shaderNodeRegister");
6277
+ if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
6278
+ const parentUniformUpdate = getContext("shaderUniformUpdate");
6279
+ if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
6280
+ const parentMetadataUpdate = getContext("shaderMetadataUpdate");
6281
+ if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
6282
+ let isRegistered = $.state(false);
6283
+ Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
6284
+ $.user_effect(() => {
6285
+ if (!$.get(isRegistered)) return;
6286
+ if (uniform && uniform.value !== void 0) {
6287
+ const newValue = props[propName];
6288
+ if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
6289
+ }
6290
+ });
6291
+ });
6292
+ $.user_effect(() => {
6293
+ if (!$.get(isRegistered)) return;
6294
+ parentMetadataUpdate(instanceId, {
6295
+ blendMode,
6296
+ opacity,
6297
+ visible: visible === false ? false : true,
6298
+ id,
6299
+ mask: maskSource ? {
6300
+ source: maskSource,
6301
+ type: maskType || "alpha"
6302
+ } : void 0,
6303
+ renderOrder,
6304
+ transform: $.get(effectiveTransform)
6305
+ });
6306
+ });
6307
+ onMount(() => {
6308
+ if (componentDefinition$56 && typeof componentDefinition$56.fragmentNode === "function") {
6309
+ parentRegister(instanceId, componentDefinition$56.fragmentNode, parentId, {
6310
+ blendMode,
6311
+ opacity,
6312
+ visible: visible !== false ? true : false,
6313
+ id,
6314
+ mask: maskSource ? {
6315
+ source: maskSource,
6316
+ type: maskType || "alpha"
6317
+ } : void 0,
6318
+ renderOrder,
6319
+ transform: $.get(effectiveTransform)
6320
+ }, uniforms);
6321
+ $.set(isRegistered, true);
6322
+ } else console.error("componentDefinition.fragmentNode is not a function:", {
6323
+ componentDefinition: componentDefinition$56,
6324
+ fragmentNode: componentDefinition$56?.fragmentNode,
6325
+ type: typeof componentDefinition$56?.fragmentNode
6326
+ });
6327
+ });
6328
+ onDestroy(() => {
6329
+ $.set(isRegistered, false);
6330
+ parentRegister(instanceId, null, null, null, null);
6331
+ });
6332
+ children?.($$anchor);
6333
+ $.pop();
6334
+ }
6113
6335
  var root = $.from_html(`<div><canvas data-renderer="shaders" style="width: 100%; height: 100%; display: block;"></canvas> <!></div>`);
6114
6336
  function Shader($$anchor, $$props) {
6115
6337
  $.push($$props, true);
@@ -6212,4 +6434,4 @@ function Shader($$anchor, $$props) {
6212
6434
  $.append($$anchor, div);
6213
6435
  $.pop();
6214
6436
  }
6215
- export { AngularBlur, Ascii, Beam, Blob, Blur, 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, LinearBlur, LinearGradient, Liquify, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Swirl, TiltShift, Tritone, Twirl, Vibrance, WaveDistortion, ZoomBlur, generatePresetCode };
6437
+ 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, LinearBlur, LinearGradient, Liquify, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Swirl, TiltShift, Tritone, Twirl, Vibrance, WaveDistortion, ZoomBlur, generatePresetCode };