shaders 2.2.6 → 2.2.9

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 (291) hide show
  1. package/dist/core/Stretch-C8iYAgNS.js +104 -0
  2. package/dist/core/index.js +170 -168
  3. package/dist/core/shaderRegistry.d.ts.map +1 -1
  4. package/dist/core/shaders/Stretch/index.d.ts +45 -0
  5. package/dist/core/shaders/Stretch/index.d.ts.map +1 -0
  6. package/dist/core/shaders/Stretch/index.js +8 -0
  7. package/dist/core/shaders/Swirl/index.js +1 -1
  8. package/dist/core/shaders/TiltShift/index.js +1 -1
  9. package/dist/core/shaders/Tritone/index.js +1 -1
  10. package/dist/core/shaders/Twirl/index.js +1 -1
  11. package/dist/core/shaders/Vibrance/index.js +1 -1
  12. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  13. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  14. package/dist/react/generatePresetCode-CbulNGo3.js +316 -0
  15. package/dist/react/generatePresetCode-ClK4i9O1.cjs +13 -0
  16. package/dist/react/index.cjs +398 -409
  17. package/dist/react/index.js +43985 -44301
  18. package/dist/react/utils/generatePresetCode.cjs +1 -13
  19. package/dist/react/utils/generatePresetCode.js +3 -596
  20. package/dist/registry.js +158 -0
  21. package/dist/svelte/components/Stretch.svelte.d.ts +4 -2
  22. package/dist/svelte/generatePresetCode-CbulNGo3.js +316 -0
  23. package/dist/{react/utils/generatePresetCode.d.ts → svelte/generatePresetCode.template.d.ts} +1 -2
  24. package/dist/svelte/index.d.ts +1 -0
  25. package/dist/svelte/index.js +43952 -44257
  26. package/dist/svelte/utils/generatePresetCode.js +3 -596
  27. package/dist/vue/generatePresetCode-Baa8DyZE.js +322 -0
  28. package/dist/vue/index.js +10152 -9953
  29. package/dist/vue/utils/generatePresetCode.js +1 -1
  30. package/package.json +6 -1
  31. package/dist/react/codegen.d.ts +0 -1
  32. package/dist/react/components/AngularBlur.d.ts +0 -31
  33. package/dist/react/components/AngularBlur.d.ts.map +0 -1
  34. package/dist/react/components/Ascii.d.ts +0 -31
  35. package/dist/react/components/Ascii.d.ts.map +0 -1
  36. package/dist/react/components/Blob.d.ts +0 -31
  37. package/dist/react/components/Blob.d.ts.map +0 -1
  38. package/dist/react/components/Blur.d.ts +0 -31
  39. package/dist/react/components/Blur.d.ts.map +0 -1
  40. package/dist/react/components/Bulge.d.ts +0 -31
  41. package/dist/react/components/Bulge.d.ts.map +0 -1
  42. package/dist/react/components/CRTScreen.d.ts +0 -31
  43. package/dist/react/components/CRTScreen.d.ts.map +0 -1
  44. package/dist/react/components/ChannelBlur.d.ts +0 -31
  45. package/dist/react/components/ChannelBlur.d.ts.map +0 -1
  46. package/dist/react/components/Checkerboard.d.ts +0 -31
  47. package/dist/react/components/Checkerboard.d.ts.map +0 -1
  48. package/dist/react/components/ChromaFlow.d.ts +0 -31
  49. package/dist/react/components/ChromaFlow.d.ts.map +0 -1
  50. package/dist/react/components/ChromaticAberration.d.ts +0 -31
  51. package/dist/react/components/ChromaticAberration.d.ts.map +0 -1
  52. package/dist/react/components/Circle.d.ts +0 -31
  53. package/dist/react/components/Circle.d.ts.map +0 -1
  54. package/dist/react/components/ColorMapping.d.ts +0 -29
  55. package/dist/react/components/ColorMapping.d.ts.map +0 -1
  56. package/dist/react/components/CursorTrail.d.ts +0 -31
  57. package/dist/react/components/CursorTrail.d.ts.map +0 -1
  58. package/dist/react/components/DiffuseBlur.d.ts +0 -31
  59. package/dist/react/components/DiffuseBlur.d.ts.map +0 -1
  60. package/dist/react/components/Dither.d.ts +0 -31
  61. package/dist/react/components/Dither.d.ts.map +0 -1
  62. package/dist/react/components/DotGrid.d.ts +0 -31
  63. package/dist/react/components/DotGrid.d.ts.map +0 -1
  64. package/dist/react/components/Duotone.d.ts +0 -31
  65. package/dist/react/components/Duotone.d.ts.map +0 -1
  66. package/dist/react/components/Exposure.d.ts +0 -29
  67. package/dist/react/components/Exposure.d.ts.map +0 -1
  68. package/dist/react/components/FilmGrain.d.ts +0 -31
  69. package/dist/react/components/FilmGrain.d.ts.map +0 -1
  70. package/dist/react/components/FloatingParticles.d.ts +0 -31
  71. package/dist/react/components/FloatingParticles.d.ts.map +0 -1
  72. package/dist/react/components/Glass.d.ts +0 -31
  73. package/dist/react/components/Glass.d.ts.map +0 -1
  74. package/dist/react/components/GlassTiles.d.ts +0 -31
  75. package/dist/react/components/GlassTiles.d.ts.map +0 -1
  76. package/dist/react/components/Glitch.d.ts +0 -29
  77. package/dist/react/components/Glitch.d.ts.map +0 -1
  78. package/dist/react/components/Glow.d.ts +0 -31
  79. package/dist/react/components/Glow.d.ts.map +0 -1
  80. package/dist/react/components/Godrays.d.ts +0 -31
  81. package/dist/react/components/Godrays.d.ts.map +0 -1
  82. package/dist/react/components/Grayscale.d.ts +0 -31
  83. package/dist/react/components/Grayscale.d.ts.map +0 -1
  84. package/dist/react/components/Grid.d.ts +0 -31
  85. package/dist/react/components/Grid.d.ts.map +0 -1
  86. package/dist/react/components/GridDistortion.d.ts +0 -31
  87. package/dist/react/components/GridDistortion.d.ts.map +0 -1
  88. package/dist/react/components/Group.d.ts +0 -31
  89. package/dist/react/components/Group.d.ts.map +0 -1
  90. package/dist/react/components/Halftone.d.ts +0 -31
  91. package/dist/react/components/Halftone.d.ts.map +0 -1
  92. package/dist/react/components/HueShift.d.ts +0 -31
  93. package/dist/react/components/HueShift.d.ts.map +0 -1
  94. package/dist/react/components/ImageTexture.d.ts +0 -31
  95. package/dist/react/components/ImageTexture.d.ts.map +0 -1
  96. package/dist/react/components/Invert.d.ts +0 -31
  97. package/dist/react/components/Invert.d.ts.map +0 -1
  98. package/dist/react/components/LinearBlur.d.ts +0 -31
  99. package/dist/react/components/LinearBlur.d.ts.map +0 -1
  100. package/dist/react/components/LinearGradient.d.ts +0 -31
  101. package/dist/react/components/LinearGradient.d.ts.map +0 -1
  102. package/dist/react/components/Liquify.d.ts +0 -31
  103. package/dist/react/components/Liquify.d.ts.map +0 -1
  104. package/dist/react/components/Mirror.d.ts +0 -29
  105. package/dist/react/components/Mirror.d.ts.map +0 -1
  106. package/dist/react/components/PerlinNoise.d.ts +0 -29
  107. package/dist/react/components/PerlinNoise.d.ts.map +0 -1
  108. package/dist/react/components/Pixelate.d.ts +0 -31
  109. package/dist/react/components/Pixelate.d.ts.map +0 -1
  110. package/dist/react/components/PolarCoordinates.d.ts +0 -31
  111. package/dist/react/components/PolarCoordinates.d.ts.map +0 -1
  112. package/dist/react/components/Posterize.d.ts +0 -31
  113. package/dist/react/components/Posterize.d.ts.map +0 -1
  114. package/dist/react/components/ProgressiveBlur.d.ts +0 -31
  115. package/dist/react/components/ProgressiveBlur.d.ts.map +0 -1
  116. package/dist/react/components/RadialBlur.d.ts +0 -29
  117. package/dist/react/components/RadialBlur.d.ts.map +0 -1
  118. package/dist/react/components/RadialGradient.d.ts +0 -31
  119. package/dist/react/components/RadialGradient.d.ts.map +0 -1
  120. package/dist/react/components/RectangularCoordinates.d.ts +0 -31
  121. package/dist/react/components/RectangularCoordinates.d.ts.map +0 -1
  122. package/dist/react/components/Ripples.d.ts +0 -31
  123. package/dist/react/components/Ripples.d.ts.map +0 -1
  124. package/dist/react/components/Saturation.d.ts +0 -31
  125. package/dist/react/components/Saturation.d.ts.map +0 -1
  126. package/dist/react/components/SimplexNoise.d.ts +0 -31
  127. package/dist/react/components/SimplexNoise.d.ts.map +0 -1
  128. package/dist/react/components/SineWave.d.ts +0 -31
  129. package/dist/react/components/SineWave.d.ts.map +0 -1
  130. package/dist/react/components/SolidColor.d.ts +0 -31
  131. package/dist/react/components/SolidColor.d.ts.map +0 -1
  132. package/dist/react/components/Spiral.d.ts +0 -31
  133. package/dist/react/components/Spiral.d.ts.map +0 -1
  134. package/dist/react/components/Strands.d.ts +0 -31
  135. package/dist/react/components/Strands.d.ts.map +0 -1
  136. package/dist/react/components/Stretch.d.ts +0 -29
  137. package/dist/react/components/Stretch.d.ts.map +0 -1
  138. package/dist/react/components/Swirl.d.ts +0 -31
  139. package/dist/react/components/Swirl.d.ts.map +0 -1
  140. package/dist/react/components/TiltShift.d.ts +0 -31
  141. package/dist/react/components/TiltShift.d.ts.map +0 -1
  142. package/dist/react/components/Tint.d.ts +0 -29
  143. package/dist/react/components/Tint.d.ts.map +0 -1
  144. package/dist/react/components/Tritone.d.ts +0 -31
  145. package/dist/react/components/Tritone.d.ts.map +0 -1
  146. package/dist/react/components/Twirl.d.ts +0 -31
  147. package/dist/react/components/Twirl.d.ts.map +0 -1
  148. package/dist/react/components/VCR.d.ts +0 -29
  149. package/dist/react/components/VCR.d.ts.map +0 -1
  150. package/dist/react/components/Vibrance.d.ts +0 -31
  151. package/dist/react/components/Vibrance.d.ts.map +0 -1
  152. package/dist/react/components/Vignette.d.ts +0 -29
  153. package/dist/react/components/Vignette.d.ts.map +0 -1
  154. package/dist/react/components/Voronoi.d.ts +0 -29
  155. package/dist/react/components/Voronoi.d.ts.map +0 -1
  156. package/dist/react/components/WaveDistortion.d.ts +0 -31
  157. package/dist/react/components/WaveDistortion.d.ts.map +0 -1
  158. package/dist/react/components/ZoomBlur.d.ts +0 -31
  159. package/dist/react/components/ZoomBlur.d.ts.map +0 -1
  160. package/dist/react/index.d.ts +0 -55
  161. package/dist/react/index.d.ts.map +0 -1
  162. package/dist/react/utils/generatePresetCode.d.ts.map +0 -1
  163. package/dist/svelte/components/ColorMapping.svelte.d.ts +0 -17
  164. package/dist/svelte/components/Exposure.svelte.d.ts +0 -17
  165. package/dist/svelte/components/Glass.svelte.d.ts +0 -19
  166. package/dist/svelte/components/Glitch.svelte.d.ts +0 -17
  167. package/dist/svelte/components/Mirror.svelte.d.ts +0 -17
  168. package/dist/svelte/components/PerlinNoise.svelte.d.ts +0 -17
  169. package/dist/svelte/components/RadialBlur.svelte.d.ts +0 -17
  170. package/dist/svelte/components/Tint.svelte.d.ts +0 -17
  171. package/dist/svelte/components/VCR.svelte.d.ts +0 -17
  172. package/dist/svelte/components/Vignette.svelte.d.ts +0 -17
  173. package/dist/svelte/components/Voronoi.svelte.d.ts +0 -17
  174. package/dist/vue/codegen.d.ts +0 -1
  175. package/dist/vue/components/AngularBlur.vue.d.ts +0 -57
  176. package/dist/vue/components/AngularBlur.vue.d.ts.map +0 -1
  177. package/dist/vue/components/Ascii.vue.d.ts +0 -57
  178. package/dist/vue/components/Ascii.vue.d.ts.map +0 -1
  179. package/dist/vue/components/Blob.vue.d.ts +0 -57
  180. package/dist/vue/components/Blob.vue.d.ts.map +0 -1
  181. package/dist/vue/components/Blur.vue.d.ts +0 -57
  182. package/dist/vue/components/Blur.vue.d.ts.map +0 -1
  183. package/dist/vue/components/Bulge.vue.d.ts +0 -57
  184. package/dist/vue/components/Bulge.vue.d.ts.map +0 -1
  185. package/dist/vue/components/CRTScreen.vue.d.ts +0 -57
  186. package/dist/vue/components/CRTScreen.vue.d.ts.map +0 -1
  187. package/dist/vue/components/ChannelBlur.vue.d.ts +0 -57
  188. package/dist/vue/components/ChannelBlur.vue.d.ts.map +0 -1
  189. package/dist/vue/components/Checkerboard.vue.d.ts +0 -57
  190. package/dist/vue/components/Checkerboard.vue.d.ts.map +0 -1
  191. package/dist/vue/components/ChromaFlow.vue.d.ts +0 -57
  192. package/dist/vue/components/ChromaFlow.vue.d.ts.map +0 -1
  193. package/dist/vue/components/ChromaticAberration.vue.d.ts +0 -57
  194. package/dist/vue/components/ChromaticAberration.vue.d.ts.map +0 -1
  195. package/dist/vue/components/Circle.vue.d.ts +0 -57
  196. package/dist/vue/components/Circle.vue.d.ts.map +0 -1
  197. package/dist/vue/components/CursorTrail.vue.d.ts +0 -57
  198. package/dist/vue/components/CursorTrail.vue.d.ts.map +0 -1
  199. package/dist/vue/components/DiffuseBlur.vue.d.ts +0 -57
  200. package/dist/vue/components/DiffuseBlur.vue.d.ts.map +0 -1
  201. package/dist/vue/components/Dither.vue.d.ts +0 -57
  202. package/dist/vue/components/Dither.vue.d.ts.map +0 -1
  203. package/dist/vue/components/DotGrid.vue.d.ts +0 -57
  204. package/dist/vue/components/DotGrid.vue.d.ts.map +0 -1
  205. package/dist/vue/components/Duotone.vue.d.ts +0 -57
  206. package/dist/vue/components/Duotone.vue.d.ts.map +0 -1
  207. package/dist/vue/components/FilmGrain.vue.d.ts +0 -57
  208. package/dist/vue/components/FilmGrain.vue.d.ts.map +0 -1
  209. package/dist/vue/components/FloatingParticles.vue.d.ts +0 -57
  210. package/dist/vue/components/FloatingParticles.vue.d.ts.map +0 -1
  211. package/dist/vue/components/GlassTiles.vue.d.ts +0 -57
  212. package/dist/vue/components/GlassTiles.vue.d.ts.map +0 -1
  213. package/dist/vue/components/Glow.vue.d.ts +0 -57
  214. package/dist/vue/components/Glow.vue.d.ts.map +0 -1
  215. package/dist/vue/components/Godrays.vue.d.ts +0 -57
  216. package/dist/vue/components/Godrays.vue.d.ts.map +0 -1
  217. package/dist/vue/components/Grayscale.vue.d.ts +0 -57
  218. package/dist/vue/components/Grayscale.vue.d.ts.map +0 -1
  219. package/dist/vue/components/Grid.vue.d.ts +0 -57
  220. package/dist/vue/components/Grid.vue.d.ts.map +0 -1
  221. package/dist/vue/components/GridDistortion.vue.d.ts +0 -57
  222. package/dist/vue/components/GridDistortion.vue.d.ts.map +0 -1
  223. package/dist/vue/components/Group.vue.d.ts +0 -57
  224. package/dist/vue/components/Group.vue.d.ts.map +0 -1
  225. package/dist/vue/components/HalfTone.vue.d.ts +0 -57
  226. package/dist/vue/components/HalfTone.vue.d.ts.map +0 -1
  227. package/dist/vue/components/HueShift.vue.d.ts +0 -57
  228. package/dist/vue/components/HueShift.vue.d.ts.map +0 -1
  229. package/dist/vue/components/ImageTexture.vue.d.ts +0 -57
  230. package/dist/vue/components/ImageTexture.vue.d.ts.map +0 -1
  231. package/dist/vue/components/Invert.vue.d.ts +0 -57
  232. package/dist/vue/components/Invert.vue.d.ts.map +0 -1
  233. package/dist/vue/components/LinearBlur.vue.d.ts +0 -57
  234. package/dist/vue/components/LinearBlur.vue.d.ts.map +0 -1
  235. package/dist/vue/components/LinearGradient.vue.d.ts +0 -57
  236. package/dist/vue/components/LinearGradient.vue.d.ts.map +0 -1
  237. package/dist/vue/components/Liquify.vue.d.ts +0 -57
  238. package/dist/vue/components/Liquify.vue.d.ts.map +0 -1
  239. package/dist/vue/components/Pixelate.vue.d.ts +0 -57
  240. package/dist/vue/components/Pixelate.vue.d.ts.map +0 -1
  241. package/dist/vue/components/PolarCoordinates.vue.d.ts +0 -57
  242. package/dist/vue/components/PolarCoordinates.vue.d.ts.map +0 -1
  243. package/dist/vue/components/Posterize.vue.d.ts +0 -57
  244. package/dist/vue/components/Posterize.vue.d.ts.map +0 -1
  245. package/dist/vue/components/ProgressiveBlur.vue.d.ts +0 -57
  246. package/dist/vue/components/ProgressiveBlur.vue.d.ts.map +0 -1
  247. package/dist/vue/components/RadialGradient.vue.d.ts +0 -57
  248. package/dist/vue/components/RadialGradient.vue.d.ts.map +0 -1
  249. package/dist/vue/components/RectangularCoordinates.vue.d.ts +0 -57
  250. package/dist/vue/components/RectangularCoordinates.vue.d.ts.map +0 -1
  251. package/dist/vue/components/Ripples.vue.d.ts +0 -57
  252. package/dist/vue/components/Ripples.vue.d.ts.map +0 -1
  253. package/dist/vue/components/Saturation.vue.d.ts +0 -57
  254. package/dist/vue/components/Saturation.vue.d.ts.map +0 -1
  255. package/dist/vue/components/SimplexNoise.vue.d.ts +0 -57
  256. package/dist/vue/components/SimplexNoise.vue.d.ts.map +0 -1
  257. package/dist/vue/components/SineWave.vue.d.ts +0 -57
  258. package/dist/vue/components/SineWave.vue.d.ts.map +0 -1
  259. package/dist/vue/components/SolidColor.vue.d.ts +0 -57
  260. package/dist/vue/components/SolidColor.vue.d.ts.map +0 -1
  261. package/dist/vue/components/Spiral.vue.d.ts +0 -57
  262. package/dist/vue/components/Spiral.vue.d.ts.map +0 -1
  263. package/dist/vue/components/Strands.vue.d.ts +0 -57
  264. package/dist/vue/components/Strands.vue.d.ts.map +0 -1
  265. package/dist/vue/components/Swirl.vue.d.ts +0 -57
  266. package/dist/vue/components/Swirl.vue.d.ts.map +0 -1
  267. package/dist/vue/components/TiltShift.vue.d.ts +0 -57
  268. package/dist/vue/components/TiltShift.vue.d.ts.map +0 -1
  269. package/dist/vue/components/Tritone.vue.d.ts +0 -57
  270. package/dist/vue/components/Tritone.vue.d.ts.map +0 -1
  271. package/dist/vue/components/Twirl.vue.d.ts +0 -57
  272. package/dist/vue/components/Twirl.vue.d.ts.map +0 -1
  273. package/dist/vue/components/Vibrance.vue.d.ts +0 -57
  274. package/dist/vue/components/Vibrance.vue.d.ts.map +0 -1
  275. package/dist/vue/components/WaveDistortion.vue.d.ts +0 -57
  276. package/dist/vue/components/WaveDistortion.vue.d.ts.map +0 -1
  277. package/dist/vue/components/ZoomBlur.vue.d.ts +0 -57
  278. package/dist/vue/components/ZoomBlur.vue.d.ts.map +0 -1
  279. package/dist/vue/generatePresetCode-D4V6rBae.js +0 -600
  280. package/dist/vue/index.d.ts +0 -55
  281. package/dist/vue/index.d.ts.map +0 -1
  282. package/dist/vue/utils/generatePresetCode.d.ts +0 -13
  283. package/dist/vue/utils/generatePresetCode.d.ts.map +0 -1
  284. /package/dist/core/{Swirl-BoveqtNV.js → Swirl-BpMwkNcm.js} +0 -0
  285. /package/dist/core/{TiltShift-D53azmRe.js → TiltShift-D31nakFq.js} +0 -0
  286. /package/dist/core/{Tritone-Cg1rX-hL.js → Tritone-Dx48G3b1.js} +0 -0
  287. /package/dist/core/{Twirl-raO5pe5X.js → Twirl-ng6pwyl2.js} +0 -0
  288. /package/dist/core/{Vibrance-DtekSkcz.js → Vibrance-D0ArL0qp.js} +0 -0
  289. /package/dist/core/{WaveDistortion-C65qO_cZ.js → WaveDistortion-DGKrpUdb.js} +0 -0
  290. /package/dist/core/{ZoomBlur-B97ZjhXe.js → ZoomBlur-uQyy5yko.js} +0 -0
  291. /package/dist/svelte/components/{HalfTone.svelte.d.ts → Halftone.svelte.d.ts} +0 -0
@@ -1,598 +1,5 @@
1
- const d = {
2
- AngularBlur: {
3
- opacity: 1,
4
- blendMode: "normal",
5
- intensity: 20,
6
- center: {
7
- x: 0.5,
8
- y: 0.5
9
- }
10
- },
11
- Ascii: {
12
- opacity: 1,
13
- blendMode: "normal",
14
- characters: "@%#*+=-:.",
15
- cellSize: 30,
16
- fontFamily: "JetBrains Mono",
17
- spacing: 1
18
- },
19
- Blob: {
20
- opacity: 1,
21
- blendMode: "normal",
22
- colorA: "#ff6b35",
23
- colorB: "#e91e63",
24
- size: 0.5,
25
- deformation: 0.5,
26
- softness: 0.5,
27
- highlightIntensity: 0.5,
28
- highlightX: 0.3,
29
- highlightY: -0.3,
30
- highlightZ: 0.4,
31
- highlightColor: "#ffe11a",
32
- speed: 0.5,
33
- seed: 1,
34
- center: {
35
- x: 0.5,
36
- y: 0.5
37
- },
38
- colorSpace: "linear"
39
- },
40
- Blur: {
41
- opacity: 1,
42
- blendMode: "normal",
43
- intensity: 50
44
- },
45
- Bulge: {
46
- opacity: 1,
47
- blendMode: "normal",
48
- center: {
49
- x: 0.5,
50
- y: 0.5
51
- },
52
- strength: 1,
53
- radius: 1,
54
- falloff: 0.5,
55
- edges: "stretch"
56
- },
57
- ChannelBlur: {
58
- opacity: 1,
59
- blendMode: "normal",
60
- redIntensity: 0,
61
- greenIntensity: 20,
62
- blueIntensity: 40
63
- },
64
- Checkerboard: {
65
- opacity: 1,
66
- blendMode: "normal",
67
- colorA: "#cccccc",
68
- colorB: "#999999",
69
- cells: 8,
70
- softness: 0,
71
- colorSpace: "linear"
72
- },
73
- ChromaFlow: {
74
- opacity: 1,
75
- blendMode: "normal",
76
- baseColor: "#0066ff",
77
- upColor: "#00ff00",
78
- downColor: "#ff0000",
79
- leftColor: "#0000ff",
80
- rightColor: "#ffff00",
81
- intensity: 1,
82
- radius: 2,
83
- momentum: 30
84
- },
85
- ChromaticAberration: {
86
- opacity: 1,
87
- blendMode: "normal",
88
- strength: 0.2,
89
- angle: 0,
90
- redOffset: -1,
91
- greenOffset: 0,
92
- blueOffset: 1
93
- },
94
- Circle: {
95
- opacity: 1,
96
- blendMode: "normal",
97
- color: "#ffffff",
98
- radius: 1,
99
- softness: 0,
100
- center: {
101
- x: 0.5,
102
- y: 0.5
103
- }
104
- },
105
- CRTScreen: {
106
- opacity: 1,
107
- blendMode: "normal",
108
- pixelSize: 128,
109
- colorShift: 1,
110
- scanlineIntensity: 0.3,
111
- scanlineFrequency: 200,
112
- brightness: 1.1,
113
- contrast: 1.2
114
- },
115
- CursorTrail: {
116
- opacity: 1,
117
- blendMode: "normal",
118
- colorA: "#00aaff",
119
- colorB: "#ff00aa",
120
- radius: 0.5,
121
- length: 0.5,
122
- shrink: 1,
123
- colorSpace: "linear"
124
- },
125
- DiffuseBlur: {
126
- opacity: 1,
127
- blendMode: "normal",
128
- intensity: 30
129
- },
130
- Dither: {
131
- opacity: 1,
132
- blendMode: "normal",
133
- pixelSize: 4,
134
- threshold: 0.5,
135
- colorA: "transparent",
136
- colorB: "#ffffff"
137
- },
138
- DotGrid: {
139
- opacity: 1,
140
- blendMode: "normal",
141
- color: "#ffffff",
142
- density: 100,
143
- dotSize: 0.3,
144
- twinkle: 0
145
- },
146
- Duotone: {
147
- opacity: 1,
148
- blendMode: "normal",
149
- colorA: "#ff0000",
150
- colorB: "#023af4",
151
- blend: 0.5,
152
- colorSpace: "linear"
153
- },
154
- FilmGrain: {
155
- opacity: 1,
156
- blendMode: "normal",
157
- strength: 0.5
158
- },
159
- FloatingParticles: {
160
- opacity: 1,
161
- blendMode: "normal",
162
- randomness: 0.25,
163
- speed: 0.25,
164
- angle: 90,
165
- particleSize: 1,
166
- particleSoftness: 0,
167
- twinkle: 0.5,
168
- count: 5,
169
- particleColor: "#ffffff",
170
- speedVariance: 0.3,
171
- angleVariance: 30,
172
- particleDensity: 3
173
- },
174
- GlassTiles: {
175
- opacity: 1,
176
- blendMode: "normal",
177
- intensity: 1,
178
- tileCount: 100
179
- },
180
- Glow: {
181
- opacity: 1,
182
- blendMode: "normal",
183
- intensity: 1,
184
- threshold: 0.5,
185
- size: 10
186
- },
187
- Godrays: {
188
- opacity: 1,
189
- blendMode: "normal",
190
- center: {
191
- x: 0,
192
- y: 0
193
- },
194
- density: 0.3,
195
- intensity: 0.8,
196
- spotty: 1,
197
- speed: 0.5,
198
- rayColor: "#4283fb",
199
- backgroundColor: "transparent"
200
- },
201
- Grid: {
202
- opacity: 1,
203
- blendMode: "normal",
204
- color: "#ffffff",
205
- cells: 10,
206
- thickness: 1
207
- },
208
- GridDistortion: {
209
- opacity: 1,
210
- blendMode: "normal",
211
- intensity: 1,
212
- swirl: 0,
213
- decay: 3,
214
- radius: 1,
215
- gridSize: 20,
216
- edges: "stretch"
217
- },
218
- Halftone: {
219
- opacity: 1,
220
- blendMode: "normal",
221
- frequency: 100,
222
- angle: 45,
223
- smoothness: 0.1
224
- },
225
- HueShift: {
226
- opacity: 1,
227
- blendMode: "normal",
228
- shift: 0
229
- },
230
- ImageTexture: {
231
- opacity: 1,
232
- blendMode: "normal",
233
- url: "https://shaders.com/sample.jpg",
234
- objectFit: "cover"
235
- },
236
- LinearBlur: {
237
- opacity: 1,
238
- blendMode: "normal",
239
- intensity: 30,
240
- angle: 0
241
- },
242
- LinearGradient: {
243
- opacity: 1,
244
- blendMode: "normal",
245
- colorA: "#1aff00",
246
- colorB: "#0000ff",
247
- start: {
248
- x: 0,
249
- y: 0.5
250
- },
251
- end: {
252
- x: 1,
253
- y: 0.5
254
- },
255
- angle: 0,
256
- edges: "stretch",
257
- colorSpace: "linear"
258
- },
259
- Liquify: {
260
- opacity: 1,
261
- blendMode: "normal",
262
- intensity: 1,
263
- swirl: 0,
264
- decay: 3,
265
- radius: 1,
266
- edges: "stretch"
267
- },
268
- Pixelate: {
269
- opacity: 1,
270
- blendMode: "normal",
271
- scale: 50
272
- },
273
- PolarCoordinates: {
274
- opacity: 1,
275
- blendMode: "normal",
276
- center: {
277
- x: 0.5,
278
- y: 0.5
279
- },
280
- wrap: 1,
281
- radius: 1,
282
- intensity: 1,
283
- edges: "transparent"
284
- },
285
- Posterize: {
286
- opacity: 1,
287
- blendMode: "normal",
288
- intensity: 5
289
- },
290
- ProgressiveBlur: {
291
- opacity: 1,
292
- blendMode: "normal",
293
- intensity: 50,
294
- angle: 0,
295
- center: {
296
- x: 0,
297
- y: 0.5
298
- },
299
- falloff: 1
300
- },
301
- RadialGradient: {
302
- opacity: 1,
303
- blendMode: "normal",
304
- colorA: "#ff0000",
305
- colorB: "#0000ff",
306
- center: {
307
- x: 0.5,
308
- y: 0.5
309
- },
310
- radius: 1,
311
- colorSpace: "linear"
312
- },
313
- RectangularCoordinates: {
314
- opacity: 1,
315
- blendMode: "normal",
316
- center: {
317
- x: 0.5,
318
- y: 0.5
319
- },
320
- scale: 1,
321
- intensity: 1,
322
- edges: "transparent"
323
- },
324
- Ripples: {
325
- opacity: 1,
326
- blendMode: "normal",
327
- center: {
328
- x: 0.5,
329
- y: 0.5
330
- },
331
- colorA: "#ffffff",
332
- colorB: "#000000",
333
- speed: 1,
334
- frequency: 20,
335
- softness: 0,
336
- thickness: 0.5,
337
- phase: 0
338
- },
339
- Saturation: {
340
- opacity: 1,
341
- blendMode: "normal",
342
- intensity: 1
343
- },
344
- SimplexNoise: {
345
- opacity: 1,
346
- blendMode: "normal",
347
- colorA: "#ffffff",
348
- colorB: "#000000",
349
- scale: 2,
350
- balance: 0,
351
- contrast: 0,
352
- seed: 0,
353
- speed: 1
354
- },
355
- SineWave: {
356
- opacity: 1,
357
- blendMode: "normal",
358
- color: "#ffffff",
359
- amplitude: 0.15,
360
- frequency: 1,
361
- speed: 1,
362
- angle: 0,
363
- position: {
364
- x: 0.5,
365
- y: 0.5
366
- },
367
- thickness: 0.2,
368
- softness: 0.4
369
- },
370
- SolidColor: {
371
- opacity: 1,
372
- blendMode: "normal",
373
- color: "#5b18ca"
374
- },
375
- Spiral: {
376
- opacity: 1,
377
- blendMode: "normal",
378
- colorA: "#000000",
379
- colorB: "#ffffff",
380
- strokeWidth: 0.5,
381
- strokeFalloff: 0,
382
- softness: 0,
383
- speed: 1,
384
- center: {
385
- x: 0.5,
386
- y: 0.5
387
- },
388
- scale: 1,
389
- colorSpace: "linear"
390
- },
391
- Strands: {
392
- opacity: 1,
393
- blendMode: "normal",
394
- speed: 0.5,
395
- amplitude: 1,
396
- frequency: 1,
397
- lineCount: 12,
398
- lineWidth: 0.1,
399
- waveColor: "#f1c907",
400
- pinEdges: !0,
401
- start: {
402
- x: 0,
403
- y: 0.5
404
- },
405
- end: {
406
- x: 1,
407
- y: 0.5
408
- }
409
- },
410
- Swirl: {
411
- opacity: 1,
412
- blendMode: "normal",
413
- colorA: "#1275d8",
414
- colorB: "#e19136",
415
- speed: 1,
416
- detail: 1,
417
- blend: 50,
418
- coarseX: 50,
419
- coarseY: 50,
420
- mediumX: 50,
421
- mediumY: 50,
422
- fineX: 50,
423
- fineY: 50,
424
- colorSpace: "linear"
425
- },
426
- TiltShift: {
427
- opacity: 1,
428
- blendMode: "normal",
429
- intensity: 50,
430
- width: 0.3,
431
- falloff: 0.3,
432
- angle: 0,
433
- center: {
434
- x: 0.5,
435
- y: 0.5
436
- }
437
- },
438
- Tritone: {
439
- opacity: 1,
440
- blendMode: "normal",
441
- colorA: "#ce1bea",
442
- colorB: "#2fff00",
443
- colorC: "#ffff00",
444
- blendMid: 0.5,
445
- colorSpace: "linear"
446
- },
447
- Twirl: {
448
- opacity: 1,
449
- blendMode: "normal",
450
- center: {
451
- x: 0.5,
452
- y: 0.5
453
- },
454
- intensity: 1,
455
- edges: "stretch"
456
- },
457
- Vibrance: {
458
- opacity: 1,
459
- blendMode: "normal",
460
- intensity: 0
461
- },
462
- WaveDistortion: {
463
- opacity: 1,
464
- blendMode: "normal",
465
- strength: 0.3,
466
- frequency: 1,
467
- speed: 1,
468
- angle: 0,
469
- waveType: "sine",
470
- edges: "stretch"
471
- },
472
- ZoomBlur: {
473
- opacity: 1,
474
- blendMode: "normal",
475
- intensity: 30,
476
- center: {
477
- x: 0.5,
478
- y: 0.5
479
- }
480
- },
481
- Grayscale: {
482
- opacity: 1,
483
- blendMode: "normal"
484
- },
485
- Group: {
486
- opacity: 1,
487
- blendMode: "normal"
488
- },
489
- Invert: {
490
- opacity: 1,
491
- blendMode: "normal"
492
- }
493
- };
494
- function f(n, t, i = " ") {
495
- return Object.entries(n).filter(([e, o]) => {
496
- const r = d[t] || {};
497
- if (r.hasOwnProperty(e)) {
498
- const l = r[e];
499
- return typeof o == "object" && typeof l == "object" ? JSON.stringify(o) !== JSON.stringify(l) : o !== l;
500
- }
501
- return !(e === "opacity" && o === 1 || e === "blendMode" && o === "normal");
502
- }).map(([e, o]) => typeof o == "string" ? `${e}="${o}"` : typeof o == "object" ? `${e}={${JSON.stringify(o)}}` : `${e}={${o}}`).join(`
503
- ` + i + " ");
504
- }
505
- function p(n, t) {
506
- const i = [];
507
- function e(o) {
508
- for (const r of o)
509
- i.push(r), r.children && e(r.children);
510
- }
511
- return e(t), i.some(
512
- (o) => o.props?.maskSource === n
513
- );
514
- }
515
- function y(n) {
516
- const t = (e, o = " ") => {
517
- const r = e.props ? f(e.props, e.type, o) : "";
518
- let l = "";
519
- e.id && p(e.id, n.components) && (l = `id="${e.id}"`);
520
- const a = [l, r].filter(Boolean).join(`
521
- ` + o + " ");
522
- if (e.children && e.children.length > 0) {
523
- const s = e.children.map((c) => t(c, o + " ")).join(`
524
- `);
525
- return a ? `${o}<${e.type}
526
- ${o} ${a}>
527
- ${s}
528
- ${o}</${e.type}>` : `${o}<${e.type}>
529
- ${s}
530
- ${o}</${e.type}>`;
531
- } else
532
- return a ? `${o}<${e.type}
533
- ${o} ${a} />` : `${o}<${e.type} />`;
534
- };
535
- return `<Shader>
536
- ${n.components.map((e) => t(e)).join(`
537
- `)}
538
- </Shader>`;
539
- }
540
- const m = [
541
- // @ts-ignore - replaced at build time
542
- "AngularBlur",
543
- "Ascii",
544
- "Blob",
545
- "Blur",
546
- "Bulge",
547
- "CRTScreen",
548
- "ChannelBlur",
549
- "Checkerboard",
550
- "ChromaFlow",
551
- "ChromaticAberration",
552
- "Circle",
553
- "CursorTrail",
554
- "DiffuseBlur",
555
- "Dither",
556
- "DotGrid",
557
- "Duotone",
558
- "FilmGrain",
559
- "FloatingParticles",
560
- "GlassTiles",
561
- "Glow",
562
- "Godrays",
563
- "Grayscale",
564
- "Grid",
565
- "GridDistortion",
566
- "Group",
567
- "Halftone",
568
- "HueShift",
569
- "ImageTexture",
570
- "Invert",
571
- "LinearBlur",
572
- "LinearGradient",
573
- "Liquify",
574
- "Pixelate",
575
- "PolarCoordinates",
576
- "Posterize",
577
- "ProgressiveBlur",
578
- "RadialGradient",
579
- "RectangularCoordinates",
580
- "Ripples",
581
- "Saturation",
582
- "SimplexNoise",
583
- "SineWave",
584
- "SolidColor",
585
- "Spiral",
586
- "Strands",
587
- "Swirl",
588
- "TiltShift",
589
- "Tritone",
590
- "Twirl",
591
- "Vibrance",
592
- "WaveDistortion",
593
- "ZoomBlur"
594
- ];
1
+ import { n as a, t as o } from "../generatePresetCode-CbulNGo3.js";
595
2
  export {
596
- m as availableComponents,
597
- y as generatePresetCode
3
+ o as availableComponents,
4
+ a as generatePresetCode
598
5
  };