shaders 2.5.81 → 2.5.83

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 (209) hide show
  1. package/dist/core/{Crescent-B4Z_WAgY.js → Crescent-n3F1gT1y.js} +1 -1
  2. package/dist/core/{Cross-M5Vm5Kmy.js → Cross-CQmjBna4.js} +1 -1
  3. package/dist/core/{Ellipse-BjbjXlOx.js → Ellipse-DWQt5JTM.js} +1 -1
  4. package/dist/core/{Emboss-K5TExa67.js → Emboss-ShjCeQPU.js} +8 -61
  5. package/dist/core/{Flower-B-53jiUT.js → Flower-DZVbhEaA.js} +1 -1
  6. package/dist/core/FlowingGradient-DVproCI1.js +145 -0
  7. package/dist/core/{Glass-CRaFJ-8c.js → Glass-CrdewyrV.js} +9 -62
  8. package/dist/core/{Neon-E8whPM6C.js → Neon-DwAOiY8b.js} +7 -60
  9. package/dist/core/{Polygon-B4ab2iAo.js → Polygon-BrxPjS1j.js} +1 -1
  10. package/dist/core/{Ring-DVW66Ug0.js → Ring-CrnCOiYQ.js} +1 -1
  11. package/dist/core/{RoundedRect-B9y33WS5.js → RoundedRect-CyLsv0Vq.js} +1 -1
  12. package/dist/core/{Star-DB4dmzyz.js → Star-CAfXecya.js} +1 -1
  13. package/dist/core/{Trapezoid-Co8cWZTK.js → Trapezoid-DA0I90A2.js} +1 -1
  14. package/dist/core/{Vesica-C7tcbHbW.js → Vesica-RKKgxLKt.js} +1 -1
  15. package/dist/core/{VideoTexture-DDnc6aVv.js → VideoTexture-Dbsbgb1Y.js} +1 -1
  16. package/dist/core/{WebcamTexture-rb0dLKSc.js → WebcamTexture-xvb8MuFz.js} +1 -1
  17. package/dist/core/index.js +83 -67
  18. package/dist/core/registry.js +68 -67
  19. package/dist/core/renderer.d.ts +1 -0
  20. package/dist/core/renderer.d.ts.map +1 -1
  21. package/dist/core/{sdf-BDsv-WBk.js → sdf-vsljaiJ7.js} +82 -2
  22. package/dist/core/shaderRegistry-D0ny8qOF.js +220 -0
  23. package/dist/core/shaderRegistry.d.ts.map +1 -1
  24. package/dist/core/shaders/Crescent/index.js +2 -2
  25. package/dist/core/shaders/Cross/index.js +2 -2
  26. package/dist/core/shaders/Ellipse/index.js +2 -2
  27. package/dist/core/shaders/Emboss/index.d.ts +6 -0
  28. package/dist/core/shaders/Emboss/index.d.ts.map +1 -1
  29. package/dist/core/shaders/Emboss/index.js +2 -2
  30. package/dist/core/shaders/Flower/index.js +2 -2
  31. package/dist/core/shaders/FlowingGradient/index.d.ts +62 -0
  32. package/dist/core/shaders/FlowingGradient/index.d.ts.map +1 -0
  33. package/dist/core/shaders/FlowingGradient/index.js +5 -0
  34. package/dist/core/shaders/Form3D/index.js +1 -1
  35. package/dist/core/shaders/Glass/index.d.ts +6 -0
  36. package/dist/core/shaders/Glass/index.d.ts.map +1 -1
  37. package/dist/core/shaders/Glass/index.js +2 -2
  38. package/dist/core/shaders/GlassTiles/index.js +1 -1
  39. package/dist/core/shaders/Glitch/index.js +1 -1
  40. package/dist/core/shaders/Glow/index.js +1 -1
  41. package/dist/core/shaders/Godrays/index.js +1 -1
  42. package/dist/core/shaders/Grayscale/index.js +1 -1
  43. package/dist/core/shaders/Grid/index.js +1 -1
  44. package/dist/core/shaders/GridDistortion/index.js +1 -1
  45. package/dist/core/shaders/Group/index.js +1 -1
  46. package/dist/core/shaders/Halftone/index.js +1 -1
  47. package/dist/core/shaders/HueShift/index.js +1 -1
  48. package/dist/core/shaders/ImageTexture/index.js +1 -1
  49. package/dist/core/shaders/Invert/index.js +1 -1
  50. package/dist/core/shaders/Kaleidoscope/index.js +1 -1
  51. package/dist/core/shaders/LensFlare/index.js +1 -1
  52. package/dist/core/shaders/LinearBlur/index.js +1 -1
  53. package/dist/core/shaders/LinearGradient/index.js +1 -1
  54. package/dist/core/shaders/Liquify/index.js +1 -1
  55. package/dist/core/shaders/Mirror/index.js +1 -1
  56. package/dist/core/shaders/Neon/index.d.ts +6 -0
  57. package/dist/core/shaders/Neon/index.d.ts.map +1 -1
  58. package/dist/core/shaders/Neon/index.js +2 -2
  59. package/dist/core/shaders/Paper/index.js +1 -1
  60. package/dist/core/shaders/Perspective/index.js +1 -1
  61. package/dist/core/shaders/Pixelate/index.js +1 -1
  62. package/dist/core/shaders/Plasma/index.js +1 -1
  63. package/dist/core/shaders/PolarCoordinates/index.js +1 -1
  64. package/dist/core/shaders/Polygon/index.js +2 -2
  65. package/dist/core/shaders/Posterize/index.js +1 -1
  66. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  67. package/dist/core/shaders/RadialGradient/index.js +1 -1
  68. package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
  69. package/dist/core/shaders/Ring/index.js +2 -2
  70. package/dist/core/shaders/Ripples/index.js +1 -1
  71. package/dist/core/shaders/RoundedRect/index.js +2 -2
  72. package/dist/core/shaders/Saturation/index.js +1 -1
  73. package/dist/core/shaders/Sharpness/index.js +1 -1
  74. package/dist/core/shaders/Shatter/index.js +1 -1
  75. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  76. package/dist/core/shaders/SineWave/index.js +1 -1
  77. package/dist/core/shaders/SolidColor/index.js +1 -1
  78. package/dist/core/shaders/Spherize/index.js +1 -1
  79. package/dist/core/shaders/Spiral/index.js +1 -1
  80. package/dist/core/shaders/Star/index.js +2 -2
  81. package/dist/core/shaders/Strands/index.js +1 -1
  82. package/dist/core/shaders/Stretch/index.js +1 -1
  83. package/dist/core/shaders/Stripes/index.js +1 -1
  84. package/dist/core/shaders/StudioBackground/index.js +1 -1
  85. package/dist/core/shaders/Swirl/index.js +1 -1
  86. package/dist/core/shaders/TiltShift/index.js +1 -1
  87. package/dist/core/shaders/Tint/index.js +1 -1
  88. package/dist/core/shaders/Trapezoid/index.js +2 -2
  89. package/dist/core/shaders/Tritone/index.js +1 -1
  90. package/dist/core/shaders/Twirl/index.js +1 -1
  91. package/dist/core/shaders/Vesica/index.js +2 -2
  92. package/dist/core/shaders/Vibrance/index.js +1 -1
  93. package/dist/core/shaders/VideoTexture/index.js +2 -2
  94. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  95. package/dist/core/shaders/WebcamTexture/index.js +2 -2
  96. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  97. package/dist/core/utilities/sdf.d.ts +5 -0
  98. package/dist/core/utilities/sdf.d.ts.map +1 -1
  99. package/dist/js/createShader.d.ts.map +1 -1
  100. package/dist/js/createShader.js +2 -1
  101. package/dist/js/types.d.ts +1 -0
  102. package/dist/js/types.d.ts.map +1 -1
  103. package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
  104. package/dist/js/utils/generatePresetCode.js +13 -0
  105. package/dist/react/FlowingGradient.js +180 -0
  106. package/dist/react/Preview.js +1 -0
  107. package/dist/react/Shader.js +10 -2
  108. package/dist/react/components/FlowingGradient.d.ts +34 -0
  109. package/dist/react/components/FlowingGradient.d.ts.map +1 -0
  110. package/dist/react/engine/Preview.d.ts.map +1 -1
  111. package/dist/react/engine/Shader.d.ts +1 -0
  112. package/dist/react/engine/Shader.d.ts.map +1 -1
  113. package/dist/react/index.d.ts +1 -0
  114. package/dist/react/index.d.ts.map +1 -1
  115. package/dist/react/index.js +2 -1
  116. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  117. package/dist/react/utils/generatePresetCode.js +13 -0
  118. package/dist/registry.js +257 -0
  119. package/dist/solid/components/FlowingGradient.d.ts +31 -0
  120. package/dist/solid/components/FlowingGradient.d.ts.map +1 -0
  121. package/dist/solid/components/FlowingGradient.js +183 -0
  122. package/dist/solid/engine/Preview.d.ts.map +1 -1
  123. package/dist/solid/engine/Preview.js +64 -62
  124. package/dist/solid/engine/Shader.d.ts +1 -0
  125. package/dist/solid/engine/Shader.d.ts.map +1 -1
  126. package/dist/solid/engine/Shader.js +6 -2
  127. package/dist/solid/index.d.ts +1 -0
  128. package/dist/solid/index.d.ts.map +1 -1
  129. package/dist/solid/index.js +124 -122
  130. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  131. package/dist/solid/utils/generatePresetCode.js +13 -0
  132. package/dist/svelte/components/FlowingGradient.svelte.d.ts +21 -0
  133. package/dist/svelte/engine/Shader.svelte.d.ts +1 -0
  134. package/dist/svelte/{generatePresetCode-6ecNqXs9.js → generatePresetCode-B9QYLcji.js} +13 -0
  135. package/dist/svelte/index.d.ts +1 -0
  136. package/dist/svelte/index.js +450 -301
  137. package/dist/svelte/source/components/FlowingGradient.svelte +288 -0
  138. package/dist/svelte/source/engine/Preview.svelte +2 -0
  139. package/dist/svelte/source/engine/Shader.svelte +3 -1
  140. package/dist/svelte/source/index.js +1 -0
  141. package/dist/svelte/utils/generatePresetCode.js +1 -1
  142. package/dist/vue/Emboss.vue_vue_type_script_setup_true_lang.js +2 -1
  143. package/dist/vue/FlowingGradient.js +3 -0
  144. package/dist/vue/FlowingGradient.vue_vue_type_script_setup_true_lang.js +173 -0
  145. package/dist/vue/Glass.vue_vue_type_script_setup_true_lang.js +2 -1
  146. package/dist/vue/Neon.vue_vue_type_script_setup_true_lang.js +2 -1
  147. package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
  148. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +5 -2
  149. package/dist/vue/components/FlowingGradient.vue.d.ts +56 -0
  150. package/dist/vue/components/FlowingGradient.vue.d.ts.map +1 -0
  151. package/dist/vue/engine/Shader.vue.d.ts +6 -2
  152. package/dist/vue/engine/Shader.vue.d.ts.map +1 -1
  153. package/dist/vue/index.d.ts +1 -0
  154. package/dist/vue/index.d.ts.map +1 -1
  155. package/dist/vue/index.js +2 -1
  156. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  157. package/dist/vue/utils/generatePresetCode.js +13 -0
  158. package/package.json +9 -1
  159. package/dist/core/shaderRegistry-DnmRD6xy.js +0 -218
  160. /package/dist/core/{Form3D-D3MoN95S.js → Form3D-DhezVuyN.js} +0 -0
  161. /package/dist/core/{GlassTiles-C3PKMWgp.js → GlassTiles-ClrOIpCg.js} +0 -0
  162. /package/dist/core/{Glitch-MyIU0Bad.js → Glitch-DmWytiRl.js} +0 -0
  163. /package/dist/core/{Glow-1ee_R1fA.js → Glow-Dm4dfZ_m.js} +0 -0
  164. /package/dist/core/{Godrays-CvcPIegU.js → Godrays-CYILZUHg.js} +0 -0
  165. /package/dist/core/{Grayscale-8MPw9PHN.js → Grayscale-CPR_l4G2.js} +0 -0
  166. /package/dist/core/{Grid-D64zkkku.js → Grid-CCQZ3GhD.js} +0 -0
  167. /package/dist/core/{GridDistortion-B7PGORW3.js → GridDistortion-oGT8NaWa.js} +0 -0
  168. /package/dist/core/{Group-DoOcKuhW.js → Group-CC317vlL.js} +0 -0
  169. /package/dist/core/{Halftone-Co7P2SWy.js → Halftone-BZk1Hjz_.js} +0 -0
  170. /package/dist/core/{HueShift-Bvd9VTak.js → HueShift-CuE3YTBE.js} +0 -0
  171. /package/dist/core/{ImageTexture-BJ1udc62.js → ImageTexture-DWUSKXX0.js} +0 -0
  172. /package/dist/core/{Invert-5VR-fNRw.js → Invert-C9RiDYP_.js} +0 -0
  173. /package/dist/core/{Kaleidoscope-B0McCEhc.js → Kaleidoscope-DtVlQWKG.js} +0 -0
  174. /package/dist/core/{LensFlare-DXgpPyJK.js → LensFlare-AVpiDD1O.js} +0 -0
  175. /package/dist/core/{LinearBlur-CBl0B23J.js → LinearBlur-AR65FcZh.js} +0 -0
  176. /package/dist/core/{LinearGradient-C0FT7-Lc.js → LinearGradient-DXCXjS-K.js} +0 -0
  177. /package/dist/core/{Liquify-Cr-1qPxN.js → Liquify-mhzPd19o.js} +0 -0
  178. /package/dist/core/{Mirror-DfZBEOUf.js → Mirror-CSc5mJi1.js} +0 -0
  179. /package/dist/core/{Paper-DJwBbPxA.js → Paper-DfUka0dt.js} +0 -0
  180. /package/dist/core/{Perspective-BdHcCgqZ.js → Perspective-uPiPmWy_.js} +0 -0
  181. /package/dist/core/{Pixelate-B9x2E0k-.js → Pixelate-DRkAW4Lo.js} +0 -0
  182. /package/dist/core/{Plasma-CMXrHMJv.js → Plasma-ELzbK-Us.js} +0 -0
  183. /package/dist/core/{PolarCoordinates-tZbl0VOq.js → PolarCoordinates-CalS_TB6.js} +0 -0
  184. /package/dist/core/{Posterize-Big6cECo.js → Posterize-C4vtRmtA.js} +0 -0
  185. /package/dist/core/{ProgressiveBlur-D0ZlHOw4.js → ProgressiveBlur-CLYhfOvQ.js} +0 -0
  186. /package/dist/core/{RadialGradient-C1Uu5_bL.js → RadialGradient-DtD8HWdM.js} +0 -0
  187. /package/dist/core/{RectangularCoordinates-BB7_S4gH.js → RectangularCoordinates-B96mflF5.js} +0 -0
  188. /package/dist/core/{Ripples-DeRyNukC.js → Ripples-Cevf-Hvg.js} +0 -0
  189. /package/dist/core/{Saturation-NrGhLp0a.js → Saturation-CcDwPh2v.js} +0 -0
  190. /package/dist/core/{Sharpness-DAC9Qnh0.js → Sharpness-D_dXfDEo.js} +0 -0
  191. /package/dist/core/{Shatter-ZIaXf4fs.js → Shatter-NfZzVt54.js} +0 -0
  192. /package/dist/core/{SimplexNoise-mSsE7oXX.js → SimplexNoise-aipzNV5j.js} +0 -0
  193. /package/dist/core/{SineWave-BAhTQVXp.js → SineWave-CVeYx3n-.js} +0 -0
  194. /package/dist/core/{SolidColor-BQnId3qy.js → SolidColor-BdbBnLxX.js} +0 -0
  195. /package/dist/core/{Spherize-YvHlKrZy.js → Spherize-BRGwLGeu.js} +0 -0
  196. /package/dist/core/{Spiral-DUDZyQjj.js → Spiral-BkTBXb7z.js} +0 -0
  197. /package/dist/core/{Strands-CF49kt1s.js → Strands-Cjsw-cPu.js} +0 -0
  198. /package/dist/core/{Stretch-Dkhera5t.js → Stretch-9cta3Z1W.js} +0 -0
  199. /package/dist/core/{Stripes-BOROXiAH.js → Stripes-C0sCGCz_.js} +0 -0
  200. /package/dist/core/{StudioBackground-DNmf8LGj.js → StudioBackground-BYv_-8df.js} +0 -0
  201. /package/dist/core/{Swirl-C5RQIA6E.js → Swirl-DXjIXfy7.js} +0 -0
  202. /package/dist/core/{TiltShift-BgscLSg_.js → TiltShift-56lcZ4cJ.js} +0 -0
  203. /package/dist/core/{Tint-CvKUJTtg.js → Tint-8_WIy9_e.js} +0 -0
  204. /package/dist/core/{Tritone-Ss5m7yFO.js → Tritone-nyJyybHI.js} +0 -0
  205. /package/dist/core/{Twirl-CF_9ObSp.js → Twirl-BzSEz4xK.js} +0 -0
  206. /package/dist/core/{Vibrance-DVWcESAa.js → Vibrance-BETLN3Ie.js} +0 -0
  207. /package/dist/core/{WaveDistortion-Caj3cQz7.js → WaveDistortion-C-j597Jm.js} +0 -0
  208. /package/dist/core/{ZoomBlur-DUrSxwl0.js → ZoomBlur-DFw0J9x3.js} +0 -0
  209. /package/dist/core/{browser-daS5XZwr.js → browser-CqdrcD5J.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { r as crescentSdf } from "./sdf-BDsv-WBk.js";
3
+ import { i as crescentSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { i as crossSdf } from "./sdf-BDsv-WBk.js";
3
+ import { a as crossSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { a as ellipseSdf } from "./sdf-BDsv-WBk.js";
3
+ import { o as ellipseSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { l as transformPosition } from "./transformations-B5lM6fYX.js";
2
- import { a as ellipseSdf, c as ringSdf, d as trapezoidSdf, f as vesicaSdf, i as crossSdf, l as roundedRectSdf, n as createSvgSdfSampler, o as flowerSdf, r as crescentSdf, s as polygonSdf, t as circleSdf, u as starSdf } from "./sdf-BDsv-WBk.js";
3
- import { Fn, abs, clamp, convertToTexture, cos, float, max, mix, screenUV, sin, smoothstep, sqrt, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
2
+ import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-vsljaiJ7.js";
3
+ import { Fn, abs, clamp, convertToTexture, cos, float, max, screenUV, sin, smoothstep, sqrt, vec2, vec3, vec4, viewportSize } from "three/tsl";
4
4
  var _INV_LIGHT_LEN = 1 / Math.sqrt(1.49);
5
5
  var _LZN = .7 * _INV_LIGHT_LEN;
6
6
  function applyEmbossEffect(childTexture, sdfSampler, uniforms) {
@@ -154,6 +154,11 @@ const componentDefinition = {
154
154
  default: "",
155
155
  compileTime: true,
156
156
  description: "URL to a pre-generated SDF .bin file — when non-empty, activates SVG mode and triggers a shader recompile"
157
+ },
158
+ shapeType: {
159
+ default: "",
160
+ compileTime: true,
161
+ description: "Active SDF shape type — triggers recompile when shape is switched. When empty, derived from shape JSON at mount time."
157
162
  }
158
163
  },
159
164
  fragmentNode: ({ uniforms, childNode, onCleanup, onBeforeRender }) => {
@@ -176,65 +181,7 @@ const componentDefinition = {
176
181
  }
177
182
  })();
178
183
  if (shapeSdfUrl) return applyEmbossEffect(childTexture, createSvgSdfSampler(shapeSdfUrl, onBeforeRender, onCleanup), uniforms);
179
- else {
180
- const SHAPE_MODES = {
181
- circleSDF: 0,
182
- polygonSDF: 1,
183
- flowerSDF: 2,
184
- ringSDF: 3,
185
- crossSDF: 4,
186
- starSDF: 5,
187
- roundedRectSDF: 6,
188
- ellipseSDF: 7,
189
- vesicaSDF: 8,
190
- crescentSDF: 9,
191
- trapezoidSDF: 10
192
- };
193
- const radiusU = uniform(initialConfig.radius ?? .35);
194
- const sidesU = uniform(initialConfig.sides ?? 6);
195
- const roundingU = uniform(initialConfig.rounding ?? 0);
196
- const innerRatioU = uniform(initialConfig.innerRatio ?? initialConfig.thickness ?? .4);
197
- const rotationU = uniform(initialConfig.rotation ?? 0);
198
- const heightU = uniform(initialConfig.height ?? .25);
199
- const offsetU = uniform(initialConfig.offset ?? .2);
200
- const shapeModeU = uniform(SHAPE_MODES[initialConfig.type] ?? 0);
201
- onBeforeRender(() => {
202
- try {
203
- const cfg = JSON.parse(uniforms.shape.uniform.value);
204
- radiusU.value = cfg.radius ?? cfg.width ?? cfg.bottomWidth ?? .35;
205
- sidesU.value = cfg.sides ?? 6;
206
- roundingU.value = cfg.rounding ?? 0;
207
- innerRatioU.value = cfg.innerRatio ?? cfg.thickness ?? cfg.spread ?? cfg.topWidth ?? cfg.topRatio ?? .4;
208
- rotationU.value = cfg.rotation ?? 0;
209
- heightU.value = cfg.height ?? .25;
210
- offsetU.value = cfg.offset ?? .2;
211
- shapeModeU.value = SHAPE_MODES[cfg.type] ?? 0;
212
- } catch {}
213
- });
214
- const sdfSampler = (uv$1) => {
215
- const dx = uv$1.x.sub(float(.5));
216
- const dy = uv$1.y.sub(float(.5));
217
- const rotRad = rotationU.mul(float(Math.PI / 180));
218
- const cosR = cos(rotRad);
219
- const sinR = sin(rotRad);
220
- const rdx = dx.mul(cosR).add(dy.mul(sinR));
221
- const rdy = dy.mul(cosR).sub(dx.mul(sinR));
222
- const circle = circleSdf(dx, dy, radiusU);
223
- const polygon = mix(polygonSdf(rdx, rdy, radiusU, sidesU), circle, roundingU);
224
- const flower = flowerSdf(rdx, rdy, radiusU, sidesU, innerRatioU);
225
- const ring = ringSdf(dx, dy, radiusU, innerRatioU);
226
- const cross = crossSdf(rdx, rdy, radiusU, innerRatioU, roundingU);
227
- const star = starSdf(rdx, rdy, radiusU, sidesU, innerRatioU);
228
- const roundedRect = roundedRectSdf(rdx, rdy, radiusU, heightU, roundingU);
229
- const ellipse = ellipseSdf(rdx, rdy, radiusU, heightU);
230
- const vesica = vesicaSdf(rdx, rdy, radiusU, innerRatioU);
231
- const crescent = crescentSdf(rdx, rdy, radiusU, innerRatioU, offsetU);
232
- const trapezoid = trapezoidSdf(rdx, rdy, innerRatioU, radiusU, heightU);
233
- const m = shapeModeU;
234
- return vec4(m.lessThan(float(.5)).select(circle, m.lessThan(float(1.5)).select(polygon, m.lessThan(float(2.5)).select(flower, m.lessThan(float(3.5)).select(ring, m.lessThan(float(4.5)).select(cross, m.lessThan(float(5.5)).select(star, m.lessThan(float(6.5)).select(roundedRect, m.lessThan(float(7.5)).select(ellipse, m.lessThan(float(8.5)).select(vesica, m.lessThan(float(9.5)).select(crescent, trapezoid)))))))))), float(0), float(0), float(1));
235
- };
236
- return applyEmbossEffect(childTexture, sdfSampler, uniforms);
237
- }
184
+ else return applyEmbossEffect(childTexture, createAnalyticSdfSampler(uniforms.shapeType.uniform.value || initialConfig.type || "circleSDF", initialConfig, uniforms.shape, onBeforeRender), uniforms);
238
185
  }
239
186
  };
240
187
  var Emboss_default = componentDefinition;
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { o as flowerSdf } from "./sdf-BDsv-WBk.js";
3
+ import { s as flowerSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -0,0 +1,145 @@
1
+ import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
+ import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
+ import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
4
+ import { Fn, abs, clamp, cos, float, mix, mx_noise_float, pow, screenUV, sin, smoothstep, vec2, vec3, vec4, viewportSize } from "three/tsl";
5
+ const componentDefinition = {
6
+ name: "FlowingGradient",
7
+ category: "Textures",
8
+ description: "Liquid silk gradient with organic flowing color bands",
9
+ props: {
10
+ colorA: {
11
+ default: "#0a0015",
12
+ transform: transformColor,
13
+ description: "Deep background color",
14
+ ui: {
15
+ type: "color",
16
+ label: "Color A",
17
+ group: "Colors"
18
+ }
19
+ },
20
+ colorB: {
21
+ default: "#6b17e6",
22
+ transform: transformColor,
23
+ description: "Primary accent color",
24
+ ui: {
25
+ type: "color",
26
+ label: "Color B",
27
+ group: "Colors"
28
+ }
29
+ },
30
+ colorC: {
31
+ default: "#ff4d6a",
32
+ transform: transformColor,
33
+ description: "Secondary accent color",
34
+ ui: {
35
+ type: "color",
36
+ label: "Color C",
37
+ group: "Colors"
38
+ }
39
+ },
40
+ colorD: {
41
+ default: "#ff6b35",
42
+ transform: transformColor,
43
+ description: "Tertiary accent color",
44
+ ui: {
45
+ type: "color",
46
+ label: "Color D",
47
+ group: "Colors"
48
+ }
49
+ },
50
+ colorSpace: {
51
+ default: "oklch",
52
+ transform: transformColorSpace,
53
+ compileTime: true,
54
+ description: "Color space for color interpolation",
55
+ ui: {
56
+ type: "select",
57
+ options: colorSpaceOptions,
58
+ label: "Color Space",
59
+ group: "Colors"
60
+ }
61
+ },
62
+ speed: {
63
+ default: 1,
64
+ description: "Animation speed",
65
+ ui: {
66
+ type: "range",
67
+ min: 0,
68
+ max: 10,
69
+ step: .1,
70
+ label: "Speed",
71
+ group: "Effect"
72
+ }
73
+ },
74
+ distortion: {
75
+ default: .5,
76
+ description: "Organic distortion intensity",
77
+ ui: {
78
+ type: ["range", "map"],
79
+ min: 0,
80
+ max: 2,
81
+ step: .1,
82
+ label: "Distortion",
83
+ group: "Effect"
84
+ }
85
+ },
86
+ seed: {
87
+ default: 0,
88
+ description: "Random seed for variation",
89
+ ui: {
90
+ type: ["range", "map"],
91
+ min: 0,
92
+ max: 100,
93
+ step: 1,
94
+ label: "Seed",
95
+ group: "Effect"
96
+ }
97
+ }
98
+ },
99
+ fragmentNode: (params) => {
100
+ const { uniforms } = params;
101
+ const colorA = uniforms.colorA.uniform;
102
+ const colorB = uniforms.colorB.uniform;
103
+ const colorC = uniforms.colorC.uniform;
104
+ const colorD = uniforms.colorD.uniform;
105
+ const csMode = uniforms.colorSpace.uniform.value;
106
+ const distortion = uniforms.distortion.uniform;
107
+ const seed = uniforms.seed.uniform;
108
+ const t = createAnimatedTime(params, uniforms.speed).mul(.075);
109
+ const aspect = viewportSize.x.div(viewportSize.y);
110
+ return Fn(() => {
111
+ const uv$1 = screenUV.sub(.5).toVar();
112
+ const seedOff = seed.mul(.17);
113
+ const angle = mx_noise_float(vec3(uv$1.x.mul(.8).add(t.mul(.4)), uv$1.y.mul(.8).sub(t.mul(.25)), seedOff)).mul(4 * Math.PI).mul(distortion);
114
+ const uvCorr = vec2(uv$1.x, uv$1.y.div(aspect));
115
+ const ca = cos(angle);
116
+ const sa = sin(angle);
117
+ uv$1.assign(vec2(uvCorr.x.mul(ca).sub(uvCorr.y.mul(sa)), uvCorr.x.mul(sa).add(uvCorr.y.mul(ca)).mul(aspect)));
118
+ const ws = t.mul(2);
119
+ uv$1.x.assign(uv$1.x.add(sin(uv$1.y.mul(5).add(ws)).div(50).mul(distortion)));
120
+ uv$1.y.assign(uv$1.y.add(sin(uv$1.x.mul(7.5).add(ws)).div(25).mul(distortion)));
121
+ const wp1 = vec3(uv$1.x.mul(2), uv$1.y.mul(2), t.mul(.5).add(seedOff));
122
+ const wx1 = mx_noise_float(wp1.add(vec3(5.2, 1.3, 0)));
123
+ const wy1 = mx_noise_float(wp1.add(vec3(1.7, 9.2, 0)));
124
+ uv$1.assign(uv$1.add(vec2(wx1, wy1).mul(.25).mul(distortion)));
125
+ const wp2 = vec3(uv$1.x.mul(1.5), uv$1.y.mul(1.5), t.mul(.3).add(seedOff));
126
+ const wx2 = mx_noise_float(wp2.add(vec3(8.3, 2.8, 0)));
127
+ const wy2 = mx_noise_float(wp2.add(vec3(3.1, 7.4, 0)));
128
+ uv$1.assign(uv$1.add(vec2(wx2, wy2).mul(.2).mul(distortion)));
129
+ const zoneNoise = mx_noise_float(vec3(uv$1.x.mul(1.8), uv$1.y.mul(1.8), t.mul(.3).add(seedOff)));
130
+ const edgeHardness = pow(wx1.mul(.5).add(.5), float(1.5));
131
+ const edgeWidth = mix(float(.5), float(.008), edgeHardness);
132
+ const t1 = smoothstep(edgeWidth.negate(), edgeWidth, zoneNoise);
133
+ const t2 = smoothstep(edgeWidth.negate(), edgeWidth, wy1);
134
+ const baseColor = mixColors(mixColors(colorA, colorB, t1, csMode), mixColors(colorC, colorD, t1, csMode), t2, csMode);
135
+ const foldMask1 = float(1).sub(abs(t1.mul(2).sub(1)));
136
+ const foldMask2 = float(1).sub(abs(t2.mul(2).sub(1)));
137
+ const foldHighlight = foldMask1.max(foldMask2).mul(edgeHardness);
138
+ const surfaceLight = wx2.mul(.5).add(.5).mul(.12).add(.94);
139
+ const baseAlpha = baseColor.w;
140
+ return vec4(clamp(baseColor.rgb.mul(surfaceLight).mul(float(1).add(foldHighlight.mul(.35))), 0, 1), baseAlpha);
141
+ })();
142
+ }
143
+ };
144
+ var FlowingGradient_default = componentDefinition;
145
+ export { componentDefinition as n, FlowingGradient_default as t };
@@ -1,8 +1,8 @@
1
1
  import { a as transformColor, l as transformPosition } from "./transformations-B5lM6fYX.js";
2
- import { a as ellipseSdf, c as ringSdf, d as trapezoidSdf, f as vesicaSdf, i as crossSdf, l as roundedRectSdf, n as createSvgSdfSampler, o as flowerSdf, r as crescentSdf, s as polygonSdf, t as circleSdf, u as starSdf } from "./sdf-BDsv-WBk.js";
3
- import { Fn, clamp, convertToTexture, cos, dot, exp2, float, max, mix, pow, screenUV, sin, smoothstep, sqrt, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
2
+ import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-vsljaiJ7.js";
3
+ import { Fn, clamp, convertToTexture, cos, dot, exp2, float, max, mix, pow, screenUV, sin, smoothstep, sqrt, vec2, vec3, vec4, viewportSize } from "three/tsl";
4
4
  var GOLDEN_ANGLE = 2.3999632297286535;
5
- var BLUR_SAMPLE_COUNT = 13;
5
+ var BLUR_SAMPLE_COUNT = 9;
6
6
  const BLUR_DISK = [];
7
7
  for (let i = 0; i < BLUR_SAMPLE_COUNT; i++) {
8
8
  const angle = i * GOLDEN_ANGLE;
@@ -334,6 +334,11 @@ const componentDefinition = {
334
334
  default: "",
335
335
  compileTime: true,
336
336
  description: "URL to a pre-generated SDF .bin file — when non-empty, activates SVG mode and triggers a shader recompile"
337
+ },
338
+ shapeType: {
339
+ default: "",
340
+ compileTime: true,
341
+ description: "Active SDF shape type — triggers recompile when shape is switched. When empty, derived from shape JSON at mount time."
337
342
  }
338
343
  },
339
344
  fragmentNode: ({ uniforms, childNode, onCleanup, onBeforeRender }) => {
@@ -356,65 +361,7 @@ const componentDefinition = {
356
361
  }
357
362
  })();
358
363
  if (shapeSdfUrl) return applyGlassEffect(childTexture, createSvgSdfSampler(shapeSdfUrl, onBeforeRender, onCleanup), uniforms);
359
- else {
360
- const SHAPE_MODES = {
361
- circleSDF: 0,
362
- polygonSDF: 1,
363
- flowerSDF: 2,
364
- ringSDF: 3,
365
- crossSDF: 4,
366
- starSDF: 5,
367
- roundedRectSDF: 6,
368
- ellipseSDF: 7,
369
- vesicaSDF: 8,
370
- crescentSDF: 9,
371
- trapezoidSDF: 10
372
- };
373
- const radiusU = uniform(initialConfig.radius ?? .35);
374
- const sidesU = uniform(initialConfig.sides ?? 6);
375
- const roundingU = uniform(initialConfig.rounding ?? 0);
376
- const innerRatioU = uniform(initialConfig.innerRatio ?? initialConfig.thickness ?? .4);
377
- const rotationU = uniform(initialConfig.rotation ?? 0);
378
- const heightU = uniform(initialConfig.height ?? .25);
379
- const offsetU = uniform(initialConfig.offset ?? .2);
380
- const shapeModeU = uniform(SHAPE_MODES[initialConfig.type] ?? 0);
381
- onBeforeRender(() => {
382
- try {
383
- const cfg = JSON.parse(uniforms.shape.uniform.value);
384
- radiusU.value = cfg.radius ?? cfg.width ?? cfg.bottomWidth ?? .35;
385
- sidesU.value = cfg.sides ?? 6;
386
- roundingU.value = cfg.rounding ?? 0;
387
- innerRatioU.value = cfg.innerRatio ?? cfg.thickness ?? cfg.spread ?? cfg.topWidth ?? cfg.topRatio ?? .4;
388
- rotationU.value = cfg.rotation ?? 0;
389
- heightU.value = cfg.height ?? .25;
390
- offsetU.value = cfg.offset ?? .2;
391
- shapeModeU.value = SHAPE_MODES[cfg.type] ?? 0;
392
- } catch {}
393
- });
394
- const sdfSampler = (uv$1) => {
395
- const dx = uv$1.x.sub(float(.5));
396
- const dy = uv$1.y.sub(float(.5));
397
- const rotRad = rotationU.mul(float(Math.PI / 180));
398
- const cosR = cos(rotRad);
399
- const sinR = sin(rotRad);
400
- const rdx = dx.mul(cosR).add(dy.mul(sinR));
401
- const rdy = dy.mul(cosR).sub(dx.mul(sinR));
402
- const circle = circleSdf(dx, dy, radiusU);
403
- const polygon = mix(polygonSdf(rdx, rdy, radiusU, sidesU), circle, roundingU);
404
- const flower = flowerSdf(rdx, rdy, radiusU, sidesU, innerRatioU);
405
- const ring = ringSdf(dx, dy, radiusU, innerRatioU);
406
- const cross = crossSdf(rdx, rdy, radiusU, innerRatioU, roundingU);
407
- const star = starSdf(rdx, rdy, radiusU, sidesU, innerRatioU);
408
- const roundedRect = roundedRectSdf(rdx, rdy, radiusU, heightU, roundingU);
409
- const ellipse = ellipseSdf(rdx, rdy, radiusU, heightU);
410
- const vesica = vesicaSdf(rdx, rdy, radiusU, innerRatioU);
411
- const crescent = crescentSdf(rdx, rdy, radiusU, innerRatioU, offsetU);
412
- const trapezoid = trapezoidSdf(rdx, rdy, innerRatioU, radiusU, heightU);
413
- const m = shapeModeU;
414
- return vec4(m.lessThan(float(.5)).select(circle, m.lessThan(float(1.5)).select(polygon, m.lessThan(float(2.5)).select(flower, m.lessThan(float(3.5)).select(ring, m.lessThan(float(4.5)).select(cross, m.lessThan(float(5.5)).select(star, m.lessThan(float(6.5)).select(roundedRect, m.lessThan(float(7.5)).select(ellipse, m.lessThan(float(8.5)).select(vesica, m.lessThan(float(9.5)).select(crescent, trapezoid)))))))))), float(0), float(0), float(1));
415
- };
416
- return applyGlassEffect(childTexture, sdfSampler, uniforms);
417
- }
364
+ else return applyGlassEffect(childTexture, createAnalyticSdfSampler(uniforms.shapeType.uniform.value || initialConfig.type || "circleSDF", initialConfig, uniforms.shape, onBeforeRender), uniforms);
418
365
  }
419
366
  };
420
367
  var Glass_default = componentDefinition;
@@ -1,5 +1,5 @@
1
1
  import { a as transformColor, l as transformPosition } from "./transformations-B5lM6fYX.js";
2
- import { a as ellipseSdf, c as ringSdf, d as trapezoidSdf, f as vesicaSdf, i as crossSdf, l as roundedRectSdf, n as createSvgSdfSampler, o as flowerSdf, r as crescentSdf, s as polygonSdf, t as circleSdf, u as starSdf } from "./sdf-BDsv-WBk.js";
2
+ import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-vsljaiJ7.js";
3
3
  import { Fn, atan, clamp, cos, exp, exp2, float, max, mix, pow, screenUV, sin, smoothstep, sqrt, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
4
4
  var _LZ = .7;
5
5
  var _INV_LIGHT_LEN = 1 / Math.sqrt(1 + _LZ * _LZ);
@@ -332,6 +332,11 @@ const componentDefinition = {
332
332
  default: "",
333
333
  compileTime: true,
334
334
  description: "URL to a pre-generated SDF .bin file — when non-empty, activates SVG mode and triggers a shader recompile"
335
+ },
336
+ shapeType: {
337
+ default: "",
338
+ compileTime: true,
339
+ description: "Active SDF shape type — triggers recompile when shape is switched. When empty, derived from shape JSON at mount time."
335
340
  }
336
341
  },
337
342
  fragmentNode: ({ uniforms, onCleanup, onBeforeRender }) => {
@@ -353,65 +358,7 @@ const componentDefinition = {
353
358
  }
354
359
  })();
355
360
  if (shapeSdfUrl) return applyNeonEffect(createSvgSdfSampler(shapeSdfUrl, onBeforeRender, onCleanup), uniforms, timeU);
356
- else {
357
- const SHAPE_MODES = {
358
- circleSDF: 0,
359
- polygonSDF: 1,
360
- flowerSDF: 2,
361
- ringSDF: 3,
362
- crossSDF: 4,
363
- starSDF: 5,
364
- roundedRectSDF: 6,
365
- ellipseSDF: 7,
366
- vesicaSDF: 8,
367
- crescentSDF: 9,
368
- trapezoidSDF: 10
369
- };
370
- const radiusU = uniform(initialConfig.radius ?? .35);
371
- const sidesU = uniform(initialConfig.sides ?? 6);
372
- const roundingU = uniform(initialConfig.rounding ?? 0);
373
- const innerRatioU = uniform(initialConfig.innerRatio ?? initialConfig.thickness ?? .4);
374
- const rotationU = uniform(initialConfig.rotation ?? 0);
375
- const heightU = uniform(initialConfig.height ?? .25);
376
- const offsetU = uniform(initialConfig.offset ?? .2);
377
- const shapeModeU = uniform(SHAPE_MODES[initialConfig.type] ?? 0);
378
- onBeforeRender(() => {
379
- try {
380
- const cfg = JSON.parse(uniforms.shape.uniform.value);
381
- radiusU.value = cfg.radius ?? cfg.width ?? cfg.bottomWidth ?? .35;
382
- sidesU.value = cfg.sides ?? 6;
383
- roundingU.value = cfg.rounding ?? 0;
384
- innerRatioU.value = cfg.innerRatio ?? cfg.thickness ?? cfg.spread ?? cfg.topWidth ?? cfg.topRatio ?? .4;
385
- rotationU.value = cfg.rotation ?? 0;
386
- heightU.value = cfg.height ?? .25;
387
- offsetU.value = cfg.offset ?? .2;
388
- shapeModeU.value = SHAPE_MODES[cfg.type] ?? 0;
389
- } catch {}
390
- });
391
- const sdfSampler = (uv$1) => {
392
- const dx = uv$1.x.sub(float(.5));
393
- const dy = uv$1.y.sub(float(.5));
394
- const rotRad = rotationU.mul(float(Math.PI / 180));
395
- const cosR = cos(rotRad);
396
- const sinR = sin(rotRad);
397
- const rdx = dx.mul(cosR).add(dy.mul(sinR));
398
- const rdy = dy.mul(cosR).sub(dx.mul(sinR));
399
- const circle = circleSdf(dx, dy, radiusU);
400
- const polygon = mix(polygonSdf(rdx, rdy, radiusU, sidesU), circle, roundingU);
401
- const flower = flowerSdf(rdx, rdy, radiusU, sidesU, innerRatioU);
402
- const ring = ringSdf(dx, dy, radiusU, innerRatioU);
403
- const cross = crossSdf(rdx, rdy, radiusU, innerRatioU, roundingU);
404
- const star = starSdf(rdx, rdy, radiusU, sidesU, innerRatioU);
405
- const roundedRect = roundedRectSdf(rdx, rdy, radiusU, heightU, roundingU);
406
- const ellipse = ellipseSdf(rdx, rdy, radiusU, heightU);
407
- const vesica = vesicaSdf(rdx, rdy, radiusU, innerRatioU);
408
- const crescent = crescentSdf(rdx, rdy, radiusU, innerRatioU, offsetU);
409
- const trapezoid = trapezoidSdf(rdx, rdy, innerRatioU, radiusU, heightU);
410
- const m = shapeModeU;
411
- return vec4(m.lessThan(float(.5)).select(circle, m.lessThan(float(1.5)).select(polygon, m.lessThan(float(2.5)).select(flower, m.lessThan(float(3.5)).select(ring, m.lessThan(float(4.5)).select(cross, m.lessThan(float(5.5)).select(star, m.lessThan(float(6.5)).select(roundedRect, m.lessThan(float(7.5)).select(ellipse, m.lessThan(float(8.5)).select(vesica, m.lessThan(float(9.5)).select(crescent, trapezoid)))))))))), float(0), float(0), float(1));
412
- };
413
- return applyNeonEffect(sdfSampler, uniforms, timeU);
414
- }
361
+ else return applyNeonEffect(createAnalyticSdfSampler(uniforms.shapeType.uniform.value || initialConfig.type || "circleSDF", initialConfig, uniforms.shape, onBeforeRender), uniforms, timeU);
415
362
  }
416
363
  };
417
364
  var Neon_default = componentDefinition;
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { s as polygonSdf, t as circleSdf } from "./sdf-BDsv-WBk.js";
3
+ import { c as polygonSdf, t as circleSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, mix, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { c as ringSdf } from "./sdf-BDsv-WBk.js";
3
+ import { l as ringSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { float, screenUV, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { l as roundedRectSdf } from "./sdf-BDsv-WBk.js";
3
+ import { u as roundedRectSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { u as starSdf } from "./sdf-BDsv-WBk.js";
3
+ import { d as starSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { d as trapezoidSdf } from "./sdf-BDsv-WBk.js";
3
+ import { f as trapezoidSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
2
2
  import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
3
- import { f as vesicaSdf } from "./sdf-BDsv-WBk.js";
3
+ import { p as vesicaSdf } from "./sdf-vsljaiJ7.js";
4
4
  import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
5
5
  var transformStrokePosition = (value) => {
6
6
  return {
@@ -1,4 +1,4 @@
1
- import { t as needsVideoCanvasWorkaround } from "./browser-daS5XZwr.js";
1
+ import { t as needsVideoCanvasWorkaround } from "./browser-CqdrcD5J.js";
2
2
  import { CanvasTexture, SRGBColorSpace, VideoTexture } from "three/webgpu";
3
3
  import { float, max, min, or, screenUV, select, step, texture, uniform, vec2, vec4, viewportSize } from "three/tsl";
4
4
  const componentDefinition = {
@@ -1,4 +1,4 @@
1
- import { t as needsVideoCanvasWorkaround } from "./browser-daS5XZwr.js";
1
+ import { t as needsVideoCanvasWorkaround } from "./browser-CqdrcD5J.js";
2
2
  import { CanvasTexture, SRGBColorSpace, VideoTexture } from "three/webgpu";
3
3
  import { float, max, min, or, screenUV, select, step, texture, uniform, vec2, vec4, viewportSize } from "three/tsl";
4
4
  const componentDefinition = {