@mkbabb/glass-ui 4.0.0 → 4.1.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 (609) hide show
  1. package/README.md +3 -1
  2. package/dist/CardAction-8whJrLWt.js +268 -0
  3. package/dist/{CommandShortcut-DdtWXxOK.js → CommandShortcut-D3yxgHNn.js} +25 -14
  4. package/dist/ConfiguratorRow-CaP7U3ZA.js +143 -0
  5. package/dist/ContextMenuContent-B3ZsheLV.js +90 -0
  6. package/dist/{ContextMenuSubContent-B0Vs6atR.js → ContextMenuSubContent-DDRID3qC.js} +28 -33
  7. package/dist/{DataTable-C464Zbqd.js → DataTable-Bc9kUtu_.js} +4 -4
  8. package/dist/{DialogContent-DDE6pQBU.js → DialogContent-6JtTB5x2.js} +11 -8
  9. package/dist/DialogFooter-9phqcRIS.js +80 -0
  10. package/dist/DialogScrollContent-TTuovQst.js +93 -0
  11. package/dist/{FadingScroll-DwNnvKMs.js → FadingScroll-DLRbH5Xr.js} +1 -1
  12. package/dist/HoverCardContent-Bel1gdLZ.js +88 -0
  13. package/dist/{HoverPopover-Dpzwvc4t.js → HoverPopover-BcIxvyqZ.js} +2 -2
  14. package/dist/{IconChip-BDw1j5mu.js → IconChip-DhbdGdFQ.js} +2 -1
  15. package/dist/{IconTooltip-DSjasZIt.js → IconTooltip-B0zimd2H.js} +1 -1
  16. package/dist/Input-Cg9DF62r.js +57 -0
  17. package/dist/{MetricBadge-BpC0R_Ec.js → MetricBadge-RHdBP72w.js} +1 -1
  18. package/dist/Notification-CphK7AAm.js +43 -0
  19. package/dist/NumberFieldContent-D8cXeyO4.js +140 -0
  20. package/dist/PagerDots-Cjx96la-.js +98 -0
  21. package/dist/{PopoverContent-BTorlp--.js → PopoverContent-DL7E6vJP.js} +4 -4
  22. package/dist/{Progress-hAT4gqGH.js → Progress-CnqB7gLm.js} +4 -4
  23. package/dist/{ScrollingText-CUVFTWk2.js → ScrollingText-CTZbA_cG.js} +2 -2
  24. package/dist/{SelectScrollDownButton-C1jb3b3K.js → SelectScrollDownButton-DAKCBEdW.js} +65 -61
  25. package/dist/{SelectSeparator-DK2y1Bun.js → SelectSeparator-C2UGOkXF.js} +1 -1
  26. package/dist/Separator-DQcwC2TR.js +44 -0
  27. package/dist/Switch-B8RscmRu.js +49 -0
  28. package/dist/Toaster-D9qIHjBI.js +274 -0
  29. package/dist/ToggleGroupItem-BLtr3TJq.js +170 -0
  30. package/dist/TooltipProvider-BJ_Y5EGX.js +109 -0
  31. package/dist/animated-digit.js +2 -2
  32. package/dist/api/index.d.ts +21 -33
  33. package/dist/api/types-extra.d.ts +37 -0
  34. package/dist/api.js +1 -1
  35. package/dist/aurora.js +1231 -260
  36. package/dist/badge.js +1 -1
  37. package/dist/border-progress.d.ts +1 -0
  38. package/dist/border-progress.js +98 -0
  39. package/dist/button-5dY1Dvhd.js +125 -0
  40. package/dist/button.js +1 -1
  41. package/dist/canvas.js +2 -3
  42. package/dist/card.js +2 -2
  43. package/dist/carousel.js +93 -110
  44. package/dist/collapsible.js +1 -1
  45. package/dist/color-Cs0-oxYL.js +116 -0
  46. package/dist/color.js +2 -2
  47. package/dist/command.js +1 -1
  48. package/dist/compile-nZ1xVYTp.js +19 -0
  49. package/dist/completion-seal.d.ts +1 -0
  50. package/dist/completion-seal.js +89 -0
  51. package/dist/components/custom/aurora/Aurora.vue.d.ts +10 -5
  52. package/dist/components/custom/aurora/composables/atoms-fields.d.ts +39 -0
  53. package/dist/components/custom/aurora/composables/auroraFallbackGround.d.ts +108 -0
  54. package/dist/components/custom/aurora/composables/color.d.ts +13 -0
  55. package/dist/components/custom/aurora/composables/frameLoop.d.ts +9 -0
  56. package/dist/components/custom/aurora/composables/runtime.d.ts +31 -0
  57. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +5 -1
  58. package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +60 -0
  59. package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +37 -0
  60. package/dist/components/custom/aurora/constants/budget.d.ts +21 -0
  61. package/dist/components/custom/aurora/constants/presets.d.ts +20 -2
  62. package/dist/components/custom/aurora/constants/renderMode.d.ts +77 -18
  63. package/dist/components/custom/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -0
  64. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -0
  65. package/dist/components/custom/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -0
  66. package/dist/components/custom/aurora/constants/shaders/procedural-color.wgsl.d.ts +4 -0
  67. package/dist/components/custom/aurora/index.d.ts +2 -1
  68. package/dist/components/custom/border-progress/BorderProgress.vue.d.ts +46 -0
  69. package/dist/components/custom/border-progress/composables/spectrum-walk.d.ts +25 -0
  70. package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +18 -0
  71. package/dist/components/custom/border-progress/constants.d.ts +59 -0
  72. package/dist/components/custom/border-progress/index.d.ts +4 -0
  73. package/dist/components/custom/completion-seal/CompletionSeal.vue.d.ts +21 -0
  74. package/dist/components/custom/completion-seal/composables/useCompletionSeal.d.ts +37 -0
  75. package/dist/components/custom/completion-seal/constants.d.ts +46 -0
  76. package/dist/components/custom/completion-seal/index.d.ts +4 -0
  77. package/dist/components/custom/concentric/Concentric.vue.d.ts +39 -0
  78. package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +18 -0
  79. package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +22 -0
  80. package/dist/components/custom/concentric/composables/ringField.d.ts +85 -0
  81. package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +14 -0
  82. package/dist/components/custom/concentric/composables/useConcentric.d.ts +35 -0
  83. package/dist/components/custom/concentric/constants.d.ts +67 -0
  84. package/dist/components/custom/concentric/index.d.ts +5 -0
  85. package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +4 -0
  86. package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -0
  87. package/dist/components/custom/confirm-dialog/ConfirmDialog.vue.d.ts +3 -3
  88. package/dist/components/custom/constellation/Constellation.vue.d.ts +5 -4
  89. package/dist/components/custom/constellation/composables/constellationGLSetup.d.ts +10 -0
  90. package/dist/components/custom/constellation/composables/constellationWGPUSetup.d.ts +19 -0
  91. package/dist/components/custom/constellation/composables/uniformBridgeWGPU.d.ts +66 -0
  92. package/dist/components/custom/constellation/composables/useConstellation.d.ts +3 -10
  93. package/dist/components/custom/constellation/constants.d.ts +33 -0
  94. package/dist/components/custom/constellation/constellationField.d.ts +31 -1
  95. package/dist/components/custom/constellation/constellationInteraction.d.ts +23 -14
  96. package/dist/components/custom/constellation/constellationRender.d.ts +25 -0
  97. package/dist/components/custom/constellation/constellationTypes.d.ts +38 -0
  98. package/dist/components/custom/constellation/constellationWell.d.ts +15 -0
  99. package/dist/components/custom/constellation/index.d.ts +5 -5
  100. package/dist/components/custom/constellation/shaders/constellation-lines.glsl.d.ts +2 -0
  101. package/dist/components/custom/constellation/shaders/constellation-lines.wgsl.d.ts +1 -0
  102. package/dist/components/custom/constellation/shaders/constellation-points.glsl.d.ts +2 -0
  103. package/dist/components/custom/constellation/shaders/constellation-points.wgsl.d.ts +1 -0
  104. package/dist/components/custom/deck/DeckPager.vue.d.ts +29 -0
  105. package/dist/components/custom/deck/composables/useDeck.d.ts +27 -0
  106. package/dist/components/custom/deck/composables/useDeckKeyboard.d.ts +25 -0
  107. package/dist/components/custom/deck/composables/useDeckSpring.d.ts +22 -0
  108. package/dist/components/custom/deck/constants.d.ts +14 -0
  109. package/dist/components/custom/deck/index.d.ts +8 -0
  110. package/dist/components/custom/dock/DockIconButton.vue.d.ts +25 -4
  111. package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +10 -2
  112. package/dist/components/custom/dock/DockStack.vue.d.ts +65 -0
  113. package/dist/components/custom/dock/GlassDock.vue.d.ts +4 -2
  114. package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +155 -0
  115. package/dist/components/custom/dock/composables/index.d.ts +2 -0
  116. package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
  117. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +11 -0
  118. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -0
  119. package/dist/components/custom/dock/constants.d.ts +18 -14
  120. package/dist/components/custom/dock/index.d.ts +5 -2
  121. package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +42 -0
  122. package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +83 -0
  123. package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +39 -0
  124. package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +35 -0
  125. package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +31 -0
  126. package/dist/components/custom/dot-flow-field/constants.d.ts +69 -0
  127. package/dist/components/custom/dot-flow-field/index.d.ts +5 -0
  128. package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -0
  129. package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +4 -0
  130. package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -0
  131. package/dist/components/custom/dot-matrix/DotMatrix.vue.d.ts +43 -0
  132. package/dist/components/custom/dot-matrix/composables/dotMatrixField.d.ts +89 -0
  133. package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +52 -0
  134. package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
  135. package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +27 -0
  136. package/dist/components/custom/dot-matrix/constants.d.ts +58 -0
  137. package/dist/components/custom/dot-matrix/index.d.ts +5 -0
  138. package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +4 -0
  139. package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -0
  140. package/dist/components/custom/easing/EasingConfigurator.vue.d.ts +33 -0
  141. package/dist/components/custom/easing/EasingPicker.vue.d.ts +49 -0
  142. package/dist/components/custom/easing/composables/useEasingPicker.d.ts +80 -0
  143. package/dist/components/custom/easing/constants.d.ts +28 -0
  144. package/dist/components/custom/easing/index.d.ts +3 -0
  145. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +11 -0
  146. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +43 -40
  147. package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +15 -0
  148. package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +20 -0
  149. package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +41 -0
  150. package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +42 -0
  151. package/dist/components/custom/fourier-field/constants.d.ts +64 -0
  152. package/dist/components/custom/fourier-field/index.d.ts +23 -18
  153. package/dist/components/custom/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +1 -0
  154. package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +4 -0
  155. package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -0
  156. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
  157. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +13 -3
  158. package/dist/components/custom/goo-blob/composables/uniformBridgeWGPU.d.ts +24 -0
  159. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +18 -11
  160. package/dist/components/custom/goo-blob/composables/wgpuSetup.d.ts +23 -0
  161. package/dist/components/custom/goo-blob/constants.d.ts +1 -1
  162. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  163. package/dist/components/custom/goo-blob/shaders/metaball-noise.wgsl.d.ts +1 -0
  164. package/dist/components/custom/goo-blob/shaders/metaball-palette.wgsl.d.ts +1 -0
  165. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
  166. package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -0
  167. package/dist/components/custom/goo-blob/types.d.ts +36 -0
  168. package/dist/components/custom/goo-dot-matrix/GooDotMatrix.vue.d.ts +49 -0
  169. package/dist/components/custom/goo-dot-matrix/composables/gooDotLattice.d.ts +24 -0
  170. package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +50 -0
  171. package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +35 -0
  172. package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
  173. package/dist/components/custom/goo-dot-matrix/constants.d.ts +76 -0
  174. package/dist/components/custom/goo-dot-matrix/index.d.ts +5 -0
  175. package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +11 -0
  176. package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +3 -0
  177. package/dist/components/custom/handmark/HandMark.vue.d.ts +1 -1
  178. package/dist/components/custom/icon-chip/types.d.ts +11 -1
  179. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +3 -1
  180. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +21 -2
  181. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +15 -0
  182. package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
  183. package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +9 -0
  184. package/dist/components/custom/pager-dots/index.d.ts +2 -0
  185. package/dist/components/custom/pager-dots/pagerWindow.d.ts +9 -0
  186. package/dist/components/custom/paper-grid/PaperGrid.vue.d.ts +42 -0
  187. package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +90 -0
  188. package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +16 -0
  189. package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +19 -0
  190. package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +16 -0
  191. package/dist/components/custom/paper-grid/composables/usePaperGrid.d.ts +31 -0
  192. package/dist/components/custom/paper-grid/constants.d.ts +57 -0
  193. package/dist/components/custom/paper-grid/index.d.ts +5 -0
  194. package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +4 -0
  195. package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -0
  196. package/dist/components/custom/search/FuzzySearch.vue.d.ts +8 -2
  197. package/dist/components/custom/search/SearchBar.vue.d.ts +8 -0
  198. package/dist/components/custom/search/index.d.ts +2 -0
  199. package/dist/components/custom/search/searchVariants.d.ts +19 -0
  200. package/dist/components/custom/selectable-chip/SelectableChip.vue.d.ts +50 -0
  201. package/dist/components/custom/selectable-chip/index.d.ts +2 -0
  202. package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +23 -0
  203. package/dist/components/custom/spa-view/SpaView.vue.d.ts +50 -0
  204. package/dist/components/custom/spa-view/index.d.ts +2 -0
  205. package/dist/components/custom/split-chars/SplitChars.vue.d.ts +39 -0
  206. package/dist/components/custom/split-chars/index.d.ts +1 -0
  207. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +12 -0
  208. package/dist/components/custom/tabs/composables/useTabDragMorph.d.ts +42 -0
  209. package/dist/components/custom/tabs/constants.d.ts +20 -2
  210. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +30 -17
  211. package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +10 -5
  212. package/dist/components/ui/_shared/index.d.ts +2 -0
  213. package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
  214. package/dist/components/ui/_shared/useControlSize.d.ts +46 -0
  215. package/dist/components/ui/badge/index.d.ts +1 -1
  216. package/dist/components/ui/button/Button.vue.d.ts +5 -2
  217. package/dist/components/ui/button/index.d.ts +2 -2
  218. package/dist/components/ui/card/Card.vue.d.ts +79 -4
  219. package/dist/components/ui/card/CardHeader.vue.d.ts +42 -16
  220. package/dist/components/ui/card/ScrollCard.vue.d.ts +33 -0
  221. package/dist/components/ui/card/ScrollCardHeader.vue.d.ts +17 -0
  222. package/dist/components/ui/card/index.d.ts +3 -1
  223. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
  224. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
  225. package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +2 -2
  226. package/dist/components/ui/command/Command.vue.d.ts +1 -1
  227. package/dist/components/ui/command/CommandDialog.vue.d.ts +9 -3
  228. package/dist/components/ui/command/CommandList.vue.d.ts +3 -0
  229. package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +5 -1
  230. package/dist/components/ui/drawer/Drawer.vue.d.ts +46 -33
  231. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +7 -8
  232. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +2 -2
  233. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +1 -1
  234. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +2 -2
  235. package/dist/components/ui/drawer/composables/drawerSnapContext.d.ts +26 -0
  236. package/dist/components/ui/drawer/composables/useDrawerSnap.d.ts +17 -0
  237. package/dist/components/ui/drawer/constants.d.ts +45 -0
  238. package/dist/components/ui/drawer/index.d.ts +23 -15
  239. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +4 -0
  240. package/dist/components/ui/focus-scope/FocusScope.vue.d.ts +20 -0
  241. package/dist/components/ui/focus-scope/index.d.ts +2 -0
  242. package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -0
  243. package/dist/components/ui/index.d.ts +1 -0
  244. package/dist/components/ui/input/Input.vue.d.ts +3 -0
  245. package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -1
  246. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +3 -2
  247. package/dist/components/ui/select/SelectContent.vue.d.ts +4 -1
  248. package/dist/components/ui/sheet/index.d.ts +1 -1
  249. package/dist/components/ui/switch/Switch.vue.d.ts +2 -0
  250. package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
  251. package/dist/components/ui/textarea/Textarea.vue.d.ts +3 -0
  252. package/dist/components/ui/toast/Toast.vue.d.ts +5 -2
  253. package/dist/components/ui/toast/use-toast.d.ts +14 -0
  254. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  255. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +3 -0
  256. package/dist/composables/color/index.d.ts +2 -0
  257. package/dist/composables/color/useAccentTone.d.ts +34 -0
  258. package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +13 -6
  259. package/dist/composables/glass/index.d.ts +5 -2
  260. package/dist/composables/glass/useSpecularPointer.d.ts +33 -0
  261. package/dist/composables/glass/useSpecularTracking.d.ts +20 -0
  262. package/dist/composables/glass/useVizChoreography.d.ts +123 -0
  263. package/dist/composables/glass/vSpecular.d.ts +2 -0
  264. package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +10 -0
  265. package/dist/composables/glass/webgl/shaders/flow.glsl.d.ts +1 -0
  266. package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
  267. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -0
  268. package/dist/composables/glass/webgpu/index.d.ts +2 -0
  269. package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +75 -0
  270. package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +85 -0
  271. package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
  272. package/dist/composables/motion/core/index.d.ts +4 -0
  273. package/dist/composables/motion/index.d.ts +4 -0
  274. package/dist/composables/motion/scrollReader.d.ts +25 -0
  275. package/dist/composables/motion/springPresets.d.ts +20 -1
  276. package/dist/composables/motion/useCharStagger.d.ts +44 -0
  277. package/dist/composables/motion/useDockCtaReceive.d.ts +84 -0
  278. package/dist/composables/motion/useDragMorph.d.ts +77 -0
  279. package/dist/composables/motion/useLiquidFlex.d.ts +11 -0
  280. package/dist/composables/motion/useLiquidPress.d.ts +71 -0
  281. package/dist/composables/motion/useLiquidReveal.d.ts +51 -0
  282. package/dist/composables/motion/useNumericTransition.d.ts +3 -3
  283. package/dist/composables/motion/usePointerVelocityField.d.ts +98 -0
  284. package/dist/composables/motion/useScrollChrome.d.ts +58 -0
  285. package/dist/composables/motion/useScrollTrigger.d.ts +67 -0
  286. package/dist/composables/motion/useSpringPress.d.ts +5 -5
  287. package/dist/composables/motion/useStaggerReveal.d.ts +24 -0
  288. package/dist/composables/sidebar/index.d.ts +4 -1
  289. package/dist/composables/sidebar/types.d.ts +68 -3
  290. package/dist/composables/sidebar/useClickDelegate.d.ts +4 -0
  291. package/dist/composables/sidebar/useLazyLoader.d.ts +5 -0
  292. package/dist/composables/sidebar/useScrollTo.d.ts +5 -0
  293. package/dist/composables/virtual/index.d.ts +4 -0
  294. package/dist/composables/virtual/useVirtualSectionWindow.d.ts +72 -0
  295. package/dist/composables/virtual/useWindowedStore.d.ts +43 -0
  296. package/dist/composables/virtual/virtualSectionLayout.d.ts +103 -0
  297. package/dist/concentric.d.ts +1 -0
  298. package/dist/concentric.js +836 -0
  299. package/dist/configurator.js +3 -2
  300. package/dist/confirm-dialog.js +62 -49
  301. package/dist/constellation.js +635 -235
  302. package/dist/context-menu.js +3 -3
  303. package/dist/controls.js +2 -2
  304. package/dist/createCanvasLifecycle-Gh45Ce-p.js +93 -0
  305. package/dist/dark.js +1 -1
  306. package/dist/data-table.js +1 -1
  307. package/dist/deck.d.ts +1 -0
  308. package/dist/deck.js +105 -0
  309. package/dist/dialog.js +4 -3
  310. package/dist/dock.js +819 -568
  311. package/dist/{dockContext-Bu1Avy-a.js → dockContext-BNfyPLe9.js} +1 -1
  312. package/dist/dom.js +5 -5
  313. package/dist/dot-flow-field.d.ts +1 -0
  314. package/dist/dot-flow-field.js +894 -0
  315. package/dist/dot-matrix.d.ts +1 -0
  316. package/dist/dot-matrix.js +630 -0
  317. package/dist/dotMatrixField-D_x9_1qq.js +48 -0
  318. package/dist/drawer.d.ts +1 -0
  319. package/dist/drawer.js +380 -0
  320. package/dist/{dropdown-menu-BJ7E9js_.js → dropdown-menu-aJmV5SqE.js} +82 -79
  321. package/dist/dropdown-menu.js +1 -1
  322. package/dist/easing.d.ts +1 -0
  323. package/dist/easing.js +475 -0
  324. package/dist/expandable-container.js +46 -21
  325. package/dist/fading-scroll.js +1 -1
  326. package/dist/flow.glsl-B2P7e0MT.js +4 -0
  327. package/dist/focus-scope.d.ts +1 -0
  328. package/dist/focus-scope.js +23 -0
  329. package/dist/forms.js +65 -63
  330. package/dist/fourier-field.js +831 -172
  331. package/dist/fourier-math.js +1 -1
  332. package/dist/glass-panel.js +2 -2
  333. package/dist/glass-ui.css +1 -1
  334. package/dist/glass-ui.js +187 -338
  335. package/dist/goo-blob.js +241 -692
  336. package/dist/goo-dot-matrix.d.ts +1 -0
  337. package/dist/goo-dot-matrix.js +591 -0
  338. package/dist/handmark.js +2 -2
  339. package/dist/header-ribbon.js +1 -1
  340. package/dist/hover-card.js +1 -1
  341. package/dist/hover-popover.js +1 -1
  342. package/dist/icon-chip.js +1 -1
  343. package/dist/icon-tooltip.js +1 -1
  344. package/dist/index.d.ts +3 -1
  345. package/dist/instrument-chassis.js +1 -1
  346. package/dist/keyboard.js +1 -1
  347. package/dist/label.js +1 -1
  348. package/dist/labeled-field.js +70 -60
  349. package/dist/metric-badge.js +1 -1
  350. package/dist/metric-cell.js +1 -1
  351. package/dist/metric-stack.js +14 -9
  352. package/dist/motion-core.js +58 -36
  353. package/dist/motion-curves.js +11 -1
  354. package/dist/motion.js +90 -53
  355. package/dist/notification.js +1 -1
  356. package/dist/number-field.js +1 -1
  357. package/dist/pager-dots.js +2 -91
  358. package/dist/paper-backdrop.js +1 -1
  359. package/dist/paper-grid.d.ts +1 -0
  360. package/dist/paper-grid.js +788 -0
  361. package/dist/popover.js +1 -1
  362. package/dist/{presets-BW2b-fr1.js → presets-CvOUqtdY.js} +3 -3
  363. package/dist/{compile-EXXzEr1q.js → procedural-color.wgsl-m7Zgv35j.js} +2 -156
  364. package/dist/progress.js +1 -1
  365. package/dist/pulse.js +2 -2
  366. package/dist/reactive.js +1 -1
  367. package/dist/resolveCanvasColor-yPyIpJt9.js +93 -0
  368. package/dist/scrollReader-DI1NWxUw.js +42 -0
  369. package/dist/scrolling-text.js +1 -1
  370. package/dist/search.js +162 -308
  371. package/dist/select.js +3 -3
  372. package/dist/selectable-chip.d.ts +1 -0
  373. package/dist/selectable-chip.js +65 -0
  374. package/dist/separator.js +1 -1
  375. package/dist/{sheet-CquRYOAw.js → sheet-B2flBfLH.js} +5 -5
  376. package/dist/sheet.js +1 -1
  377. package/dist/sidebar.js +216 -114
  378. package/dist/{slider-DQ95MET2.js → slider-2A0rPn79.js} +3 -3
  379. package/dist/slider.js +1 -1
  380. package/dist/sortable-list.js +2 -2
  381. package/dist/spa-view.d.ts +1 -0
  382. package/dist/spa-view.js +46 -0
  383. package/dist/spectrum-walk-BVzA7Biz.js +33 -0
  384. package/dist/{springPresets-WXaLbu8u.js → springPresets-Ce7OYCm9.js} +12 -6
  385. package/dist/styles/animations.css +46 -12
  386. package/dist/styles/border-progress.css +109 -0
  387. package/dist/styles/cards.css +145 -0
  388. package/dist/styles/completion-seal.css +131 -0
  389. package/dist/styles/components.css +2 -3
  390. package/dist/styles/configurator.css +55 -0
  391. package/dist/styles/critical-partition.mjs +162 -0
  392. package/dist/styles/critical.css +12 -0
  393. package/dist/styles/deferred.css +33 -0
  394. package/dist/styles/dock/cta-seat.css +87 -0
  395. package/dist/styles/dock/density.css +198 -0
  396. package/dist/styles/dock/layers.css +101 -29
  397. package/dist/styles/dock/morph-bridge.css +54 -18
  398. package/dist/styles/dock/morph.css +132 -7
  399. package/dist/styles/dock/overflow.css +28 -2
  400. package/dist/styles/dock/search.css +68 -0
  401. package/dist/styles/dock/shape.css +124 -0
  402. package/dist/styles/dock/shell.css +77 -21
  403. package/dist/styles/dock/stack-rail.css +264 -0
  404. package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
  405. package/dist/styles/dock-controls/icon-button.css +14 -0
  406. package/dist/styles/dock.css +43 -1
  407. package/dist/styles/drawer.css +81 -35
  408. package/dist/styles/glass/accent-tone.css +66 -0
  409. package/dist/styles/glass/control-surfaces.css +167 -0
  410. package/dist/styles/glass/deep.css +44 -0
  411. package/dist/styles/glass/ladder.css +147 -41
  412. package/dist/styles/glass/material.css +78 -15
  413. package/dist/styles/glass/reveal.css +136 -0
  414. package/dist/styles/glass/rim.css +110 -0
  415. package/dist/styles/glass/surfaces.css +148 -129
  416. package/dist/styles/glass-refract.css +96 -44
  417. package/dist/styles/glass-specular-track.css +7 -0
  418. package/dist/styles/glass.css +13 -0
  419. package/dist/styles/hover-popover.css +7 -6
  420. package/dist/styles/icon-chip.css +77 -15
  421. package/dist/styles/index.css +36 -9
  422. package/dist/styles/instrument-chassis.css +66 -3
  423. package/dist/styles/scroll-choreography.css +300 -0
  424. package/dist/styles/scroll-chrome.css +123 -0
  425. package/dist/styles/scroll-driven.css +38 -0
  426. package/dist/styles/segmented-tabs.css +81 -14
  427. package/dist/styles/theme/bridges.css +33 -0
  428. package/dist/styles/theme/literals.css +11 -2
  429. package/dist/styles/theme/radius.css +24 -2
  430. package/dist/styles/tokens/color-radius.css +13 -3
  431. package/dist/styles/tokens/dark-arm.css +137 -32
  432. package/dist/styles/tokens/glass-deep.css +100 -0
  433. package/dist/styles/tokens/glass-fx.css +376 -0
  434. package/dist/styles/tokens/glass.css +131 -351
  435. package/dist/styles/tokens/light-dark.css +16 -3
  436. package/dist/styles/tokens/offsets.css +143 -0
  437. package/dist/styles/tokens/on-glass-fg.css +39 -0
  438. package/dist/styles/tokens/property-regs.css +260 -0
  439. package/dist/styles/tokens/scale-paper.css +168 -96
  440. package/dist/styles/tokens/scheme-motion.css +114 -38
  441. package/dist/styles/tokens/scroll-tokens.css +123 -0
  442. package/dist/styles/tokens/sizing-config.css +110 -0
  443. package/{src/styles/tokens/offsets-sizing.css → dist/styles/tokens/sizing.css} +92 -204
  444. package/dist/styles/tokens.css +14 -3
  445. package/dist/styles/typography/semantic.css +26 -13
  446. package/dist/styles/typography/utilities.css +22 -7
  447. package/dist/styles/utilities/a11y-overrides.css +20 -5
  448. package/dist/styles/utilities/animate.css +27 -24
  449. package/dist/styles/utilities/base-misc.css +307 -0
  450. package/dist/styles/utilities/base.css +47 -261
  451. package/dist/styles/utilities/btn.css +17 -4
  452. package/dist/styles/utilities/components.css +31 -6
  453. package/dist/styles/utilities/metal.css +215 -0
  454. package/dist/styles/utilities.css +14 -7
  455. package/dist/switch.js +1 -1
  456. package/dist/tabs.js +220 -107
  457. package/dist/timeline.js +2 -2
  458. package/dist/toast.js +1 -1
  459. package/dist/toggle-chip.js +10 -10
  460. package/dist/toggle-group.js +1 -1
  461. package/dist/tooltip.js +1 -1
  462. package/dist/typewriter.js +2 -2
  463. package/dist/uniformBridgeWGPU-CtAKl45L.js +1204 -0
  464. package/dist/{useAnimatedNumber-C_3wZLx4.js → useAnimatedNumber-CLrxicG9.js} +1 -1
  465. package/dist/useConfiguratorState-4xblKfwd.js +162 -0
  466. package/dist/useControlSize-SH1UmJCi.js +9 -0
  467. package/dist/useDockCtaReceive-DfFkmgL1.js +82 -0
  468. package/dist/useDragMorph-BUgAC-zK.js +102 -0
  469. package/dist/useFuzzySearch-DIhcYtcw.js +177 -0
  470. package/dist/useGpuSubstrate-4pTcp6mX.js +294 -0
  471. package/dist/useLiquidPress-BooG97RY.js +39 -0
  472. package/dist/usePointerVelocityField-QLsy3_kv.js +91 -0
  473. package/dist/useScrollChrome-D66AVP7C.js +258 -0
  474. package/dist/useSpring-C0jyvEJB.js +40 -0
  475. package/dist/useSpringMount-BWDnKIwh.js +71 -0
  476. package/dist/useSpringPress-B1-Czp-V.js +36 -0
  477. package/dist/{useTouchGate-28Tk2-t2.js → useTouchGate-CBZTD4SD.js} +1 -1
  478. package/dist/useViewTransition-CUI1nAgn.js +95 -0
  479. package/dist/vSpecular-EX7loENl.js +68 -0
  480. package/dist/vendor-B2qOlYY3.js +239 -0
  481. package/dist/virtual.d.ts +1 -0
  482. package/dist/virtual.js +225 -0
  483. package/dist/watercolor-dot.js +117 -74
  484. package/package.json +252 -28
  485. package/src/styles/animations.css +46 -12
  486. package/src/styles/border-progress.css +109 -0
  487. package/src/styles/cards.css +145 -0
  488. package/src/styles/completion-seal.css +131 -0
  489. package/src/styles/configurator.css +55 -0
  490. package/src/styles/critical-partition.mjs +162 -0
  491. package/src/styles/dock/cta-seat.css +87 -0
  492. package/src/styles/dock/density.css +198 -0
  493. package/src/styles/dock/layers.css +101 -29
  494. package/src/styles/dock/morph-bridge.css +54 -18
  495. package/src/styles/dock/morph.css +132 -7
  496. package/src/styles/dock/overflow.css +28 -2
  497. package/src/styles/dock/search.css +68 -0
  498. package/src/styles/dock/shape.css +124 -0
  499. package/src/styles/dock/shell.css +77 -21
  500. package/src/styles/dock/stack-rail.css +264 -0
  501. package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
  502. package/src/styles/dock-controls/icon-button.css +14 -0
  503. package/src/styles/dock.css +43 -1
  504. package/src/styles/drawer.css +81 -35
  505. package/src/styles/glass/accent-tone.css +66 -0
  506. package/src/styles/glass/control-surfaces.css +167 -0
  507. package/src/styles/glass/deep.css +44 -0
  508. package/src/styles/glass/ladder.css +147 -41
  509. package/src/styles/glass/material.css +78 -15
  510. package/src/styles/glass/reveal.css +136 -0
  511. package/src/styles/glass/rim.css +110 -0
  512. package/src/styles/glass/surfaces.css +148 -129
  513. package/src/styles/glass-refract.css +96 -44
  514. package/src/styles/glass-specular-track.css +7 -0
  515. package/src/styles/glass.css +13 -0
  516. package/src/styles/hover-popover.css +7 -6
  517. package/src/styles/icon-chip.css +77 -15
  518. package/src/styles/index.css +27 -0
  519. package/src/styles/instrument-chassis.css +66 -3
  520. package/src/styles/scroll-choreography.css +300 -0
  521. package/src/styles/scroll-chrome.css +123 -0
  522. package/src/styles/scroll-driven.css +38 -0
  523. package/src/styles/segmented-tabs.css +81 -14
  524. package/src/styles/theme/bridges.css +33 -0
  525. package/src/styles/theme/literals.css +11 -2
  526. package/src/styles/theme/radius.css +24 -2
  527. package/src/styles/tokens/color-radius.css +13 -3
  528. package/src/styles/tokens/dark-arm.css +137 -32
  529. package/src/styles/tokens/glass-deep.css +100 -0
  530. package/src/styles/tokens/glass-fx.css +376 -0
  531. package/src/styles/tokens/glass.css +131 -351
  532. package/src/styles/tokens/light-dark.css +16 -3
  533. package/src/styles/tokens/offsets.css +143 -0
  534. package/src/styles/tokens/on-glass-fg.css +39 -0
  535. package/src/styles/tokens/property-regs.css +260 -0
  536. package/src/styles/tokens/scale-paper.css +168 -96
  537. package/src/styles/tokens/scheme-motion.css +114 -38
  538. package/src/styles/tokens/scroll-tokens.css +123 -0
  539. package/src/styles/tokens/sizing-config.css +110 -0
  540. package/{dist/styles/tokens/offsets-sizing.css → src/styles/tokens/sizing.css} +92 -204
  541. package/src/styles/tokens.css +14 -3
  542. package/src/styles/typography/semantic.css +26 -13
  543. package/src/styles/typography/utilities.css +22 -7
  544. package/src/styles/utilities/a11y-overrides.css +20 -5
  545. package/src/styles/utilities/animate.css +27 -24
  546. package/src/styles/utilities/base-misc.css +307 -0
  547. package/src/styles/utilities/base.css +47 -261
  548. package/src/styles/utilities/btn.css +17 -4
  549. package/src/styles/utilities/components.css +31 -6
  550. package/src/styles/utilities/metal.css +215 -0
  551. package/src/styles/utilities.css +14 -7
  552. package/dist/CardAction-XH4YBVEK.js +0 -158
  553. package/dist/ContextMenuContent-ON3x7cuk.js +0 -85
  554. package/dist/DialogFooter-8eZbdmPc.js +0 -165
  555. package/dist/HoverCardContent-DkMaQzH5.js +0 -83
  556. package/dist/Input-DVG_J0ne.js +0 -55
  557. package/dist/Notification-DKjKsQq8.js +0 -100
  558. package/dist/NumberFieldContent-1VtwDSgf.js +0 -145
  559. package/dist/Separator-BArl4OaB.js +0 -37
  560. package/dist/Switch-Dr--uLGH.js +0 -47
  561. package/dist/Toaster-Bm_HQSpc.js +0 -263
  562. package/dist/ToggleGroupItem-Dzk9hWsF.js +0 -157
  563. package/dist/TooltipProvider-B3MkB_8P.js +0 -104
  564. package/dist/button-BNDWhAZb.js +0 -81
  565. package/dist/check-njhk-vfu.js +0 -7
  566. package/dist/chevron-down-DKkxb4VV.js +0 -7
  567. package/dist/chevron-right-CPXbqQQz.js +0 -7
  568. package/dist/chevron-up-n_24SqI-.js +0 -7
  569. package/dist/color-DweYl7pE.js +0 -86
  570. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +0 -35
  571. package/dist/components/custom/constellation/constellationDraw.d.ts +0 -30
  572. package/dist/components/custom/dock/DockRail.vue.d.ts +0 -89
  573. package/dist/createLucideIcon-DydS2qgk.js +0 -43
  574. package/dist/minimize-2-BV31Ob_h.js +0 -38
  575. package/dist/resolveCanvasColor-BBiYfp8g.js +0 -11
  576. package/dist/search-BSGrf2Sk.js +0 -12
  577. package/dist/styles/dock/rail-extend.css +0 -397
  578. package/dist/useCanvas2D-ClrQuZtp.js +0 -96
  579. package/dist/useConfiguratorState-kiIlun8I.js +0 -303
  580. package/dist/useRAFLoop-CdwJ7284.js +0 -109
  581. package/dist/useSpecularTracking-Bo5su68i.js +0 -32
  582. package/dist/useSpringMount-CvopqiFr.js +0 -108
  583. package/dist/useViewTransition-COsPjQVZ.js +0 -47
  584. package/dist/x-BUwTKe50.js +0 -10
  585. package/src/styles/dock/rail-extend.css +0 -397
  586. /package/dist/{CollapsibleContent-C_s6fG7r.js → CollapsibleContent-68dEXIAl.js} +0 -0
  587. /package/dist/{InstrumentChassis-UUJX0-mW.js → InstrumentChassis-CxsHSyMj.js} +0 -0
  588. /package/dist/{Label-Ck9SWEKM.js → Label-C2ejNWeC.js} +0 -0
  589. /package/dist/{ModalOverlay-CkPRRgl_.js → ModalOverlay-D1VrWyoi.js} +0 -0
  590. /package/dist/{PaperBackdrop-nBKe0vkB.js → PaperBackdrop-CqwjnfLv.js} +0 -0
  591. /package/dist/{SelectGroup-Dcczq44n.js → SelectGroup-BFiod7X2.js} +0 -0
  592. /package/dist/{_plugin-vue_export-helper-CBt_VvXa.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
  593. /package/dist/{badge-UILT_3pZ.js → badge-D9XWW4GT.js} +0 -0
  594. /package/dist/{constants-BPOqYJAm.js → constants--C2DkLW8.js} +0 -0
  595. /package/dist/{createContext-B2RaZ-b8.js → createContext-CpBNTRMI.js} +0 -0
  596. /package/dist/{math-DeuJwLFx.js → math-Eb0w3LqU.js} +0 -0
  597. /package/dist/{menuItemVariants-DWRQXBxJ.js → menuItemVariants-D8VNHq22.js} +0 -0
  598. /package/dist/{prng-Cg22zv8g.js → prng-B-d9eYX8.js} +0 -0
  599. /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-CmjB9E32.js} +0 -0
  600. /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Dbozzjgm.js} +0 -0
  601. /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BPRp33Im.js} +0 -0
  602. /package/dist/{useLiquidFlex-C12hXwOZ.js → useLiquidFlex-UmA6LMZu.js} +0 -0
  603. /package/dist/{useResizeObserver-V6nq5gJb.js → useResizeObserver-Bpoi7tRE.js} +0 -0
  604. /package/dist/{useResolveTokenColor-NUG2zYAW.js → useResolveTokenColor-vAylyR0x.js} +0 -0
  605. /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-c3yxmH6a.js} +0 -0
  606. /package/dist/{useSurfaceAxis-CMnF2zHb.js → useSurfaceAxis-g0NloYEF.js} +0 -0
  607. /package/dist/{useTimer-B_PAasDL.js → useTimer-BHJOKr35.js} +0 -0
  608. /package/dist/{useUserInvalidAria-CDfJuakL.js → useUserInvalidAria-y5namzeE.js} +0 -0
  609. /package/dist/{useViewportReady-CvBcCYDf.js → useViewportReady-anbac3m6.js} +0 -0
@@ -1,10 +1,11 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./useCanvas2D-ClrQuZtp.js";
3
- import { t as n } from "./_plugin-vue_export-helper-CBt_VvXa.js";
4
- import { n as r, t as i } from "./prng-Cg22zv8g.js";
5
- import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, getCurrentInstance as l, normalizeClass as u, onMounted as d, openBlock as f, ref as p, unref as m, useTemplateRef as h } from "vue";
2
+ import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
3
+ import { t as n } from "./usePointerVelocityField-QLsy3_kv.js";
4
+ import { a as r, t as i } from "./useGpuSubstrate-4pTcp6mX.js";
5
+ import { n as a, t as o } from "./prng-B-d9eYX8.js";
6
+ import { computed as s, createElementBlock as c, createElementVNode as l, defineComponent as u, getCurrentInstance as d, normalizeClass as f, onMounted as p, onUnmounted as m, openBlock as h, ref as g, unref as _, useTemplateRef as v } from "vue";
6
7
  //#region src/components/custom/constellation/constants.ts
7
- var g = 1280, _ = {
8
+ var y = 1280, b = {
8
9
  node: "#b4afa3",
9
10
  nodeDim: "#cdc8bd",
10
11
  line: "#1c1714",
@@ -14,23 +15,46 @@ var g = 1280, _ = {
14
15
  accent: "#b35030",
15
16
  edgeFloor: 0,
16
17
  edgeAccentAlpha: .3
17
- }, v = .55, y = 1, b = {
18
- gain: 14e3,
18
+ }, x = .55, S = 1, C = {
19
+ gain: 19e3,
19
20
  reach: 340,
20
- ramp: 4,
21
+ ramp: 8,
21
22
  maxSpeed: 4,
22
23
  soften: 8,
23
24
  holdMs: 140
24
- }, x = 8e3, S = 8e3, C = .14, w = 2600, T = 6e3, E = 8e3, D = .72;
25
+ }, w = 8e3, T = 8e3, E = .14, D = 2600, O = 6e3, k = 8e3, A = .72, j = 256, M = 12, N = 256 * 12, P = .08, F = 1.6, I = 1.6, L = .001, R = .6, z = 11, B = 22, V = .05;
26
+ function H(e, t, n, r) {
27
+ let i = e.well;
28
+ if (!i || !(r > 0)) return;
29
+ let a = Math.min(r, V), o = i.cfg, s = i.target > 0 ? o.ramp : B, c = Math.min(s * a, 1);
30
+ i.strength += (i.target - i.strength) * c, i.strength < L && (i.strength = i.target <= 0 ? 0 : i.strength);
31
+ let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ? R : z, m = Math.min(p * a, 1), h = i.strength > L && i.x >= 0, g = e.pinnedIndex;
32
+ for (let e = 0; e < l.length; e++) {
33
+ if (e === g) continue;
34
+ let t = l[e];
35
+ if (h) {
36
+ let e = i.x - t.x, n = i.y - t.y, r = e * e + n * n;
37
+ if (r <= d) {
38
+ let s = Math.max(Math.sqrt(r), o.soften), c = o.gain * i.strength / (s * s), l = t.vx + e / s * c * a, u = t.vy + n / s * c * a, d = Math.hypot(l, u);
39
+ d > f && (l = l / d * f, u = u / d * f), t.vx = l, t.vy = u;
40
+ }
41
+ }
42
+ let r = Math.hypot(t.vx, t.vy);
43
+ if (r > 1e-9) {
44
+ let e = (r + (n - r) * m) / r;
45
+ t.vx *= e, t.vy *= e;
46
+ }
47
+ }
48
+ }
25
49
  //#endregion
26
50
  //#region src/components/custom/constellation/constellationInteraction.ts
27
- function O(e) {
51
+ function ee(e) {
28
52
  let t = {
29
- response: v,
53
+ response: x,
30
54
  zeta: 1
31
- }, n = { ...b }, r = {
32
- minIdle: x,
33
- jitter: S
55
+ }, n = { ...C }, r = {
56
+ minIdle: w,
57
+ jitter: T
34
58
  };
35
59
  if (typeof window > "u") return {
36
60
  warp: t,
@@ -43,38 +67,14 @@ function O(e) {
43
67
  let r = Number.parseFloat(n);
44
68
  return Number.isFinite(r) ? r : t;
45
69
  };
46
- return t.response = a("--constellation-warp-response", v), t.zeta = a("--constellation-warp-zeta", 1), n.gain = a("--constellation-well-gain", b.gain), n.reach = a("--constellation-well-reach", b.reach), n.ramp = a("--constellation-well-ramp", b.ramp), n.maxSpeed = a("--constellation-well-max-speed", b.maxSpeed), n.holdMs = a("--constellation-well-hold-ms", b.holdMs), r.minIdle = a("--constellation-wander-idle", x), r.jitter = a("--constellation-wander-jitter", S), {
70
+ return t.response = a("--constellation-warp-response", x), t.zeta = a("--constellation-warp-zeta", 1), n.gain = a("--constellation-well-gain", C.gain), n.reach = a("--constellation-well-reach", C.reach), n.ramp = a("--constellation-well-ramp", C.ramp), n.maxSpeed = a("--constellation-well-max-speed", C.maxSpeed), n.holdMs = a("--constellation-well-hold-ms", C.holdMs), r.minIdle = a("--constellation-wander-idle", w), r.jitter = a("--constellation-wander-jitter", T), {
47
71
  warp: t,
48
72
  well: n,
49
73
  wander: r
50
74
  };
51
75
  }
52
- var k = .001, A = 1.5, j = 7, M = 22;
53
- function N(e, t, n, r) {
54
- let i = e.well;
55
- if (!i || !(r > 0)) return;
56
- let a = Math.min(r, P), o = i.cfg, s = i.target > 0 ? o.ramp : M, c = Math.min(s * a, 1);
57
- i.strength += (i.target - i.strength) * c, i.strength < k && (i.strength = i.target <= 0 ? 0 : i.strength);
58
- let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ? A : j, m = Math.min(p * a, 1), h = i.strength > k && i.x >= 0, g = e.pinnedIndex;
59
- for (let e = 0; e < l.length; e++) {
60
- if (e === g) continue;
61
- let t = l[e];
62
- if (h) {
63
- let e = i.x - t.x, n = i.y - t.y, r = e * e + n * n;
64
- if (r <= d) {
65
- let s = Math.max(Math.sqrt(r), o.soften), c = o.gain * i.strength / (s * s), l = t.vx + e / s * c * a, u = t.vy + n / s * c * a, d = Math.hypot(l, u);
66
- d > f && (l = l / d * f, u = u / d * f), t.vx = l, t.vy = u;
67
- }
68
- }
69
- let r = Math.hypot(t.vx, t.vy);
70
- if (r > 1e-9) {
71
- let e = (r + (n - r) * m) / r;
72
- t.vx *= e, t.vy *= e;
73
- }
74
- }
75
- }
76
- var P = .05;
77
- function F(e, t, n, r = -1) {
76
+ var te = .05;
77
+ function U(e, t, n, r = -1) {
78
78
  let { nodes: i } = e, a = -1, o = Infinity;
79
79
  for (let e = 0; e < i.length; e++) {
80
80
  if (e === r) continue;
@@ -83,13 +83,13 @@ function F(e, t, n, r = -1) {
83
83
  }
84
84
  return a;
85
85
  }
86
- function I(e, t) {
86
+ function W(e, t) {
87
87
  let { warp: n, nodes: r } = e;
88
88
  if (!n || n.targetIdx < 0 || n.targetIdx >= r.length || !(t > 0)) return;
89
- let i = Math.min(t, P), a = e.warpCfg?.response ?? .55, o = e.warpCfg?.zeta ?? 1, s = 2 * Math.PI / a, c = r[n.targetIdx], l = -2 * o * s * n.vx - s * s * (n.x - c.x), u = -2 * o * s * n.vy - s * s * (n.y - c.y);
89
+ let i = Math.min(t, te), a = e.warpCfg?.response ?? .55, o = e.warpCfg?.zeta ?? 1, s = 2 * Math.PI / a, c = r[n.targetIdx], l = -2 * o * s * n.vx - s * s * (n.x - c.x), u = -2 * o * s * n.vy - s * s * (n.y - c.y);
90
90
  n.vx += l * i, n.vy += u * i, n.x += n.vx * i, n.y += n.vy * i;
91
91
  }
92
- function L(e, t) {
92
+ function G(e, t) {
93
93
  let { warp: n, nodes: r } = e;
94
94
  if (t < 0 || t >= r.length) {
95
95
  n.targetIdx = -1, e.focalIndex = -1;
@@ -97,20 +97,20 @@ function L(e, t) {
97
97
  }
98
98
  e.focalIndex = t, n.targetIdx = t;
99
99
  }
100
- function R(e, t, n) {
101
- let r = F(e, t, n, -1);
100
+ function K(e, t, n) {
101
+ let r = U(e, t, n, -1);
102
102
  if (r >= 0 && r === e.focalIndex) return e.focalIndex;
103
- let i = F(e, t, n, e.focalIndex);
104
- return i < 0 ? -1 : (L(e, i), i);
103
+ let i = U(e, t, n, e.focalIndex);
104
+ return i < 0 ? -1 : (G(e, i), i);
105
105
  }
106
- var z = 24;
107
- function B(e) {
106
+ var ne = 24;
107
+ function q(e) {
108
108
  let { warp: t, nodes: n } = e;
109
109
  if (!t || t.targetIdx < 0 || t.targetIdx >= n.length) return !0;
110
110
  let r = n[t.targetIdx];
111
- return Math.hypot(t.x - r.x, t.y - r.y) < z;
111
+ return Math.hypot(t.x - r.x, t.y - r.y) < ne;
112
112
  }
113
- function V(e, t) {
113
+ function re(e, t) {
114
114
  let n = e.nodes.length;
115
115
  if (n <= 1) return e.focalIndex;
116
116
  let r = e.focalIndex;
@@ -118,7 +118,7 @@ function V(e, t) {
118
118
  let i = Math.floor(t() * (n - 1));
119
119
  return i < r ? i : i + 1;
120
120
  }
121
- function H(e = {}) {
121
+ function ie(e = {}) {
122
122
  return {
123
123
  anchorX: 0,
124
124
  anchorY: 0,
@@ -134,10 +134,10 @@ function H(e = {}) {
134
134
  jitter: e.jitter ?? 8e3
135
135
  };
136
136
  }
137
- function U(e) {
137
+ function ae(e) {
138
138
  return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
139
139
  }
140
- function W(e, t, n) {
140
+ function oe(e, t, n) {
141
141
  let r = e.pinnedDrift;
142
142
  if (!r || e.pinnedIndex < 0 || e.pinnedIndex >= e.nodes.length || !(t > 0)) return;
143
143
  let i = e.nodes[e.pinnedIndex];
@@ -151,12 +151,20 @@ function W(e, t, n) {
151
151
  let a = r.wanderFrac, o = r.anchorX + (n() * 2 - 1) * a * e.w, s = r.anchorY + (n() * 2 - 1) * a * e.h;
152
152
  r.toX = Math.max(.04 * e.w, Math.min(.96 * e.w, o)), r.toY = Math.max(.04 * e.h, Math.min(.96 * e.h, s)), r.legStart = t;
153
153
  }
154
- let a = Math.min((t - r.legStart) / r.durMs, 1), o = U(a);
154
+ let a = Math.min((t - r.legStart) / r.durMs, 1), o = ae(a);
155
155
  i.x = r.fromX + (r.toX - r.fromX) * o, i.y = r.fromY + (r.toY - r.fromY) * o, a >= 1 && (r.legStart = -1, r.nextAt = t + r.minIdle + n() * r.jitter);
156
156
  }
157
+ var se = .45;
158
+ function ce(e, t, n, r) {
159
+ return n >= .45 ? (K(e, t.x, t.y), r.push({
160
+ x: e.warp.x,
161
+ y: e.warp.y,
162
+ start: -1
163
+ }), !0) : !1;
164
+ }
157
165
  //#endregion
158
166
  //#region src/components/custom/constellation/constellationField.ts
159
- function G(e, t, n, r, i) {
167
+ function le(e, t, n, r, i) {
160
168
  let a = [];
161
169
  for (let o = 0; o < t; o++) {
162
170
  let t = e() * Math.PI * 2;
@@ -165,48 +173,98 @@ function G(e, t, n, r, i) {
165
173
  y: e() * r,
166
174
  vx: Math.cos(t) * i,
167
175
  vy: Math.sin(t) * i,
168
- r: 1.6 + e() * 1.6,
169
- dim: e() < .45
176
+ r: F + e() * I,
177
+ dim: e() < .45,
178
+ z: e()
170
179
  });
171
180
  }
172
181
  return a;
173
182
  }
174
- function K(e, t, n) {
183
+ function ue(e, t, n) {
175
184
  if (!(t > 0) || !(n > 0) || t === e.w && n === e.h) return;
176
185
  let r = e.w / t, i = e.h / n;
177
186
  for (let t of e.nodes) t.x *= r, t.y *= i;
178
187
  e.warp.x *= r, e.warp.y *= i;
179
188
  }
180
- function q(e, t, n, r, i = 0, a = 0, o = Math.random) {
181
- let { nodes: s, w: c, h: l } = e, u = e.pinnedIndex;
182
- for (let e = 0; e < s.length; e++) {
183
- if (e === u) continue;
184
- let n = s[e];
185
- n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > c && (n.x = c, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > l && (n.y = l, n.vy *= -1);
189
+ function de(e, t, n, r, i = 0, a = 0, o = Math.random, s = null) {
190
+ let { nodes: c, w: l, h: u } = e, d = e.pinnedIndex;
191
+ for (let e = 0; e < c.length; e++) {
192
+ if (e === d) continue;
193
+ let n = c[e];
194
+ n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > l && (n.x = l, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > u && (n.y = u, n.vy *= -1);
186
195
  }
187
196
  if (r && r.x >= 0) {
188
- let e = 180 * t;
189
- for (let t = 0; t < s.length; t++) {
190
- if (t === u) continue;
191
- let i = s[t], a = r.x - i.x, o = r.y - i.y, c = Math.hypot(a, o);
192
- if (c > .5 && c < e) {
193
- let t = Math.hypot(i.vx, i.vy) || n, r = (1 - c / e) * .08, s = i.vx + a / c * r * t, l = i.vy + o / c * r * t, u = Math.hypot(s, l) || 1;
194
- i.vx = s / u * t, i.vy = l / u * t;
197
+ let e = 180 * t, i = s ? Math.hypot(s.x, s.y) : 0, a = Math.min(i * .05, .16), o = i > 1e-4 && s ? i : 0, l = o > 0 && s ? s.x / o : 0, u = o > 0 && s ? s.y / o : 0;
198
+ for (let t = 0; t < c.length; t++) {
199
+ if (t === d) continue;
200
+ let i = c[t], o = r.x - i.x, s = r.y - i.y, f = Math.hypot(o, s);
201
+ if (f > .5 && f < e) {
202
+ let t = Math.hypot(i.vx, i.vy) || n, r = 1 - f / e, c = r * .08, d = r * a, p = i.vx + (o / f * c + l * d) * t, m = i.vy + (s / f * c + u * d) * t, h = Math.hypot(p, m) || 1;
203
+ i.vx = p / h * t, i.vy = m / h * t;
195
204
  }
196
205
  }
197
206
  }
198
- if (N(e, t, n, i), W(e, a, o), I(e, i), e.warpAutoRelease && e.warp.targetIdx >= 0 && B(e) && (e.warp.targetIdx = -1), e.wander && a > 0) {
207
+ if (H(e, t, n, i), oe(e, a, o), W(e, i), e.warpAutoRelease && e.warp.targetIdx >= 0 && q(e) && (e.warp.targetIdx = -1), e.wander && a > 0) {
199
208
  let t = e.wander;
200
- t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt && B(e) && (L(e, V(e, o)), t.nextAt = a + t.minIdle + o() * t.jitter);
209
+ t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt && q(e) && (G(e, re(e, o)), t.nextAt = a + t.minIdle + o() * t.jitter);
201
210
  }
202
211
  }
212
+ function fe(e, t, n = -1, r = Infinity) {
213
+ let { nodes: i, k: a } = e, o = t * a, s = o * o, c = [];
214
+ for (let e = 0; e < i.length; e++) {
215
+ let t = i[e];
216
+ for (let r = e + 1; r < i.length; r++) {
217
+ let a = i[r], o = t.x - a.x, l = t.y - a.y, u = o * o + l * l;
218
+ if (u > s) continue;
219
+ let d = 1 - u / s, f = +(n >= 0 && (e === n || r === n));
220
+ c.push({
221
+ ax: t.x,
222
+ ay: t.y,
223
+ bx: a.x,
224
+ by: a.y,
225
+ alpha: d,
226
+ accent: f,
227
+ focus: 0
228
+ });
229
+ }
230
+ }
231
+ return c.length > r && (c.sort((e, t) => t.alpha - e.alpha), c.length = r), c;
232
+ }
233
+ function pe(e, t, n, r, i = Infinity) {
234
+ if (!r || r.x < 0) return;
235
+ let { nodes: a, k: o } = t, s = n * o, c = s * s;
236
+ for (let t of a) {
237
+ if (e.length >= i) break;
238
+ let n = t.x - r.x, a = t.y - r.y, o = n * n + a * a;
239
+ o > c || e.push({
240
+ ax: r.x,
241
+ ay: r.y,
242
+ bx: t.x,
243
+ by: t.y,
244
+ alpha: 1 - o / c,
245
+ accent: 0,
246
+ focus: 1
247
+ });
248
+ }
249
+ }
250
+ function me(e, t, n, r, i) {
251
+ if (!t || t.x < 0 || i <= 0) return {
252
+ x: e.x,
253
+ y: e.y
254
+ };
255
+ let a = e.z ?? .5, o = n / 2, s = r / 2, c = (t.x - o) / Math.max(n, 1) * i * a * n, l = (t.y - s) / Math.max(r, 1) * i * a * r;
256
+ return {
257
+ x: e.x + c,
258
+ y: e.y + l
259
+ };
260
+ }
203
261
  //#endregion
204
- //#region src/components/custom/constellation/constellationDraw.ts
205
- function J(e) {
262
+ //#region src/components/custom/constellation/constellationRender.ts
263
+ function he(e) {
206
264
  return Math.max(e.k, e.kFloor ?? .72);
207
265
  }
208
- function Y(e) {
209
- if (typeof window > "u") return { ..._ };
266
+ function ge(e) {
267
+ if (typeof window > "u") return { ...b };
210
268
  let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
211
269
  let r = t.getPropertyValue(e).trim();
212
270
  if (!r) return n;
@@ -214,111 +272,105 @@ function Y(e) {
214
272
  return Number.isFinite(i) ? i : n;
215
273
  };
216
274
  return {
217
- node: n("--constellation-node", _.node),
218
- nodeDim: n("--constellation-node-dim", _.nodeDim),
219
- line: n("--constellation-line", _.line),
220
- edgeAlpha: r("--constellation-edge-alpha", _.edgeAlpha),
221
- edgeFocusAlpha: r("--constellation-edge-focus-alpha", _.edgeFocusAlpha),
222
- alpha: r("--constellation-alpha", _.alpha),
223
- accent: n("--constellation-accent", _.accent),
224
- edgeFloor: r("--constellation-edge-floor", _.edgeFloor),
225
- edgeAccentAlpha: r("--constellation-edge-accent-alpha", _.edgeAccentAlpha)
275
+ node: n("--constellation-node", b.node),
276
+ nodeDim: n("--constellation-node-dim", b.nodeDim),
277
+ line: n("--constellation-line", b.line),
278
+ edgeAlpha: r("--constellation-edge-alpha", b.edgeAlpha),
279
+ edgeFocusAlpha: r("--constellation-edge-focus-alpha", b.edgeFocusAlpha),
280
+ alpha: r("--constellation-alpha", b.alpha),
281
+ accent: n("--constellation-accent", b.accent),
282
+ edgeFloor: r("--constellation-edge-floor", b.edgeFloor),
283
+ edgeAccentAlpha: r("--constellation-edge-accent-alpha", b.edgeAccentAlpha)
226
284
  };
227
285
  }
228
- function X(e, t, n, r, i = 1, a = -1) {
229
- let { nodes: o, k: s } = t, c = J(t), l = n * s, u = l * l, d = r.alpha * i, f = r.edgeAccentAlpha * d;
230
- for (let t = 0; t < o.length; t++) {
231
- let n = o[t];
232
- for (let i = t + 1; i < o.length; i++) {
233
- let s = o[i], l = n.x - s.x, p = n.y - s.y, m = l * l + p * p;
234
- if (m > u) continue;
235
- let h = 1 - m / u;
236
- a >= 0 && (t === a || i === a) ? (e.strokeStyle = r.accent, e.lineWidth = 1.1 * c, e.globalAlpha = f * h) : (e.strokeStyle = r.line, e.lineWidth = 1 * c, e.globalAlpha = (r.edgeAlpha * h + r.edgeFloor) * d), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(s.x, s.y), e.stroke();
286
+ function J(e) {
287
+ let t = (e || "").trim(), n = t.match(/^#([0-9a-fA-F]{3,8})$/);
288
+ if (n) {
289
+ let e = n[1];
290
+ if (e.length === 3) return [
291
+ parseInt(e[0] + e[0], 16) / 255,
292
+ parseInt(e[1] + e[1], 16) / 255,
293
+ parseInt(e[2] + e[2], 16) / 255,
294
+ 1
295
+ ];
296
+ if (e.length === 6 || e.length === 8) {
297
+ let t = e.length === 8 ? parseInt(e.slice(6, 8), 16) / 255 : 1;
298
+ return [
299
+ parseInt(e.slice(0, 2), 16) / 255,
300
+ parseInt(e.slice(2, 4), 16) / 255,
301
+ parseInt(e.slice(4, 6), 16) / 255,
302
+ t
303
+ ];
237
304
  }
238
305
  }
239
- e.globalAlpha = 1;
240
- }
241
- function Z(e, t, n, r = 1) {
242
- let { nodes: i } = t, a = J(t);
243
- e.globalAlpha = r;
244
- for (let t = 0; t < i.length; t++) {
245
- let r = i[t];
246
- e.fillStyle = r.dim ? n.nodeDim : n.node, e.beginPath(), e.arc(r.x, r.y, r.r * a, 0, Math.PI * 2), e.fill();
306
+ let r = t.match(/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+%?))?\s*\)$/i);
307
+ if (r) {
308
+ let e = r[4] == null ? 1 : _e(r[4]);
309
+ return [
310
+ Y(Number(r[1]) / 255),
311
+ Y(Number(r[2]) / 255),
312
+ Y(Number(r[3]) / 255),
313
+ e
314
+ ];
247
315
  }
248
- e.globalAlpha = 1;
249
- }
250
- function Q(e, t, n, r, i, a = 1) {
251
- if (!i || i.x < 0) return;
252
- let { nodes: o, k: s } = t, c = J(t), l = n * s, u = l * l, d = r.edgeFocusAlpha * r.alpha * a;
253
- e.strokeStyle = r.line, e.lineWidth = 1 * c;
254
- for (let t of o) {
255
- let n = t.x - i.x, r = t.y - i.y, a = n * n + r * r;
256
- a > u || (e.globalAlpha = (1 - a / u) * d, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
316
+ let i = t.match(/^hsla?\(\s*([\d.]+)(?:deg)?[\s,]+([\d.]+)%[\s,]+([\d.]+)%(?:[\s,/]+([\d.]+%?))?\s*\)$/i);
317
+ if (i) {
318
+ let e = i[4] == null ? 1 : _e(i[4]), [t, n, r] = ve(Number(i[1]), Number(i[2]) / 100, Number(i[3]) / 100);
319
+ return [
320
+ t,
321
+ n,
322
+ r,
323
+ e
324
+ ];
257
325
  }
258
- e.globalAlpha = .55 * a, e.fillStyle = r.node, e.beginPath(), e.arc(i.x, i.y, 2.6 * c, 0, Math.PI * 2), e.fill(), e.globalAlpha = 1;
259
- }
260
- function $(e, t, n, r, i, a = 1) {
261
- let o = J(t);
262
- e.strokeStyle = i.line;
263
- for (let t = r.length - 1; t >= 0; t--) {
264
- let i = r[t];
265
- i.start < 0 && (i.start = n);
266
- let s = (n - i.start) / 900;
267
- if (s >= 1) {
268
- r.splice(t, 1);
269
- continue;
270
- }
271
- e.globalAlpha = (1 - s) * .5 * a, e.lineWidth = 1.4 * o, e.beginPath(), e.arc(i.x, i.y, (8 + s * 130) * o, 0, Math.PI * 2), e.stroke();
272
- }
273
- e.globalAlpha = 1;
326
+ return [
327
+ .11,
328
+ .09,
329
+ .08,
330
+ 1
331
+ ];
274
332
  }
275
- //#endregion
276
- //#region src/components/custom/constellation/composables/useConstellationPointer.ts
277
- function ee(e) {
278
- let { host: t, canvas: n, field: r, pointer: i, ripples: a, handle: o, toLocalRef: s, pointerReactive: c, warpOnClick: l, gravityWell: u, isFrozen: d } = e, f = (e) => {
279
- let t = n.getBoundingClientRect();
280
- if (!t.width || !t.height) return null;
281
- let i = (e.clientX - t.left) / t.width, a = (e.clientY - t.top) / t.height;
282
- return i < 0 || a < 0 || i > 1 || a > 1 ? null : {
283
- x: i * r.w,
284
- y: a * r.h
285
- };
286
- };
287
- if (s.value = f, c && t && !d && !o.reducedMotion && (t.addEventListener("pointermove", (e) => {
288
- let t = f(e);
289
- t ? (i.x = t.x, i.y = t.y) : (i.x = -1, i.y = -1), o.wake();
290
- }), t.addEventListener("pointerleave", () => {
291
- i.x = -1, i.y = -1;
292
- }), t.addEventListener("pointerdown", (e) => {
293
- let t = f(e);
294
- t && a.push({
295
- x: t.x,
296
- y: t.y,
297
- start: -1
298
- }), o.wake();
299
- })), l && t && !d && !o.reducedMotion && t.addEventListener("pointerdown", (e) => {
300
- let t = f(e);
301
- t && (R(r, t.x, t.y), o.wake());
302
- }), u && t && r.well && !d && !o.reducedMotion) {
303
- let e = r.well, n, i = (t) => {
304
- let r = f(t);
305
- r && (e.x = r.x, e.y = r.y, n = window.setTimeout(() => {
306
- e.target = 1, o.wake();
307
- }, e.cfg.holdMs), o.wake());
308
- }, a = (t) => {
309
- if (e.target > 0) {
310
- let n = f(t);
311
- n && (e.x = n.x, e.y = n.y);
312
- }
313
- }, s = () => {
314
- n !== void 0 && (clearTimeout(n), n = void 0), e.target = 0, o.wake();
315
- };
316
- t.addEventListener("pointerdown", i), t.addEventListener("pointermove", a), t.addEventListener("pointerup", s), t.addEventListener("pointerleave", s), t.addEventListener("pointercancel", s);
317
- }
333
+ function Y(e) {
334
+ return e < 0 ? 0 : e > 1 ? 1 : e;
335
+ }
336
+ function _e(e) {
337
+ return Y(e.endsWith("%") ? Number(e.slice(0, -1)) / 100 : Number(e));
338
+ }
339
+ function ve(e, t, n) {
340
+ let r = (e % 360 + 360) % 360, i = (1 - Math.abs(2 * n - 1)) * t, a = i * (1 - Math.abs(r / 60 % 2 - 1)), o = n - i / 2, s = 0, c = 0, l = 0;
341
+ return r < 60 ? [s, c, l] = [
342
+ i,
343
+ a,
344
+ 0
345
+ ] : r < 120 ? [s, c, l] = [
346
+ a,
347
+ i,
348
+ 0
349
+ ] : r < 180 ? [s, c, l] = [
350
+ 0,
351
+ i,
352
+ a
353
+ ] : r < 240 ? [s, c, l] = [
354
+ 0,
355
+ a,
356
+ i
357
+ ] : r < 300 ? [s, c, l] = [
358
+ a,
359
+ 0,
360
+ i
361
+ ] : [s, c, l] = [
362
+ i,
363
+ 0,
364
+ a
365
+ ], [
366
+ Y(s + o),
367
+ Y(c + o),
368
+ Y(l + o)
369
+ ];
318
370
  }
319
371
  //#endregion
320
372
  //#region src/components/custom/constellation/composables/createConstellationField.ts
321
- function te(e, t, n = !1, r = !1, i = !1) {
373
+ function ye(e, t, n = !1, r = !1, i = !1) {
322
374
  let a = {
323
375
  nodes: [],
324
376
  canvas: null,
@@ -337,7 +389,7 @@ function te(e, t, n = !1, r = !1, i = !1) {
337
389
  pinnedIndex: n === !1 ? -1 : n === !0 ? 0 : Math.max(0, Math.trunc(n)),
338
390
  warpAutoRelease: !!i
339
391
  };
340
- a.pinnedDrift = r ? H(r === !0 ? {} : r) : void 0;
392
+ a.pinnedDrift = r ? ie(r === !0 ? {} : r) : void 0;
341
393
  let o = e && e !== !0 ? e : {};
342
394
  a.wander = e ? {
343
395
  nextAt: -1,
@@ -351,7 +403,7 @@ function te(e, t, n = !1, r = !1, i = !1) {
351
403
  strength: 0,
352
404
  target: 0,
353
405
  cfg: {
354
- ...b,
406
+ ...C,
355
407
  ...s
356
408
  }
357
409
  } : void 0, {
@@ -361,92 +413,440 @@ function te(e, t, n = !1, r = !1, i = !1) {
361
413
  };
362
414
  }
363
415
  //#endregion
416
+ //#region src/components/custom/constellation/shaders/constellation-points.wgsl.ts
417
+ var be = "\n// ── Node storage row + uniforms (the typed-struct source-of-truth — uniformBridgeWGPU.ts) ──\nstruct Node {\n // (pos.x, pos.y, radius, dim)\n data: vec4<f32>,\n};\n\nstruct ConstellationUniforms {\n // u0: (resolution.x, resolution.y, dpr, kVis)\n u0: vec4<f32>,\n // u1: (time, lineWidth, opacityCeiling, alpha)\n u1: vec4<f32>,\n // uEdge: (edgeAlpha, edgeFocusAlpha, edgeAccentAlpha, edgeFloor)\n uEdge: vec4<f32>,\n // colours (premultiplied-ready rgba)\n uNode: vec4<f32>,\n uNodeDim: vec4<f32>,\n uLine: vec4<f32>,\n uAccent: vec4<f32>,\n};\n\n@group(0) @binding(0) var<uniform> u: ConstellationUniforms;\n@group(0) @binding(1) var<storage, read> nodes: array<Node>;\n\nstruct VSOut {\n @builtin(position) pos: vec4<f32>,\n @location(0) uv: vec2<f32>, // [-1,1] billboard-local → fragment SDF coord\n @location(1) dim: f32, // 0 = full node, 1 = dim node\n};\n\n@vertex\nfn vs_main(\n @builtin(vertex_index) vIdx: u32,\n @builtin(instance_index) iIdx: u32,\n) -> VSOut {\n // Two-triangle quad corners in billboard-local space.\n var QUAD = array<vec2<f32>, 6>(\n vec2<f32>(-1.0, -1.0), vec2<f32>(1.0, -1.0), vec2<f32>(-1.0, 1.0),\n vec2<f32>(-1.0, 1.0), vec2<f32>(1.0, -1.0), vec2<f32>(1.0, 1.0),\n );\n let corner = QUAD[vIdx];\n\n let node = nodes[iIdx].data;\n let res = u.u0.xy;\n let dpr = u.u0.z;\n let kVis = u.u0.w;\n\n // center: node px → clip space (y-flip — px is y-down, clip is y-up).\n let centerPx = node.xy;\n let centerNdc = vec2<f32>(\n centerPx.x / max(res.x, 1.0) * 2.0 - 1.0,\n 1.0 - centerPx.y / max(res.y, 1.0) * 2.0,\n );\n // half-extent: radius·kVis in CSS px → backing-store px (·dpr) → NDC half (·2/res).\n // (the DPR-aware crispness leg — the disc samples at device resolution.)\n // (half is a WGSL reserved keyword — name it halfExt.)\n let radPx = node.z * kVis * dpr;\n let halfExt = vec2<f32>(radPx / max(res.x, 1.0) * 2.0, radPx / max(res.y, 1.0) * 2.0);\n\n var out: VSOut;\n out.pos = vec4<f32>(centerNdc + corner * halfExt, 0.0, 1.0);\n out.uv = corner;\n out.dim = node.w;\n return out;\n}\n\n@fragment\nfn fs_main(in: VSOut) -> @location(0) vec4<f32> {\n // SDF: distance to the unit-circle edge in billboard-local space (0 at the rim, neg inside).\n let d = length(in.uv) - 1.0;\n // fwidth(d) = |dpdx(d)| + |dpdy(d)| — the pixel footprint of the SDF, the resolution-\n // independent AA width (~1px band at ANY DPR/zoom/size).\n let aa = max(fwidth(d), 1e-4);\n let coverage = 1.0 - smoothstep(-aa, aa, d);\n if (coverage <= 0.0) { discard; }\n let col = mix(u.uNode, u.uNodeDim, in.dim);\n let a = col.a * coverage * u.u1.z; // ·opacityCeiling\n // premultiplied-alpha output.\n return vec4<f32>(col.rgb * a, a);\n}\n", xe = "\nstruct Edge {\n // vec4 0: (a.x, a.y, b.x, b.y)\n ab: vec4<f32>,\n // vec4 1: (alpha, accent, focus, _pad)\n w: vec4<f32>,\n};\n\nstruct ConstellationUniforms {\n // u0: (resolution.x, resolution.y, dpr, kVis)\n u0: vec4<f32>,\n // u1: (time, lineWidth, opacityCeiling, alpha)\n u1: vec4<f32>,\n // uEdge: (edgeAlpha, edgeFocusAlpha, edgeAccentAlpha, edgeFloor)\n uEdge: vec4<f32>,\n uNode: vec4<f32>,\n uNodeDim: vec4<f32>,\n uLine: vec4<f32>,\n uAccent: vec4<f32>,\n};\n\n@group(0) @binding(0) var<uniform> u: ConstellationUniforms;\n@group(0) @binding(1) var<storage, read> edges: array<Edge>;\n\nstruct VSOut {\n @builtin(position) pos: vec4<f32>,\n @location(0) lineCoord: f32, // [-1,1] cross-line → fragment AA\n @location(1) alpha: f32, // distance-falloff weight\n @location(2) accent: f32, // accent flag (the flagged-node tether tint)\n @location(3) focus: f32, // focus flag (the pointer-web tether)\n};\n\n@vertex\nfn vs_main(\n @builtin(vertex_index) vIdx: u32,\n @builtin(instance_index) iIdx: u32,\n) -> VSOut {\n var QUAD = array<vec2<f32>, 6>(\n vec2<f32>(-1.0, -1.0), vec2<f32>(1.0, -1.0), vec2<f32>(-1.0, 1.0),\n vec2<f32>(-1.0, 1.0), vec2<f32>(1.0, -1.0), vec2<f32>(1.0, 1.0),\n );\n let alongQuad = QUAD[vIdx];\n\n let e = edges[iIdx];\n let a = e.ab.xy;\n let b = e.ab.zw;\n let res = u.u0.xy;\n let dpr = u.u0.z;\n let kVis = u.u0.w;\n let lineW = u.u1.y;\n\n // Screen-space segment direction + orthogonal (the half-width offset axis).\n let dir = normalize(b - a + vec2<f32>(1e-6, 0.0));\n let ortho = vec2<f32>(-dir.y, dir.x);\n // Lerp along the segment (alongQuad.x ∈ [-1,1] → [0,1]); offset by ortho × half-width.\n // The accent tether reads a touch heavier (1.1× the neutral width).\n let halfWPx = lineW * kVis * dpr * 0.5 * mix(1.0, 1.1, e.w.y);\n let p = mix(a, b, alongQuad.x * 0.5 + 0.5) + ortho * (alongQuad.y) * halfWPx;\n\n // px (y-down) → clip (y-up).\n let ndc = vec2<f32>(\n p.x / max(res.x, 1.0) * 2.0 - 1.0,\n 1.0 - p.y / max(res.y, 1.0) * 2.0,\n );\n\n var out: VSOut;\n out.pos = vec4<f32>(ndc, 0.0, 1.0);\n out.lineCoord = alongQuad.y;\n out.alpha = e.w.x;\n out.accent = e.w.y;\n out.focus = e.w.z;\n return out;\n}\n\n@fragment\nfn fs_main(in: VSOut) -> @location(0) vec4<f32> {\n // Cross-line AA — a smoothstep on |lineCoord| so the hairline edge is crisp.\n let aaBand = 0.6;\n let cross = 1.0 - smoothstep(1.0 - aaBand, 1.0, abs(in.lineCoord));\n if (cross <= 0.0) { discard; }\n\n let dim = u.u1.w * u.u1.z; // alpha · opacityCeiling\n // Resolve the edge class: accent tether · focus pointer-web · neutral ambient.\n var col = u.uLine;\n var weight = (u.uEdge.x * in.alpha + u.uEdge.w) * dim; // edgeAlpha·falloff + edgeFloor\n if (in.accent > 0.5) {\n col = u.uAccent;\n weight = u.uEdge.z * in.alpha * dim; // edgeAccentAlpha\n } else if (in.focus > 0.5) {\n col = u.uLine;\n weight = u.uEdge.y * u.u1.w * u.u1.z * in.alpha; // edgeFocusAlpha · alpha · ceiling\n }\n\n let a = col.a * weight * cross;\n if (a <= 0.0) { discard; }\n return vec4<f32>(col.rgb * a, a);\n}\n", Se = 256 * 16, Ce = N * 32, X = {
418
+ u0: 0,
419
+ u1: 4,
420
+ uEdge: 8,
421
+ uNode: 12,
422
+ uNodeDim: 16,
423
+ uLine: 20,
424
+ uAccent: 24
425
+ };
426
+ function we() {
427
+ let e = /* @__PURE__ */ new ArrayBuffer(112);
428
+ return {
429
+ buffer: e,
430
+ f32: new Float32Array(e)
431
+ };
432
+ }
433
+ function Te(e, t) {
434
+ let { f32: n } = e;
435
+ return n[X.u0 + 0] = t.resolutionX, n[X.u0 + 1] = t.resolutionY, n[X.u0 + 2] = t.dpr, n[X.u0 + 3] = t.kVis, n[X.u1 + 0] = t.time, n[X.u1 + 1] = t.lineWidth, n[X.u1 + 2] = t.opacityCeiling, n[X.u1 + 3] = t.alpha, n[X.uEdge + 0] = t.edgeAlpha, n[X.uEdge + 1] = t.edgeFocusAlpha, n[X.uEdge + 2] = t.edgeAccentAlpha, n[X.uEdge + 3] = t.edgeFloor, Z(n, X.uNode, t.node), Z(n, X.uNodeDim, t.nodeDim), Z(n, X.uLine, t.line), Z(n, X.uAccent, t.accent), e;
436
+ }
437
+ function Z(e, t, n) {
438
+ e[t + 0] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3];
439
+ }
440
+ function Ee() {
441
+ return new Float32Array(256 * 4);
442
+ }
443
+ function De() {
444
+ return new Float32Array(N * 8);
445
+ }
446
+ function Oe(e, t) {
447
+ let n = Math.min(t.length, 256);
448
+ for (let r = 0; r < n; r++) {
449
+ let n = r * 4, i = t[r];
450
+ e[n + 0] = i.x, e[n + 1] = i.y, e[n + 2] = i.r, e[n + 3] = i.dim;
451
+ }
452
+ return n;
453
+ }
454
+ function ke(e, t) {
455
+ let n = Math.min(t.length, N);
456
+ for (let r = 0; r < n; r++) {
457
+ let n = r * 8, i = t[r];
458
+ e[n + 0] = i.ax, e[n + 1] = i.ay, e[n + 2] = i.bx, e[n + 3] = i.by, e[n + 4] = i.alpha, e[n + 5] = i.accent, e[n + 6] = i.focus, e[n + 7] = 0;
459
+ }
460
+ return n;
461
+ }
462
+ //#endregion
463
+ //#region src/components/custom/constellation/composables/constellationWGPUSetup.ts
464
+ var Ae = 64, je = 128, Me = 8, Q = 1, Ne = 2;
465
+ function Pe(e) {
466
+ let { canvas: t, resolveFrame: n, onResize: i, shouldContinue: a } = e;
467
+ return function(e, o, s) {
468
+ let c = e.createShaderModule({
469
+ label: "[Constellation] constellation-points.wgsl",
470
+ code: be
471
+ }), l = e.createShaderModule({
472
+ label: "[Constellation] constellation-lines.wgsl",
473
+ code: xe
474
+ }), u = e.createBuffer({
475
+ label: "[Constellation] uniforms",
476
+ size: 112,
477
+ usage: Ae | Me
478
+ }), d = e.createBuffer({
479
+ label: "[Constellation] nodes",
480
+ size: Se,
481
+ usage: je | Me
482
+ }), f = e.createBuffer({
483
+ label: "[Constellation] edges",
484
+ size: Ce,
485
+ usage: je | Me
486
+ }), p = e.createBindGroupLayout({
487
+ label: "[Constellation] points-bgl",
488
+ entries: [{
489
+ binding: 0,
490
+ visibility: Q | Ne,
491
+ buffer: { type: "uniform" }
492
+ }, {
493
+ binding: 1,
494
+ visibility: Q,
495
+ buffer: { type: "read-only-storage" }
496
+ }]
497
+ }), m = e.createBindGroupLayout({
498
+ label: "[Constellation] lines-bgl",
499
+ entries: [{
500
+ binding: 0,
501
+ visibility: Q | Ne,
502
+ buffer: { type: "uniform" }
503
+ }, {
504
+ binding: 1,
505
+ visibility: Q,
506
+ buffer: { type: "read-only-storage" }
507
+ }]
508
+ }), h = {
509
+ color: {
510
+ srcFactor: "one",
511
+ dstFactor: "one-minus-src-alpha",
512
+ operation: "add"
513
+ },
514
+ alpha: {
515
+ srcFactor: "one",
516
+ dstFactor: "one-minus-src-alpha",
517
+ operation: "add"
518
+ }
519
+ }, g = e.createRenderPipeline({
520
+ label: "[Constellation] points-pipeline",
521
+ layout: e.createPipelineLayout({ bindGroupLayouts: [p] }),
522
+ vertex: {
523
+ module: c,
524
+ entryPoint: "vs_main"
525
+ },
526
+ fragment: {
527
+ module: c,
528
+ entryPoint: "fs_main",
529
+ targets: [{
530
+ format: s,
531
+ blend: h
532
+ }]
533
+ },
534
+ primitive: { topology: "triangle-list" }
535
+ }), _ = e.createRenderPipeline({
536
+ label: "[Constellation] lines-pipeline",
537
+ layout: e.createPipelineLayout({ bindGroupLayouts: [m] }),
538
+ vertex: {
539
+ module: l,
540
+ entryPoint: "vs_main"
541
+ },
542
+ fragment: {
543
+ module: l,
544
+ entryPoint: "fs_main",
545
+ targets: [{
546
+ format: s,
547
+ blend: h
548
+ }]
549
+ },
550
+ primitive: { topology: "triangle-list" }
551
+ }), v = e.createBindGroup({
552
+ label: "[Constellation] points-bg",
553
+ layout: p,
554
+ entries: [{
555
+ binding: 0,
556
+ resource: { buffer: u }
557
+ }, {
558
+ binding: 1,
559
+ resource: { buffer: d }
560
+ }]
561
+ }), y = e.createBindGroup({
562
+ label: "[Constellation] lines-bg",
563
+ layout: m,
564
+ entries: [{
565
+ binding: 0,
566
+ resource: { buffer: u }
567
+ }, {
568
+ binding: 1,
569
+ resource: { buffer: f }
570
+ }]
571
+ }), b = we(), x = Ee(), S = De();
572
+ function C() {
573
+ let e = r(), n = t.clientWidth || 320, a = t.clientHeight || 320, o = Math.max(1, Math.round(n * e)), s = Math.max(1, Math.round(a * e));
574
+ (t.width !== o || t.height !== s) && (t.width = o, t.height = s), i?.(t.width, t.height);
575
+ }
576
+ function w(t) {
577
+ let r = n(t);
578
+ if (!r) return;
579
+ let i = Oe(x, r.nodes), a = ke(S, r.edges);
580
+ Te(b, r.uniforms), e.queue.writeBuffer(u, 0, b.buffer), i > 0 && e.queue.writeBuffer(d, 0, x.buffer, x.byteOffset, i * 4 * 4), a > 0 && e.queue.writeBuffer(f, 0, S.buffer, S.byteOffset, a * 8 * 4);
581
+ let s = o.getCurrentTexture().createView(), c = e.createCommandEncoder({ label: "[Constellation] frame" }), l = c.beginRenderPass({ colorAttachments: [{
582
+ view: s,
583
+ clearValue: {
584
+ r: 0,
585
+ g: 0,
586
+ b: 0,
587
+ a: 0
588
+ },
589
+ loadOp: "clear",
590
+ storeOp: "store"
591
+ }] });
592
+ a > 0 && (l.setPipeline(_), l.setBindGroup(0, y), l.draw(6, a, 0, 0)), i > 0 && (l.setPipeline(g), l.setBindGroup(0, v), l.draw(6, i, 0, 0)), l.end(), e.queue.submit([c.finish()]);
593
+ }
594
+ return {
595
+ frame: w,
596
+ shouldContinue: a,
597
+ resize: C,
598
+ teardown: () => {
599
+ u.destroy(), d.destroy(), f.destroy();
600
+ }
601
+ };
602
+ };
603
+ }
604
+ //#endregion
605
+ //#region src/components/custom/constellation/shaders/constellation-points.glsl.ts
606
+ var Fe = "#version 300 es\nprecision highp float;\n\n// per-instance node row (x, y, radius, dim) — vertexAttribDivisor(1).\nlayout(location = 0) in vec4 aNode;\n\nuniform vec2 uResolution;\nuniform float uDpr;\nuniform float uKVis;\n\nout vec2 vUv; // [-1,1] billboard-local → fragment SDF coord\nout float vDim;\n\nvoid main() {\n // Two-triangle quad corners (the SAME order as the WGSL QUAD).\n vec2 quad[6] = vec2[6](\n vec2(-1.0, -1.0), vec2(1.0, -1.0), vec2(-1.0, 1.0),\n vec2(-1.0, 1.0), vec2(1.0, -1.0), vec2(1.0, 1.0)\n );\n vec2 corner = quad[gl_VertexID];\n\n vec2 centerPx = aNode.xy;\n // px (y-down) → clip (y-up).\n vec2 centerNdc = vec2(\n centerPx.x / max(uResolution.x, 1.0) * 2.0 - 1.0,\n 1.0 - centerPx.y / max(uResolution.y, 1.0) * 2.0\n );\n // half-extent: radius·kVis CSS px → backing-store px (·dpr) → NDC half (·2/res).\n // (half is a GLSL reserved word — name it halfExt.)\n float radPx = aNode.z * uKVis * uDpr;\n vec2 halfExt = vec2(\n radPx / max(uResolution.x, 1.0) * 2.0,\n radPx / max(uResolution.y, 1.0) * 2.0\n );\n\n gl_Position = vec4(centerNdc + corner * halfExt, 0.0, 1.0);\n vUv = corner;\n vDim = aNode.w;\n}\n", Ie = "#version 300 es\nprecision highp float;\n\nuniform vec4 uNode; // premultiplied-ready rgba\nuniform vec4 uNodeDim;\nuniform float uOpacityCeiling;\n\nin vec2 vUv;\nin float vDim;\nout vec4 fragColor;\n\nvoid main() {\n // SDF: distance to the unit-circle edge (0 at the rim, neg inside).\n float d = length(vUv) - 1.0;\n // fwidth(d) — the pixel footprint, the resolution-independent AA width.\n float aa = max(fwidth(d), 1e-4);\n float coverage = 1.0 - smoothstep(-aa, aa, d);\n if (coverage <= 0.0) { discard; }\n vec4 col = mix(uNode, uNodeDim, vDim);\n float a = col.a * coverage * uOpacityCeiling;\n fragColor = vec4(col.rgb * a, a); // premultiplied\n}\n", Le = "#version 300 es\nprecision highp float;\n\n// per-instance edge rows — vertexAttribDivisor(1).\nlayout(location = 0) in vec4 aAB; // (a.x, a.y, b.x, b.y)\nlayout(location = 1) in vec4 aW; // (alpha, accent, focus, _pad)\n\nuniform vec2 uResolution;\nuniform float uDpr;\nuniform float uKVis;\nuniform float uLineWidth;\n\nout float vLineCoord;\nout float vAlpha;\nout float vAccent;\nout float vFocus;\n\nvoid main() {\n vec2 quad[6] = vec2[6](\n vec2(-1.0, -1.0), vec2(1.0, -1.0), vec2(-1.0, 1.0),\n vec2(-1.0, 1.0), vec2(1.0, -1.0), vec2(1.0, 1.0)\n );\n vec2 alongQuad = quad[gl_VertexID];\n\n vec2 a = aAB.xy;\n vec2 b = aAB.zw;\n vec2 dir = normalize(b - a + vec2(1e-6, 0.0));\n vec2 ortho = vec2(-dir.y, dir.x);\n // accent tether reads a touch heavier (1.1×).\n float halfWPx = uLineWidth * uKVis * uDpr * 0.5 * mix(1.0, 1.1, aW.y);\n vec2 p = mix(a, b, alongQuad.x * 0.5 + 0.5) + ortho * alongQuad.y * halfWPx;\n\n vec2 ndc = vec2(\n p.x / max(uResolution.x, 1.0) * 2.0 - 1.0,\n 1.0 - p.y / max(uResolution.y, 1.0) * 2.0\n );\n\n gl_Position = vec4(ndc, 0.0, 1.0);\n vLineCoord = alongQuad.y;\n vAlpha = aW.x;\n vAccent = aW.y;\n vFocus = aW.z;\n}\n", Re = "#version 300 es\nprecision highp float;\n\nuniform vec4 uLine; // premultiplied-ready rgba\nuniform vec4 uAccent;\nuniform float uAlphaGlobal; // --constellation-alpha\nuniform float uOpacityCeiling;\nuniform float uEdgeAlpha;\nuniform float uEdgeFocusAlpha;\nuniform float uEdgeAccentAlpha;\nuniform float uEdgeFloor;\n\nin float vLineCoord;\nin float vAlpha;\nin float vAccent;\nin float vFocus;\nout vec4 fragColor;\n\nvoid main() {\n float aaBand = 0.6;\n float cross = 1.0 - smoothstep(1.0 - aaBand, 1.0, abs(vLineCoord));\n if (cross <= 0.0) { discard; }\n\n float dim = uAlphaGlobal * uOpacityCeiling;\n vec4 col = uLine;\n float weight = (uEdgeAlpha * vAlpha + uEdgeFloor) * dim;\n if (vAccent > 0.5) {\n col = uAccent;\n weight = uEdgeAccentAlpha * vAlpha * dim;\n } else if (vFocus > 0.5) {\n col = uLine;\n weight = uEdgeFocusAlpha * uAlphaGlobal * uOpacityCeiling * vAlpha;\n }\n\n float a = col.a * weight * cross;\n if (a <= 0.0) { discard; }\n fragColor = vec4(col.rgb * a, a);\n}\n";
607
+ //#endregion
608
+ //#region src/components/custom/constellation/composables/constellationGLSetup.ts
609
+ function $(e, t, n) {
610
+ let r = e.createShader(t);
611
+ if (e.shaderSource(r, n), e.compileShader(r), !e.getShaderParameter(r, e.COMPILE_STATUS)) {
612
+ let t = e.getShaderInfoLog(r);
613
+ throw e.deleteShader(r), Error(`[Constellation] shader compile failed: ${t}`);
614
+ }
615
+ return r;
616
+ }
617
+ function ze(e, t, n) {
618
+ let r = e.createProgram();
619
+ if (e.attachShader(r, t), e.attachShader(r, n), e.linkProgram(r), !e.getProgramParameter(r, e.LINK_STATUS)) throw Error(`[Constellation] link failed: ${e.getProgramInfoLog(r)}`);
620
+ return e.deleteShader(t), e.deleteShader(n), r;
621
+ }
622
+ function Be(e) {
623
+ let { canvas: t, resolveFrame: n, onResize: i, shouldContinue: a } = e;
624
+ return function(e) {
625
+ let o = ze(e, $(e, e.VERTEX_SHADER, Fe), $(e, e.FRAGMENT_SHADER, Ie)), s = ze(e, $(e, e.VERTEX_SHADER, Le), $(e, e.FRAGMENT_SHADER, Re)), c = e.createVertexArray();
626
+ e.bindVertexArray(c);
627
+ let l = e.createBuffer();
628
+ e.bindBuffer(e.ARRAY_BUFFER, l), e.bufferData(e.ARRAY_BUFFER, 256 * 4 * 4, e.DYNAMIC_DRAW), e.enableVertexAttribArray(0), e.vertexAttribPointer(0, 4, e.FLOAT, !1, 16, 0), e.vertexAttribDivisor(0, 1), e.bindVertexArray(null);
629
+ let u = e.createVertexArray();
630
+ e.bindVertexArray(u);
631
+ let d = e.createBuffer();
632
+ e.bindBuffer(e.ARRAY_BUFFER, d), e.bufferData(e.ARRAY_BUFFER, N * 8 * 4, e.DYNAMIC_DRAW), e.enableVertexAttribArray(0), e.vertexAttribPointer(0, 4, e.FLOAT, !1, 32, 0), e.vertexAttribDivisor(0, 1), e.enableVertexAttribArray(1), e.vertexAttribPointer(1, 4, e.FLOAT, !1, 32, 16), e.vertexAttribDivisor(1, 1), e.bindVertexArray(null);
633
+ let f = (t) => e.getUniformLocation(o, t), p = (t) => e.getUniformLocation(s, t), m = f("uResolution"), h = f("uDpr"), g = f("uKVis"), _ = f("uNode"), v = f("uNodeDim"), y = f("uOpacityCeiling"), b = p("uResolution"), x = p("uDpr"), S = p("uKVis"), C = p("uLineWidth"), w = p("uLine"), T = p("uAccent"), E = p("uAlphaGlobal"), D = p("uOpacityCeiling"), O = p("uEdgeAlpha"), k = p("uEdgeFocusAlpha"), A = p("uEdgeAccentAlpha"), j = p("uEdgeFloor"), M = Ee(), P = De();
634
+ function F() {
635
+ let n = r(), a = t.clientWidth || 320, o = t.clientHeight || 320, s = Math.max(1, Math.round(a * n)), c = Math.max(1, Math.round(o * n));
636
+ (t.width !== s || t.height !== c) && (t.width = s, t.height = c), e.viewport(0, 0, t.width, t.height), i?.(t.width, t.height);
637
+ }
638
+ function I(r) {
639
+ let i = n(r);
640
+ if (!i) return;
641
+ let a = Oe(M, i.nodes), f = ke(P, i.edges), p = i.uniforms;
642
+ e.viewport(0, 0, t.width, t.height), e.enable(e.BLEND), e.blendFunc(e.ONE, e.ONE_MINUS_SRC_ALPHA), e.clearColor(0, 0, 0, 0), e.clear(e.COLOR_BUFFER_BIT), f > 0 && (e.useProgram(s), e.bindVertexArray(u), e.bindBuffer(e.ARRAY_BUFFER, d), e.bufferSubData(e.ARRAY_BUFFER, 0, P.subarray(0, f * 8)), e.uniform2f(b, p.resolutionX, p.resolutionY), e.uniform1f(x, p.dpr), e.uniform1f(S, p.kVis), e.uniform1f(C, p.lineWidth), e.uniform4f(w, p.line[0], p.line[1], p.line[2], p.line[3]), e.uniform4f(T, p.accent[0], p.accent[1], p.accent[2], p.accent[3]), e.uniform1f(E, p.alpha), e.uniform1f(D, p.opacityCeiling), e.uniform1f(O, p.edgeAlpha), e.uniform1f(k, p.edgeFocusAlpha), e.uniform1f(A, p.edgeAccentAlpha), e.uniform1f(j, p.edgeFloor), e.drawArraysInstanced(e.TRIANGLES, 0, 6, f)), a > 0 && (e.useProgram(o), e.bindVertexArray(c), e.bindBuffer(e.ARRAY_BUFFER, l), e.bufferSubData(e.ARRAY_BUFFER, 0, M.subarray(0, a * 4)), e.uniform2f(m, p.resolutionX, p.resolutionY), e.uniform1f(h, p.dpr), e.uniform1f(g, p.kVis), e.uniform4f(_, p.node[0], p.node[1], p.node[2], p.node[3]), e.uniform4f(v, p.nodeDim[0], p.nodeDim[1], p.nodeDim[2], p.nodeDim[3]), e.uniform1f(y, p.opacityCeiling), e.drawArraysInstanced(e.TRIANGLES, 0, 6, a)), e.bindVertexArray(null);
643
+ }
644
+ return {
645
+ frame: I,
646
+ shouldContinue: a,
647
+ resize: F,
648
+ teardown: () => {
649
+ e.deleteProgram(o), e.deleteProgram(s), e.deleteVertexArray(c), e.deleteVertexArray(u), e.deleteBuffer(l), e.deleteBuffer(d);
650
+ }
651
+ };
652
+ };
653
+ }
654
+ //#endregion
364
655
  //#region src/components/custom/constellation/composables/useConstellation.ts
365
- function ne(e, n, o) {
366
- let s = e.count ?? 64, c = e.link ?? 132, u = e.speed ?? .16, f = e.seed, m = e.warpOnClick ?? !1, h = e.wander ?? !1, v = e.gravityWell ?? !1, y = e.pinned ?? !1, b = e.pinnedDrift ?? !1, x = e.warpAutoRelease ?? !1, S = a(() => f === void 0 ? Math.random : r(typeof f == "string" ? i(f) : f)), C = () => typeof window < "u" && /[?&](export|print|freeze)\b/.test(window.location.search), w = l()?.vnode.props?.freeze, T = a(() => w === void 0 ? C() : w === !0 || w === ""), { field: E, wanderOverride: D, wellOverride: k } = te(h, v, y, b, x), A = {
656
+ function Ve(e, t, r) {
657
+ let c = Math.min(e.count ?? 64, 256), l = e.link ?? 132, u = e.speed ?? .16, f = e.parallax ?? .08, h = e.seed, _ = e.warpOnClick ?? !1, v = e.wander ?? !1, x = e.gravityWell ?? !1, S = e.pinned ?? !1, C = e.pinnedDrift ?? !1, w = e.warpAutoRelease ?? !1, T = s(() => h === void 0 ? Math.random : a(typeof h == "string" ? o(h) : h)), E = () => typeof window < "u" && /[?&](export|print|freeze)\b/.test(window.location.search), D = d()?.vnode.props?.freeze, O = s(() => D === void 0 ? E() : D === !0 || D === ""), { field: k, wanderOverride: A, wellOverride: j } = ye(v, x, S, C, w), M = {
367
658
  x: -1,
368
659
  y: -1
369
- }, j = [], M = { ..._ }, N = -1, P = !1, F = p(null);
370
- return d(() => {
371
- let r = o.value;
372
- if (!r) return;
373
- let i = t({
374
- canvas: o,
375
- setup: () => ({ render(t, n) {
376
- let a = r.clientWidth || r.offsetWidth || 1280, o = r.clientHeight || r.offsetHeight || 720, l = a / g;
377
- E.canvas = r;
378
- let d = parseFloat(getComputedStyle(r).getPropertyValue("--constellation-k-floor"));
379
- if (E.kFloor = Number.isFinite(d) ? d : void 0, E.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), E.w !== a || E.h !== o) {
380
- let e = E.w, t = E.h;
381
- if (E.w = a, E.h = o, E.k = l, E.nodes.length ? K(E, e, t) : (E.nodes = G(S.value, s, a, o, u), E.warp.x = a / 2, E.warp.y = o / 2), M = Y(r), !P) {
382
- P = !0;
383
- let e = O(r);
384
- E.warpCfg = e.warp, E.well && (E.well.cfg = {
660
+ }, P = [], F = { ...b }, I = -1, L = !1, R = n({ respectReducedMotion: !0 }), z = null, B = "webgpu", V = g(null), H = [], te = He();
661
+ return p(() => {
662
+ let n = r.value;
663
+ if (!n) return;
664
+ let a = () => z ? z.reducedMotion : typeof window < "u" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, o = t.value, s = (e) => {
665
+ let t = n.getBoundingClientRect();
666
+ if (!t.width || !t.height) return null;
667
+ let r = (e.clientX - t.left) / t.width, i = (e.clientY - t.top) / t.height;
668
+ return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
669
+ x: r * k.w,
670
+ y: i * k.h
671
+ };
672
+ };
673
+ V.value = s;
674
+ let d = () => e.pointerReactive ?? !0, p = (e) => {
675
+ if (O.value || a()) return;
676
+ if (R.onPointerMove(e), !d()) {
677
+ M.x = -1, M.y = -1;
678
+ return;
679
+ }
680
+ let t = s(e);
681
+ t && (M.x = t.x, M.y = t.y), z?.wake();
682
+ }, h = () => {
683
+ R.onPointerLeave(), M.x = -1, M.y = -1;
684
+ }, g = () => {
685
+ R.onPointerEnter(), z?.wake();
686
+ }, v = (e) => {
687
+ if (!_ || O.value || a()) return;
688
+ let t = s(e);
689
+ t && K(k, t.x, t.y), z?.wake();
690
+ }, b = o ?? n;
691
+ O.value || (b.addEventListener("pointermove", p), b.addEventListener("pointerenter", g), b.addEventListener("pointerleave", h), _ && b.addEventListener("pointerdown", v)), m(() => {
692
+ b.removeEventListener("pointermove", p), b.removeEventListener("pointerenter", g), b.removeEventListener("pointerleave", h), b.removeEventListener("pointerdown", v), R.dispose(), z?.dispose();
693
+ });
694
+ let x = {
695
+ resolveFrame: (t) => {
696
+ let r = n.clientWidth || n.offsetWidth || 1280, i = n.clientHeight || n.offsetHeight || 720, o = r / y;
697
+ k.canvas = n;
698
+ let s = parseFloat(getComputedStyle(n).getPropertyValue("--constellation-k-floor"));
699
+ if (k.kFloor = Number.isFinite(s) ? s : void 0, k.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), k.w !== r || k.h !== i) {
700
+ let e = k.w, t = k.h;
701
+ if (k.w = r, k.h = i, k.k = o, k.nodes.length ? ue(k, e, t) : (k.nodes = le(T.value, c, r, i, u), k.warp.x = r / 2, k.warp.y = i / 2), F = ge(n), !L) {
702
+ L = !0;
703
+ let e = ee(n);
704
+ k.warpCfg = e.warp, k.well && (k.well.cfg = {
385
705
  ...e.well,
386
- ...k
387
- }), E.wander && (E.wander.minIdle = D.minIdle ?? e.wander.minIdle, E.wander.jitter = D.jitter ?? e.wander.jitter);
706
+ ...j
707
+ }), k.wander && (k.wander.minIdle = A.minIdle ?? e.wander.minIdle, k.wander.jitter = A.jitter ?? e.wander.jitter);
388
708
  }
389
709
  }
390
- E.k = l;
391
- let f = N < 0 ? 0 : (n - N) / 1e3;
392
- N = n;
393
- let p = T.value || i.reducedMotion;
394
- p && E.well && (E.well.strength = 0, E.well.target = 0, E.well.x = -1, E.well.y = -1);
395
- let m = e.pointerReactive ?? !0, h = e.opacityCeiling ?? 1, _ = e.accentEdges ?? !1, v = e.drawOverlay;
396
- p || q(E, l, u, m ? A : null, f, n, S.value), t.clearRect(0, 0, a, o);
397
- let y = _ ? E.pinnedIndex >= 0 ? E.pinnedIndex : E.focalIndex : -1;
398
- X(t, E, c, M, h, y), Z(t, E, M, h), m && !p && (Q(t, E, c, M, A, h), $(t, E, n, j, M, h)), v?.(t, E, p ? 0 : n);
399
- } })
400
- });
401
- ee({
402
- host: n.value,
403
- canvas: r,
404
- field: E,
405
- pointer: A,
406
- ripples: j,
407
- handle: i,
408
- toLocalRef: F,
409
- pointerReactive: e.pointerReactive ?? !0,
410
- warpOnClick: m,
411
- gravityWell: !!v,
412
- isFrozen: T.value
710
+ k.k = o;
711
+ let d = t * 1e3, p = I < 0 ? 0 : (d - I) / 1e3, m = I < 0 ? 0 : d - I;
712
+ I = d;
713
+ let h = O.value || a();
714
+ h && k.well && (k.well.strength = 0, k.well.target = 0, k.well.x = -1, k.well.y = -1), R.tick(h ? 0 : m);
715
+ let g = e.pointerReactive ?? !0, _ = e.opacityCeiling ?? 1, v = e.accentEdges ?? !1, b = g ? M : null, x = null;
716
+ if (b && !h) {
717
+ let e = R.velocity.value;
718
+ x = {
719
+ x: e.x * r / 60,
720
+ y: e.y * i / 60
721
+ }, M.x >= 0 && ce(k, M, R.burst.value, P);
722
+ }
723
+ h || de(k, o, u, b, p, d, T.value, x);
724
+ let S = k.dpr, C = he(k), w = n.width || Math.round(r * S), E = n.height || Math.round(i * S), D = te;
725
+ D.resolutionX = w, D.resolutionY = E, D.dpr = S, D.kVis = C, D.time = t, D.lineWidth = 1, D.opacityCeiling = _, D.alpha = F.alpha, D.edgeAlpha = F.edgeAlpha, D.edgeFocusAlpha = F.edgeFocusAlpha, D.edgeAccentAlpha = F.edgeAccentAlpha, D.edgeFloor = F.edgeFloor, D.node = J(F.node), D.nodeDim = J(F.nodeDim), D.line = J(F.line), D.accent = J(F.accent);
726
+ let z = h ? 0 : f, B = g ? M : null;
727
+ H.length = 0;
728
+ let V = w / Math.max(r, 1), U = E / Math.max(i, 1);
729
+ for (let e = 0; e < k.nodes.length; e++) {
730
+ let t = k.nodes[e], n = me(t, B, r, i, z);
731
+ H.push({
732
+ x: n.x * V,
733
+ y: n.y * U,
734
+ r: t.r,
735
+ dim: +!!t.dim
736
+ });
737
+ }
738
+ let W = fe(k, l, v ? k.pinnedIndex >= 0 ? k.pinnedIndex : k.focalIndex : -1, N);
739
+ g && !h && pe(W, k, l, M, N);
740
+ let G = [];
741
+ for (let e of W) G.push({
742
+ ax: e.ax * V,
743
+ ay: e.ay * U,
744
+ bx: e.bx * V,
745
+ by: e.by * U,
746
+ alpha: e.alpha,
747
+ accent: e.accent,
748
+ focus: e.focus
749
+ });
750
+ return {
751
+ nodes: H,
752
+ edges: G,
753
+ uniforms: D
754
+ };
755
+ },
756
+ shouldContinue: () => !0
757
+ };
758
+ z = i(n, {
759
+ mode: "live",
760
+ respectReducedMotion: !0,
761
+ setupWGPU: Pe({
762
+ canvas: n,
763
+ ...x
764
+ }),
765
+ setupGL: Be({
766
+ canvas: n,
767
+ ...x
768
+ })
769
+ }), z.armAsync().then(() => {
770
+ B = z?.backend ?? "webgpu";
413
771
  });
414
772
  }), {
415
- field: E,
416
- isFrozen: T,
773
+ field: k,
774
+ isFrozen: O,
775
+ backend: () => B,
417
776
  warpTo(e, t) {
418
777
  if (typeof e == "number" && typeof t == "number") {
419
- let n = F.value?.({
778
+ let n = V.value?.({
420
779
  clientX: e,
421
780
  clientY: t
422
781
  });
423
- return n ? R(E, n.x, n.y) : -1;
782
+ return n ? K(k, n.x, n.y) : -1;
424
783
  }
425
784
  let n = e;
426
- return R(E, n.x, n.y);
785
+ return K(k, n.x, n.y);
427
786
  },
428
787
  holdWellAt(e, t) {
429
- return E.well ? (E.well.x = e, E.well.y = t, E.well.target = 1, !0) : !1;
788
+ return k.well ? (k.well.x = e, k.well.y = t, k.well.target = 1, !0) : !1;
430
789
  },
431
790
  releaseWell() {
432
- E.well && (E.well.target = 0);
791
+ k.well && (k.well.target = 0);
433
792
  },
434
793
  warpSettled() {
435
- return B(E);
794
+ return q(k);
436
795
  },
437
796
  pinNode(e) {
438
- E.pinnedIndex = e, E.pinnedDrift && (E.pinnedDrift.nextAt = -1);
797
+ k.pinnedIndex = e, k.pinnedDrift && (k.pinnedDrift.nextAt = -1);
439
798
  }
440
799
  };
441
800
  }
801
+ function He() {
802
+ return {
803
+ resolutionX: 0,
804
+ resolutionY: 0,
805
+ dpr: 1,
806
+ kVis: 1,
807
+ time: 0,
808
+ lineWidth: 1,
809
+ opacityCeiling: 1,
810
+ alpha: b.alpha,
811
+ edgeAlpha: b.edgeAlpha,
812
+ edgeFocusAlpha: b.edgeFocusAlpha,
813
+ edgeAccentAlpha: b.edgeAccentAlpha,
814
+ edgeFloor: b.edgeFloor,
815
+ node: [
816
+ .7,
817
+ .69,
818
+ .64,
819
+ 1
820
+ ],
821
+ nodeDim: [
822
+ .8,
823
+ .78,
824
+ .74,
825
+ 1
826
+ ],
827
+ line: [
828
+ .11,
829
+ .09,
830
+ .08,
831
+ 1
832
+ ],
833
+ accent: [
834
+ .7,
835
+ .31,
836
+ .19,
837
+ 1
838
+ ]
839
+ };
840
+ }
442
841
  //#endregion
443
842
  //#region src/components/custom/constellation/Constellation.vue
444
- var re = /* @__PURE__ */ n(/* @__PURE__ */ c({
843
+ var Ue = /* @__PURE__ */ t(/* @__PURE__ */ u({
445
844
  __name: "Constellation",
446
845
  props: {
447
846
  count: { default: 64 },
448
847
  link: { default: 132 },
449
848
  speed: { default: .16 },
849
+ parallax: { default: .08 },
450
850
  opacityCeiling: { default: 1 },
451
851
  seed: {},
452
852
  pointerReactive: {
@@ -486,18 +886,18 @@ var re = /* @__PURE__ */ n(/* @__PURE__ */ c({
486
886
  drawOverlay: {}
487
887
  },
488
888
  setup(t, { expose: n }) {
489
- let r = t, i = h("hostRef"), a = h("canvasRef");
490
- return n(ne(r, i, a)), (t, n) => (f(), o("div", {
889
+ let r = t, i = v("hostRef"), a = v("canvasRef");
890
+ return n(Ve(r, i, a)), (t, n) => (h(), c("div", {
491
891
  ref_key: "hostRef",
492
892
  ref: i,
493
- class: u(m(e)("constellation", r.class))
494
- }, [s("canvas", {
893
+ class: f(_(e)("constellation", r.class))
894
+ }, [l("canvas", {
495
895
  ref_key: "canvasRef",
496
896
  ref: a,
497
897
  class: "constellation-canvas",
498
898
  "aria-hidden": "true"
499
899
  }, null, 512)], 2));
500
900
  }
501
- }), [["__scopeId", "data-v-2ada60ff"]]);
901
+ }), [["__scopeId", "data-v-a177fa6a"]]);
502
902
  //#endregion
503
- export { g as BASE_WIDTH, re as Constellation, D as DEFAULT_K_FLOOR, _ as DEFAULT_PALETTE, w as DEFAULT_PINNED_DRIFT_DUR, C as DEFAULT_PINNED_DRIFT_FRAC, T as DEFAULT_PINNED_DRIFT_IDLE, E as DEFAULT_PINNED_DRIFT_JITTER, x as DEFAULT_WANDER_IDLE, S as DEFAULT_WANDER_JITTER, b as DEFAULT_WELL_CONFIG, v as WARP_RESPONSE, y as WARP_ZETA, X as drawEdges, Z as drawNodes, Q as drawPointerWeb, $ as drawRipples, J as kVisOf, H as makePinnedDrift, F as nearestNode, V as pickWanderTarget, O as readInteractionConfig, Y as readPalette, K as refitField, G as seedField, L as setWarpTarget, q as stepField, W as stepPinnedDrift, N as stepWell, B as warpSettled, I as warpStep, R as warpTo };
903
+ export { y as BASE_WIDTH, se as BURST_FIRE_THRESHOLD, Ue as Constellation, A as DEFAULT_K_FLOOR, b as DEFAULT_PALETTE, P as DEFAULT_PARALLAX, D as DEFAULT_PINNED_DRIFT_DUR, E as DEFAULT_PINNED_DRIFT_FRAC, O as DEFAULT_PINNED_DRIFT_IDLE, k as DEFAULT_PINNED_DRIFT_JITTER, w as DEFAULT_WANDER_IDLE, T as DEFAULT_WANDER_JITTER, C as DEFAULT_WELL_CONFIG, N as E_MAX, M as MAX_DEGREE, j as MAX_NODES, x as WARP_RESPONSE, S as WARP_ZETA, pe as appendPointerWeb, fe as buildEdges, ce as fireBurst, he as kVisOf, ie as makePinnedDrift, U as nearestNode, me as parallaxNodePos, J as parseColorRGBA, re as pickWanderTarget, ee as readInteractionConfig, ge as readPalette, ue as refitField, le as seedField, G as setWarpTarget, de as stepField, oe as stepPinnedDrift, H as stepWell, q as warpSettled, W as warpStep, K as warpTo };