shaders 2.2.24 → 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 (193) 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 -1606
  59. package/dist/core/shaders/AngularBlur/index.js +3 -7
  60. package/dist/core/shaders/Ascii/index.js +2 -6
  61. package/dist/core/shaders/Beam/index.js +4 -8
  62. package/dist/core/shaders/Blob/index.js +5 -9
  63. package/dist/core/shaders/Blur/index.js +2 -6
  64. package/dist/core/shaders/Bulge/index.js +4 -8
  65. package/dist/core/shaders/CRTScreen/index.js +2 -6
  66. package/dist/core/shaders/ChannelBlur/index.js +2 -6
  67. package/dist/core/shaders/Checkerboard/index.js +4 -8
  68. package/dist/core/shaders/ChromaFlow/index.js +3 -7
  69. package/dist/core/shaders/ChromaticAberration/index.js +3 -7
  70. package/dist/core/shaders/Circle/index.js +3 -7
  71. package/dist/core/shaders/CursorTrail/index.js +4 -8
  72. package/dist/core/shaders/DiffuseBlur/index.js +4 -8
  73. package/dist/core/shaders/Dither/index.js +3 -7
  74. package/dist/core/shaders/DotGrid/index.js +3 -7
  75. package/dist/core/shaders/Duotone/index.js +4 -8
  76. package/dist/core/shaders/FilmGrain/index.js +2 -6
  77. package/dist/core/shaders/FloatingParticles/index.js +3 -7
  78. package/dist/core/shaders/GlassTiles/index.js +2 -6
  79. package/dist/core/shaders/Glow/index.js +2 -6
  80. package/dist/core/shaders/Godrays/index.js +3 -7
  81. package/dist/core/shaders/Grayscale/index.js +2 -8
  82. package/dist/core/shaders/Grid/index.js +3 -7
  83. package/dist/core/shaders/GridDistortion/index.js +4 -8
  84. package/dist/core/shaders/Group/index.js +2 -6
  85. package/dist/core/shaders/Halftone/index.js +3 -7
  86. package/dist/core/shaders/HueShift/index.js +2 -8
  87. package/dist/core/shaders/ImageTexture/index.js +2 -6
  88. package/dist/core/shaders/Invert/index.js +2 -6
  89. package/dist/core/shaders/LinearBlur/index.js +3 -7
  90. package/dist/core/shaders/LinearGradient/index.js +4 -8
  91. package/dist/core/shaders/Liquify/index.js +4 -8
  92. package/dist/core/shaders/Pixelate/index.js +2 -6
  93. package/dist/core/shaders/PolarCoordinates/index.js +4 -8
  94. package/dist/core/shaders/Posterize/index.js +2 -7
  95. package/dist/core/shaders/ProgressiveBlur/index.js +3 -7
  96. package/dist/core/shaders/RadialGradient/index.js +4 -8
  97. package/dist/core/shaders/RectangularCoordinates/index.js +4 -8
  98. package/dist/core/shaders/Ripples/index.js +5 -9
  99. package/dist/core/shaders/Saturation/index.js +2 -8
  100. package/dist/core/shaders/SimplexNoise/index.js +5 -9
  101. package/dist/core/shaders/SineWave/index.js +3 -7
  102. package/dist/core/shaders/SolidColor/index.js +3 -7
  103. package/dist/core/shaders/Spherize/index.js +3 -7
  104. package/dist/core/shaders/Spiral/index.js +4 -8
  105. package/dist/core/shaders/Strands/index.js +4 -8
  106. package/dist/core/shaders/Stretch/index.js +4 -8
  107. package/dist/core/shaders/Swirl/index.js +5 -9
  108. package/dist/core/shaders/TiltShift/index.js +3 -7
  109. package/dist/core/shaders/Tritone/index.js +4 -8
  110. package/dist/core/shaders/Twirl/index.js +4 -8
  111. package/dist/core/shaders/Vibrance/index.js +2 -8
  112. package/dist/core/shaders/WaveDistortion/index.js +4 -8
  113. package/dist/core/shaders/ZoomBlur/index.js +3 -7
  114. package/dist/core/telemetry/index.js +189 -157
  115. package/dist/core/time-CTJvRUZ4.js +10 -0
  116. package/dist/core/transformations-DxfQXZWi.js +4715 -0
  117. package/dist/react/generatePresetCode-CCibXbtZ.js +645 -0
  118. package/dist/react/index.js +7645 -104827
  119. package/dist/react/utils/generatePresetCode.js +2 -5
  120. package/dist/solid/index.js +6670 -102727
  121. package/dist/solid/utils/generatePresetCode.js +583 -554
  122. package/dist/svelte/generatePresetCode-CymgoDq_.js +645 -0
  123. package/dist/svelte/index.js +6175 -102645
  124. package/dist/svelte/utils/generatePresetCode.js +2 -5
  125. package/dist/vue/generatePresetCode-CRJmU8iF.js +649 -0
  126. package/dist/vue/index.js +6929 -103706
  127. package/dist/vue/utils/generatePresetCode.js +2 -5
  128. package/package.json +4 -1
  129. package/dist/core/AngularBlur-ClvtyURQ.js +0 -56
  130. package/dist/core/Ascii-BT0-K_vw.js +0 -196
  131. package/dist/core/Beam-BAKql1AP.js +0 -116
  132. package/dist/core/Blob-CVSxhHJG.js +0 -169
  133. package/dist/core/Blur-C1TTBHCX.js +0 -64
  134. package/dist/core/Bulge-DV8tX-cw.js +0 -103
  135. package/dist/core/CRTScreen-VTJQoOeq.js +0 -91
  136. package/dist/core/ChannelBlur-BLZ9kBNA.js +0 -89
  137. package/dist/core/Checkerboard-DQ4Df3vm.js +0 -75
  138. package/dist/core/ChromaFlow-BggN1_Av.js +0 -134
  139. package/dist/core/ChromaticAberration-DlTaHNcp.js +0 -82
  140. package/dist/core/Circle-B9ObWlq5.js +0 -62
  141. package/dist/core/ColorAdjustment-FeXXpypd.js +0 -14
  142. package/dist/core/CursorTrail-C7QdUj8O.js +0 -105
  143. package/dist/core/DiffuseBlur-Mx6LBsqz.js +0 -69
  144. package/dist/core/Dither-CeIdV_9C.js +0 -61
  145. package/dist/core/DotGrid-D6xUvYrt.js +0 -61
  146. package/dist/core/Duotone-C2Pqt2gR.js +0 -66
  147. package/dist/core/FilmGrain-CJ9n_fgk.js +0 -28
  148. package/dist/core/FloatingParticles-iGtMs44K.js +0 -160
  149. package/dist/core/GlassTiles-D_lVyag2.js +0 -52
  150. package/dist/core/Glow-B0jj-6OC.js +0 -66
  151. package/dist/core/Godrays-DjLVuZa4.js +0 -105
  152. package/dist/core/Grayscale-BbsdDa_X.js +0 -21
  153. package/dist/core/Grid-ByjU-_ua.js +0 -50
  154. package/dist/core/GridDistortion-C_eIlhkW.js +0 -147
  155. package/dist/core/Group-CyaDLGpI.js +0 -17
  156. package/dist/core/Halftone-BvuAe_k-.js +0 -55
  157. package/dist/core/HueShift-B_qE9c08.js +0 -32
  158. package/dist/core/ImageTexture-h00TFC1l.js +0 -105
  159. package/dist/core/Invert-BEDDB0sm.js +0 -20
  160. package/dist/core/LinearBlur-CLKxuyeT.js +0 -56
  161. package/dist/core/LinearGradient-BPo8TX_M.js +0 -111
  162. package/dist/core/Liquify-DGkfeixZ.js +0 -139
  163. package/dist/core/Pixelate-Bzy_7LnJ.js +0 -38
  164. package/dist/core/PolarCoordinates-BUumPeTv.js +0 -103
  165. package/dist/core/Posterize-ggKIJlmm.js +0 -46
  166. package/dist/core/ProgressiveBlur-D6_6T7SS.js +0 -102
  167. package/dist/core/RadialGradient-DEY9fRqa.js +0 -71
  168. package/dist/core/RectangularCoordinates-CZ-cFrCh.js +0 -92
  169. package/dist/core/Ripples-BwNlcsnV.js +0 -106
  170. package/dist/core/Saturation-Dl3gCWuZ.js +0 -31
  171. package/dist/core/SimplexNoise-BhE_WyGt.js +0 -94
  172. package/dist/core/SineWave-Db_Y0Mcv.js +0 -107
  173. package/dist/core/SolidColor-CerOp4EQ.js +0 -22
  174. package/dist/core/Spherize-Dh8E5XwG.js +0 -103
  175. package/dist/core/Spiral-BvygQEfP.js +0 -115
  176. package/dist/core/Strands-maaPn4On.js +0 -125
  177. package/dist/core/Stretch-CnA0-nSz.js +0 -103
  178. package/dist/core/Swirl-CQBUahTB.js +0 -148
  179. package/dist/core/TSLBase-Bt7Z4hv_.js +0 -8053
  180. package/dist/core/TiltShift-qFj0oFzN.js +0 -114
  181. package/dist/core/Tritone-AiixmTg8.js +0 -75
  182. package/dist/core/Twirl-ooHQcV89.js +0 -82
  183. package/dist/core/Vibrance-C2FRlLkK.js +0 -31
  184. package/dist/core/WaveDistortion-CN8MjKlm.js +0 -132
  185. package/dist/core/ZoomBlur-CxWGx8PH.js +0 -56
  186. package/dist/core/colorMixing--dhzx0ch.js +0 -21
  187. package/dist/core/edges-CDzKsauJ.js +0 -15
  188. package/dist/core/three.tsl-Btj1hLsf.js +0 -43845
  189. package/dist/core/time-DbRMw6Jm.js +0 -10
  190. package/dist/core/transformations-CsrIJXh-.js +0 -3992
  191. package/dist/react/generatePresetCode-CVj6IV8Y.js +0 -646
  192. package/dist/svelte/generatePresetCode-CVj6IV8Y.js +0 -646
  193. package/dist/vue/generatePresetCode-DCaIsDhE.js +0 -652
@@ -1,595 +1,624 @@
1
- const d = {
2
- AngularBlur: {
3
- opacity: 1,
4
- blendMode: "normal",
5
- intensity: 20,
6
- center: {
7
- x: 0.5,
8
- y: 0.5
1
+ const shaderMetadata = {
2
+ "AngularBlur": {
3
+ "opacity": 1,
4
+ "blendMode": "normal",
5
+ "intensity": 20,
6
+ "center": {
7
+ "x": 0.5,
8
+ "y": 0.5
9
9
  }
10
10
  },
11
- Ascii: {
12
- opacity: 1,
13
- blendMode: "normal",
14
- characters: "@%#*+=-:.",
15
- cellSize: 30,
16
- fontFamily: "JetBrains Mono",
17
- spacing: 1
18
- },
19
- Beam: {
20
- opacity: 1,
21
- blendMode: "normal",
22
- startPosition: {
23
- x: 0.2,
24
- y: 0.5
11
+ "Ascii": {
12
+ "opacity": 1,
13
+ "blendMode": "normal",
14
+ "characters": "@%#*+=-:.",
15
+ "cellSize": 30,
16
+ "fontFamily": "JetBrains Mono",
17
+ "spacing": 1
18
+ },
19
+ "Beam": {
20
+ "opacity": 1,
21
+ "blendMode": "normal",
22
+ "startPosition": {
23
+ "x": 0.2,
24
+ "y": 0.5
25
25
  },
26
- endPosition: {
27
- x: 0.8,
28
- y: 0.5
26
+ "endPosition": {
27
+ "x": 0.8,
28
+ "y": 0.5
29
29
  },
30
- startThickness: 0.2,
31
- endThickness: 0.2,
32
- startSoftness: 0.5,
33
- endSoftness: 0.5,
34
- insideColor: "#FF0000",
35
- outsideColor: "#0000FF",
36
- colorSpace: "linear"
37
- },
38
- Blob: {
39
- opacity: 1,
40
- blendMode: "normal",
41
- colorA: "#ff6b35",
42
- colorB: "#e91e63",
43
- size: 0.5,
44
- deformation: 0.5,
45
- softness: 0.5,
46
- highlightIntensity: 0.5,
47
- highlightX: 0.3,
48
- highlightY: -0.3,
49
- highlightZ: 0.4,
50
- highlightColor: "#ffe11a",
51
- speed: 0.5,
52
- seed: 1,
53
- center: {
54
- x: 0.5,
55
- y: 0.5
30
+ "startThickness": 0.2,
31
+ "endThickness": 0.2,
32
+ "startSoftness": 0.5,
33
+ "endSoftness": 0.5,
34
+ "insideColor": "#FF0000",
35
+ "outsideColor": "#0000FF",
36
+ "colorSpace": "linear"
37
+ },
38
+ "Blob": {
39
+ "opacity": 1,
40
+ "blendMode": "normal",
41
+ "colorA": "#ff6b35",
42
+ "colorB": "#e91e63",
43
+ "size": 0.5,
44
+ "deformation": 0.5,
45
+ "softness": 0.5,
46
+ "highlightIntensity": 0.5,
47
+ "highlightX": 0.3,
48
+ "highlightY": -0.3,
49
+ "highlightZ": 0.4,
50
+ "highlightColor": "#ffe11a",
51
+ "speed": 0.5,
52
+ "seed": 1,
53
+ "center": {
54
+ "x": 0.5,
55
+ "y": 0.5
56
56
  },
57
- colorSpace: "linear"
58
- },
59
- Blur: {
60
- opacity: 1,
61
- blendMode: "normal",
62
- intensity: 50
63
- },
64
- Bulge: {
65
- opacity: 1,
66
- blendMode: "normal",
67
- center: {
68
- x: 0.5,
69
- y: 0.5
57
+ "colorSpace": "linear"
58
+ },
59
+ "Blur": {
60
+ "opacity": 1,
61
+ "blendMode": "normal",
62
+ "intensity": 50
63
+ },
64
+ "Bulge": {
65
+ "opacity": 1,
66
+ "blendMode": "normal",
67
+ "center": {
68
+ "x": 0.5,
69
+ "y": 0.5
70
70
  },
71
- strength: 1,
72
- radius: 1,
73
- falloff: 0.5,
74
- edges: "stretch"
75
- },
76
- ChannelBlur: {
77
- opacity: 1,
78
- blendMode: "normal",
79
- redIntensity: 0,
80
- greenIntensity: 20,
81
- blueIntensity: 40
82
- },
83
- Checkerboard: {
84
- opacity: 1,
85
- blendMode: "normal",
86
- colorA: "#cccccc",
87
- colorB: "#999999",
88
- cells: 8,
89
- softness: 0,
90
- colorSpace: "linear"
91
- },
92
- ChromaFlow: {
93
- opacity: 1,
94
- blendMode: "normal",
95
- baseColor: "#0066ff",
96
- upColor: "#00ff00",
97
- downColor: "#ff0000",
98
- leftColor: "#0000ff",
99
- rightColor: "#ffff00",
100
- intensity: 1,
101
- radius: 2,
102
- momentum: 30
103
- },
104
- ChromaticAberration: {
105
- opacity: 1,
106
- blendMode: "normal",
107
- strength: 0.2,
108
- angle: 0,
109
- redOffset: -1,
110
- greenOffset: 0,
111
- blueOffset: 1
112
- },
113
- Circle: {
114
- opacity: 1,
115
- blendMode: "normal",
116
- color: "#ffffff",
117
- radius: 1,
118
- softness: 0,
119
- center: {
120
- x: 0.5,
121
- y: 0.5
71
+ "strength": 1,
72
+ "radius": 1,
73
+ "falloff": 0.5,
74
+ "edges": "stretch"
75
+ },
76
+ "ChannelBlur": {
77
+ "opacity": 1,
78
+ "blendMode": "normal",
79
+ "redIntensity": 0,
80
+ "greenIntensity": 20,
81
+ "blueIntensity": 40
82
+ },
83
+ "Checkerboard": {
84
+ "opacity": 1,
85
+ "blendMode": "normal",
86
+ "colorA": "#cccccc",
87
+ "colorB": "#999999",
88
+ "cells": 8,
89
+ "softness": 0,
90
+ "colorSpace": "linear"
91
+ },
92
+ "ChromaFlow": {
93
+ "opacity": 1,
94
+ "blendMode": "normal",
95
+ "baseColor": "#0066ff",
96
+ "upColor": "#00ff00",
97
+ "downColor": "#ff0000",
98
+ "leftColor": "#0000ff",
99
+ "rightColor": "#ffff00",
100
+ "intensity": 1,
101
+ "radius": 2,
102
+ "momentum": 30
103
+ },
104
+ "ChromaticAberration": {
105
+ "opacity": 1,
106
+ "blendMode": "normal",
107
+ "strength": 0.2,
108
+ "angle": 0,
109
+ "redOffset": -1,
110
+ "greenOffset": 0,
111
+ "blueOffset": 1
112
+ },
113
+ "Circle": {
114
+ "opacity": 1,
115
+ "blendMode": "normal",
116
+ "color": "#ffffff",
117
+ "radius": 1,
118
+ "softness": 0,
119
+ "center": {
120
+ "x": 0.5,
121
+ "y": 0.5
122
122
  }
123
123
  },
124
- CRTScreen: {
125
- opacity: 1,
126
- blendMode: "normal",
127
- pixelSize: 128,
128
- colorShift: 1,
129
- scanlineIntensity: 0.3,
130
- scanlineFrequency: 200,
131
- brightness: 1.1,
132
- contrast: 1.2
133
- },
134
- CursorTrail: {
135
- opacity: 1,
136
- blendMode: "normal",
137
- colorA: "#00aaff",
138
- colorB: "#ff00aa",
139
- radius: 0.5,
140
- length: 0.5,
141
- shrink: 1,
142
- colorSpace: "linear"
143
- },
144
- DiffuseBlur: {
145
- opacity: 1,
146
- blendMode: "normal",
147
- intensity: 30,
148
- edges: "stretch"
149
- },
150
- Dither: {
151
- opacity: 1,
152
- blendMode: "normal",
153
- pixelSize: 4,
154
- threshold: 0.5,
155
- colorA: "transparent",
156
- colorB: "#ffffff"
157
- },
158
- DotGrid: {
159
- opacity: 1,
160
- blendMode: "normal",
161
- color: "#ffffff",
162
- density: 100,
163
- dotSize: 0.3,
164
- twinkle: 0
165
- },
166
- Duotone: {
167
- opacity: 1,
168
- blendMode: "normal",
169
- colorA: "#ff0000",
170
- colorB: "#023af4",
171
- blend: 0.5,
172
- colorSpace: "linear"
173
- },
174
- FilmGrain: {
175
- opacity: 1,
176
- blendMode: "normal",
177
- strength: 0.5
178
- },
179
- FloatingParticles: {
180
- opacity: 1,
181
- blendMode: "normal",
182
- randomness: 0.25,
183
- speed: 0.25,
184
- angle: 90,
185
- particleSize: 1,
186
- particleSoftness: 0,
187
- twinkle: 0.5,
188
- count: 5,
189
- particleColor: "#ffffff",
190
- speedVariance: 0.3,
191
- angleVariance: 30,
192
- particleDensity: 3
193
- },
194
- GlassTiles: {
195
- opacity: 1,
196
- blendMode: "normal",
197
- intensity: 1,
198
- tileCount: 100
199
- },
200
- Glow: {
201
- opacity: 1,
202
- blendMode: "normal",
203
- intensity: 1,
204
- threshold: 0.5,
205
- size: 10
206
- },
207
- Godrays: {
208
- opacity: 1,
209
- blendMode: "normal",
210
- center: {
211
- x: 0,
212
- y: 0
124
+ "CRTScreen": {
125
+ "opacity": 1,
126
+ "blendMode": "normal",
127
+ "pixelSize": 128,
128
+ "colorShift": 1,
129
+ "scanlineIntensity": 0.3,
130
+ "scanlineFrequency": 200,
131
+ "brightness": 1.1,
132
+ "contrast": 1.2
133
+ },
134
+ "CursorTrail": {
135
+ "opacity": 1,
136
+ "blendMode": "normal",
137
+ "colorA": "#00aaff",
138
+ "colorB": "#ff00aa",
139
+ "radius": 0.5,
140
+ "length": 0.5,
141
+ "shrink": 1,
142
+ "colorSpace": "linear"
143
+ },
144
+ "DiffuseBlur": {
145
+ "opacity": 1,
146
+ "blendMode": "normal",
147
+ "intensity": 30,
148
+ "edges": "stretch"
149
+ },
150
+ "Dither": {
151
+ "opacity": 1,
152
+ "blendMode": "normal",
153
+ "pixelSize": 4,
154
+ "threshold": 0.5,
155
+ "colorA": "transparent",
156
+ "colorB": "#ffffff"
157
+ },
158
+ "DotGrid": {
159
+ "opacity": 1,
160
+ "blendMode": "normal",
161
+ "color": "#ffffff",
162
+ "density": 100,
163
+ "dotSize": 0.3,
164
+ "twinkle": 0
165
+ },
166
+ "Duotone": {
167
+ "opacity": 1,
168
+ "blendMode": "normal",
169
+ "colorA": "#ff0000",
170
+ "colorB": "#023af4",
171
+ "blend": 0.5,
172
+ "colorSpace": "linear"
173
+ },
174
+ "FilmGrain": {
175
+ "opacity": 1,
176
+ "blendMode": "normal",
177
+ "strength": 0.5
178
+ },
179
+ "FloatingParticles": {
180
+ "opacity": 1,
181
+ "blendMode": "normal",
182
+ "randomness": 0.25,
183
+ "speed": 0.25,
184
+ "angle": 90,
185
+ "particleSize": 1,
186
+ "particleSoftness": 0,
187
+ "twinkle": 0.5,
188
+ "count": 5,
189
+ "particleColor": "#ffffff",
190
+ "speedVariance": 0.3,
191
+ "angleVariance": 30,
192
+ "particleDensity": 3
193
+ },
194
+ "GlassTiles": {
195
+ "opacity": 1,
196
+ "blendMode": "normal",
197
+ "intensity": 1,
198
+ "tileCount": 100
199
+ },
200
+ "Glow": {
201
+ "opacity": 1,
202
+ "blendMode": "normal",
203
+ "intensity": 1,
204
+ "threshold": 0.5,
205
+ "size": 10
206
+ },
207
+ "Godrays": {
208
+ "opacity": 1,
209
+ "blendMode": "normal",
210
+ "center": {
211
+ "x": 0,
212
+ "y": 0
213
213
  },
214
- density: 0.3,
215
- intensity: 0.8,
216
- spotty: 1,
217
- speed: 0.5,
218
- rayColor: "#4283fb",
219
- backgroundColor: "transparent"
220
- },
221
- Grayscale: {
222
- opacity: 1,
223
- blendMode: "normal"
224
- },
225
- Grid: {
226
- opacity: 1,
227
- blendMode: "normal",
228
- color: "#ffffff",
229
- cells: 10,
230
- thickness: 1
231
- },
232
- GridDistortion: {
233
- opacity: 1,
234
- blendMode: "normal",
235
- intensity: 1,
236
- swirl: 0,
237
- decay: 3,
238
- radius: 1,
239
- gridSize: 20,
240
- edges: "stretch"
241
- },
242
- Group: {
243
- opacity: 1,
244
- blendMode: "normal"
245
- },
246
- Halftone: {
247
- opacity: 1,
248
- blendMode: "normal",
249
- frequency: 100,
250
- angle: 45,
251
- smoothness: 0.1
252
- },
253
- HueShift: {
254
- opacity: 1,
255
- blendMode: "normal",
256
- shift: 0
257
- },
258
- ImageTexture: {
259
- opacity: 1,
260
- blendMode: "normal",
261
- url: "https://shaders.com/sample.jpg",
262
- objectFit: "cover"
263
- },
264
- Invert: {
265
- opacity: 1,
266
- blendMode: "normal"
267
- },
268
- LinearBlur: {
269
- opacity: 1,
270
- blendMode: "normal",
271
- intensity: 30,
272
- angle: 0
273
- },
274
- LinearGradient: {
275
- opacity: 1,
276
- blendMode: "normal",
277
- colorA: "#1aff00",
278
- colorB: "#0000ff",
279
- start: {
280
- x: 0,
281
- y: 0.5
214
+ "density": 0.3,
215
+ "intensity": 0.8,
216
+ "spotty": 1,
217
+ "speed": 0.5,
218
+ "rayColor": "#4283fb",
219
+ "backgroundColor": "transparent"
220
+ },
221
+ "Grayscale": {
222
+ "opacity": 1,
223
+ "blendMode": "normal"
224
+ },
225
+ "Grid": {
226
+ "opacity": 1,
227
+ "blendMode": "normal",
228
+ "color": "#ffffff",
229
+ "cells": 10,
230
+ "thickness": 1
231
+ },
232
+ "GridDistortion": {
233
+ "opacity": 1,
234
+ "blendMode": "normal",
235
+ "intensity": 1,
236
+ "swirl": 0,
237
+ "decay": 3,
238
+ "radius": 1,
239
+ "gridSize": 20,
240
+ "edges": "stretch"
241
+ },
242
+ "Group": {
243
+ "opacity": 1,
244
+ "blendMode": "normal"
245
+ },
246
+ "Halftone": {
247
+ "opacity": 1,
248
+ "blendMode": "normal",
249
+ "frequency": 100,
250
+ "angle": 45,
251
+ "smoothness": 0.1
252
+ },
253
+ "HueShift": {
254
+ "opacity": 1,
255
+ "blendMode": "normal",
256
+ "shift": 0
257
+ },
258
+ "ImageTexture": {
259
+ "opacity": 1,
260
+ "blendMode": "normal",
261
+ "url": "https://shaders.com/sample.jpg",
262
+ "objectFit": "cover"
263
+ },
264
+ "Invert": {
265
+ "opacity": 1,
266
+ "blendMode": "normal"
267
+ },
268
+ "LinearBlur": {
269
+ "opacity": 1,
270
+ "blendMode": "normal",
271
+ "intensity": 30,
272
+ "angle": 0
273
+ },
274
+ "LinearGradient": {
275
+ "opacity": 1,
276
+ "blendMode": "normal",
277
+ "colorA": "#1aff00",
278
+ "colorB": "#0000ff",
279
+ "start": {
280
+ "x": 0,
281
+ "y": 0.5
282
282
  },
283
- end: {
284
- x: 1,
285
- y: 0.5
283
+ "end": {
284
+ "x": 1,
285
+ "y": 0.5
286
286
  },
287
- angle: 0,
288
- edges: "stretch",
289
- colorSpace: "linear"
290
- },
291
- Liquify: {
292
- opacity: 1,
293
- blendMode: "normal",
294
- intensity: 1,
295
- swirl: 0,
296
- decay: 3,
297
- radius: 1,
298
- edges: "stretch"
299
- },
300
- Pixelate: {
301
- opacity: 1,
302
- blendMode: "normal",
303
- scale: 50
304
- },
305
- PolarCoordinates: {
306
- opacity: 1,
307
- blendMode: "normal",
308
- center: {
309
- x: 0.5,
310
- y: 0.5
287
+ "angle": 0,
288
+ "edges": "stretch",
289
+ "colorSpace": "linear"
290
+ },
291
+ "Liquify": {
292
+ "opacity": 1,
293
+ "blendMode": "normal",
294
+ "intensity": 1,
295
+ "swirl": 0,
296
+ "decay": 3,
297
+ "radius": 1,
298
+ "edges": "stretch"
299
+ },
300
+ "Pixelate": {
301
+ "opacity": 1,
302
+ "blendMode": "normal",
303
+ "scale": 50
304
+ },
305
+ "PolarCoordinates": {
306
+ "opacity": 1,
307
+ "blendMode": "normal",
308
+ "center": {
309
+ "x": 0.5,
310
+ "y": 0.5
311
311
  },
312
- wrap: 1,
313
- radius: 1,
314
- intensity: 1,
315
- edges: "transparent"
316
- },
317
- Posterize: {
318
- opacity: 1,
319
- blendMode: "normal",
320
- intensity: 5
321
- },
322
- ProgressiveBlur: {
323
- opacity: 1,
324
- blendMode: "normal",
325
- intensity: 50,
326
- angle: 0,
327
- center: {
328
- x: 0,
329
- y: 0.5
312
+ "wrap": 1,
313
+ "radius": 1,
314
+ "intensity": 1,
315
+ "edges": "transparent"
316
+ },
317
+ "Posterize": {
318
+ "opacity": 1,
319
+ "blendMode": "normal",
320
+ "intensity": 5
321
+ },
322
+ "ProgressiveBlur": {
323
+ "opacity": 1,
324
+ "blendMode": "normal",
325
+ "intensity": 50,
326
+ "angle": 0,
327
+ "center": {
328
+ "x": 0,
329
+ "y": 0.5
330
330
  },
331
- falloff: 1
332
- },
333
- RadialGradient: {
334
- opacity: 1,
335
- blendMode: "normal",
336
- colorA: "#ff0000",
337
- colorB: "#0000ff",
338
- center: {
339
- x: 0.5,
340
- y: 0.5
331
+ "falloff": 1
332
+ },
333
+ "RadialGradient": {
334
+ "opacity": 1,
335
+ "blendMode": "normal",
336
+ "colorA": "#ff0000",
337
+ "colorB": "#0000ff",
338
+ "center": {
339
+ "x": 0.5,
340
+ "y": 0.5
341
341
  },
342
- radius: 1,
343
- colorSpace: "linear"
344
- },
345
- RectangularCoordinates: {
346
- opacity: 1,
347
- blendMode: "normal",
348
- center: {
349
- x: 0.5,
350
- y: 0.5
342
+ "radius": 1,
343
+ "colorSpace": "linear"
344
+ },
345
+ "RectangularCoordinates": {
346
+ "opacity": 1,
347
+ "blendMode": "normal",
348
+ "center": {
349
+ "x": 0.5,
350
+ "y": 0.5
351
351
  },
352
- scale: 1,
353
- intensity: 1,
354
- edges: "transparent"
355
- },
356
- Ripples: {
357
- opacity: 1,
358
- blendMode: "normal",
359
- center: {
360
- x: 0.5,
361
- y: 0.5
352
+ "scale": 1,
353
+ "intensity": 1,
354
+ "edges": "transparent"
355
+ },
356
+ "Ripples": {
357
+ "opacity": 1,
358
+ "blendMode": "normal",
359
+ "center": {
360
+ "x": 0.5,
361
+ "y": 0.5
362
362
  },
363
- colorA: "#ffffff",
364
- colorB: "#000000",
365
- speed: 1,
366
- frequency: 20,
367
- softness: 0,
368
- thickness: 0.5,
369
- phase: 0
370
- },
371
- Saturation: {
372
- opacity: 1,
373
- blendMode: "normal",
374
- intensity: 1
375
- },
376
- SimplexNoise: {
377
- opacity: 1,
378
- blendMode: "normal",
379
- colorA: "#ffffff",
380
- colorB: "#000000",
381
- scale: 2,
382
- balance: 0,
383
- contrast: 0,
384
- seed: 0,
385
- speed: 1
386
- },
387
- SineWave: {
388
- opacity: 1,
389
- blendMode: "normal",
390
- color: "#ffffff",
391
- amplitude: 0.15,
392
- frequency: 1,
393
- speed: 1,
394
- angle: 0,
395
- position: {
396
- x: 0.5,
397
- y: 0.5
363
+ "colorA": "#ffffff",
364
+ "colorB": "#000000",
365
+ "speed": 1,
366
+ "frequency": 20,
367
+ "softness": 0,
368
+ "thickness": 0.5,
369
+ "phase": 0
370
+ },
371
+ "Saturation": {
372
+ "opacity": 1,
373
+ "blendMode": "normal",
374
+ "intensity": 1
375
+ },
376
+ "SimplexNoise": {
377
+ "opacity": 1,
378
+ "blendMode": "normal",
379
+ "colorA": "#ffffff",
380
+ "colorB": "#000000",
381
+ "scale": 2,
382
+ "balance": 0,
383
+ "contrast": 0,
384
+ "seed": 0,
385
+ "speed": 1
386
+ },
387
+ "SineWave": {
388
+ "opacity": 1,
389
+ "blendMode": "normal",
390
+ "color": "#ffffff",
391
+ "amplitude": 0.15,
392
+ "frequency": 1,
393
+ "speed": 1,
394
+ "angle": 0,
395
+ "position": {
396
+ "x": 0.5,
397
+ "y": 0.5
398
398
  },
399
- thickness: 0.2,
400
- softness: 0.4
401
- },
402
- SolidColor: {
403
- opacity: 1,
404
- blendMode: "normal",
405
- color: "#5b18ca"
406
- },
407
- Spherize: {
408
- opacity: 1,
409
- blendMode: "normal",
410
- radius: 1,
411
- depth: 1,
412
- center: {
413
- x: 0.5,
414
- y: 0.5
399
+ "thickness": 0.2,
400
+ "softness": 0.4
401
+ },
402
+ "SolidColor": {
403
+ "opacity": 1,
404
+ "blendMode": "normal",
405
+ "color": "#5b18ca"
406
+ },
407
+ "Spherize": {
408
+ "opacity": 1,
409
+ "blendMode": "normal",
410
+ "radius": 1,
411
+ "depth": 1,
412
+ "center": {
413
+ "x": 0.5,
414
+ "y": 0.5
415
415
  },
416
- lightPosition: {
417
- x: 0.3,
418
- y: 0.3
416
+ "lightPosition": {
417
+ "x": 0.3,
418
+ "y": 0.3
419
419
  },
420
- lightIntensity: 0.5,
421
- lightSoftness: 0.5,
422
- lightColor: "#ffffff"
423
- },
424
- Spiral: {
425
- opacity: 1,
426
- blendMode: "normal",
427
- colorA: "#000000",
428
- colorB: "#ffffff",
429
- strokeWidth: 0.5,
430
- strokeFalloff: 0,
431
- softness: 0,
432
- speed: 1,
433
- center: {
434
- x: 0.5,
435
- y: 0.5
420
+ "lightIntensity": 0.5,
421
+ "lightSoftness": 0.5,
422
+ "lightColor": "#ffffff"
423
+ },
424
+ "Spiral": {
425
+ "opacity": 1,
426
+ "blendMode": "normal",
427
+ "colorA": "#000000",
428
+ "colorB": "#ffffff",
429
+ "strokeWidth": 0.5,
430
+ "strokeFalloff": 0,
431
+ "softness": 0,
432
+ "speed": 1,
433
+ "center": {
434
+ "x": 0.5,
435
+ "y": 0.5
436
436
  },
437
- scale: 1,
438
- colorSpace: "linear"
439
- },
440
- Strands: {
441
- opacity: 1,
442
- blendMode: "normal",
443
- speed: 0.5,
444
- amplitude: 1,
445
- frequency: 1,
446
- lineCount: 12,
447
- lineWidth: 0.1,
448
- waveColor: "#f1c907",
449
- pinEdges: !0,
450
- start: {
451
- x: 0,
452
- y: 0.5
437
+ "scale": 1,
438
+ "colorSpace": "linear"
439
+ },
440
+ "Strands": {
441
+ "opacity": 1,
442
+ "blendMode": "normal",
443
+ "speed": 0.5,
444
+ "amplitude": 1,
445
+ "frequency": 1,
446
+ "lineCount": 12,
447
+ "lineWidth": 0.1,
448
+ "waveColor": "#f1c907",
449
+ "pinEdges": true,
450
+ "start": {
451
+ "x": 0,
452
+ "y": 0.5
453
453
  },
454
- end: {
455
- x: 1,
456
- y: 0.5
454
+ "end": {
455
+ "x": 1,
456
+ "y": 0.5
457
457
  }
458
458
  },
459
- Stretch: {
460
- opacity: 1,
461
- blendMode: "normal",
462
- center: {
463
- x: 0.5,
464
- y: 0.5
459
+ "Stretch": {
460
+ "opacity": 1,
461
+ "blendMode": "normal",
462
+ "center": {
463
+ "x": 0.5,
464
+ "y": 0.5
465
465
  },
466
- strength: 1,
467
- angle: 0,
468
- falloff: 0,
469
- edges: "stretch"
470
- },
471
- Swirl: {
472
- opacity: 1,
473
- blendMode: "normal",
474
- colorA: "#1275d8",
475
- colorB: "#e19136",
476
- speed: 1,
477
- detail: 1,
478
- blend: 50,
479
- coarseX: 50,
480
- coarseY: 50,
481
- mediumX: 50,
482
- mediumY: 50,
483
- fineX: 50,
484
- fineY: 50,
485
- colorSpace: "linear"
486
- },
487
- TiltShift: {
488
- opacity: 1,
489
- blendMode: "normal",
490
- intensity: 50,
491
- width: 0.3,
492
- falloff: 0.3,
493
- angle: 0,
494
- center: {
495
- x: 0.5,
496
- y: 0.5
466
+ "strength": 1,
467
+ "angle": 0,
468
+ "falloff": 0,
469
+ "edges": "stretch"
470
+ },
471
+ "Swirl": {
472
+ "opacity": 1,
473
+ "blendMode": "normal",
474
+ "colorA": "#1275d8",
475
+ "colorB": "#e19136",
476
+ "speed": 1,
477
+ "detail": 1,
478
+ "blend": 50,
479
+ "coarseX": 50,
480
+ "coarseY": 50,
481
+ "mediumX": 50,
482
+ "mediumY": 50,
483
+ "fineX": 50,
484
+ "fineY": 50,
485
+ "colorSpace": "linear"
486
+ },
487
+ "TiltShift": {
488
+ "opacity": 1,
489
+ "blendMode": "normal",
490
+ "intensity": 50,
491
+ "width": 0.3,
492
+ "falloff": 0.3,
493
+ "angle": 0,
494
+ "center": {
495
+ "x": 0.5,
496
+ "y": 0.5
497
497
  }
498
498
  },
499
- Tritone: {
500
- opacity: 1,
501
- blendMode: "normal",
502
- colorA: "#ce1bea",
503
- colorB: "#2fff00",
504
- colorC: "#ffff00",
505
- blendMid: 0.5,
506
- colorSpace: "linear"
507
- },
508
- Twirl: {
509
- opacity: 1,
510
- blendMode: "normal",
511
- center: {
512
- x: 0.5,
513
- y: 0.5
499
+ "Tritone": {
500
+ "opacity": 1,
501
+ "blendMode": "normal",
502
+ "colorA": "#ce1bea",
503
+ "colorB": "#2fff00",
504
+ "colorC": "#ffff00",
505
+ "blendMid": 0.5,
506
+ "colorSpace": "linear"
507
+ },
508
+ "Twirl": {
509
+ "opacity": 1,
510
+ "blendMode": "normal",
511
+ "center": {
512
+ "x": 0.5,
513
+ "y": 0.5
514
514
  },
515
- intensity: 1,
516
- edges: "stretch"
517
- },
518
- Vibrance: {
519
- opacity: 1,
520
- blendMode: "normal",
521
- intensity: 0
522
- },
523
- WaveDistortion: {
524
- opacity: 1,
525
- blendMode: "normal",
526
- strength: 0.3,
527
- frequency: 1,
528
- speed: 1,
529
- angle: 0,
530
- waveType: "sine",
531
- edges: "stretch"
532
- },
533
- ZoomBlur: {
534
- opacity: 1,
535
- blendMode: "normal",
536
- intensity: 30,
537
- center: {
538
- x: 0.5,
539
- y: 0.5
515
+ "intensity": 1,
516
+ "edges": "stretch"
517
+ },
518
+ "Vibrance": {
519
+ "opacity": 1,
520
+ "blendMode": "normal",
521
+ "intensity": 0
522
+ },
523
+ "WaveDistortion": {
524
+ "opacity": 1,
525
+ "blendMode": "normal",
526
+ "strength": 0.3,
527
+ "frequency": 1,
528
+ "speed": 1,
529
+ "angle": 0,
530
+ "waveType": "sine",
531
+ "edges": "stretch"
532
+ },
533
+ "ZoomBlur": {
534
+ "opacity": 1,
535
+ "blendMode": "normal",
536
+ "intensity": 30,
537
+ "center": {
538
+ "x": 0.5,
539
+ "y": 0.5
540
540
  }
541
541
  }
542
542
  };
543
- function f(t, l, i = " ") {
544
- return Object.entries(t).filter(([e, o]) => {
545
- const n = d[l] || {};
546
- if (n.hasOwnProperty(e)) {
547
- const r = n[e];
548
- return o !== null && r !== null && typeof o == "object" && typeof r == "object" ? JSON.stringify(o) !== JSON.stringify(r) : o !== r;
543
+ function generatePropString(props, componentType, indent = " ") {
544
+ return Object.entries(props).filter(([key, value]) => {
545
+ const componentDefaults = shaderMetadata[componentType] || {};
546
+ if (componentDefaults.hasOwnProperty(key)) {
547
+ const defaultValue = componentDefaults[key];
548
+ if (value !== null && defaultValue !== null && typeof value === "object" && typeof defaultValue === "object") {
549
+ return JSON.stringify(value) !== JSON.stringify(defaultValue);
550
+ }
551
+ return value !== defaultValue;
549
552
  }
550
- return !(e === "opacity" && o === 1 || e === "blendMode" && o === "normal");
551
- }).map(([e, o]) => typeof o == "string" ? `${e}=${JSON.stringify(o)}` : o !== null && typeof o == "object" ? `${e}={${JSON.stringify(o)}}` : `${e}={${o}}`).join(`
552
- ` + i + " ");
553
+ if (key === "opacity" && value === 1) return false;
554
+ if (key === "blendMode" && value === "normal") return false;
555
+ return true;
556
+ }).map(([key, value]) => {
557
+ if (typeof value === "string") {
558
+ return `${key}=${JSON.stringify(value)}`;
559
+ } else if (value !== null && typeof value === "object") {
560
+ return `${key}={${JSON.stringify(value)}}`;
561
+ } else {
562
+ return `${key}={${value}}`;
563
+ }
564
+ }).join("\n" + indent + " ");
553
565
  }
554
- function p(t, l) {
555
- const i = [];
556
- function e(o) {
557
- for (const n of o)
558
- i.push(n), n.children && e(n.children);
566
+ function isIdUsedAsMaskSource(id, allComponents) {
567
+ const flatComponents = [];
568
+ function flattenComponents(components) {
569
+ for (const component of components) {
570
+ flatComponents.push(component);
571
+ if (component.children) {
572
+ flattenComponents(component.children);
573
+ }
574
+ }
559
575
  }
560
- return e(l), i.some(
561
- (o) => {
562
- var n;
563
- return ((n = o.props) == null ? void 0 : n.maskSource) === t;
576
+ flattenComponents(allComponents);
577
+ return flatComponents.some(
578
+ (component) => {
579
+ var _a;
580
+ return ((_a = component.props) == null ? void 0 : _a.maskSource) === id;
564
581
  }
565
582
  );
566
583
  }
567
- function y(t) {
568
- const l = (e, o = " ") => {
569
- const n = e.props ? f(e.props, e.type, o) : "";
570
- let r = "";
571
- e.id && p(e.id, t.components) && (r = `id="${e.id}"`);
572
- const a = [r, n].filter(Boolean).join(`
573
- ` + o + " ");
574
- if (e.children && e.children.length > 0) {
575
- const s = e.children.map((c) => l(c, o + " ")).join(`
576
- `);
577
- return a ? `${o}<${e.type}
578
- ${o} ${a}>
579
- ${s}
580
- ${o}</${e.type}>` : `${o}<${e.type}>
581
- ${s}
582
- ${o}</${e.type}>`;
583
- } else
584
- return a ? `${o}<${e.type}
585
- ${o} ${a} />` : `${o}<${e.type} />`;
584
+ function generatePresetCode(preset) {
585
+ const generateComponentString = (config, indent = " ") => {
586
+ const propString = config.props ? generatePropString(config.props, config.type, indent) : "";
587
+ let idString = "";
588
+ if (config.id) {
589
+ const isUsedAsMask = isIdUsedAsMaskSource(config.id, preset.components);
590
+ if (isUsedAsMask) {
591
+ idString = `id="${config.id}"`;
592
+ }
593
+ }
594
+ const attributes = [idString, propString].filter(Boolean).join("\n" + indent + " ");
595
+ if (config.children && config.children.length > 0) {
596
+ const childrenString = config.children.map((child) => generateComponentString(child, indent + " ")).join("\n");
597
+ if (attributes) {
598
+ return `${indent}<${config.type}
599
+ ${indent} ${attributes}>
600
+ ${childrenString}
601
+ ${indent}</${config.type}>`;
602
+ } else {
603
+ return `${indent}<${config.type}>
604
+ ${childrenString}
605
+ ${indent}</${config.type}>`;
606
+ }
607
+ } else {
608
+ if (attributes) {
609
+ return `${indent}<${config.type}
610
+ ${indent} ${attributes} />`;
611
+ } else {
612
+ return `${indent}<${config.type} />`;
613
+ }
614
+ }
586
615
  };
616
+ const componentStrings = preset.components.map((config) => generateComponentString(config)).join("\n");
587
617
  return `<Shader>
588
- ${t.components.map((e) => l(e)).join(`
589
- `)}
618
+ ${componentStrings}
590
619
  </Shader>`;
591
620
  }
592
- const m = [
621
+ const availableComponents = [
593
622
  // @ts-ignore - replaced at build time
594
623
  "AngularBlur",
595
624
  "Ascii",
@@ -648,6 +677,6 @@ const m = [
648
677
  "ZoomBlur"
649
678
  ];
650
679
  export {
651
- m as availableComponents,
652
- y as generatePresetCode
680
+ availableComponents,
681
+ generatePresetCode
653
682
  };