shaders 2.2.23 → 2.2.25

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 (213) hide show
  1. package/dist/core/AngularBlur-Dl2gwk68.js +64 -0
  2. package/dist/core/Ascii-Dha_QpT3.js +286 -0
  3. package/dist/core/Beam-CTN9Ni43.js +139 -0
  4. package/dist/core/Blob-CxFDZovO.js +218 -0
  5. package/dist/core/Blur-Y2FsmFk_.js +77 -0
  6. package/dist/core/Bulge-Cb-t0xqI.js +132 -0
  7. package/dist/core/CRTScreen-CtERsenz.js +112 -0
  8. package/dist/core/ChannelBlur-CvM6GJgZ.js +118 -0
  9. package/dist/core/Checkerboard-CgB-egNY.js +83 -0
  10. package/dist/core/ChromaFlow-vRCwhQpN.js +222 -0
  11. package/dist/core/ChromaticAberration-FTquTQIL.js +88 -0
  12. package/dist/core/Circle-Daziv5d7.js +67 -0
  13. package/dist/core/CursorTrail-Bsz9e6Fn.js +145 -0
  14. package/dist/core/DiffuseBlur-Cj2PtRNd.js +83 -0
  15. package/dist/core/Dither-D2Nf4p3w.js +66 -0
  16. package/dist/core/DotGrid-CzOwquo4.js +75 -0
  17. package/dist/core/Duotone-XuTN9tI7.js +65 -0
  18. package/dist/core/FilmGrain-D3-nbi12.js +28 -0
  19. package/dist/core/FloatingParticles-D9Nnu1qg.js +217 -0
  20. package/dist/core/GlassTiles-CnjCvajI.js +69 -0
  21. package/dist/core/Glow-BluFc9be.js +75 -0
  22. package/dist/core/Godrays-ChLh_vGl.js +144 -0
  23. package/dist/core/Grayscale-DRny75A9.js +20 -0
  24. package/dist/core/Grid-DgyDa4H1.js +58 -0
  25. package/dist/core/GridDistortion-BAspCYvp.js +188 -0
  26. package/dist/core/Group-Dul7PUBl.js +14 -0
  27. package/dist/core/Halftone-Ifv5F_FT.js +65 -0
  28. package/dist/core/HueShift-De8ukMWs.js +31 -0
  29. package/dist/core/ImageTexture-DvYcQgJB.js +143 -0
  30. package/dist/core/Invert-Fz0NtIJc.js +21 -0
  31. package/dist/core/LinearBlur-LmhnQoA4.js +62 -0
  32. package/dist/core/LinearGradient-xbloQjzt.js +133 -0
  33. package/dist/core/Liquify-DMe1V5-O.js +175 -0
  34. package/dist/core/Pixelate-Cv8537Pj.js +37 -0
  35. package/dist/core/PolarCoordinates-DDvDhBE-.js +112 -0
  36. package/dist/core/Posterize-3m3xkWOz.js +29 -0
  37. package/dist/core/ProgressiveBlur-EGkevObV.js +121 -0
  38. package/dist/core/RadialGradient-B7ZZB_VJ.js +71 -0
  39. package/dist/core/RectangularCoordinates-muWR8mZS.js +101 -0
  40. package/dist/core/Ripples-8XaZaXQF.js +117 -0
  41. package/dist/core/Saturation-CYFI1jzN.js +30 -0
  42. package/dist/core/SimplexNoise-DJUe0wz_.js +99 -0
  43. package/dist/core/SineWave-Dl3nFO1W.js +120 -0
  44. package/dist/core/SolidColor-CWGq_Bjq.js +21 -0
  45. package/dist/core/Spherize-C-jZEUsN.js +128 -0
  46. package/dist/core/Spiral-BSB_R39p.js +132 -0
  47. package/dist/core/Strands-0stO5BMy.js +161 -0
  48. package/dist/core/Stretch-B645paha.js +133 -0
  49. package/dist/core/Swirl-CVnbawit.js +173 -0
  50. package/dist/core/TiltShift-0CxNRI6L.js +134 -0
  51. package/dist/core/Tritone-Daa-I5UD.js +76 -0
  52. package/dist/core/Twirl-2CJVZEtk.js +96 -0
  53. package/dist/core/Vibrance-DRtecEvb.js +30 -0
  54. package/dist/core/WaveDistortion-BscXN2rs.js +173 -0
  55. package/dist/core/ZoomBlur-CAqK0Kju.js +62 -0
  56. package/dist/core/colorMixing-BXiTAqJU.js +69 -0
  57. package/dist/core/edges-Bn_OIa_h.js +26 -0
  58. package/dist/core/index.js +2257 -1604
  59. package/dist/core/shaderRegistry.d.ts.map +1 -1
  60. package/dist/core/shaders/AngularBlur/index.js +3 -7
  61. package/dist/core/shaders/Ascii/index.js +2 -6
  62. package/dist/core/shaders/Beam/index.d.ts +71 -0
  63. package/dist/core/shaders/Beam/index.d.ts.map +1 -0
  64. package/dist/core/shaders/Beam/index.js +4 -0
  65. package/dist/core/shaders/Blob/index.js +5 -9
  66. package/dist/core/shaders/Blur/index.js +2 -6
  67. package/dist/core/shaders/Bulge/index.js +4 -8
  68. package/dist/core/shaders/CRTScreen/index.js +2 -6
  69. package/dist/core/shaders/ChannelBlur/index.js +2 -6
  70. package/dist/core/shaders/Checkerboard/index.js +4 -8
  71. package/dist/core/shaders/ChromaFlow/index.js +3 -7
  72. package/dist/core/shaders/ChromaticAberration/index.js +3 -7
  73. package/dist/core/shaders/Circle/index.js +3 -7
  74. package/dist/core/shaders/CursorTrail/index.js +4 -8
  75. package/dist/core/shaders/DiffuseBlur/index.js +4 -8
  76. package/dist/core/shaders/Dither/index.js +3 -7
  77. package/dist/core/shaders/DotGrid/index.js +3 -7
  78. package/dist/core/shaders/Duotone/index.js +4 -8
  79. package/dist/core/shaders/FilmGrain/index.js +2 -6
  80. package/dist/core/shaders/FloatingParticles/index.js +3 -7
  81. package/dist/core/shaders/GlassTiles/index.js +2 -6
  82. package/dist/core/shaders/Glow/index.js +2 -6
  83. package/dist/core/shaders/Godrays/index.js +3 -7
  84. package/dist/core/shaders/Grayscale/index.js +2 -8
  85. package/dist/core/shaders/Grid/index.js +3 -7
  86. package/dist/core/shaders/GridDistortion/index.js +4 -8
  87. package/dist/core/shaders/Group/index.js +2 -6
  88. package/dist/core/shaders/Halftone/index.js +3 -7
  89. package/dist/core/shaders/HueShift/index.js +2 -8
  90. package/dist/core/shaders/ImageTexture/index.js +2 -6
  91. package/dist/core/shaders/Invert/index.js +2 -6
  92. package/dist/core/shaders/LinearBlur/index.js +3 -7
  93. package/dist/core/shaders/LinearGradient/index.js +4 -8
  94. package/dist/core/shaders/Liquify/index.js +4 -8
  95. package/dist/core/shaders/Pixelate/index.js +2 -6
  96. package/dist/core/shaders/PolarCoordinates/index.js +4 -8
  97. package/dist/core/shaders/Posterize/index.js +2 -7
  98. package/dist/core/shaders/ProgressiveBlur/index.js +3 -7
  99. package/dist/core/shaders/RadialGradient/index.js +4 -8
  100. package/dist/core/shaders/RectangularCoordinates/index.js +4 -8
  101. package/dist/core/shaders/Ripples/index.js +5 -9
  102. package/dist/core/shaders/Saturation/index.js +2 -8
  103. package/dist/core/shaders/SimplexNoise/index.js +5 -9
  104. package/dist/core/shaders/SineWave/index.js +3 -7
  105. package/dist/core/shaders/SolidColor/index.js +3 -7
  106. package/dist/core/shaders/Spherize/index.js +3 -7
  107. package/dist/core/shaders/Spiral/index.js +4 -8
  108. package/dist/core/shaders/Strands/index.js +4 -8
  109. package/dist/core/shaders/Stretch/index.js +4 -8
  110. package/dist/core/shaders/Swirl/index.js +5 -9
  111. package/dist/core/shaders/TiltShift/index.js +3 -7
  112. package/dist/core/shaders/Tritone/index.js +4 -8
  113. package/dist/core/shaders/Twirl/index.js +4 -8
  114. package/dist/core/shaders/Vibrance/index.js +2 -8
  115. package/dist/core/shaders/WaveDistortion/index.js +4 -8
  116. package/dist/core/shaders/ZoomBlur/index.js +3 -7
  117. package/dist/core/telemetry/index.js +189 -157
  118. package/dist/core/time-CTJvRUZ4.js +10 -0
  119. package/dist/core/transformations-DxfQXZWi.js +4715 -0
  120. package/dist/react/components/Beam.d.ts +31 -0
  121. package/dist/react/components/Beam.d.ts.map +1 -0
  122. package/dist/react/generatePresetCode-CCibXbtZ.js +645 -0
  123. package/dist/react/index.d.ts +1 -0
  124. package/dist/react/index.d.ts.map +1 -1
  125. package/dist/react/index.js +7649 -104600
  126. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  127. package/dist/react/utils/generatePresetCode.js +2 -5
  128. package/dist/registry.js +224 -0
  129. package/dist/solid/components/Beam.d.ts +28 -0
  130. package/dist/solid/components/Beam.d.ts.map +1 -0
  131. package/dist/solid/index.d.ts +1 -0
  132. package/dist/solid/index.d.ts.map +1 -1
  133. package/dist/solid/index.js +6691 -102524
  134. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  135. package/dist/solid/utils/generatePresetCode.js +586 -537
  136. package/dist/svelte/components/Beam.svelte.d.ts +19 -0
  137. package/dist/svelte/generatePresetCode-CymgoDq_.js +645 -0
  138. package/dist/svelte/index.d.ts +1 -0
  139. package/dist/svelte/index.js +6175 -102455
  140. package/dist/svelte/utils/generatePresetCode.js +2 -5
  141. package/dist/vue/components/Beam.vue.d.ts +57 -0
  142. package/dist/vue/components/Beam.vue.d.ts.map +1 -0
  143. package/dist/vue/generatePresetCode-CRJmU8iF.js +649 -0
  144. package/dist/vue/index.d.ts +1 -0
  145. package/dist/vue/index.d.ts.map +1 -1
  146. package/dist/vue/index.js +6929 -103492
  147. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  148. package/dist/vue/utils/generatePresetCode.js +2 -5
  149. package/package.json +12 -1
  150. package/dist/core/AngularBlur-ClvtyURQ.js +0 -56
  151. package/dist/core/Ascii-BT0-K_vw.js +0 -196
  152. package/dist/core/Blob-BlQ_1T_8.js +0 -169
  153. package/dist/core/Blur-421AjWLH.js +0 -64
  154. package/dist/core/Bulge-CZRVoR6C.js +0 -103
  155. package/dist/core/CRTScreen-C_U9g_IR.js +0 -91
  156. package/dist/core/ChannelBlur-5pzcB6Zv.js +0 -89
  157. package/dist/core/Checkerboard-CrQkqXhD.js +0 -75
  158. package/dist/core/ChromaFlow-CNrQdL8f.js +0 -134
  159. package/dist/core/ChromaticAberration-D9H7O17Y.js +0 -82
  160. package/dist/core/Circle-DnLaDn8V.js +0 -62
  161. package/dist/core/ColorAdjustment-CKwpE_4M.js +0 -14
  162. package/dist/core/CursorTrail-NY6n97VG.js +0 -105
  163. package/dist/core/DiffuseBlur-C_n01ABk.js +0 -69
  164. package/dist/core/Dither-4s-c4zh4.js +0 -61
  165. package/dist/core/DotGrid-BYl8XdMi.js +0 -61
  166. package/dist/core/Duotone-DbewOoB4.js +0 -66
  167. package/dist/core/FilmGrain-zA_-knOw.js +0 -28
  168. package/dist/core/FloatingParticles-BhVnqMsE.js +0 -160
  169. package/dist/core/GlassTiles-CFI57glh.js +0 -52
  170. package/dist/core/Glow-CQgl3IoS.js +0 -66
  171. package/dist/core/Godrays-BHMix_Bh.js +0 -105
  172. package/dist/core/Grayscale-CAEFLteL.js +0 -21
  173. package/dist/core/Grid-DlM-rVbZ.js +0 -50
  174. package/dist/core/GridDistortion-ZOZphSAT.js +0 -147
  175. package/dist/core/Group-BQAs3RiH.js +0 -17
  176. package/dist/core/Halftone-ci4ga-_J.js +0 -55
  177. package/dist/core/HueShift-CyxzPcJV.js +0 -32
  178. package/dist/core/ImageTexture-CdAGsPuH.js +0 -105
  179. package/dist/core/Invert-iPsiIqNZ.js +0 -20
  180. package/dist/core/LinearBlur-BEaaoIk-.js +0 -56
  181. package/dist/core/LinearGradient-DR_7RxLX.js +0 -111
  182. package/dist/core/Liquify-Bi02_ugh.js +0 -139
  183. package/dist/core/Pixelate-CSsdT1rr.js +0 -38
  184. package/dist/core/PolarCoordinates-D626ml58.js +0 -103
  185. package/dist/core/Posterize-DhZkMaC7.js +0 -46
  186. package/dist/core/ProgressiveBlur-CGtCfLF8.js +0 -102
  187. package/dist/core/RadialGradient-C0_WzmbH.js +0 -71
  188. package/dist/core/RectangularCoordinates-DfXw7fhI.js +0 -92
  189. package/dist/core/Ripples-DkemN3eh.js +0 -106
  190. package/dist/core/Saturation-Dup81Pnq.js +0 -31
  191. package/dist/core/SimplexNoise-BYEiCjDj.js +0 -94
  192. package/dist/core/SineWave-C6MRPtsy.js +0 -107
  193. package/dist/core/SolidColor-BZHRczgb.js +0 -22
  194. package/dist/core/Spherize-DOAnDx2l.js +0 -103
  195. package/dist/core/Spiral-BMjnWXh1.js +0 -115
  196. package/dist/core/Strands-BOVsuJLe.js +0 -125
  197. package/dist/core/Stretch-D6bHc6yp.js +0 -103
  198. package/dist/core/Swirl-BFoc0ImG.js +0 -148
  199. package/dist/core/TSLBase-BFMvTOak.js +0 -8053
  200. package/dist/core/TiltShift-BiNvvhzj.js +0 -114
  201. package/dist/core/Tritone-gdx2AA0m.js +0 -75
  202. package/dist/core/Twirl-BsV8YbqC.js +0 -82
  203. package/dist/core/Vibrance-C182fbSw.js +0 -31
  204. package/dist/core/WaveDistortion-CmaS2zDB.js +0 -132
  205. package/dist/core/ZoomBlur-DLf5xQ16.js +0 -56
  206. package/dist/core/colorMixing--dhzx0ch.js +0 -21
  207. package/dist/core/edges-CDzKsauJ.js +0 -15
  208. package/dist/core/three.tsl-Btj1hLsf.js +0 -43845
  209. package/dist/core/time-DbRMw6Jm.js +0 -10
  210. package/dist/core/transformations-CsrIJXh-.js +0 -3992
  211. package/dist/react/generatePresetCode-DaS7jkcT.js +0 -626
  212. package/dist/svelte/generatePresetCode-DaS7jkcT.js +0 -626
  213. package/dist/vue/generatePresetCode-Cd1B-Y9j.js +0 -632
@@ -1,632 +0,0 @@
1
- function c(t) {
2
- return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3
- }
4
- var d = {
5
- AngularBlur: {
6
- opacity: 1,
7
- blendMode: "normal",
8
- intensity: 20,
9
- center: {
10
- x: 0.5,
11
- y: 0.5
12
- }
13
- },
14
- Ascii: {
15
- opacity: 1,
16
- blendMode: "normal",
17
- characters: "@%#*+=-:.",
18
- cellSize: 30,
19
- fontFamily: "JetBrains Mono",
20
- spacing: 1
21
- },
22
- Blob: {
23
- opacity: 1,
24
- blendMode: "normal",
25
- colorA: "#ff6b35",
26
- colorB: "#e91e63",
27
- size: 0.5,
28
- deformation: 0.5,
29
- softness: 0.5,
30
- highlightIntensity: 0.5,
31
- highlightX: 0.3,
32
- highlightY: -0.3,
33
- highlightZ: 0.4,
34
- highlightColor: "#ffe11a",
35
- speed: 0.5,
36
- seed: 1,
37
- center: {
38
- x: 0.5,
39
- y: 0.5
40
- },
41
- colorSpace: "linear"
42
- },
43
- Blur: {
44
- opacity: 1,
45
- blendMode: "normal",
46
- intensity: 50
47
- },
48
- Bulge: {
49
- opacity: 1,
50
- blendMode: "normal",
51
- center: {
52
- x: 0.5,
53
- y: 0.5
54
- },
55
- strength: 1,
56
- radius: 1,
57
- falloff: 0.5,
58
- edges: "stretch"
59
- },
60
- ChannelBlur: {
61
- opacity: 1,
62
- blendMode: "normal",
63
- redIntensity: 0,
64
- greenIntensity: 20,
65
- blueIntensity: 40
66
- },
67
- Checkerboard: {
68
- opacity: 1,
69
- blendMode: "normal",
70
- colorA: "#cccccc",
71
- colorB: "#999999",
72
- cells: 8,
73
- softness: 0,
74
- colorSpace: "linear"
75
- },
76
- ChromaFlow: {
77
- opacity: 1,
78
- blendMode: "normal",
79
- baseColor: "#0066ff",
80
- upColor: "#00ff00",
81
- downColor: "#ff0000",
82
- leftColor: "#0000ff",
83
- rightColor: "#ffff00",
84
- intensity: 1,
85
- radius: 2,
86
- momentum: 30
87
- },
88
- ChromaticAberration: {
89
- opacity: 1,
90
- blendMode: "normal",
91
- strength: 0.2,
92
- angle: 0,
93
- redOffset: -1,
94
- greenOffset: 0,
95
- blueOffset: 1
96
- },
97
- Circle: {
98
- opacity: 1,
99
- blendMode: "normal",
100
- color: "#ffffff",
101
- radius: 1,
102
- softness: 0,
103
- center: {
104
- x: 0.5,
105
- y: 0.5
106
- }
107
- },
108
- CRTScreen: {
109
- opacity: 1,
110
- blendMode: "normal",
111
- pixelSize: 128,
112
- colorShift: 1,
113
- scanlineIntensity: 0.3,
114
- scanlineFrequency: 200,
115
- brightness: 1.1,
116
- contrast: 1.2
117
- },
118
- CursorTrail: {
119
- opacity: 1,
120
- blendMode: "normal",
121
- colorA: "#00aaff",
122
- colorB: "#ff00aa",
123
- radius: 0.5,
124
- length: 0.5,
125
- shrink: 1,
126
- colorSpace: "linear"
127
- },
128
- DiffuseBlur: {
129
- opacity: 1,
130
- blendMode: "normal",
131
- intensity: 30,
132
- edges: "stretch"
133
- },
134
- Dither: {
135
- opacity: 1,
136
- blendMode: "normal",
137
- pixelSize: 4,
138
- threshold: 0.5,
139
- colorA: "transparent",
140
- colorB: "#ffffff"
141
- },
142
- DotGrid: {
143
- opacity: 1,
144
- blendMode: "normal",
145
- color: "#ffffff",
146
- density: 100,
147
- dotSize: 0.3,
148
- twinkle: 0
149
- },
150
- Duotone: {
151
- opacity: 1,
152
- blendMode: "normal",
153
- colorA: "#ff0000",
154
- colorB: "#023af4",
155
- blend: 0.5,
156
- colorSpace: "linear"
157
- },
158
- FilmGrain: {
159
- opacity: 1,
160
- blendMode: "normal",
161
- strength: 0.5
162
- },
163
- FloatingParticles: {
164
- opacity: 1,
165
- blendMode: "normal",
166
- randomness: 0.25,
167
- speed: 0.25,
168
- angle: 90,
169
- particleSize: 1,
170
- particleSoftness: 0,
171
- twinkle: 0.5,
172
- count: 5,
173
- particleColor: "#ffffff",
174
- speedVariance: 0.3,
175
- angleVariance: 30,
176
- particleDensity: 3
177
- },
178
- GlassTiles: {
179
- opacity: 1,
180
- blendMode: "normal",
181
- intensity: 1,
182
- tileCount: 100
183
- },
184
- Glow: {
185
- opacity: 1,
186
- blendMode: "normal",
187
- intensity: 1,
188
- threshold: 0.5,
189
- size: 10
190
- },
191
- Godrays: {
192
- opacity: 1,
193
- blendMode: "normal",
194
- center: {
195
- x: 0,
196
- y: 0
197
- },
198
- density: 0.3,
199
- intensity: 0.8,
200
- spotty: 1,
201
- speed: 0.5,
202
- rayColor: "#4283fb",
203
- backgroundColor: "transparent"
204
- },
205
- Grayscale: {
206
- opacity: 1,
207
- blendMode: "normal"
208
- },
209
- Grid: {
210
- opacity: 1,
211
- blendMode: "normal",
212
- color: "#ffffff",
213
- cells: 10,
214
- thickness: 1
215
- },
216
- GridDistortion: {
217
- opacity: 1,
218
- blendMode: "normal",
219
- intensity: 1,
220
- swirl: 0,
221
- decay: 3,
222
- radius: 1,
223
- gridSize: 20,
224
- edges: "stretch"
225
- },
226
- Group: {
227
- opacity: 1,
228
- blendMode: "normal"
229
- },
230
- Halftone: {
231
- opacity: 1,
232
- blendMode: "normal",
233
- frequency: 100,
234
- angle: 45,
235
- smoothness: 0.1
236
- },
237
- HueShift: {
238
- opacity: 1,
239
- blendMode: "normal",
240
- shift: 0
241
- },
242
- ImageTexture: {
243
- opacity: 1,
244
- blendMode: "normal",
245
- url: "https://shaders.com/sample.jpg",
246
- objectFit: "cover"
247
- },
248
- Invert: {
249
- opacity: 1,
250
- blendMode: "normal"
251
- },
252
- LinearBlur: {
253
- opacity: 1,
254
- blendMode: "normal",
255
- intensity: 30,
256
- angle: 0
257
- },
258
- LinearGradient: {
259
- opacity: 1,
260
- blendMode: "normal",
261
- colorA: "#1aff00",
262
- colorB: "#0000ff",
263
- start: {
264
- x: 0,
265
- y: 0.5
266
- },
267
- end: {
268
- x: 1,
269
- y: 0.5
270
- },
271
- angle: 0,
272
- edges: "stretch",
273
- colorSpace: "linear"
274
- },
275
- Liquify: {
276
- opacity: 1,
277
- blendMode: "normal",
278
- intensity: 1,
279
- swirl: 0,
280
- decay: 3,
281
- radius: 1,
282
- edges: "stretch"
283
- },
284
- Pixelate: {
285
- opacity: 1,
286
- blendMode: "normal",
287
- scale: 50
288
- },
289
- PolarCoordinates: {
290
- opacity: 1,
291
- blendMode: "normal",
292
- center: {
293
- x: 0.5,
294
- y: 0.5
295
- },
296
- wrap: 1,
297
- radius: 1,
298
- intensity: 1,
299
- edges: "transparent"
300
- },
301
- Posterize: {
302
- opacity: 1,
303
- blendMode: "normal",
304
- intensity: 5
305
- },
306
- ProgressiveBlur: {
307
- opacity: 1,
308
- blendMode: "normal",
309
- intensity: 50,
310
- angle: 0,
311
- center: {
312
- x: 0,
313
- y: 0.5
314
- },
315
- falloff: 1
316
- },
317
- RadialGradient: {
318
- opacity: 1,
319
- blendMode: "normal",
320
- colorA: "#ff0000",
321
- colorB: "#0000ff",
322
- center: {
323
- x: 0.5,
324
- y: 0.5
325
- },
326
- radius: 1,
327
- colorSpace: "linear"
328
- },
329
- RectangularCoordinates: {
330
- opacity: 1,
331
- blendMode: "normal",
332
- center: {
333
- x: 0.5,
334
- y: 0.5
335
- },
336
- scale: 1,
337
- intensity: 1,
338
- edges: "transparent"
339
- },
340
- Ripples: {
341
- opacity: 1,
342
- blendMode: "normal",
343
- center: {
344
- x: 0.5,
345
- y: 0.5
346
- },
347
- colorA: "#ffffff",
348
- colorB: "#000000",
349
- speed: 1,
350
- frequency: 20,
351
- softness: 0,
352
- thickness: 0.5,
353
- phase: 0
354
- },
355
- Saturation: {
356
- opacity: 1,
357
- blendMode: "normal",
358
- intensity: 1
359
- },
360
- SimplexNoise: {
361
- opacity: 1,
362
- blendMode: "normal",
363
- colorA: "#ffffff",
364
- colorB: "#000000",
365
- scale: 2,
366
- balance: 0,
367
- contrast: 0,
368
- seed: 0,
369
- speed: 1
370
- },
371
- SineWave: {
372
- opacity: 1,
373
- blendMode: "normal",
374
- color: "#ffffff",
375
- amplitude: 0.15,
376
- frequency: 1,
377
- speed: 1,
378
- angle: 0,
379
- position: {
380
- x: 0.5,
381
- y: 0.5
382
- },
383
- thickness: 0.2,
384
- softness: 0.4
385
- },
386
- SolidColor: {
387
- opacity: 1,
388
- blendMode: "normal",
389
- color: "#5b18ca"
390
- },
391
- Spherize: {
392
- opacity: 1,
393
- blendMode: "normal",
394
- radius: 1,
395
- depth: 1,
396
- center: {
397
- x: 0.5,
398
- y: 0.5
399
- },
400
- lightPosition: {
401
- x: 0.3,
402
- y: 0.3
403
- },
404
- lightIntensity: 0.5,
405
- lightSoftness: 0.5,
406
- lightColor: "#ffffff"
407
- },
408
- Spiral: {
409
- opacity: 1,
410
- blendMode: "normal",
411
- colorA: "#000000",
412
- colorB: "#ffffff",
413
- strokeWidth: 0.5,
414
- strokeFalloff: 0,
415
- softness: 0,
416
- speed: 1,
417
- center: {
418
- x: 0.5,
419
- y: 0.5
420
- },
421
- scale: 1,
422
- colorSpace: "linear"
423
- },
424
- Strands: {
425
- opacity: 1,
426
- blendMode: "normal",
427
- speed: 0.5,
428
- amplitude: 1,
429
- frequency: 1,
430
- lineCount: 12,
431
- lineWidth: 0.1,
432
- waveColor: "#f1c907",
433
- pinEdges: !0,
434
- start: {
435
- x: 0,
436
- y: 0.5
437
- },
438
- end: {
439
- x: 1,
440
- y: 0.5
441
- }
442
- },
443
- Stretch: {
444
- opacity: 1,
445
- blendMode: "normal",
446
- center: {
447
- x: 0.5,
448
- y: 0.5
449
- },
450
- strength: 1,
451
- angle: 0,
452
- falloff: 0,
453
- edges: "stretch"
454
- },
455
- Swirl: {
456
- opacity: 1,
457
- blendMode: "normal",
458
- colorA: "#1275d8",
459
- colorB: "#e19136",
460
- speed: 1,
461
- detail: 1,
462
- blend: 50,
463
- coarseX: 50,
464
- coarseY: 50,
465
- mediumX: 50,
466
- mediumY: 50,
467
- fineX: 50,
468
- fineY: 50,
469
- colorSpace: "linear"
470
- },
471
- TiltShift: {
472
- opacity: 1,
473
- blendMode: "normal",
474
- intensity: 50,
475
- width: 0.3,
476
- falloff: 0.3,
477
- angle: 0,
478
- center: {
479
- x: 0.5,
480
- y: 0.5
481
- }
482
- },
483
- Tritone: {
484
- opacity: 1,
485
- blendMode: "normal",
486
- colorA: "#ce1bea",
487
- colorB: "#2fff00",
488
- colorC: "#ffff00",
489
- blendMid: 0.5,
490
- colorSpace: "linear"
491
- },
492
- Twirl: {
493
- opacity: 1,
494
- blendMode: "normal",
495
- center: {
496
- x: 0.5,
497
- y: 0.5
498
- },
499
- intensity: 1,
500
- edges: "stretch"
501
- },
502
- Vibrance: {
503
- opacity: 1,
504
- blendMode: "normal",
505
- intensity: 0
506
- },
507
- WaveDistortion: {
508
- opacity: 1,
509
- blendMode: "normal",
510
- strength: 0.3,
511
- frequency: 1,
512
- speed: 1,
513
- angle: 0,
514
- waveType: "sine",
515
- edges: "stretch"
516
- },
517
- ZoomBlur: {
518
- opacity: 1,
519
- blendMode: "normal",
520
- intensity: 30,
521
- center: {
522
- x: 0.5,
523
- y: 0.5
524
- }
525
- }
526
- };
527
- function f(t, a, e = " ") {
528
- return Object.entries(t).filter(([o, r]) => {
529
- const n = d[a] || {};
530
- if (n.hasOwnProperty(o)) {
531
- const l = n[o];
532
- return typeof r == "object" && typeof l == "object" ? JSON.stringify(r) !== JSON.stringify(l) : r !== l;
533
- }
534
- return !(o === "opacity" && r === 1 || o === "blendMode" && r === "normal");
535
- }).map(([o, r]) => {
536
- const n = c(o);
537
- return typeof r == "string" ? `${n}="${r}"` : typeof r == "object" ? `:${n}="${JSON.stringify(r).replace(/"/g, "'").replace(/'/g, "'")}"` : `:${n}="${r}"`;
538
- }).join(`
539
- ` + e + " ");
540
- }
541
- function p(t, a) {
542
- const e = [];
543
- function o(r) {
544
- for (const n of r)
545
- e.push(n), n.children && o(n.children);
546
- }
547
- return o(a), e.some((r) => r.props?.maskSource === t);
548
- }
549
- function y(t) {
550
- const a = (e, o = " ") => {
551
- const r = e.props ? f(e.props, e.type, o) : "";
552
- let n = "";
553
- e.id && p(e.id, t.components) && (n = `id="${e.id}"`);
554
- const l = [n, r].filter(Boolean).join(`
555
- ` + o + " ");
556
- if (e.children && e.children.length > 0) {
557
- const i = e.children.map((s) => a(s, o + " ")).join(`
558
- `);
559
- return l ? `${o}<${e.type}
560
- ${o} ${l}>
561
- ${i}
562
- ${o}</${e.type}>` : `${o}<${e.type}>
563
- ${i}
564
- ${o}</${e.type}>`;
565
- } else return l ? `${o}<${e.type}
566
- ${o} ${l}/>` : `${o}<${e.type}/>`;
567
- };
568
- return `<Shader>
569
- ${t.components.map((e) => a(e)).join(`
570
- `)}
571
- </Shader>`;
572
- }
573
- const m = [
574
- "AngularBlur",
575
- "Ascii",
576
- "Blob",
577
- "Blur",
578
- "Bulge",
579
- "CRTScreen",
580
- "ChannelBlur",
581
- "Checkerboard",
582
- "ChromaFlow",
583
- "ChromaticAberration",
584
- "Circle",
585
- "CursorTrail",
586
- "DiffuseBlur",
587
- "Dither",
588
- "DotGrid",
589
- "Duotone",
590
- "FilmGrain",
591
- "FloatingParticles",
592
- "GlassTiles",
593
- "Glow",
594
- "Godrays",
595
- "Grayscale",
596
- "Grid",
597
- "GridDistortion",
598
- "Group",
599
- "Halftone",
600
- "HueShift",
601
- "ImageTexture",
602
- "Invert",
603
- "LinearBlur",
604
- "LinearGradient",
605
- "Liquify",
606
- "Pixelate",
607
- "PolarCoordinates",
608
- "Posterize",
609
- "ProgressiveBlur",
610
- "RadialGradient",
611
- "RectangularCoordinates",
612
- "Ripples",
613
- "Saturation",
614
- "SimplexNoise",
615
- "SineWave",
616
- "SolidColor",
617
- "Spherize",
618
- "Spiral",
619
- "Strands",
620
- "Stretch",
621
- "Swirl",
622
- "TiltShift",
623
- "Tritone",
624
- "Twirl",
625
- "Vibrance",
626
- "WaveDistortion",
627
- "ZoomBlur"
628
- ];
629
- export {
630
- y as n,
631
- m as t
632
- };