kmcom-nuxt-layers 1.7.9 → 2.2.0

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 (519) hide show
  1. package/layers/animations/nuxt.config.ts +17 -0
  2. package/layers/animations/package.json +6 -0
  3. package/layers/animations/tsconfig.json +7 -0
  4. package/layers/canvas/app/components/ShaderCanvas.vue +125 -0
  5. package/layers/{shader → canvas}/app/composables/useRendererCapabilities.ts +10 -2
  6. package/layers/{shader → canvas}/app/composables/useShaderTime.ts +3 -3
  7. package/layers/canvas/app/types/renderer.ts +50 -0
  8. package/layers/canvas/nuxt.config.ts +189 -0
  9. package/layers/canvas/package.json +22 -0
  10. package/layers/canvas/tsconfig.json +7 -0
  11. package/layers/content/app/components/Blog/Article.vue +12 -6
  12. package/layers/content/app/components/Blog/Card.vue +24 -24
  13. package/layers/content/app/components/Blog/List.vue +8 -11
  14. package/layers/content/app/components/Gallery/AmbientImage.vue +15 -15
  15. package/layers/content/app/components/Gallery/Card.vue +19 -19
  16. package/layers/content/app/components/Gallery/Detail.vue +29 -20
  17. package/layers/content/app/components/Gallery/Grid.vue +8 -11
  18. package/layers/content/app/components/Gallery/ImageDetail.vue +18 -17
  19. package/layers/content/app/components/Gallery/ImagePage.vue +8 -9
  20. package/layers/content/app/components/Gallery/Lightbox.vue +38 -33
  21. package/layers/content/app/components/Gallery/Page.vue +8 -8
  22. package/layers/content/app/components/Gallery/SlugPage.vue +7 -8
  23. package/layers/content/app/components/NuxtContent/Detail.vue +29 -27
  24. package/layers/content/app/components/NuxtContent/List.vue +10 -9
  25. package/layers/content/app/components/NuxtContent/Renderer.vue +4 -4
  26. package/layers/content/app/components/NuxtContent/Surround.vue +3 -3
  27. package/layers/content/app/components/NuxtContent/Toc.vue +5 -5
  28. package/layers/content/app/components/Portfolio/Card.vue +17 -17
  29. package/layers/content/app/components/Portfolio/ColorPalette.vue +11 -11
  30. package/layers/content/app/components/Portfolio/Detail.vue +9 -13
  31. package/layers/content/app/components/Portfolio/ItemPage.vue +8 -9
  32. package/layers/content/app/components/Portfolio/List.vue +10 -13
  33. package/layers/content/app/components/Portfolio/Page.vue +8 -8
  34. package/layers/content/app/components/Portfolio/Typography.vue +4 -4
  35. package/layers/content/app/components/content/Figure.vue +14 -14
  36. package/layers/content/app/composables/createPortfolioComposables.ts +4 -1
  37. package/layers/content/app/composables/useBlogPosts.ts +3 -1
  38. package/layers/content/app/composables/useCollectionItem.ts +4 -1
  39. package/layers/content/app/composables/useCollectionSurround.ts +1 -0
  40. package/layers/content/app/composables/useContentPage.ts +1 -0
  41. package/layers/content/app/composables/useGalleryItems.ts +4 -1
  42. package/layers/content/app/composables/usePortfolioItems.ts +4 -1
  43. package/layers/content/app/types/app-config.d.ts +1 -1
  44. package/layers/content/app/types/content.ts +27 -30
  45. package/layers/content/nuxt.config.ts +4 -3
  46. package/layers/content/package.json +4 -4
  47. package/layers/core/app/components/DiagnosticsPage.vue +203 -203
  48. package/layers/core/app/components/ErrorBoundary.vue +51 -49
  49. package/layers/core/app/components/LoadingScreen.vue +112 -111
  50. package/layers/core/app/composables/useBrowser.ts +2 -1
  51. package/layers/core/app/composables/useCache.ts +4 -2
  52. package/layers/core/app/composables/useErrorLog.ts +7 -10
  53. package/layers/core/app/composables/useFeatures.ts +4 -2
  54. package/layers/core/app/composables/useLoading.ts +1 -0
  55. package/layers/core/app/composables/useNetworkInfo.ts +1 -0
  56. package/layers/core/app/composables/usePWAInfo.ts +4 -3
  57. package/layers/core/app/composables/useRendering.ts +1 -0
  58. package/layers/core/app/composables/useScreen.ts +1 -0
  59. package/layers/core/app/composables/useScrollGuard.ts +2 -1
  60. package/layers/core/app/pages/[...slug].vue +99 -99
  61. package/layers/core/app/plugins/error-handler.ts +1 -1
  62. package/layers/core/app/plugins/feature-detection.client.ts +2 -1
  63. package/layers/core/app/plugins/init.ts +8 -19
  64. package/layers/core/app/plugins/loading.client.ts +4 -2
  65. package/layers/core/app/plugins/scroll-guard.client.ts +4 -4
  66. package/layers/core/app/types/app-config.d.ts +5 -1
  67. package/layers/core/app/types/detection.ts +8 -8
  68. package/layers/core/app/types/index.ts +5 -4
  69. package/layers/core/app/types/loading.ts +3 -3
  70. package/layers/core/app/types/runtime-config.ts +2 -2
  71. package/layers/core/app/types/scroll-guard.ts +2 -2
  72. package/layers/core/app/types/site.ts +43 -0
  73. package/layers/core/app/utils/helpers.ts +4 -0
  74. package/layers/core/nuxt.config.ts +1 -0
  75. package/layers/core/package.json +1 -1
  76. package/layers/feeds/app/app.config.ts +23 -0
  77. package/layers/feeds/app/assets/css/feeds.css +66 -0
  78. package/layers/feeds/app/plugins/feed-head.ts +73 -0
  79. package/layers/feeds/nuxt.config.ts +36 -0
  80. package/layers/feeds/package.json +23 -0
  81. package/layers/feeds/tsconfig.json +7 -0
  82. package/layers/forms/app/components/Form/Contact.vue +1 -0
  83. package/layers/forms/app/components/Form/Field.vue +70 -74
  84. package/layers/forms/app/composables/useFormSchema.ts +2 -0
  85. package/layers/forms/app/config/fields.ts +1 -0
  86. package/layers/forms/app/types/app-config.d.ts +1 -1
  87. package/layers/forms/app/types/fields.ts +1 -1
  88. package/layers/forms/nuxt.config.ts +4 -9
  89. package/layers/forms/package.json +4 -9
  90. package/layers/layout/app/assets/css/layout/grids.css +12 -12
  91. package/layers/layout/app/assets/css/layout/modes/fluid.css +10 -10
  92. package/layers/layout/app/components/Layout/Container.vue +34 -34
  93. package/layers/layout/app/components/Layout/Grid/Debug.vue +55 -55
  94. package/layers/layout/app/components/Layout/Grid/Item.vue +239 -231
  95. package/layers/layout/app/components/Layout/Main.vue +27 -23
  96. package/layers/layout/app/components/Layout/Page/Container.vue +71 -67
  97. package/layers/layout/app/components/Layout/Page/Header.vue +22 -21
  98. package/layers/layout/app/components/Layout/Page/index.vue +1 -0
  99. package/layers/layout/app/components/Layout/Section/Gallery.vue +49 -48
  100. package/layers/layout/app/components/Layout/Section/Grid.vue +29 -29
  101. package/layers/layout/app/components/Layout/Section/Hero.vue +31 -29
  102. package/layers/layout/app/components/Layout/Section/Sidebar.vue +48 -48
  103. package/layers/layout/app/components/Layout/Section/Split.vue +28 -28
  104. package/layers/layout/app/components/Layout/Section/Stack.vue +39 -37
  105. package/layers/layout/app/components/Layout/Section/Title.vue +21 -20
  106. package/layers/layout/app/composables/GridPlacement.ts +1 -1
  107. package/layers/layout/app/composables/useGridConfig.ts +2 -1
  108. package/layers/layout/app/types/app-config.d.ts +2 -1
  109. package/layers/layout/app/types/layouts.ts +4 -4
  110. package/layers/layout/nuxt.config.ts +4 -1
  111. package/layers/mailer/nuxt.config.ts +26 -0
  112. package/layers/mailer/package.json +15 -0
  113. package/layers/mailer/tsconfig.json +7 -0
  114. package/layers/motion/app/components/Motion/index.vue +5 -5
  115. package/layers/motion/nuxt.config.ts +6 -22
  116. package/layers/motion/package.json +0 -5
  117. package/layers/navigation/app/app.config.ts +38 -0
  118. package/layers/navigation/app/assets/css/navigation.css +3 -0
  119. package/layers/navigation/app/components/Links/Group.vue +49 -0
  120. package/layers/navigation/app/components/Links/Named.vue +33 -0
  121. package/layers/navigation/app/components/Mast/Footer.vue +13 -0
  122. package/layers/{ui → navigation}/app/components/Mast/Header.vue +2 -2
  123. package/layers/{ui → navigation}/app/components/Mast/Nav.vue +2 -2
  124. package/layers/navigation/app/components/Mast/NavModal.vue +76 -0
  125. package/layers/{ui → navigation}/app/composables/mastNav.ts +7 -4
  126. package/layers/{ui → navigation}/app/composables/toast.ts +1 -0
  127. package/layers/{ui → navigation}/app/composables/useSite.ts +1 -0
  128. package/layers/navigation/app/types/nav.ts +11 -0
  129. package/layers/{ui → navigation}/app/utils/createModal.ts +2 -1
  130. package/layers/navigation/nuxt.config.ts +19 -0
  131. package/layers/navigation/package.json +6 -0
  132. package/layers/navigation/tsconfig.json +7 -0
  133. package/layers/page-transitions/app/app.config.ts +15 -0
  134. package/layers/page-transitions/app/composables/usePageTransition.ts +32 -0
  135. package/layers/page-transitions/app/plugins/page-transitions.client.ts +14 -0
  136. package/layers/page-transitions/nuxt.config.ts +17 -0
  137. package/layers/page-transitions/package.json +6 -0
  138. package/layers/page-transitions/tsconfig.json +7 -0
  139. package/layers/routing/app/composables/{useFeatures.ts → useFeatureFlags.ts} +1 -1
  140. package/layers/routing/app/composables/useRoutingConfig.ts +5 -6
  141. package/layers/routing/app/middleware/01.maintenance.global.ts +1 -1
  142. package/layers/routing/app/middleware/02.governance.global.ts +2 -2
  143. package/layers/routing/app/plugins/feature-flags.client.ts +4 -4
  144. package/layers/routing/app/plugins/scroll-routing.client.ts +4 -3
  145. package/layers/routing/app/types/app-config.d.ts +2 -1
  146. package/layers/routing/app/types/route-meta.d.ts +1 -1
  147. package/layers/routing/app/types/routing.ts +5 -2
  148. package/layers/routing/app/utils/resolveRoute.ts +2 -2
  149. package/layers/routing/nuxt.config.ts +6 -2
  150. package/layers/scripts/app/app.config.ts +44 -0
  151. package/layers/scripts/app/composables/useAnalytics.ts +49 -0
  152. package/layers/scripts/app/composables/useGtm.ts +21 -0
  153. package/layers/scripts/app/composables/useScriptLoader.ts +31 -0
  154. package/layers/scripts/app/composables/useScriptsConsent.ts +23 -0
  155. package/layers/scripts/app/composables/useYoutubeEmbed.ts +14 -0
  156. package/layers/scripts/nuxt.config.ts +22 -0
  157. package/layers/scripts/package.json +14 -0
  158. package/layers/scripts/tsconfig.json +7 -0
  159. package/layers/{motion/app/types/app-config.d.ts → scroll/app/app.config.ts} +16 -1
  160. package/layers/scroll/app/components/Motion/HorizontalScroll.vue +61 -0
  161. package/layers/scroll/app/components/Motion/Parallax.vue +76 -0
  162. package/layers/scroll/app/components/Motion/PinnedSection.vue +77 -0
  163. package/layers/scroll/app/components/Motion/ScrollLink.vue +50 -0
  164. package/layers/scroll/app/components/Motion/ScrollProgress.vue +85 -0
  165. package/layers/scroll/app/components/Motion/ScrollScene.vue +121 -0
  166. package/layers/{motion → scroll}/app/components/Motion/ScrollStats.vue +51 -50
  167. package/layers/scroll/app/components/Motion/ScrollStep.vue +44 -0
  168. package/layers/{motion → scroll}/app/composables/useGsap.ts +0 -6
  169. package/layers/{motion → scroll}/app/composables/useScrollSteps.ts +2 -5
  170. package/layers/{motion → scroll}/app/composables/useSectionProgress.ts +14 -7
  171. package/layers/{motion → scroll}/app/composables/useSmoothScroll.ts +6 -37
  172. package/layers/{motion → scroll}/app/plugins/locomotive-scroll.client.ts +3 -2
  173. package/layers/scroll/nuxt.config.ts +33 -0
  174. package/layers/scroll/package.json +11 -0
  175. package/layers/scroll/tsconfig.json +7 -0
  176. package/layers/seo/app/app.config.ts +30 -0
  177. package/layers/seo/app/composables/useSeoConfig.ts +14 -0
  178. package/layers/seo/nuxt.config.ts +34 -0
  179. package/layers/seo/package.json +14 -0
  180. package/layers/seo/tsconfig.json +7 -0
  181. package/layers/shader/app/components/Effect/Bloom.vue +2 -2
  182. package/layers/shader/app/components/Effect/ChromaticAberration.vue +2 -2
  183. package/layers/shader/app/components/Effect/PostProcessing.vue +14 -10
  184. package/layers/shader/app/components/Material/AmbientAurora.client.vue +162 -158
  185. package/layers/shader/app/components/Material/AmbientFlow.client.vue +165 -161
  186. package/layers/shader/app/components/Material/AmbientGradientMesh.client.vue +179 -162
  187. package/layers/shader/app/components/Material/AmbientNebula.client.vue +167 -163
  188. package/layers/shader/app/components/Material/AmbientOcean.client.vue +154 -150
  189. package/layers/shader/app/components/Material/Fresnel.client.vue +78 -75
  190. package/layers/shader/app/components/Material/Gradient.client.vue +175 -173
  191. package/layers/shader/app/components/Material/Image.client.vue +228 -225
  192. package/layers/shader/app/components/Material/Node.client.vue +66 -63
  193. package/layers/shader/app/components/Material/Noise.client.vue +128 -124
  194. package/layers/shader/app/components/Mesh/Plane.vue +20 -18
  195. package/layers/shader/app/components/Node/Color.client.vue +47 -45
  196. package/layers/shader/app/components/Node/Fresnel.client.vue +47 -47
  197. package/layers/shader/app/components/Node/Gradient.client.vue +120 -70
  198. package/layers/shader/app/components/Node/Mix.client.vue +41 -39
  199. package/layers/shader/app/components/Node/Noise.client.vue +91 -83
  200. package/layers/shader/app/components/Pipeline/ACESTonemap.client.vue +7 -10
  201. package/layers/shader/app/components/Pipeline/AddBlend.client.vue +33 -19
  202. package/layers/shader/app/components/Pipeline/AgedFilm.client.vue +61 -40
  203. package/layers/shader/app/components/Pipeline/Aurora.client.vue +92 -56
  204. package/layers/shader/app/components/Pipeline/BilinearGradient.client.vue +65 -34
  205. package/layers/shader/app/components/Pipeline/BillowNoise.client.vue +56 -32
  206. package/layers/shader/app/components/Pipeline/BrightnessContrast.client.vue +36 -20
  207. package/layers/shader/app/components/Pipeline/CellularNoise.client.vue +55 -31
  208. package/layers/shader/app/components/Pipeline/ChannelMixer.client.vue +62 -34
  209. package/layers/shader/app/components/Pipeline/ChebyshevNoiseField.client.vue +77 -50
  210. package/layers/shader/app/components/Pipeline/Checkerboard.client.vue +50 -31
  211. package/layers/shader/app/components/Pipeline/ChromaticAberration.client.vue +49 -33
  212. package/layers/shader/app/components/Pipeline/ChromaticScreenWaves.client.vue +61 -36
  213. package/layers/shader/app/components/Pipeline/Circle.client.vue +53 -30
  214. package/layers/shader/app/components/Pipeline/Clouds.client.vue +86 -48
  215. package/layers/shader/app/components/Pipeline/ColorBurnBlend.client.vue +34 -19
  216. package/layers/shader/app/components/Pipeline/ColorDodgeBlend.client.vue +34 -19
  217. package/layers/shader/app/components/Pipeline/ColourRamp.client.vue +76 -46
  218. package/layers/shader/app/components/Pipeline/ComplexPlaneField.client.vue +80 -50
  219. package/layers/shader/app/components/Pipeline/ConicGradient.client.vue +46 -28
  220. package/layers/shader/app/components/Pipeline/CosinePalette.client.vue +80 -53
  221. package/layers/shader/app/components/Pipeline/CoverageAlpha.client.vue +12 -14
  222. package/layers/shader/app/components/Pipeline/Cross.client.vue +66 -37
  223. package/layers/shader/app/components/Pipeline/CurlNoise.client.vue +58 -35
  224. package/layers/shader/app/components/Pipeline/DarkenBlend.client.vue +34 -19
  225. package/layers/shader/app/components/Pipeline/DayNightCycle.client.vue +65 -39
  226. package/layers/shader/app/components/Pipeline/Desaturate.client.vue +23 -16
  227. package/layers/shader/app/components/Pipeline/DiagonalGradient.client.vue +50 -29
  228. package/layers/shader/app/components/Pipeline/DiamondGradient.client.vue +47 -29
  229. package/layers/shader/app/components/Pipeline/DifferenceBlend.client.vue +34 -19
  230. package/layers/shader/app/components/Pipeline/DivideBlend.client.vue +34 -19
  231. package/layers/shader/app/components/Pipeline/DomainWarpedNoise.client.vue +79 -37
  232. package/layers/shader/app/components/Pipeline/Dots.client.vue +70 -34
  233. package/layers/shader/app/components/Pipeline/DuoTone.client.vue +40 -26
  234. package/layers/shader/app/components/Pipeline/ExclusionBlend.client.vue +38 -19
  235. package/layers/shader/app/components/Pipeline/ExponentialFog.client.vue +52 -35
  236. package/layers/shader/app/components/Pipeline/Exposure.client.vue +22 -16
  237. package/layers/shader/app/components/Pipeline/FBMNoise.client.vue +62 -39
  238. package/layers/shader/app/components/Pipeline/FilmBurn.client.vue +60 -38
  239. package/layers/shader/app/components/Pipeline/FilmGrain.client.vue +53 -31
  240. package/layers/shader/app/components/Pipeline/FisheyeRay.client.vue +39 -28
  241. package/layers/shader/app/components/Pipeline/Flame.client.vue +59 -35
  242. package/layers/shader/app/components/Pipeline/FocalGradient.client.vue +56 -33
  243. package/layers/shader/app/components/Pipeline/Gamma.client.vue +21 -16
  244. package/layers/shader/app/components/Pipeline/GodRays.client.vue +76 -42
  245. package/layers/shader/app/components/Pipeline/GradientNoise.client.vue +57 -32
  246. package/layers/shader/app/components/Pipeline/Grain.client.vue +84 -47
  247. package/layers/shader/app/components/Pipeline/Grid.client.vue +56 -33
  248. package/layers/shader/app/components/Pipeline/Halation.client.vue +52 -34
  249. package/layers/shader/app/components/Pipeline/Halftone.client.vue +34 -23
  250. package/layers/shader/app/components/Pipeline/HardLightBlend.client.vue +33 -19
  251. package/layers/shader/app/components/Pipeline/Haze.client.vue +57 -36
  252. package/layers/shader/app/components/Pipeline/Hexagon.client.vue +54 -31
  253. package/layers/shader/app/components/Pipeline/Hue.client.vue +20 -16
  254. package/layers/shader/app/components/Pipeline/Invert.client.vue +6 -10
  255. package/layers/shader/app/components/Pipeline/LensFlare.client.vue +56 -37
  256. package/layers/shader/app/components/Pipeline/LightenBlend.client.vue +31 -19
  257. package/layers/shader/app/components/Pipeline/LinearGradient.client.vue +36 -28
  258. package/layers/shader/app/components/Pipeline/LinearGradient4.client.vue +65 -43
  259. package/layers/shader/app/components/Pipeline/LinearToSRGB.client.vue +26 -20
  260. package/layers/shader/app/components/Pipeline/Marble.client.vue +97 -57
  261. package/layers/shader/app/components/Pipeline/MixBlend.client.vue +45 -35
  262. package/layers/shader/app/components/Pipeline/MonochromeTint.client.vue +40 -25
  263. package/layers/shader/app/components/Pipeline/MultiplyBlend.client.vue +33 -19
  264. package/layers/shader/app/components/Pipeline/NoisyGradient.client.vue +83 -42
  265. package/layers/shader/app/components/Pipeline/NoisyGradientBlend.client.vue +141 -81
  266. package/layers/shader/app/components/Pipeline/OverlayBlend.client.vue +33 -19
  267. package/layers/shader/app/components/Pipeline/PaperTexture.client.vue +47 -30
  268. package/layers/shader/app/components/Pipeline/Polygon.client.vue +74 -37
  269. package/layers/shader/app/components/Pipeline/Posterise.client.vue +21 -16
  270. package/layers/shader/app/components/Pipeline/RadialGradient.client.vue +45 -30
  271. package/layers/shader/app/components/Pipeline/RayAutoOrbit.client.vue +43 -30
  272. package/layers/shader/app/components/Pipeline/RayMouseOrbit.client.vue +60 -47
  273. package/layers/shader/app/components/Pipeline/RayRotateX.client.vue +28 -20
  274. package/layers/shader/app/components/Pipeline/RayRotateY.client.vue +28 -20
  275. package/layers/shader/app/components/Pipeline/RayRotateZ.client.vue +28 -20
  276. package/layers/shader/app/components/Pipeline/RayTiltBasis.client.vue +55 -34
  277. package/layers/shader/app/components/Pipeline/RaymarchTunnel.client.vue +132 -88
  278. package/layers/shader/app/components/Pipeline/Rectangle.client.vue +78 -37
  279. package/layers/shader/app/components/Pipeline/ReinhardTonemap.client.vue +12 -14
  280. package/layers/shader/app/components/Pipeline/RidgedNoise.client.vue +54 -31
  281. package/layers/shader/app/components/Pipeline/Ring.client.vue +69 -34
  282. package/layers/shader/app/components/Pipeline/RingField.client.vue +63 -43
  283. package/layers/shader/app/components/Pipeline/RisographGrain.client.vue +66 -32
  284. package/layers/shader/app/components/Pipeline/RotatedGradientBlend.client.vue +73 -48
  285. package/layers/shader/app/components/Pipeline/SDFColourMask.client.vue +31 -25
  286. package/layers/shader/app/components/Pipeline/SDFRadialMask.client.vue +31 -21
  287. package/layers/shader/app/components/Pipeline/SRGBToLinear.client.vue +25 -20
  288. package/layers/shader/app/components/Pipeline/Saturation.client.vue +22 -16
  289. package/layers/shader/app/components/Pipeline/Scanlines.client.vue +42 -26
  290. package/layers/shader/app/components/Pipeline/ScreenBlend.client.vue +33 -19
  291. package/layers/shader/app/components/Pipeline/ShaderDebugger.client.vue +58 -45
  292. package/layers/shader/app/components/Pipeline/SimplexNoise.client.vue +59 -37
  293. package/layers/shader/app/components/Pipeline/SkyAtmosphere.client.vue +87 -54
  294. package/layers/shader/app/components/Pipeline/SoftLightBlend.client.vue +33 -19
  295. package/layers/shader/app/components/Pipeline/SolidColour.client.vue +24 -16
  296. package/layers/shader/app/components/Pipeline/SplitTone.client.vue +58 -34
  297. package/layers/shader/app/components/Pipeline/Star.client.vue +73 -37
  298. package/layers/shader/app/components/Pipeline/Starfield.client.vue +68 -34
  299. package/layers/shader/app/components/Pipeline/Stripes.client.vue +64 -36
  300. package/layers/shader/app/components/Pipeline/SubtractBlend.client.vue +33 -19
  301. package/layers/shader/app/components/Pipeline/TanhTonemap.client.vue +25 -19
  302. package/layers/shader/app/components/Pipeline/Threshold.client.vue +23 -17
  303. package/layers/shader/app/components/Pipeline/Tint.client.vue +36 -25
  304. package/layers/shader/app/components/Pipeline/Triangle.client.vue +54 -31
  305. package/layers/shader/app/components/Pipeline/UVAspectCorrect.client.vue +5 -10
  306. package/layers/shader/app/components/Pipeline/UVBreath.client.vue +44 -31
  307. package/layers/shader/app/components/Pipeline/UVBulge.client.vue +35 -21
  308. package/layers/shader/app/components/Pipeline/UVClamp.client.vue +14 -14
  309. package/layers/shader/app/components/Pipeline/UVColumnOffset.client.vue +36 -23
  310. package/layers/shader/app/components/Pipeline/UVFlipX.client.vue +6 -10
  311. package/layers/shader/app/components/Pipeline/UVFlipXY.client.vue +6 -10
  312. package/layers/shader/app/components/Pipeline/UVFlipY.client.vue +6 -10
  313. package/layers/shader/app/components/Pipeline/UVFractBand.client.vue +31 -21
  314. package/layers/shader/app/components/Pipeline/UVMousePull.client.vue +41 -33
  315. package/layers/shader/app/components/Pipeline/UVNoiseRotate.client.vue +65 -46
  316. package/layers/shader/app/components/Pipeline/UVNoiseWarp.client.vue +49 -30
  317. package/layers/shader/app/components/Pipeline/UVOrbit.client.vue +37 -29
  318. package/layers/shader/app/components/Pipeline/UVParallax.client.vue +41 -33
  319. package/layers/shader/app/components/Pipeline/UVPixelate.client.vue +21 -16
  320. package/layers/shader/app/components/Pipeline/UVPulse.client.vue +41 -28
  321. package/layers/shader/app/components/Pipeline/UVRipple.client.vue +53 -29
  322. package/layers/shader/app/components/Pipeline/UVRotate.client.vue +40 -32
  323. package/layers/shader/app/components/Pipeline/UVScale.client.vue +33 -25
  324. package/layers/shader/app/components/Pipeline/UVScroll.client.vue +26 -22
  325. package/layers/shader/app/components/Pipeline/UVScrollX.client.vue +20 -16
  326. package/layers/shader/app/components/Pipeline/UVScrollY.client.vue +20 -16
  327. package/layers/shader/app/components/Pipeline/UVShear.client.vue +33 -20
  328. package/layers/shader/app/components/Pipeline/UVSineWarpXY.client.vue +58 -40
  329. package/layers/shader/app/components/Pipeline/UVSwapAxes.client.vue +6 -10
  330. package/layers/shader/app/components/Pipeline/UVTile.client.vue +26 -22
  331. package/layers/shader/app/components/Pipeline/UVTwirl.client.vue +31 -21
  332. package/layers/shader/app/components/Pipeline/UVWarp.client.vue +44 -25
  333. package/layers/shader/app/components/Pipeline/VHSBleed.client.vue +63 -43
  334. package/layers/shader/app/components/Pipeline/ValueNoise.client.vue +57 -32
  335. package/layers/shader/app/components/Pipeline/Vibrance.client.vue +25 -19
  336. package/layers/shader/app/components/Pipeline/Vignette.client.vue +35 -24
  337. package/layers/shader/app/components/Pipeline/VoronoiEdges.client.vue +66 -38
  338. package/layers/shader/app/components/Pipeline/Water.client.vue +78 -39
  339. package/layers/shader/app/components/Pipeline/WaveBendLayer.client.vue +74 -46
  340. package/layers/shader/app/components/Pipeline/WaveColourLayer.client.vue +76 -43
  341. package/layers/shader/app/components/Pipeline/WhiteBalance.client.vue +38 -27
  342. package/layers/shader/app/components/Pipeline/Wood.client.vue +85 -50
  343. package/layers/shader/app/components/Preset/Aurora.client.vue +69 -52
  344. package/layers/shader/app/components/Preset/Flow.client.vue +63 -47
  345. package/layers/shader/app/components/Preset/GradientMesh.client.vue +63 -47
  346. package/layers/shader/app/components/Preset/Nebula.client.vue +65 -47
  347. package/layers/shader/app/components/Preset/Ocean.client.vue +64 -47
  348. package/layers/shader/app/components/Preset/ThemeAurora.client.vue +107 -70
  349. package/layers/shader/app/components/Preset/ThemeBubble.client.vue +108 -71
  350. package/layers/shader/app/components/Preset/ThemeFlow.client.vue +107 -70
  351. package/layers/shader/app/components/Preset/ThemeGradient.client.vue +108 -71
  352. package/layers/shader/app/components/Preset/ThemeLavaLamp.client.vue +107 -70
  353. package/layers/shader/app/components/Preset/ThemePlasma.client.vue +107 -70
  354. package/layers/shader/app/components/Preset/ThemeWave.client.vue +107 -70
  355. package/layers/shader/app/components/Shader/Background.client.vue +169 -163
  356. package/layers/shader/app/components/Shader/Debug.vue +45 -40
  357. package/layers/shader/app/components/Shader/Host.client.vue +120 -121
  358. package/layers/shader/app/components/Shader/Material.client.vue +42 -36
  359. package/layers/shader/app/components/Shader/Pipeline.client.vue +55 -46
  360. package/layers/shader/app/components/Shader/PipelineContext.vue +12 -12
  361. package/layers/shader/app/components/Shader/Runtime.client.vue +42 -37
  362. package/layers/shader/app/composables/useAmbientMaterials.ts +316 -105
  363. package/layers/shader/app/composables/useCSSColourUniform.ts +7 -6
  364. package/layers/shader/app/composables/useCSSFloatUniform.ts +4 -5
  365. package/layers/shader/app/composables/useMousePosition.ts +1 -1
  366. package/layers/shader/app/composables/useShader.ts +5 -3
  367. package/layers/shader/app/composables/useShaderColor.ts +8 -1
  368. package/layers/shader/app/composables/useShaderFloat.ts +3 -1
  369. package/layers/shader/app/composables/useShaderGraph.ts +6 -3
  370. package/layers/shader/app/composables/useShaderPerf.ts +2 -3
  371. package/layers/shader/app/composables/useShaderPipeline.ts +14 -6
  372. package/layers/shader/app/composables/useShaderRuntime.ts +7 -4
  373. package/layers/shader/app/composables/useShaderVec2.ts +4 -0
  374. package/layers/shader/app/composables/useSunDirectionUniform.ts +7 -6
  375. package/layers/shader/app/composables/useTSLNodes.ts +1 -0
  376. package/layers/shader/app/composables/useThemeColors.ts +14 -10
  377. package/layers/shader/app/composables/useUniforms.ts +5 -2
  378. package/layers/shader/app/plugins/shader.client.ts +3 -2
  379. package/layers/shader/app/shaders/common/blend.ts +3 -0
  380. package/layers/shader/app/shaders/common/complex.ts +4 -5
  381. package/layers/shader/app/shaders/common/effects.ts +10 -6
  382. package/layers/shader/app/shaders/common/grain.ts +4 -0
  383. package/layers/shader/app/shaders/common/lighting.ts +4 -1
  384. package/layers/shader/app/shaders/common/math.ts +3 -0
  385. package/layers/shader/app/shaders/common/noise.ts +7 -4
  386. package/layers/shader/app/shaders/common/noiseHelpers.ts +2 -0
  387. package/layers/shader/app/shaders/common/palette.ts +6 -1
  388. package/layers/shader/app/shaders/common/patterns.ts +7 -4
  389. package/layers/shader/app/shaders/common/sdf.ts +3 -1
  390. package/layers/shader/app/shaders/common/shapes.ts +3 -0
  391. package/layers/shader/app/shaders/common/tonemapping.ts +2 -0
  392. package/layers/shader/app/shaders/common/uv.ts +8 -1
  393. package/layers/shader/app/shaders/createMaterial.ts +6 -2
  394. package/layers/shader/app/shaders/layers/aurora.ts +6 -3
  395. package/layers/shader/app/shaders/layers/meshGradient.ts +6 -3
  396. package/layers/shader/app/shaders/layers/paperShading.ts +6 -2
  397. package/layers/shader/app/shaders/layers/shaderGradient.ts +5 -0
  398. package/layers/shader/app/shaders/layers/stripe.ts +6 -3
  399. package/layers/shader/app/shaders/types.ts +1 -0
  400. package/layers/shader/app/types/app-config.d.ts +1 -1
  401. package/layers/shader/app/types/index.ts +4 -4
  402. package/layers/shader/app/types/materials.ts +5 -4
  403. package/layers/shader/app/types/renderer.ts +1 -50
  404. package/layers/shader/app/types/tsl.ts +4 -3
  405. package/layers/shader/app/types/uniforms.ts +3 -2
  406. package/layers/shader/app/utils/tsl/animation.ts +2 -0
  407. package/layers/shader/app/utils/tsl/color.ts +5 -2
  408. package/layers/shader/app/utils/tsl/math.ts +1 -0
  409. package/layers/shader/app/utils/tsl/noise.ts +2 -0
  410. package/layers/shader/app/utils/tsl/oklch.ts +2 -0
  411. package/layers/shader/app/utils/tsl/patterns.ts +2 -0
  412. package/layers/shader/app/utils/tsl/tween.ts +4 -2
  413. package/layers/shader/app/utils/tsl/uv.ts +2 -0
  414. package/layers/shader/nuxt.config.ts +8 -115
  415. package/layers/shader/package.json +3 -9
  416. package/layers/theme/app/assets/css/theme.css +2 -2
  417. package/layers/theme/app/components/ThemePicker/AccentButton.vue +32 -30
  418. package/layers/theme/app/components/ThemePicker/Colors.vue +6 -5
  419. package/layers/theme/app/components/ThemePicker/Menu.vue +23 -23
  420. package/layers/theme/app/composables/useAccentColor.ts +2 -1
  421. package/layers/theme/app/composables/useThemeContrast.ts +1 -1
  422. package/layers/theme/app/composables/useThemeMotion.ts +1 -1
  423. package/layers/theme/app/composables/useThemeTransparency.ts +1 -4
  424. package/layers/theme/app/plugins/theme.client.ts +33 -15
  425. package/layers/theme/app/types/app-config.d.ts +3 -2
  426. package/layers/theme/app/types/theme.ts +1 -1
  427. package/layers/theme/nuxt.config.ts +4 -1
  428. package/layers/transitions/app/components/Motion/Transition.vue +76 -0
  429. package/layers/transitions/nuxt.config.ts +19 -0
  430. package/layers/transitions/package.json +6 -0
  431. package/layers/transitions/tsconfig.json +7 -0
  432. package/layers/typography/app/components/Typography/CodeBlock.vue +44 -0
  433. package/layers/typography/app/components/Typography/Headline.vue +90 -0
  434. package/layers/typography/app/components/Typography/HeadlineScreen.vue +75 -0
  435. package/layers/typography/app/components/Typography/QuoteBlock.vue +21 -0
  436. package/layers/{ui → typography}/app/components/Typography/TextStroke.vue +33 -32
  437. package/layers/typography/app/components/Typography/index.vue +54 -0
  438. package/layers/{ui → typography}/app/composables/typography.ts +1 -0
  439. package/layers/{ui → typography}/app/types/typography.ts +1 -1
  440. package/layers/typography/nuxt.config.ts +17 -0
  441. package/layers/typography/package.json +6 -0
  442. package/layers/typography/tsconfig.json +7 -0
  443. package/layers/ui/app/assets/css/ui.css +0 -20
  444. package/layers/ui/nuxt.config.ts +5 -21
  445. package/layers/visual/app/app.config.ts +115 -0
  446. package/layers/visual/app/assets/css/visual.css +15 -0
  447. package/layers/visual/app/components/Accent/Blob.vue +32 -0
  448. package/layers/{ui → visual}/app/components/Accent/Scene.vue +26 -23
  449. package/layers/visual/app/components/Base/Modal.vue +123 -0
  450. package/layers/visual/app/components/Gradient/Background.vue +24 -0
  451. package/layers/visual/app/components/Gradient/Text.vue +24 -0
  452. package/layers/visual/app/components/Media/Picture.vue +51 -0
  453. package/layers/visual/app/components/Progress/Bar.vue +36 -0
  454. package/layers/{ui → visual}/app/components/Progress/Circular.vue +26 -25
  455. package/layers/visual/app/components/Tint/Overlay.vue +27 -0
  456. package/layers/{ui → visual}/app/composables/accent.ts +1 -0
  457. package/layers/{ui → visual}/app/composables/gradient.ts +3 -0
  458. package/layers/{ui → visual}/app/composables/picture.ts +2 -0
  459. package/layers/{ui → visual}/app/composables/tint.ts +3 -2
  460. package/layers/{ui → visual}/app/types/accent.ts +2 -2
  461. package/layers/{ui → visual}/app/types/gradient.ts +2 -2
  462. package/layers/{ui → visual}/app/types/media.ts +4 -3
  463. package/layers/{ui → visual}/app/types/tint.ts +1 -1
  464. package/layers/visual/nuxt.config.ts +19 -0
  465. package/layers/visual/package.json +6 -0
  466. package/layers/visual/tsconfig.json +7 -0
  467. package/package.json +32 -6
  468. package/layers/motion/app/app.config.ts +0 -27
  469. package/layers/motion/app/components/Motion/HorizontalScroll.vue +0 -61
  470. package/layers/motion/app/components/Motion/Parallax.vue +0 -75
  471. package/layers/motion/app/components/Motion/PinnedSection.vue +0 -77
  472. package/layers/motion/app/components/Motion/ScrollLink.vue +0 -49
  473. package/layers/motion/app/components/Motion/ScrollProgress.vue +0 -82
  474. package/layers/motion/app/components/Motion/ScrollScene.vue +0 -121
  475. package/layers/motion/app/components/Motion/ScrollStep.vue +0 -45
  476. package/layers/motion/app/components/Motion/Transition.vue +0 -76
  477. package/layers/shader/app/components/Shader/Canvas.vue +0 -121
  478. package/layers/ui/app/app.config.ts +0 -57
  479. package/layers/ui/app/components/Accent/Blob.vue +0 -29
  480. package/layers/ui/app/components/Base/Modal.vue +0 -111
  481. package/layers/ui/app/components/Gradient/Background.vue +0 -22
  482. package/layers/ui/app/components/Gradient/Text.vue +0 -22
  483. package/layers/ui/app/components/Links/Group.vue +0 -47
  484. package/layers/ui/app/components/Links/Named.vue +0 -31
  485. package/layers/ui/app/components/Mast/Footer.vue +0 -15
  486. package/layers/ui/app/components/Mast/NavModal.vue +0 -72
  487. package/layers/ui/app/components/Media/Picture.vue +0 -50
  488. package/layers/ui/app/components/Progress/Bar.vue +0 -35
  489. package/layers/ui/app/components/Tint/Overlay.vue +0 -25
  490. package/layers/ui/app/components/Typography/CodeBlock.vue +0 -42
  491. package/layers/ui/app/components/Typography/Headline.vue +0 -88
  492. package/layers/ui/app/components/Typography/HeadlineScreen.vue +0 -77
  493. package/layers/ui/app/components/Typography/QuoteBlock.vue +0 -20
  494. package/layers/ui/app/components/Typography/index.vue +0 -52
  495. package/layers/ui/app/types/app-config.d.ts +0 -22
  496. package/layers/ui/app/types/nav.ts +0 -5
  497. /package/layers/{motion → animations}/app/components/Motion/CountUp.vue +0 -0
  498. /package/layers/{motion → animations}/app/components/Motion/Cursor.vue +0 -0
  499. /package/layers/{motion → animations}/app/components/Motion/Magnetic.vue +0 -0
  500. /package/layers/{motion → animations}/app/components/Motion/Marquee.vue +0 -0
  501. /package/layers/{motion → animations}/app/components/Motion/MarqueeText.vue +0 -0
  502. /package/layers/{motion → animations}/app/components/Motion/Staggered.vue +0 -0
  503. /package/layers/{motion → animations}/app/components/Motion/TextReveal.vue +0 -0
  504. /package/layers/{motion → animations}/app/components/Motion/Tilt.vue +0 -0
  505. /package/layers/{motion → animations}/app/components/Motion/VelocityEffect.vue +0 -0
  506. /package/layers/{motion → animations}/app/composables/useCountUp.ts +0 -0
  507. /package/layers/{motion → animations}/app/composables/useCursorFollower.ts +0 -0
  508. /package/layers/{motion → animations}/app/composables/useMagneticElement.ts +0 -0
  509. /package/layers/{motion → animations}/app/composables/useMarqueeCopies.ts +0 -0
  510. /package/layers/{motion → animations}/app/composables/useMarqueeVelocity.ts +0 -0
  511. /package/layers/{motion → animations}/app/composables/useTiltEffect.ts +0 -0
  512. /package/layers/{ui → navigation}/app/components/Mast/Main.vue +0 -0
  513. /package/layers/{ui → navigation}/app/components/Site/Subtitle.vue +0 -0
  514. /package/layers/{ui → navigation}/app/components/Site/Title.vue +0 -0
  515. /package/layers/{ui → navigation}/app/utils/regex.ts +0 -0
  516. /package/layers/{motion/app/assets/css/motion.css → transitions/app/assets/css/transitions.css} +0 -0
  517. /package/layers/{ui → typography}/app/composables/color.ts +0 -0
  518. /package/layers/{ui → typography}/app/types/colors.ts +0 -0
  519. /package/layers/{ui → visual}/app/types/breakpoints.ts +0 -0
@@ -1,60 +1,98 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color, Vector3 } from 'three'
4
- import { uniform, time, vec4, mix, smoothstep, float } from 'three/tsl'
5
- import { fbm2D } from '../../shaders/common/noise'
5
+ // @ts-nocheck
6
+ import { Color, Vector3 } from 'three'
7
+ import { float, mix, smoothstep, time, uniform, vec4 } from 'three/tsl'
6
8
 
7
- const props = withDefaults(defineProps<{
8
- /** Sky colour */
9
- colorSky?: string
10
- /** Cloud colour */
11
- colorCloud?: string
12
- /** FBM noise input scale */
13
- scale?: number
14
- /** Cloud coverage: lower = fewer clouds, higher = overcast */
15
- coverage?: number
16
- /** Cloud softness */
17
- softness?: number
18
- /** Wind speed */
19
- speed?: number
20
- order?: number
21
- }>(), { colorSky: '#5588cc', colorCloud: '#ffffff', scale: 2, coverage: 0.5, softness: 0.15, speed: 0.05, order: 0 })
9
+ import { fbm2D } from '../../shaders/common/noise'
22
10
 
23
- function toVec3Node(hex: string) {
24
- const c = new Color(hex)
25
- return uniform(new Vector3(c.r, c.g, c.b))
26
- }
11
+ const props = withDefaults(
12
+ defineProps<{
13
+ /** Sky colour */
14
+ colorSky?: string
15
+ /** Cloud colour */
16
+ colorCloud?: string
17
+ /** FBM noise input scale */
18
+ scale?: number
19
+ /** Cloud coverage: lower = fewer clouds, higher = overcast */
20
+ coverage?: number
21
+ /** Cloud softness */
22
+ softness?: number
23
+ /** Wind speed */
24
+ speed?: number
25
+ order?: number
26
+ }>(),
27
+ {
28
+ colorSky: '#5588cc',
29
+ colorCloud: '#ffffff',
30
+ scale: 2,
31
+ coverage: 0.5,
32
+ softness: 0.15,
33
+ speed: 0.05,
34
+ order: 0,
35
+ }
36
+ )
27
37
 
28
- const colorSkyNode = toVec3Node(props.colorSky)
29
- const colorCloudNode = toVec3Node(props.colorCloud)
30
- const scaleNode = uniform(props.scale)
31
- const coverageNode = uniform(props.coverage)
32
- const softnessNode = uniform(props.softness)
33
- const speedNode = uniform(props.speed)
34
- watch(() => props.colorSky, v => { const c = new Color(v); colorSkyNode.value.set(c.r, c.g, c.b) })
35
- watch(() => props.colorCloud, v => { const c = new Color(v); colorCloudNode.value.set(c.r, c.g, c.b) })
36
- watch(() => props.scale, v => { scaleNode.value = v })
37
- watch(() => props.coverage, v => { coverageNode.value = v })
38
- watch(() => props.softness, v => { softnessNode.value = v })
39
- watch(() => props.speed, v => { speedNode.value = v })
38
+ function toVec3Node(hex: string) {
39
+ const c = new Color(hex)
40
+ return uniform(new Vector3(c.r, c.g, c.b))
41
+ }
40
42
 
41
- const pipeline = useShaderPipelineContext()
43
+ const colorSkyNode = toVec3Node(props.colorSky)
44
+ const colorCloudNode = toVec3Node(props.colorCloud)
45
+ const scaleNode = uniform(props.scale)
46
+ const coverageNode = uniform(props.coverage)
47
+ const softnessNode = uniform(props.softness)
48
+ const speedNode = uniform(props.speed)
49
+ watch(
50
+ () => props.colorSky,
51
+ (v) => {
52
+ const c = new Color(v)
53
+ colorSkyNode.value.set(c.r, c.g, c.b)
54
+ }
55
+ )
56
+ watch(
57
+ () => props.colorCloud,
58
+ (v) => {
59
+ const c = new Color(v)
60
+ colorCloudNode.value.set(c.r, c.g, c.b)
61
+ }
62
+ )
63
+ watch(
64
+ () => props.scale,
65
+ (v) => {
66
+ scaleNode.value = v
67
+ }
68
+ )
69
+ watch(
70
+ () => props.coverage,
71
+ (v) => {
72
+ coverageNode.value = v
73
+ }
74
+ )
75
+ watch(
76
+ () => props.softness,
77
+ (v) => {
78
+ softnessNode.value = v
79
+ }
80
+ )
81
+ watch(
82
+ () => props.speed,
83
+ (v) => {
84
+ speedNode.value = v
85
+ }
86
+ )
42
87
 
43
- useShaderStage(
44
- () => {
88
+ const pipeline = useShaderPipelineContext()
89
+
90
+ useShaderStage(() => {
45
91
  const uv = pipeline.uvNode.value
46
92
  const wind = time.mul(speedNode)
47
93
  const n = fbm2D(uv.mul(scaleNode).add(wind)).mul(0.5).add(0.5)
48
94
  // Remap to cloud mask using coverage + softness
49
- const cloud = smoothstep(
50
- coverageNode.sub(softnessNode),
51
- coverageNode.add(softnessNode),
52
- n,
53
- )
95
+ const cloud = smoothstep(coverageNode.sub(softnessNode), coverageNode.add(softnessNode), n)
54
96
  return vec4(mix(colorSkyNode, colorCloudNode, cloud), float(1))
55
- },
56
- props.order,
57
- )
97
+ }, props.order)
58
98
  </script>
59
-
60
- <template><!-- --></template>
@@ -1,24 +1,39 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color } from 'three'
4
- import { mix, uniform, vec4 } from 'three/tsl'
5
- import { blendColorBurn } from '../../shaders/common/blend'
5
+ // @ts-nocheck
6
+ import { Color } from 'three'
7
+ import { mix, uniform, vec4 } from 'three/tsl'
6
8
 
7
- const props = withDefaults(defineProps<{
8
- color?: string
9
- opacity?: number
10
- order?: number
11
- }>(), { color: '#808080', opacity: 1, order: 0 })
9
+ import { blendColorBurn } from '../../shaders/common/blend'
12
10
 
13
- const colorNode = uniform(new Color(props.color))
14
- const opacityNode = uniform(props.opacity)
15
- watch(() => props.color, v => { colorNode.value.set(v) })
16
- watch(() => props.opacity, v => { opacityNode.value = v })
11
+ const props = withDefaults(
12
+ defineProps<{
13
+ color?: string
14
+ opacity?: number
15
+ order?: number
16
+ }>(),
17
+ { color: '#808080', opacity: 1, order: 0 }
18
+ )
17
19
 
18
- useShaderStage(
19
- (prev) => vec4(mix(prev.xyz, blendColorBurn(prev.xyz, colorNode), opacityNode), prev.w),
20
- props.order,
21
- )
22
- </script>
20
+ const colorNode = uniform(new Color(props.color))
21
+ const opacityNode = uniform(props.opacity)
22
+ watch(
23
+ () => props.color,
24
+ (v) => {
25
+ colorNode.value.set(v)
26
+ }
27
+ )
28
+ watch(
29
+ () => props.opacity,
30
+ (v) => {
31
+ opacityNode.value = v
32
+ }
33
+ )
23
34
 
24
- <template><!-- --></template>
35
+ useShaderStage(
36
+ (prev) => vec4(mix(prev.xyz, blendColorBurn(prev.xyz, colorNode), opacityNode), prev.w),
37
+ props.order
38
+ )
39
+ </script>
@@ -1,24 +1,39 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color } from 'three'
4
- import { mix, uniform, vec4 } from 'three/tsl'
5
- import { blendColorDodge } from '../../shaders/common/blend'
5
+ // @ts-nocheck
6
+ import { Color } from 'three'
7
+ import { mix, uniform, vec4 } from 'three/tsl'
6
8
 
7
- const props = withDefaults(defineProps<{
8
- color?: string
9
- opacity?: number
10
- order?: number
11
- }>(), { color: '#808080', opacity: 1, order: 0 })
9
+ import { blendColorDodge } from '../../shaders/common/blend'
12
10
 
13
- const colorNode = uniform(new Color(props.color))
14
- const opacityNode = uniform(props.opacity)
15
- watch(() => props.color, v => { colorNode.value.set(v) })
16
- watch(() => props.opacity, v => { opacityNode.value = v })
11
+ const props = withDefaults(
12
+ defineProps<{
13
+ color?: string
14
+ opacity?: number
15
+ order?: number
16
+ }>(),
17
+ { color: '#808080', opacity: 1, order: 0 }
18
+ )
17
19
 
18
- useShaderStage(
19
- (prev) => vec4(mix(prev.xyz, blendColorDodge(prev.xyz, colorNode), opacityNode), prev.w),
20
- props.order,
21
- )
22
- </script>
20
+ const colorNode = uniform(new Color(props.color))
21
+ const opacityNode = uniform(props.opacity)
22
+ watch(
23
+ () => props.color,
24
+ (v) => {
25
+ colorNode.value.set(v)
26
+ }
27
+ )
28
+ watch(
29
+ () => props.opacity,
30
+ (v) => {
31
+ opacityNode.value = v
32
+ }
33
+ )
23
34
 
24
- <template><!-- --></template>
35
+ useShaderStage(
36
+ (prev) => vec4(mix(prev.xyz, blendColorDodge(prev.xyz, colorNode), opacityNode), prev.w),
37
+ props.order
38
+ )
39
+ </script>
@@ -1,57 +1,87 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color, Vector3 } from 'three'
4
- import { uniform, vec4, mix, smoothstep, float } from 'three/tsl'
5
- import { luminance } from '../../shaders/common/blend'
5
+ // @ts-nocheck
6
+ import { Color, Vector3 } from 'three'
7
+ import { float, mix, smoothstep, uniform, vec4 } from 'three/tsl'
6
8
 
7
- /**
8
- * Maps input luminance to a three-stop colour ramp: shadow → midtone → highlight.
9
- * For a simple two-stop ramp use DuoTone instead.
10
- */
11
- const props = withDefaults(defineProps<{
12
- shadowColor?: string
13
- midtoneColor?: string
14
- highlightColor?: string
15
- /** Luminance threshold between shadow and midtone */
16
- shadowPoint?: number
17
- /** Luminance threshold between midtone and highlight */
18
- highlightPoint?: number
19
- order?: number
20
- }>(), {
21
- shadowColor: '#000033',
22
- midtoneColor: '#660066',
23
- highlightColor: '#ffcc88',
24
- shadowPoint: 0.33,
25
- highlightPoint: 0.67,
26
- order: 0,
27
- })
9
+ import { luminance } from '../../shaders/common/blend'
28
10
 
29
- function toVec3Node(hex: string) {
30
- const c = new Color(hex)
31
- return uniform(new Vector3(c.r, c.g, c.b))
32
- }
11
+ /**
12
+ * Maps input luminance to a three-stop colour ramp: shadow → midtone → highlight.
13
+ * For a simple two-stop ramp use DuoTone instead.
14
+ */
15
+ const props = withDefaults(
16
+ defineProps<{
17
+ shadowColor?: string
18
+ midtoneColor?: string
19
+ highlightColor?: string
20
+ /** Luminance threshold between shadow and midtone */
21
+ shadowPoint?: number
22
+ /** Luminance threshold between midtone and highlight */
23
+ highlightPoint?: number
24
+ order?: number
25
+ }>(),
26
+ {
27
+ shadowColor: '#000033',
28
+ midtoneColor: '#660066',
29
+ highlightColor: '#ffcc88',
30
+ shadowPoint: 0.33,
31
+ highlightPoint: 0.67,
32
+ order: 0,
33
+ }
34
+ )
33
35
 
34
- const shadowNode = toVec3Node(props.shadowColor)
35
- const midNode = toVec3Node(props.midtoneColor)
36
- const highlightNode = toVec3Node(props.highlightColor)
37
- const shadowPtNode = uniform(props.shadowPoint)
38
- const highlightPtNode = uniform(props.highlightPoint)
39
- watch(() => props.shadowColor, v => { const c = new Color(v); shadowNode.value.set(c.r, c.g, c.b) })
40
- watch(() => props.midtoneColor, v => { const c = new Color(v); midNode.value.set(c.r, c.g, c.b) })
41
- watch(() => props.highlightColor, v => { const c = new Color(v); highlightNode.value.set(c.r, c.g, c.b) })
42
- watch(() => props.shadowPoint, v => { shadowPtNode.value = v })
43
- watch(() => props.highlightPoint, v => { highlightPtNode.value = v })
36
+ function toVec3Node(hex: string) {
37
+ const c = new Color(hex)
38
+ return uniform(new Vector3(c.r, c.g, c.b))
39
+ }
44
40
 
45
- useShaderStage(
46
- (prev) => {
41
+ const shadowNode = toVec3Node(props.shadowColor)
42
+ const midNode = toVec3Node(props.midtoneColor)
43
+ const highlightNode = toVec3Node(props.highlightColor)
44
+ const shadowPtNode = uniform(props.shadowPoint)
45
+ const highlightPtNode = uniform(props.highlightPoint)
46
+ watch(
47
+ () => props.shadowColor,
48
+ (v) => {
49
+ const c = new Color(v)
50
+ shadowNode.value.set(c.r, c.g, c.b)
51
+ }
52
+ )
53
+ watch(
54
+ () => props.midtoneColor,
55
+ (v) => {
56
+ const c = new Color(v)
57
+ midNode.value.set(c.r, c.g, c.b)
58
+ }
59
+ )
60
+ watch(
61
+ () => props.highlightColor,
62
+ (v) => {
63
+ const c = new Color(v)
64
+ highlightNode.value.set(c.r, c.g, c.b)
65
+ }
66
+ )
67
+ watch(
68
+ () => props.shadowPoint,
69
+ (v) => {
70
+ shadowPtNode.value = v
71
+ }
72
+ )
73
+ watch(
74
+ () => props.highlightPoint,
75
+ (v) => {
76
+ highlightPtNode.value = v
77
+ }
78
+ )
79
+
80
+ useShaderStage((prev) => {
47
81
  const lum = luminance(prev.xyz)
48
82
  const t1 = smoothstep(float(0), shadowPtNode, lum)
49
83
  const t2 = smoothstep(shadowPtNode, highlightPtNode, lum)
50
84
  const colour = mix(mix(shadowNode, midNode, t1), mix(midNode, highlightNode, t2), t2)
51
85
  return vec4(colour, prev.w)
52
- },
53
- props.order,
54
- )
86
+ }, props.order)
55
87
  </script>
56
-
57
- <template><!-- --></template>
@@ -1,51 +1,82 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { uniform, time, vec2, vec4, float, cos, sin } from 'three/tsl'
4
- import { complexDiv, complexLog } from '../../shaders/common/complex'
5
+ // @ts-nocheck
6
+ import { cos, float, sin, time, uniform, vec2, vec4 } from 'three/tsl'
5
7
 
6
- /**
7
- * Complex number plane visualisation — the imaginary2 pattern.
8
- * Places two poles p, q derived from poleAngle/poleDistance,
9
- * computes the Möbius transformation (z-p)/(z-q), takes the complex log,
10
- * and extracts the imaginary component (winding angle) as a scalar float.
11
- * Outputs grayscale for CosinePalette (scalarSource: 'prev').
12
- */
13
- const props = withDefaults(defineProps<{
14
- /** Angle between the two poles in radians */
15
- poleAngle?: number
16
- /** Distance of poles from origin */
17
- poleDistance?: number
18
- /** Weight of the imaginary (winding) component */
19
- imaginaryWeight?: number
20
- /** Weight of the radial (exp) component */
21
- radialWeight?: number
22
- /** Animation speed */
23
- speed?: number
24
- order?: number
25
- }>(), {
26
- poleAngle: Math.PI / 3,
27
- poleDistance: 0.4,
28
- imaginaryWeight: 0.6,
29
- radialWeight: 0.4,
30
- speed: 0.05,
31
- order: 0,
32
- })
8
+ import { complexDiv, complexLog } from '../../shaders/common/complex'
33
9
 
34
- const poleAngleNode = uniform(props.poleAngle)
35
- const poleDistNode = uniform(props.poleDistance)
36
- const imagWeightNode = uniform(props.imaginaryWeight)
37
- const radWeightNode = uniform(props.radialWeight)
38
- const speedNode = uniform(props.speed)
39
- watch(() => props.poleAngle, v => { poleAngleNode.value = v })
40
- watch(() => props.poleDistance, v => { poleDistNode.value = v })
41
- watch(() => props.imaginaryWeight, v => { imagWeightNode.value = v })
42
- watch(() => props.radialWeight, v => { radWeightNode.value = v })
43
- watch(() => props.speed, v => { speedNode.value = v })
10
+ /**
11
+ * Complex number plane visualisation — the imaginary2 pattern.
12
+ * Places two poles p, q derived from poleAngle/poleDistance,
13
+ * computes the Möbius transformation (z-p)/(z-q), takes the complex log,
14
+ * and extracts the imaginary component (winding angle) as a scalar float.
15
+ * Outputs grayscale for CosinePalette (scalarSource: 'prev').
16
+ */
17
+ const props = withDefaults(
18
+ defineProps<{
19
+ /** Angle between the two poles in radians */
20
+ poleAngle?: number
21
+ /** Distance of poles from origin */
22
+ poleDistance?: number
23
+ /** Weight of the imaginary (winding) component */
24
+ imaginaryWeight?: number
25
+ /** Weight of the radial (exp) component */
26
+ radialWeight?: number
27
+ /** Animation speed */
28
+ speed?: number
29
+ order?: number
30
+ }>(),
31
+ {
32
+ poleAngle: Math.PI / 3,
33
+ poleDistance: 0.4,
34
+ imaginaryWeight: 0.6,
35
+ radialWeight: 0.4,
36
+ speed: 0.05,
37
+ order: 0,
38
+ }
39
+ )
44
40
 
45
- const pipeline = useShaderPipelineContext()
41
+ const poleAngleNode = uniform(props.poleAngle)
42
+ const poleDistNode = uniform(props.poleDistance)
43
+ const imagWeightNode = uniform(props.imaginaryWeight)
44
+ const radWeightNode = uniform(props.radialWeight)
45
+ const speedNode = uniform(props.speed)
46
+ watch(
47
+ () => props.poleAngle,
48
+ (v) => {
49
+ poleAngleNode.value = v
50
+ }
51
+ )
52
+ watch(
53
+ () => props.poleDistance,
54
+ (v) => {
55
+ poleDistNode.value = v
56
+ }
57
+ )
58
+ watch(
59
+ () => props.imaginaryWeight,
60
+ (v) => {
61
+ imagWeightNode.value = v
62
+ }
63
+ )
64
+ watch(
65
+ () => props.radialWeight,
66
+ (v) => {
67
+ radWeightNode.value = v
68
+ }
69
+ )
70
+ watch(
71
+ () => props.speed,
72
+ (v) => {
73
+ speedNode.value = v
74
+ }
75
+ )
46
76
 
47
- useShaderStage(
48
- () => {
77
+ const pipeline = useShaderPipelineContext()
78
+
79
+ useShaderStage(() => {
49
80
  const uvCurrent = pipeline.uvNode.value
50
81
  const t = time.mul(speedNode)
51
82
 
@@ -55,7 +86,7 @@ useShaderStage(
55
86
  // Pole position (complex number)
56
87
  const angle = poleAngleNode.add(t)
57
88
  const p = vec2(cos(angle).mul(poleDistNode), sin(angle).mul(poleDistNode))
58
- const q = vec2(p.x, p.y.negate()) // conjugate
89
+ const q = vec2(p.x, p.y.negate()) // conjugate
59
90
 
60
91
  // Möbius: (z - p) / (z - q)
61
92
  const w = complexDiv(z.sub(p), z.sub(q))
@@ -65,13 +96,12 @@ useShaderStage(
65
96
 
66
97
  // Combine imaginary (winding angle) and radial (exp magnitude) components
67
98
  const imagPart = logW.y.mul(imagWeightNode)
68
- const radPart = z.x.exp().div(z.y.abs().add(float(0.001))).mul(radWeightNode)
99
+ const radPart = z.x
100
+ .exp()
101
+ .div(z.y.abs().add(float(0.001)))
102
+ .mul(radWeightNode)
69
103
  const scalar = imagPart.add(radPart).mul(0.5).add(0.5)
70
104
 
71
105
  return vec4(scalar, scalar, scalar, float(1))
72
- },
73
- props.order,
74
- )
106
+ }, props.order)
75
107
  </script>
76
-
77
- <template><!-- --></template>
@@ -1,40 +1,58 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color, Vector3 } from 'three'
4
- import { uniform, vec4, mix, float } from 'three/tsl'
5
+ // @ts-nocheck
6
+ import { Color, Vector3 } from 'three'
7
+ import { float, mix, uniform, vec4 } from 'three/tsl'
5
8
 
6
- const props = withDefaults(defineProps<{
7
- colorA?: string
8
- colorB?: string
9
- /** Rotation offset in degrees */
10
- rotation?: number
11
- order?: number
12
- }>(), { colorA: '#000000', colorB: '#ffffff', rotation: 0, order: 0 })
9
+ const props = withDefaults(
10
+ defineProps<{
11
+ colorA?: string
12
+ colorB?: string
13
+ /** Rotation offset in degrees */
14
+ rotation?: number
15
+ order?: number
16
+ }>(),
17
+ { colorA: '#000000', colorB: '#ffffff', rotation: 0, order: 0 }
18
+ )
13
19
 
14
- function toVec3Node(hex: string) {
15
- const c = new Color(hex)
16
- return uniform(new Vector3(c.r, c.g, c.b))
17
- }
20
+ function toVec3Node(hex: string) {
21
+ const c = new Color(hex)
22
+ return uniform(new Vector3(c.r, c.g, c.b))
23
+ }
18
24
 
19
- const colorANode = toVec3Node(props.colorA)
20
- const colorBNode = toVec3Node(props.colorB)
21
- const rotationNode = uniform(props.rotation * Math.PI / 180)
22
- watch(() => props.colorA, v => { const c = new Color(v); colorANode.value.set(c.r, c.g, c.b) })
23
- watch(() => props.colorB, v => { const c = new Color(v); colorBNode.value.set(c.r, c.g, c.b) })
24
- watch(() => props.rotation, v => { rotationNode.value = v * Math.PI / 180 })
25
+ const colorANode = toVec3Node(props.colorA)
26
+ const colorBNode = toVec3Node(props.colorB)
27
+ const rotationNode = uniform((props.rotation * Math.PI) / 180)
28
+ watch(
29
+ () => props.colorA,
30
+ (v) => {
31
+ const c = new Color(v)
32
+ colorANode.value.set(c.r, c.g, c.b)
33
+ }
34
+ )
35
+ watch(
36
+ () => props.colorB,
37
+ (v) => {
38
+ const c = new Color(v)
39
+ colorBNode.value.set(c.r, c.g, c.b)
40
+ }
41
+ )
42
+ watch(
43
+ () => props.rotation,
44
+ (v) => {
45
+ rotationNode.value = (v * Math.PI) / 180
46
+ }
47
+ )
25
48
 
26
- const pipeline = useShaderPipelineContext()
49
+ const pipeline = useShaderPipelineContext()
27
50
 
28
- useShaderStage(
29
- () => {
51
+ useShaderStage(() => {
30
52
  const uv = pipeline.uvNode.value
31
53
  const centered = uv.sub(0.5)
32
54
  const angle = centered.y.atan(centered.x).add(rotationNode)
33
55
  const t = angle.div(Math.PI * 2).fract()
34
56
  return vec4(mix(colorANode, colorBNode, t), float(1))
35
- },
36
- props.order,
37
- )
57
+ }, props.order)
38
58
  </script>
39
-
40
- <template><!-- --></template>