kmcom-nuxt-layers 2.2.0 → 2.2.2

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 (359) hide show
  1. package/layers/animations/app/components/Motion/CountUp.vue +30 -30
  2. package/layers/animations/app/components/Motion/Magnetic.vue +14 -14
  3. package/layers/animations/app/components/Motion/Marquee.vue +59 -62
  4. package/layers/animations/app/components/Motion/MarqueeText.vue +2 -2
  5. package/layers/animations/app/components/Motion/Staggered.vue +45 -49
  6. package/layers/animations/app/components/Motion/TextReveal.vue +21 -19
  7. package/layers/animations/app/components/Motion/Tilt.vue +13 -13
  8. package/layers/animations/app/components/Motion/VelocityEffect.vue +80 -80
  9. package/layers/animations/app/composables/useCountUp.ts +1 -1
  10. package/layers/animations/app/composables/useMarqueeVelocity.ts +2 -2
  11. package/layers/canvas/app/components/ShaderCanvas.vue +42 -49
  12. package/layers/canvas/app/composables/useRendererCapabilities.ts +29 -21
  13. package/layers/canvas/app/composables/useShaderTime.ts +4 -5
  14. package/layers/canvas/app/types/renderer.ts +5 -0
  15. package/layers/content/app/components/Blog/Article.vue +10 -7
  16. package/layers/content/app/components/Blog/Card.vue +0 -1
  17. package/layers/content/app/components/Blog/List.vue +2 -4
  18. package/layers/content/app/components/Gallery/AmbientImage.vue +0 -1
  19. package/layers/content/app/components/Gallery/Card.vue +0 -1
  20. package/layers/content/app/components/Gallery/Detail.vue +0 -2
  21. package/layers/content/app/components/Gallery/Grid.vue +0 -2
  22. package/layers/content/app/components/Gallery/ImageDetail.vue +0 -2
  23. package/layers/content/app/components/Gallery/Lightbox.vue +1 -6
  24. package/layers/content/app/components/NuxtContent/Detail.vue +3 -4
  25. package/layers/content/app/components/NuxtContent/List.vue +0 -1
  26. package/layers/content/app/components/NuxtContent/Surround.vue +0 -1
  27. package/layers/content/app/components/NuxtContent/Toc.vue +0 -1
  28. package/layers/content/app/components/Portfolio/Card.vue +0 -1
  29. package/layers/content/app/components/Portfolio/ColorPalette.vue +0 -1
  30. package/layers/content/app/components/Portfolio/Detail.vue +2 -4
  31. package/layers/content/app/components/Portfolio/ItemPage.vue +3 -1
  32. package/layers/content/app/components/Portfolio/List.vue +20 -5
  33. package/layers/content/app/components/Portfolio/Typography.vue +0 -1
  34. package/layers/content/app/components/content/Figure.vue +0 -1
  35. package/layers/content/app/composables/createPortfolioComposables.ts +21 -7
  36. package/layers/content/app/composables/useCollectionItem.ts +2 -3
  37. package/layers/content/app/composables/useCollectionSurround.ts +2 -3
  38. package/layers/content/app/composables/useContentPage.ts +0 -2
  39. package/layers/content/app/composables/useGalleryItems.ts +0 -2
  40. package/layers/content/app/composables/usePortfolioItems.ts +0 -2
  41. package/layers/content/app/types/app-config.d.ts +3 -1
  42. package/layers/content/app/types/collections.d.ts +46 -0
  43. package/layers/content/nuxt.config.ts +0 -1
  44. package/layers/core/app/components/ErrorBoundary.vue +0 -3
  45. package/layers/core/app/composables/useBrowser.ts +0 -1
  46. package/layers/core/app/composables/useCache.ts +0 -3
  47. package/layers/core/app/composables/useErrorLog.ts +0 -2
  48. package/layers/core/app/composables/useFeatures.ts +0 -3
  49. package/layers/core/app/composables/useLoading.ts +16 -15
  50. package/layers/core/app/composables/useNetworkInfo.ts +0 -2
  51. package/layers/core/app/composables/usePWAInfo.ts +0 -1
  52. package/layers/core/app/composables/useRendering.ts +0 -2
  53. package/layers/core/app/composables/useScreen.ts +0 -2
  54. package/layers/core/app/composables/useScrollGuard.ts +44 -44
  55. package/layers/core/app/layouts/default.vue +0 -1
  56. package/layers/core/app/plugins/error-handler.ts +4 -2
  57. package/layers/core/app/plugins/feature-detection.client.ts +4 -4
  58. package/layers/core/app/plugins/init.ts +4 -6
  59. package/layers/core/app/plugins/loading.client.ts +4 -3
  60. package/layers/core/app/plugins/scroll-guard.client.ts +4 -4
  61. package/layers/core/app/types/app-config.d.ts +1 -1
  62. package/layers/core/app/types/runtime-config.ts +13 -1
  63. package/layers/core/app/utils/helpers.ts +0 -4
  64. package/layers/feeds/app/app.config.ts +1 -1
  65. package/layers/feeds/app/plugins/feed-head.ts +4 -3
  66. package/layers/feeds/package.json +1 -1
  67. package/layers/forms/app/components/Form/Contact.vue +0 -2
  68. package/layers/forms/app/components/Form/Field.vue +0 -1
  69. package/layers/forms/app/composables/useFormSchema.ts +0 -1
  70. package/layers/forms/app/types/app-config.d.ts +1 -1
  71. package/layers/layout/app/components/Layout/Grid/Item.vue +0 -3
  72. package/layers/layout/app/components/Layout/Page/Container.vue +0 -4
  73. package/layers/layout/app/components/Layout/Page/Header.vue +0 -1
  74. package/layers/layout/app/components/Layout/Page/index.vue +0 -1
  75. package/layers/layout/app/components/Layout/Section/Gallery.vue +0 -1
  76. package/layers/layout/app/components/Layout/Section/Hero.vue +0 -3
  77. package/layers/layout/app/components/Layout/Section/Stack.vue +0 -3
  78. package/layers/layout/app/components/Layout/Section/Title.vue +0 -1
  79. package/layers/layout/app/composables/useGridConfig.ts +0 -1
  80. package/layers/layout/app/types/app-config.d.ts +6 -3
  81. package/layers/navigation/app/app.config.ts +1 -2
  82. package/layers/navigation/app/components/Links/Group.vue +0 -4
  83. package/layers/navigation/app/components/Links/Named.vue +0 -4
  84. package/layers/navigation/app/composables/mastNav.ts +0 -1
  85. package/layers/navigation/app/composables/toast.ts +0 -1
  86. package/layers/navigation/app/composables/useSite.ts +0 -1
  87. package/layers/navigation/app/utils/createModal.ts +0 -1
  88. package/layers/page-transitions/app/app.config.ts +1 -1
  89. package/layers/page-transitions/app/plugins/page-transitions.client.ts +4 -2
  90. package/layers/routing/app/composables/useRoutingConfig.ts +0 -1
  91. package/layers/routing/app/plugins/feature-flags.client.ts +4 -2
  92. package/layers/routing/app/plugins/scroll-routing.client.ts +4 -2
  93. package/layers/routing/app/types/app-config.d.ts +1 -2
  94. package/layers/routing/nuxt.config.ts +0 -1
  95. package/layers/scripts/app/app.config.ts +1 -2
  96. package/layers/scripts/app/composables/useAnalytics.ts +6 -6
  97. package/layers/scripts/app/composables/useGtm.ts +4 -4
  98. package/layers/scripts/app/composables/useScriptLoader.ts +12 -1
  99. package/layers/scroll/app/components/Motion/HorizontalScroll.vue +4 -1
  100. package/layers/scroll/app/components/Motion/Parallax.vue +38 -42
  101. package/layers/scroll/app/components/Motion/PinnedSection.vue +4 -1
  102. package/layers/scroll/app/components/Motion/ScrollLink.vue +26 -29
  103. package/layers/scroll/app/components/Motion/ScrollProgress.vue +38 -44
  104. package/layers/scroll/app/components/Motion/ScrollScene.vue +0 -1
  105. package/layers/scroll/app/components/Motion/ScrollStats.vue +19 -23
  106. package/layers/scroll/app/composables/useSmoothScroll.ts +21 -24
  107. package/layers/scroll/app/plugins/locomotive-scroll.client.ts +5 -2
  108. package/layers/seo/app/app.config.ts +0 -1
  109. package/layers/seo/app/composables/useSeoConfig.ts +0 -1
  110. package/layers/shader/app/components/Effect/PostProcessing.vue +3 -13
  111. package/layers/shader/app/components/Material/AmbientAurora.client.vue +41 -47
  112. package/layers/shader/app/components/Material/AmbientFlow.client.vue +47 -56
  113. package/layers/shader/app/components/Material/AmbientGradientMesh.client.vue +45 -51
  114. package/layers/shader/app/components/Material/AmbientNebula.client.vue +47 -53
  115. package/layers/shader/app/components/Material/AmbientOcean.client.vue +40 -46
  116. package/layers/shader/app/components/Material/Fresnel.client.vue +24 -29
  117. package/layers/shader/app/components/Material/Gradient.client.vue +61 -67
  118. package/layers/shader/app/components/Material/Image.client.vue +65 -71
  119. package/layers/shader/app/components/Material/Node.client.vue +46 -46
  120. package/layers/shader/app/components/Material/Noise.client.vue +48 -54
  121. package/layers/shader/app/components/Mesh/Plane.vue +15 -20
  122. package/layers/shader/app/components/Node/Color.client.vue +3 -4
  123. package/layers/shader/app/components/Node/Fresnel.client.vue +17 -26
  124. package/layers/shader/app/components/Node/Gradient.client.vue +36 -42
  125. package/layers/shader/app/components/Node/Mix.client.vue +13 -19
  126. package/layers/shader/app/components/Node/Noise.client.vue +0 -3
  127. package/layers/shader/app/components/Pipeline/ACESTonemap.client.vue +0 -2
  128. package/layers/shader/app/components/Pipeline/AddBlend.client.vue +15 -16
  129. package/layers/shader/app/components/Pipeline/AgedFilm.client.vue +27 -28
  130. package/layers/shader/app/components/Pipeline/Aurora.client.vue +37 -44
  131. package/layers/shader/app/components/Pipeline/BilinearGradient.client.vue +26 -33
  132. package/layers/shader/app/components/Pipeline/BillowNoise.client.vue +22 -23
  133. package/layers/shader/app/components/Pipeline/BrightnessContrast.client.vue +16 -20
  134. package/layers/shader/app/components/Pipeline/CellularNoise.client.vue +22 -23
  135. package/layers/shader/app/components/Pipeline/ChannelMixer.client.vue +28 -35
  136. package/layers/shader/app/components/Pipeline/ChebyshevNoiseField.client.vue +31 -31
  137. package/layers/shader/app/components/Pipeline/Checkerboard.client.vue +21 -23
  138. package/layers/shader/app/components/Pipeline/ChromaticAberration.client.vue +21 -23
  139. package/layers/shader/app/components/Pipeline/ChromaticScreenWaves.client.vue +31 -30
  140. package/layers/shader/app/components/Pipeline/Circle.client.vue +22 -23
  141. package/layers/shader/app/components/Pipeline/Clouds.client.vue +36 -43
  142. package/layers/shader/app/components/Pipeline/ColorBurnBlend.client.vue +15 -17
  143. package/layers/shader/app/components/Pipeline/ColorDodgeBlend.client.vue +15 -17
  144. package/layers/shader/app/components/Pipeline/ColourRamp.client.vue +28 -35
  145. package/layers/shader/app/components/Pipeline/ComplexPlaneField.client.vue +31 -38
  146. package/layers/shader/app/components/Pipeline/ConicGradient.client.vue +19 -21
  147. package/layers/shader/app/components/Pipeline/CosinePalette.client.vue +42 -49
  148. package/layers/shader/app/components/Pipeline/CoverageAlpha.client.vue +0 -4
  149. package/layers/shader/app/components/Pipeline/Cross.client.vue +28 -28
  150. package/layers/shader/app/components/Pipeline/CurlNoise.client.vue +26 -27
  151. package/layers/shader/app/components/Pipeline/DarkenBlend.client.vue +15 -17
  152. package/layers/shader/app/components/Pipeline/DayNightCycle.client.vue +26 -27
  153. package/layers/shader/app/components/Pipeline/Desaturate.client.vue +8 -15
  154. package/layers/shader/app/components/Pipeline/DiagonalGradient.client.vue +19 -21
  155. package/layers/shader/app/components/Pipeline/DiamondGradient.client.vue +19 -21
  156. package/layers/shader/app/components/Pipeline/DifferenceBlend.client.vue +15 -17
  157. package/layers/shader/app/components/Pipeline/DivideBlend.client.vue +14 -17
  158. package/layers/shader/app/components/Pipeline/DomainWarpedNoise.client.vue +30 -37
  159. package/layers/shader/app/components/Pipeline/Dots.client.vue +26 -33
  160. package/layers/shader/app/components/Pipeline/DuoTone.client.vue +16 -19
  161. package/layers/shader/app/components/Pipeline/ExclusionBlend.client.vue +14 -17
  162. package/layers/shader/app/components/Pipeline/ExponentialFog.client.vue +21 -23
  163. package/layers/shader/app/components/Pipeline/Exposure.client.vue +8 -15
  164. package/layers/shader/app/components/Pipeline/FBMNoise.client.vue +28 -36
  165. package/layers/shader/app/components/Pipeline/FilmBurn.client.vue +27 -28
  166. package/layers/shader/app/components/Pipeline/FilmGrain.client.vue +29 -29
  167. package/layers/shader/app/components/Pipeline/FisheyeRay.client.vue +11 -18
  168. package/layers/shader/app/components/Pipeline/Flame.client.vue +26 -27
  169. package/layers/shader/app/components/Pipeline/FocalGradient.client.vue +24 -25
  170. package/layers/shader/app/components/Pipeline/Gamma.client.vue +8 -14
  171. package/layers/shader/app/components/Pipeline/GodRays.client.vue +32 -39
  172. package/layers/shader/app/components/Pipeline/GradientNoise.client.vue +22 -22
  173. package/layers/shader/app/components/Pipeline/Grain.client.vue +34 -41
  174. package/layers/shader/app/components/Pipeline/Grid.client.vue +24 -24
  175. package/layers/shader/app/components/Pipeline/Halation.client.vue +22 -24
  176. package/layers/shader/app/components/Pipeline/Halftone.client.vue +16 -18
  177. package/layers/shader/app/components/Pipeline/HardLightBlend.client.vue +15 -16
  178. package/layers/shader/app/components/Pipeline/Haze.client.vue +22 -24
  179. package/layers/shader/app/components/Pipeline/Hexagon.client.vue +22 -22
  180. package/layers/shader/app/components/Pipeline/Hue.client.vue +8 -12
  181. package/layers/shader/app/components/Pipeline/Invert.client.vue +0 -1
  182. package/layers/shader/app/components/Pipeline/LensFlare.client.vue +27 -25
  183. package/layers/shader/app/components/Pipeline/LightenBlend.client.vue +15 -14
  184. package/layers/shader/app/components/Pipeline/LinearGradient.client.vue +17 -21
  185. package/layers/shader/app/components/Pipeline/LinearGradient4.client.vue +29 -33
  186. package/layers/shader/app/components/Pipeline/LinearToSRGB.client.vue +8 -12
  187. package/layers/shader/app/components/Pipeline/Marble.client.vue +41 -47
  188. package/layers/shader/app/components/Pipeline/MixBlend.client.vue +21 -27
  189. package/layers/shader/app/components/Pipeline/MonochromeTint.client.vue +16 -21
  190. package/layers/shader/app/components/Pipeline/MultiplyBlend.client.vue +15 -16
  191. package/layers/shader/app/components/Pipeline/NoisyGradient.client.vue +34 -40
  192. package/layers/shader/app/components/Pipeline/NoisyGradientBlend.client.vue +54 -60
  193. package/layers/shader/app/components/Pipeline/OverlayBlend.client.vue +15 -16
  194. package/layers/shader/app/components/Pipeline/PaperTexture.client.vue +22 -24
  195. package/layers/shader/app/components/Pipeline/Polygon.client.vue +32 -39
  196. package/layers/shader/app/components/Pipeline/Posterise.client.vue +8 -14
  197. package/layers/shader/app/components/Pipeline/RadialGradient.client.vue +18 -24
  198. package/layers/shader/app/components/Pipeline/RayAutoOrbit.client.vue +16 -18
  199. package/layers/shader/app/components/Pipeline/RayMouseOrbit.client.vue +16 -18
  200. package/layers/shader/app/components/Pipeline/RayRotateX.client.vue +8 -14
  201. package/layers/shader/app/components/Pipeline/RayRotateY.client.vue +8 -14
  202. package/layers/shader/app/components/Pipeline/RayRotateZ.client.vue +8 -14
  203. package/layers/shader/app/components/Pipeline/RayTiltBasis.client.vue +21 -22
  204. package/layers/shader/app/components/Pipeline/RaymarchTunnel.client.vue +34 -40
  205. package/layers/shader/app/components/Pipeline/Rectangle.client.vue +30 -36
  206. package/layers/shader/app/components/Pipeline/ReinhardTonemap.client.vue +0 -3
  207. package/layers/shader/app/components/Pipeline/RidgedNoise.client.vue +22 -22
  208. package/layers/shader/app/components/Pipeline/Ring.client.vue +26 -32
  209. package/layers/shader/app/components/Pipeline/RingField.client.vue +36 -33
  210. package/layers/shader/app/components/Pipeline/RisographGrain.client.vue +29 -35
  211. package/layers/shader/app/components/Pipeline/RotatedGradientBlend.client.vue +29 -35
  212. package/layers/shader/app/components/Pipeline/SDFColourMask.client.vue +15 -18
  213. package/layers/shader/app/components/Pipeline/SDFRadialMask.client.vue +16 -18
  214. package/layers/shader/app/components/Pipeline/SRGBToLinear.client.vue +8 -14
  215. package/layers/shader/app/components/Pipeline/Saturation.client.vue +8 -14
  216. package/layers/shader/app/components/Pipeline/Scanlines.client.vue +21 -22
  217. package/layers/shader/app/components/Pipeline/ScreenBlend.client.vue +15 -16
  218. package/layers/shader/app/components/Pipeline/ShaderDebugger.client.vue +28 -29
  219. package/layers/shader/app/components/Pipeline/SimplexNoise.client.vue +25 -32
  220. package/layers/shader/app/components/Pipeline/SkyAtmosphere.client.vue +37 -44
  221. package/layers/shader/app/components/Pipeline/SoftLightBlend.client.vue +15 -16
  222. package/layers/shader/app/components/Pipeline/SolidColour.client.vue +7 -16
  223. package/layers/shader/app/components/Pipeline/SplitTone.client.vue +27 -28
  224. package/layers/shader/app/components/Pipeline/Star.client.vue +31 -37
  225. package/layers/shader/app/components/Pipeline/Starfield.client.vue +29 -27
  226. package/layers/shader/app/components/Pipeline/Stripes.client.vue +28 -27
  227. package/layers/shader/app/components/Pipeline/SubtractBlend.client.vue +15 -16
  228. package/layers/shader/app/components/Pipeline/TanhTonemap.client.vue +8 -17
  229. package/layers/shader/app/components/Pipeline/Threshold.client.vue +8 -14
  230. package/layers/shader/app/components/Pipeline/Tint.client.vue +16 -18
  231. package/layers/shader/app/components/Pipeline/Triangle.client.vue +22 -22
  232. package/layers/shader/app/components/Pipeline/UVAspectCorrect.client.vue +0 -2
  233. package/layers/shader/app/components/Pipeline/UVBreath.client.vue +16 -18
  234. package/layers/shader/app/components/Pipeline/UVBulge.client.vue +16 -18
  235. package/layers/shader/app/components/Pipeline/UVClamp.client.vue +0 -3
  236. package/layers/shader/app/components/Pipeline/UVColumnOffset.client.vue +16 -18
  237. package/layers/shader/app/components/Pipeline/UVFlipX.client.vue +0 -3
  238. package/layers/shader/app/components/Pipeline/UVFlipXY.client.vue +0 -3
  239. package/layers/shader/app/components/Pipeline/UVFlipY.client.vue +0 -3
  240. package/layers/shader/app/components/Pipeline/UVFractBand.client.vue +16 -18
  241. package/layers/shader/app/components/Pipeline/UVMousePull.client.vue +8 -14
  242. package/layers/shader/app/components/Pipeline/UVNoiseRotate.client.vue +21 -27
  243. package/layers/shader/app/components/Pipeline/UVNoiseWarp.client.vue +21 -22
  244. package/layers/shader/app/components/Pipeline/UVOrbit.client.vue +8 -14
  245. package/layers/shader/app/components/Pipeline/UVParallax.client.vue +8 -18
  246. package/layers/shader/app/components/Pipeline/UVPixelate.client.vue +7 -14
  247. package/layers/shader/app/components/Pipeline/UVPulse.client.vue +16 -18
  248. package/layers/shader/app/components/Pipeline/UVRipple.client.vue +26 -26
  249. package/layers/shader/app/components/Pipeline/UVRotate.client.vue +16 -22
  250. package/layers/shader/app/components/Pipeline/UVScale.client.vue +16 -22
  251. package/layers/shader/app/components/Pipeline/UVScroll.client.vue +12 -18
  252. package/layers/shader/app/components/Pipeline/UVScrollX.client.vue +8 -14
  253. package/layers/shader/app/components/Pipeline/UVScrollY.client.vue +8 -14
  254. package/layers/shader/app/components/Pipeline/UVShear.client.vue +16 -18
  255. package/layers/shader/app/components/Pipeline/UVSineWarpXY.client.vue +18 -24
  256. package/layers/shader/app/components/Pipeline/UVSwapAxes.client.vue +0 -3
  257. package/layers/shader/app/components/Pipeline/UVTile.client.vue +12 -18
  258. package/layers/shader/app/components/Pipeline/UVTwirl.client.vue +16 -18
  259. package/layers/shader/app/components/Pipeline/UVWarp.client.vue +21 -22
  260. package/layers/shader/app/components/Pipeline/VHSBleed.client.vue +27 -28
  261. package/layers/shader/app/components/Pipeline/ValueNoise.client.vue +22 -22
  262. package/layers/shader/app/components/Pipeline/Vibrance.client.vue +11 -17
  263. package/layers/shader/app/components/Pipeline/Vignette.client.vue +14 -20
  264. package/layers/shader/app/components/Pipeline/VoronoiEdges.client.vue +29 -28
  265. package/layers/shader/app/components/Pipeline/Water.client.vue +31 -37
  266. package/layers/shader/app/components/Pipeline/WaveBendLayer.client.vue +26 -32
  267. package/layers/shader/app/components/Pipeline/WaveColourLayer.client.vue +37 -36
  268. package/layers/shader/app/components/Pipeline/WhiteBalance.client.vue +23 -26
  269. package/layers/shader/app/components/Pipeline/Wood.client.vue +34 -40
  270. package/layers/shader/app/components/Preset/Aurora.client.vue +0 -7
  271. package/layers/shader/app/components/Preset/Flow.client.vue +15 -23
  272. package/layers/shader/app/components/Preset/GradientMesh.client.vue +15 -23
  273. package/layers/shader/app/components/Preset/Nebula.client.vue +15 -25
  274. package/layers/shader/app/components/Preset/Ocean.client.vue +15 -24
  275. package/layers/shader/app/components/Preset/ThemeAurora.client.vue +38 -47
  276. package/layers/shader/app/components/Preset/ThemeBubble.client.vue +38 -47
  277. package/layers/shader/app/components/Preset/ThemeFlow.client.vue +38 -47
  278. package/layers/shader/app/components/Preset/ThemeGradient.client.vue +38 -47
  279. package/layers/shader/app/components/Preset/ThemeLavaLamp.client.vue +38 -47
  280. package/layers/shader/app/components/Preset/ThemePlasma.client.vue +38 -47
  281. package/layers/shader/app/components/Preset/ThemeWave.client.vue +38 -47
  282. package/layers/shader/app/components/Shader/Background.client.vue +109 -75
  283. package/layers/shader/app/components/Shader/Debug.vue +4 -14
  284. package/layers/shader/app/components/Shader/Host.client.vue +7 -9
  285. package/layers/shader/app/components/Shader/Material.client.vue +8 -20
  286. package/layers/shader/app/components/Shader/Pipeline.client.vue +0 -6
  287. package/layers/shader/app/components/Shader/Runtime.client.vue +0 -5
  288. package/layers/shader/app/composables/useAmbientMaterials.ts +4 -9
  289. package/layers/shader/app/composables/useCSSColourUniform.ts +0 -4
  290. package/layers/shader/app/composables/useCSSFloatUniform.ts +0 -3
  291. package/layers/shader/app/composables/useShader.ts +1 -4
  292. package/layers/shader/app/composables/useShaderColor.ts +4 -6
  293. package/layers/shader/app/composables/useShaderFloat.ts +1 -3
  294. package/layers/shader/app/composables/useShaderGraph.ts +4 -5
  295. package/layers/shader/app/composables/useShaderRuntime.ts +0 -5
  296. package/layers/shader/app/composables/useShaderVec2.ts +4 -8
  297. package/layers/shader/app/composables/useSunDirectionUniform.ts +0 -6
  298. package/layers/shader/app/composables/useThemeColors.ts +0 -1
  299. package/layers/shader/app/composables/useUniforms.ts +25 -9
  300. package/layers/shader/app/plugins/shader.client.ts +4 -3
  301. package/layers/shader/app/shaders/common/blend.ts +2 -4
  302. package/layers/shader/app/shaders/common/complex.ts +0 -2
  303. package/layers/shader/app/shaders/common/effects.ts +5 -13
  304. package/layers/shader/app/shaders/common/grain.ts +2 -7
  305. package/layers/shader/app/shaders/common/lighting.ts +0 -3
  306. package/layers/shader/app/shaders/common/math.ts +12 -8
  307. package/layers/shader/app/shaders/common/noise.ts +48 -48
  308. package/layers/shader/app/shaders/common/noiseHelpers.ts +6 -6
  309. package/layers/shader/app/shaders/common/palette.ts +10 -11
  310. package/layers/shader/app/shaders/common/patterns.ts +1 -4
  311. package/layers/shader/app/shaders/common/sdf.ts +11 -7
  312. package/layers/shader/app/shaders/common/shapes.ts +25 -15
  313. package/layers/shader/app/shaders/common/tonemapping.ts +0 -2
  314. package/layers/shader/app/shaders/common/uv.ts +20 -29
  315. package/layers/shader/app/shaders/createMaterial.ts +2 -5
  316. package/layers/shader/app/shaders/layers/aurora.ts +14 -17
  317. package/layers/shader/app/shaders/layers/meshGradient.ts +13 -16
  318. package/layers/shader/app/shaders/layers/paperShading.ts +15 -19
  319. package/layers/shader/app/shaders/layers/shaderGradient.ts +18 -23
  320. package/layers/shader/app/shaders/layers/stripe.ts +14 -17
  321. package/layers/shader/app/shaders/types.ts +9 -1
  322. package/layers/shader/app/types/app-config.d.ts +1 -1
  323. package/layers/shader/app/types/tsl.ts +0 -1
  324. package/layers/shader/app/types/uniforms.ts +0 -1
  325. package/layers/shader/app/utils/tsl/animation.ts +50 -52
  326. package/layers/shader/app/utils/tsl/color.ts +20 -19
  327. package/layers/shader/app/utils/tsl/noise.ts +10 -12
  328. package/layers/shader/app/utils/tsl/oklch.ts +6 -7
  329. package/layers/shader/app/utils/tsl/patterns.ts +4 -6
  330. package/layers/shader/app/utils/tsl/tween.ts +2 -4
  331. package/layers/shader/app/utils/tsl/uv.ts +6 -6
  332. package/layers/theme/app/components/ThemePicker/AccentButton.vue +1 -3
  333. package/layers/theme/app/components/ThemePicker/Colors.vue +0 -1
  334. package/layers/theme/app/composables/useAccentColor.ts +0 -1
  335. package/layers/theme/app/plugins/theme.client.ts +4 -3
  336. package/layers/theme/app/types/app-config.d.ts +1 -2
  337. package/layers/transitions/app/components/Motion/Transition.vue +15 -22
  338. package/layers/typography/app/components/Typography/CodeBlock.vue +16 -19
  339. package/layers/typography/app/components/Typography/Headline.vue +46 -49
  340. package/layers/typography/app/components/Typography/HeadlineScreen.vue +36 -40
  341. package/layers/typography/app/components/Typography/QuoteBlock.vue +3 -4
  342. package/layers/typography/app/components/Typography/TextStroke.vue +15 -20
  343. package/layers/typography/app/components/Typography/index.vue +0 -4
  344. package/layers/typography/app/composables/typography.ts +9 -11
  345. package/layers/visual/app/app.config.ts +1 -2
  346. package/layers/visual/app/components/Accent/Blob.vue +0 -3
  347. package/layers/visual/app/components/Accent/Scene.vue +12 -17
  348. package/layers/visual/app/components/Base/Modal.vue +0 -1
  349. package/layers/visual/app/components/Gradient/Background.vue +10 -13
  350. package/layers/visual/app/components/Gradient/Text.vue +10 -13
  351. package/layers/visual/app/components/Media/Picture.vue +0 -1
  352. package/layers/visual/app/components/Progress/Bar.vue +0 -1
  353. package/layers/visual/app/components/Progress/Circular.vue +0 -1
  354. package/layers/visual/app/components/Tint/Overlay.vue +0 -2
  355. package/layers/visual/app/composables/gradient.ts +6 -11
  356. package/layers/visual/app/composables/picture.ts +0 -1
  357. package/layers/visual/app/composables/tint.ts +0 -1
  358. package/layers/visual/app/types/media.ts +0 -1
  359. package/package.json +3 -2
@@ -1,54 +1,54 @@
1
- <!-- eslint-disable vue/define-props-destructuring -->
2
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
3
1
  <script setup lang="ts">
4
- // @ts-nocheck
5
2
  import { Color, Vector3 } from 'three'
6
3
  import { float, mix, time, uniform, vec4 } from 'three/tsl'
7
4
 
8
5
  import { valueNoise2D } from '../../shaders/common/noise'
9
6
 
10
- const props = withDefaults(
11
- defineProps<{
12
- colorA?: string
13
- colorB?: string
14
- scale?: number
15
- speed?: number
16
- order?: number
17
- }>(),
18
- { colorA: '#000000', colorB: '#ffffff', scale: 4, speed: 0.2, order: 0 }
19
- )
7
+ const {
8
+ colorA = '#000000',
9
+ colorB = '#ffffff',
10
+ scale = 4,
11
+ speed = 0.2,
12
+ order = 0,
13
+ } = defineProps<{
14
+ colorA?: string
15
+ colorB?: string
16
+ scale?: number
17
+ speed?: number
18
+ order?: number
19
+ }>()
20
20
 
21
21
  function toVec3Node(hex: string) {
22
22
  const c = new Color(hex)
23
23
  return uniform(new Vector3(c.r, c.g, c.b))
24
24
  }
25
25
 
26
- const colorANode = toVec3Node(props.colorA)
27
- const colorBNode = toVec3Node(props.colorB)
28
- const scaleNode = uniform(props.scale)
29
- const speedNode = uniform(props.speed)
26
+ const colorANode = toVec3Node(colorA)
27
+ const colorBNode = toVec3Node(colorB)
28
+ const scaleNode = uniform(scale)
29
+ const speedNode = uniform(speed)
30
30
  watch(
31
- () => props.colorA,
31
+ () => colorA,
32
32
  (v) => {
33
33
  const c = new Color(v)
34
34
  colorANode.value.set(c.r, c.g, c.b)
35
35
  }
36
36
  )
37
37
  watch(
38
- () => props.colorB,
38
+ () => colorB,
39
39
  (v) => {
40
40
  const c = new Color(v)
41
41
  colorBNode.value.set(c.r, c.g, c.b)
42
42
  }
43
43
  )
44
44
  watch(
45
- () => props.scale,
45
+ () => scale,
46
46
  (v) => {
47
47
  scaleNode.value = v
48
48
  }
49
49
  )
50
50
  watch(
51
- () => props.speed,
51
+ () => speed,
52
52
  (v) => {
53
53
  speedNode.value = v
54
54
  }
@@ -62,5 +62,5 @@
62
62
  .mul(0.5)
63
63
  .add(0.5)
64
64
  return vec4(mix(colorANode, colorBNode, t), float(1))
65
- }, props.order)
65
+ }, order)
66
66
  </script>
@@ -1,30 +1,24 @@
1
- <!-- eslint-disable vue/define-props-destructuring -->
2
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
3
1
  <script setup lang="ts">
4
- // @ts-nocheck
5
2
  import { uniform, vec4 } from 'three/tsl'
6
3
 
7
4
  import { vibrance } from '../../shaders/common/palette'
8
5
 
9
- const props = withDefaults(
10
- defineProps<{
11
- /**
12
- * Saturation boost that protects already-saturated colours.
13
- * 0 = unchanged, positive = more vivid, negative = less.
14
- */
15
- amount?: number
16
- order?: number
17
- }>(),
18
- { amount: 0.5, order: 0 }
19
- )
6
+ const { amount = 0.5, order = 0 } = defineProps<{
7
+ /**
8
+ * Saturation boost that protects already-saturated colours.
9
+ * 0 = unchanged, positive = more vivid, negative = less.
10
+ */
11
+ amount?: number
12
+ order?: number
13
+ }>()
20
14
 
21
- const amountNode = uniform(props.amount)
15
+ const amountNode = uniform(amount)
22
16
  watch(
23
- () => props.amount,
17
+ () => amount,
24
18
  (v) => {
25
19
  amountNode.value = v
26
20
  }
27
21
  )
28
22
 
29
- useShaderStage((prev) => vec4(vibrance(prev.xyz, amountNode), prev.w), props.order)
23
+ useShaderStage((prev) => vec4(vibrance(prev.xyz, amountNode), prev.w), order)
30
24
  </script>
@@ -1,34 +1,28 @@
1
- <!-- eslint-disable vue/define-props-destructuring -->
2
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
3
1
  <script setup lang="ts">
4
- // @ts-nocheck
5
2
  import { uniform, vec4 } from 'three/tsl'
6
3
 
7
4
  import { vignette } from '../../shaders/common/grain'
8
5
 
9
- const props = withDefaults(
10
- defineProps<{
11
- intensity?: number
12
- smoothness?: number
13
- order?: number
14
- }>(),
15
- {
16
- intensity: 0.5,
17
- smoothness: 0.5,
18
- order: 0,
19
- }
20
- )
6
+ const {
7
+ intensity = 0.5,
8
+ smoothness = 0.5,
9
+ order = 0,
10
+ } = defineProps<{
11
+ intensity?: number
12
+ smoothness?: number
13
+ order?: number
14
+ }>()
21
15
 
22
- const intensityNode = uniform(props.intensity)
23
- const smoothnessNode = uniform(props.smoothness)
16
+ const intensityNode = uniform(intensity)
17
+ const smoothnessNode = uniform(smoothness)
24
18
  watch(
25
- () => props.intensity,
19
+ () => intensity,
26
20
  (v) => {
27
21
  intensityNode.value = v
28
22
  }
29
23
  )
30
24
  watch(
31
- () => props.smoothness,
25
+ () => smoothness,
32
26
  (v) => {
33
27
  smoothnessNode.value = v
34
28
  }
@@ -39,5 +33,5 @@
39
33
  useShaderStage((prev) => {
40
34
  const v = vignette(uvNode.value, intensityNode, smoothnessNode)
41
35
  return vec4(prev.xyz.mul(v), prev.w)
42
- }, props.order)
36
+ }, order)
43
37
  </script>
@@ -1,66 +1,67 @@
1
- <!-- eslint-disable vue/define-props-destructuring -->
2
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
3
1
  <script setup lang="ts">
4
- // @ts-nocheck
5
2
  import { Color, Vector3 } from 'three'
6
3
  import { float, mix, smoothstep, time, uniform, vec4 } from 'three/tsl'
7
4
 
8
5
  import { voronoi2D } from '../../shaders/common/noise'
9
6
 
10
7
  /** Voronoi cell edge lines only — the cell boundaries as thin lines. */
11
- const props = withDefaults(
12
- defineProps<{
13
- /** Cell background colour */
14
- colorA?: string
15
- /** Edge line colour */
16
- colorB?: string
17
- scale?: number
18
- /** Edge line thickness */
19
- edgeWidth?: number
20
- speed?: number
21
- order?: number
22
- }>(),
23
- { colorA: '#000000', colorB: '#ffffff', scale: 8, edgeWidth: 0.05, speed: 0.1, order: 0 }
24
- )
8
+ const {
9
+ colorA = '#000000',
10
+ colorB = '#ffffff',
11
+ scale = 8,
12
+ edgeWidth = 0.05,
13
+ speed = 0.1,
14
+ order = 0,
15
+ } = defineProps<{
16
+ /** Cell background colour */
17
+ colorA?: string
18
+ /** Edge line colour */
19
+ colorB?: string
20
+ scale?: number
21
+ /** Edge line thickness */
22
+ edgeWidth?: number
23
+ speed?: number
24
+ order?: number
25
+ }>()
25
26
 
26
27
  function toVec3Node(hex: string) {
27
28
  const c = new Color(hex)
28
29
  return uniform(new Vector3(c.r, c.g, c.b))
29
30
  }
30
31
 
31
- const colorANode = toVec3Node(props.colorA)
32
- const colorBNode = toVec3Node(props.colorB)
33
- const scaleNode = uniform(props.scale)
34
- const edgeNode = uniform(props.edgeWidth)
35
- const speedNode = uniform(props.speed)
32
+ const colorANode = toVec3Node(colorA)
33
+ const colorBNode = toVec3Node(colorB)
34
+ const scaleNode = uniform(scale)
35
+ const edgeNode = uniform(edgeWidth)
36
+ const speedNode = uniform(speed)
36
37
  watch(
37
- () => props.colorA,
38
+ () => colorA,
38
39
  (v) => {
39
40
  const c = new Color(v)
40
41
  colorANode.value.set(c.r, c.g, c.b)
41
42
  }
42
43
  )
43
44
  watch(
44
- () => props.colorB,
45
+ () => colorB,
45
46
  (v) => {
46
47
  const c = new Color(v)
47
48
  colorBNode.value.set(c.r, c.g, c.b)
48
49
  }
49
50
  )
50
51
  watch(
51
- () => props.scale,
52
+ () => scale,
52
53
  (v) => {
53
54
  scaleNode.value = v
54
55
  }
55
56
  )
56
57
  watch(
57
- () => props.edgeWidth,
58
+ () => edgeWidth,
58
59
  (v) => {
59
60
  edgeNode.value = v
60
61
  }
61
62
  )
62
63
  watch(
63
- () => props.speed,
64
+ () => speed,
64
65
  (v) => {
65
66
  speedNode.value = v
66
67
  }
@@ -74,5 +75,5 @@
74
75
  // Edge = near-zero distance → smooth threshold
75
76
  const edge = smoothstep(edgeNode, edgeNode.mul(0.1), distance)
76
77
  return vec4(mix(colorANode, colorBNode, edge), float(1))
77
- }, props.order)
78
+ }, order)
78
79
  </script>
@@ -1,72 +1,66 @@
1
- <!-- eslint-disable vue/define-props-destructuring -->
2
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
3
1
  <script setup lang="ts">
4
- // @ts-nocheck
5
2
  import { Color, Vector3 } from 'three'
6
3
  import { float, mix, sin, time, uniform, vec4 } from 'three/tsl'
7
4
 
8
- const props = withDefaults(
9
- defineProps<{
10
- /** Deep water colour */
11
- colorDeep?: string
12
- /** Shallow/crest colour */
13
- colorShallow?: string
14
- /** Wave frequency */
15
- frequency?: number
16
- /** Wave height */
17
- amplitude?: number
18
- /** Animation speed */
19
- speed?: number
20
- order?: number
21
- }>(),
22
- {
23
- colorDeep: '#003366',
24
- colorShallow: '#66ccff',
25
- frequency: 8,
26
- amplitude: 0.5,
27
- speed: 1,
28
- order: 0,
29
- }
30
- )
5
+ const {
6
+ colorDeep = '#003366',
7
+ colorShallow = '#66ccff',
8
+ frequency = 8,
9
+ amplitude = 0.5,
10
+ speed = 1,
11
+ order = 0,
12
+ } = defineProps<{
13
+ /** Deep water colour */
14
+ colorDeep?: string
15
+ /** Shallow/crest colour */
16
+ colorShallow?: string
17
+ /** Wave frequency */
18
+ frequency?: number
19
+ /** Wave height */
20
+ amplitude?: number
21
+ /** Animation speed */
22
+ speed?: number
23
+ order?: number
24
+ }>()
31
25
 
32
26
  function toVec3Node(hex: string) {
33
27
  const c = new Color(hex)
34
28
  return uniform(new Vector3(c.r, c.g, c.b))
35
29
  }
36
30
 
37
- const colorDeepNode = toVec3Node(props.colorDeep)
38
- const colorShallowNode = toVec3Node(props.colorShallow)
39
- const freqNode = uniform(props.frequency)
40
- const ampNode = uniform(props.amplitude)
41
- const speedNode = uniform(props.speed)
31
+ const colorDeepNode = toVec3Node(colorDeep)
32
+ const colorShallowNode = toVec3Node(colorShallow)
33
+ const freqNode = uniform(frequency)
34
+ const ampNode = uniform(amplitude)
35
+ const speedNode = uniform(speed)
42
36
  watch(
43
- () => props.colorDeep,
37
+ () => colorDeep,
44
38
  (v) => {
45
39
  const c = new Color(v)
46
40
  colorDeepNode.value.set(c.r, c.g, c.b)
47
41
  }
48
42
  )
49
43
  watch(
50
- () => props.colorShallow,
44
+ () => colorShallow,
51
45
  (v) => {
52
46
  const c = new Color(v)
53
47
  colorShallowNode.value.set(c.r, c.g, c.b)
54
48
  }
55
49
  )
56
50
  watch(
57
- () => props.frequency,
51
+ () => frequency,
58
52
  (v) => {
59
53
  freqNode.value = v
60
54
  }
61
55
  )
62
56
  watch(
63
- () => props.amplitude,
57
+ () => amplitude,
64
58
  (v) => {
65
59
  ampNode.value = v
66
60
  }
67
61
  )
68
62
  watch(
69
- () => props.speed,
63
+ () => speed,
70
64
  (v) => {
71
65
  speedNode.value = v
72
66
  }
@@ -88,5 +82,5 @@
88
82
  const w3 = sin(uv.y.mul(freqNode.mul(1.3)).add(t.mul(1.1)))
89
83
  const wave = w1.add(w2).add(w3).div(3).mul(ampNode).mul(0.5).add(0.5)
90
84
  return vec4(mix(colorDeepNode, colorShallowNode, wave), float(1))
91
- }, props.order)
85
+ }, order)
92
86
  </script>
@@ -1,66 +1,60 @@
1
- <!-- eslint-disable vue/define-props-destructuring -->
2
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
3
1
  <script setup lang="ts">
4
- // @ts-nocheck
5
2
  import { Color, Vector3 } from 'three'
6
3
  import { mix, sin, time, uniform, vec2, vec4 } from 'three/tsl'
7
4
 
8
- const props = withDefaults(
9
- defineProps<{
10
- color?: string
11
- opacity?: number
12
- frequency?: number
13
- speed?: number
14
- warpStrength?: number
15
- order?: number
16
- }>(),
17
- {
18
- color: '#4488ff',
19
- opacity: 0.8,
20
- frequency: 3,
21
- speed: 0.5,
22
- warpStrength: 0.15,
23
- order: 0,
24
- }
25
- )
5
+ const {
6
+ color = '#4488ff',
7
+ opacity = 0.8,
8
+ frequency = 3,
9
+ speed = 0.5,
10
+ warpStrength = 0.15,
11
+ order = 0,
12
+ } = defineProps<{
13
+ color?: string
14
+ opacity?: number
15
+ frequency?: number
16
+ speed?: number
17
+ warpStrength?: number
18
+ order?: number
19
+ }>()
26
20
 
27
21
  function toVec3Node(hex: string) {
28
22
  const c = new Color(hex)
29
23
  return uniform(new Vector3(c.r, c.g, c.b))
30
24
  }
31
25
 
32
- const colorNode = toVec3Node(props.color)
33
- const opacityNode = uniform(props.opacity)
34
- const freqNode = uniform(props.frequency)
35
- const speedNode = uniform(props.speed)
36
- const warpNode = uniform(props.warpStrength)
26
+ const colorNode = toVec3Node(color)
27
+ const opacityNode = uniform(opacity)
28
+ const freqNode = uniform(frequency)
29
+ const speedNode = uniform(speed)
30
+ const warpNode = uniform(warpStrength)
37
31
  watch(
38
- () => props.color,
32
+ () => color,
39
33
  (v) => {
40
34
  const c = new Color(v)
41
35
  colorNode.value.set(c.r, c.g, c.b)
42
36
  }
43
37
  )
44
38
  watch(
45
- () => props.opacity,
39
+ () => opacity,
46
40
  (v) => {
47
41
  opacityNode.value = v
48
42
  }
49
43
  )
50
44
  watch(
51
- () => props.frequency,
45
+ () => frequency,
52
46
  (v) => {
53
47
  freqNode.value = v
54
48
  }
55
49
  )
56
50
  watch(
57
- () => props.speed,
51
+ () => speed,
58
52
  (v) => {
59
53
  speedNode.value = v
60
54
  }
61
55
  )
62
56
  watch(
63
- () => props.warpStrength,
57
+ () => warpStrength,
64
58
  (v) => {
65
59
  warpNode.value = v
66
60
  }
@@ -85,5 +79,5 @@
85
79
  const alpha = band.mul(opacityNode)
86
80
 
87
81
  return vec4(mix(prev.xyz, colorNode, alpha), prev.w)
88
- }, props.order)
82
+ }, order)
89
83
  </script>
@@ -1,76 +1,77 @@
1
- <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
- <!-- eslint-disable vue/define-props-destructuring -->
3
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
4
1
  <script setup lang="ts">
5
- // @ts-nocheck
6
2
  import { Color, Vector3 } from 'three'
7
- import { float, mix, smoothstep, time, uniform, vec4 } from 'three/tsl'
3
+ import { mix, smoothstep, time, uniform, vec4 } from 'three/tsl'
8
4
 
9
5
  import { simplexNoise2D } from '../../shaders/common/noise'
10
6
 
11
- const props = withDefaults(
12
- defineProps<{
13
- /** Band fill colour */
14
- color?: string
15
- /** Opacity of the band layer */
16
- opacity?: number
17
- /** Noise input scale */
18
- scale?: number
19
- /** Smoothstep lower edge for band threshold */
20
- edge0?: number
21
- /** Smoothstep upper edge for band threshold */
22
- edge1?: number
23
- /** Animation speed */
24
- speed?: number
25
- order?: number
26
- }>(),
27
- { color: '#ffffff', opacity: 1, scale: 2, edge0: 0.3, edge1: 0.7, speed: 0.3, order: 0 }
28
- )
7
+ const {
8
+ color = '#ffffff',
9
+ opacity = 1,
10
+ scale = 2,
11
+ edge0 = 0.3,
12
+ edge1 = 0.7,
13
+ speed = 0.3,
14
+ order = 0,
15
+ } = defineProps<{
16
+ /** Band fill colour */
17
+ color?: string
18
+ /** Opacity of the band layer */
19
+ opacity?: number
20
+ /** Noise input scale */
21
+ scale?: number
22
+ /** Smoothstep lower edge for band threshold */
23
+ edge0?: number
24
+ /** Smoothstep upper edge for band threshold */
25
+ edge1?: number
26
+ /** Animation speed */
27
+ speed?: number
28
+ order?: number
29
+ }>()
29
30
 
30
31
  function toVec3Node(hex: string) {
31
32
  const c = new Color(hex)
32
33
  return uniform(new Vector3(c.r, c.g, c.b))
33
34
  }
34
35
 
35
- const colorNode = toVec3Node(props.color)
36
- const opacityNode = uniform(props.opacity)
37
- const scaleNode = uniform(props.scale)
38
- const edge0Node = uniform(props.edge0)
39
- const edge1Node = uniform(props.edge1)
40
- const speedNode = uniform(props.speed)
36
+ const colorNode = toVec3Node(color)
37
+ const opacityNode = uniform(opacity)
38
+ const scaleNode = uniform(scale)
39
+ const edge0Node = uniform(edge0)
40
+ const edge1Node = uniform(edge1)
41
+ const speedNode = uniform(speed)
41
42
  watch(
42
- () => props.color,
43
+ () => color,
43
44
  (v) => {
44
45
  const c = new Color(v)
45
46
  colorNode.value.set(c.r, c.g, c.b)
46
47
  }
47
48
  )
48
49
  watch(
49
- () => props.opacity,
50
+ () => opacity,
50
51
  (v) => {
51
52
  opacityNode.value = v
52
53
  }
53
54
  )
54
55
  watch(
55
- () => props.scale,
56
+ () => scale,
56
57
  (v) => {
57
58
  scaleNode.value = v
58
59
  }
59
60
  )
60
61
  watch(
61
- () => props.edge0,
62
+ () => edge0,
62
63
  (v) => {
63
64
  edge0Node.value = v
64
65
  }
65
66
  )
66
67
  watch(
67
- () => props.edge1,
68
+ () => edge1,
68
69
  (v) => {
69
70
  edge1Node.value = v
70
71
  }
71
72
  )
72
73
  watch(
73
- () => props.speed,
74
+ () => speed,
74
75
  (v) => {
75
76
  speedNode.value = v
76
77
  }
@@ -85,5 +86,5 @@
85
86
  const n = simplexNoise2D(uvCurrent.mul(scaleNode).add(t)).mul(0.5).add(0.5)
86
87
  const band = smoothstep(edge0Node, edge1Node, n).mul(opacityNode)
87
88
  return vec4(mix(prev.xyz, colorNode, band), prev.w)
88
- }, props.order)
89
+ }, order)
89
90
  </script>
@@ -1,37 +1,34 @@
1
- <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
- <!-- eslint-disable vue/define-props-destructuring -->
3
- <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
4
1
  <script setup lang="ts">
5
- // @ts-nocheck
6
- import { float, mix, uniform, vec3, vec4 } from 'three/tsl'
2
+ import { float, uniform, vec3, vec4 } from 'three/tsl'
7
3
 
8
- const props = withDefaults(
9
- defineProps<{
10
- /**
11
- * Colour temperature shift:
12
- * positive → warmer (orange), negative → cooler (blue). Range: -1 to 1.
13
- */
14
- temperature?: number
15
- /**
16
- * Tint shift:
17
- * positive → green, negative → magenta. Range: -1 to 1.
18
- */
19
- tint?: number
20
- order?: number
21
- }>(),
22
- { temperature: 0, tint: 0, order: 0 }
23
- )
4
+ const {
5
+ temperature = 0,
6
+ tint = 0,
7
+ order = 0,
8
+ } = defineProps<{
9
+ /**
10
+ * Colour temperature shift:
11
+ * positive → warmer (orange), negative → cooler (blue). Range: -1 to 1.
12
+ */
13
+ temperature?: number
14
+ /**
15
+ * Tint shift:
16
+ * positive → green, negative → magenta. Range: -1 to 1.
17
+ */
18
+ tint?: number
19
+ order?: number
20
+ }>()
24
21
 
25
- const tempNode = uniform(props.temperature)
26
- const tintNode = uniform(props.tint)
22
+ const tempNode = uniform(temperature)
23
+ const tintNode = uniform(tint)
27
24
  watch(
28
- () => props.temperature,
25
+ () => temperature,
29
26
  (v) => {
30
27
  tempNode.value = v
31
28
  }
32
29
  )
33
30
  watch(
34
- () => props.tint,
31
+ () => tint,
35
32
  (v) => {
36
33
  tintNode.value = v
37
34
  }
@@ -47,5 +44,5 @@
47
44
  float(1).sub(tintNode.max(float(0)).mul(0.1))
48
45
  )
49
46
  return vec4(prev.xyz.mul(warm).mul(tinted), prev.w)
50
- }, props.order)
47
+ }, order)
51
48
  </script>