@mkbabb/glass-ui 3.12.0 → 4.0.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.
- package/dist/CardAction-XH4YBVEK.js +158 -0
- package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-DdtWXxOK.js} +58 -53
- package/dist/{ContextMenuSubContent-Bhg4f5jX.js → ContextMenuSubContent-B0Vs6atR.js} +4 -4
- package/dist/{DataTable-CUHMukiQ.js → DataTable-C464Zbqd.js} +99 -97
- package/dist/DialogContent-DDE6pQBU.js +103 -0
- package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-8eZbdmPc.js} +2 -2
- package/dist/FadingScroll-DwNnvKMs.js +76 -0
- package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-Dpzwvc4t.js} +1 -1
- package/dist/IconChip-BDw1j5mu.js +54 -0
- package/dist/{IconTooltip-Cus0fvK0.js → IconTooltip-DSjasZIt.js} +1 -1
- package/dist/MetricBadge-BpC0R_Ec.js +79 -0
- package/dist/{Notification-DLMhblXR.js → Notification-DKjKsQq8.js} +10 -10
- package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-1VtwDSgf.js} +3 -3
- package/dist/PopoverContent-BTorlp--.js +127 -0
- package/dist/{Progress-iEuD9pxG.js → Progress-hAT4gqGH.js} +97 -77
- package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-CUVFTWk2.js} +2 -2
- package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-C1jb3b3K.js} +24 -8
- package/dist/{Switch-Ch-k3Rv-.js → Switch-Dr--uLGH.js} +2 -2
- package/dist/{Toaster-1rYWrmAm.js → Toaster-Bm_HQSpc.js} +55 -52
- package/dist/{ToggleGroupItem-COu_4IW4.js → ToggleGroupItem-Dzk9hWsF.js} +18 -22
- package/dist/animated-digit.js +3 -3
- package/dist/api/index.d.ts +10 -4
- package/dist/api.js +1 -1
- package/dist/aurora.js +113 -98
- package/dist/{badge-CaoFJzRb.js → badge-UILT_3pZ.js} +1 -1
- package/dist/badge.js +1 -1
- package/dist/{button-DN39cGqL.js → button-BNDWhAZb.js} +12 -12
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +101 -145
- package/dist/{check-BBKKKSTf.js → check-njhk-vfu.js} +1 -1
- package/dist/{chevron-down-BSkTP2aL.js → chevron-down-DKkxb4VV.js} +1 -1
- package/dist/{chevron-right-sDM0Yvrf.js → chevron-right-CPXbqQQz.js} +1 -1
- package/dist/{chevron-up-CCOD_FTz.js → chevron-up-n_24SqI-.js} +1 -1
- package/dist/coalesceMetric-5qIeZnTx.js +13 -0
- package/dist/collapsible.js +1 -1
- package/dist/{color-C5ls_QF7.js → color-DweYl7pE.js} +9 -7
- package/dist/color-swatch.d.ts +1 -0
- package/dist/color-swatch.js +47 -0
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +16 -45
- package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -0
- package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
- package/dist/components/custom/color-swatch/index.d.ts +1 -0
- package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/configurator/ConfiguratorRow.vue.d.ts +16 -0
- package/dist/components/custom/constellation/Constellation.vue.d.ts +23 -143
- package/dist/components/custom/constellation/composables/createConstellationField.d.ts +41 -0
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
- package/dist/components/custom/constellation/constants.d.ts +61 -0
- package/dist/components/custom/constellation/constellationDraw.d.ts +30 -0
- package/dist/components/custom/constellation/constellationField.d.ts +3 -403
- package/dist/components/custom/constellation/constellationInteraction.d.ts +132 -0
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +5 -2
- package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
- package/dist/components/custom/dock/DockRail.vue.d.ts +89 -0
- package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -6
- package/dist/components/custom/dock/GlassDock.vue.d.ts +5 -118
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
- package/dist/components/custom/dock/composables/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useDockClickIntegrity.d.ts +23 -0
- package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
- package/dist/components/custom/dock/composables/useDockOrientationMorph.d.ts +44 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +165 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
- package/dist/components/custom/dock/constants.d.ts +83 -0
- package/dist/components/custom/dock/index.d.ts +5 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +15 -37
- package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
- package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
- package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
- package/dist/components/custom/fading-scroll/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +34 -0
- package/dist/components/custom/fourier-field/presets.d.ts +54 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
- package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
- package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +21 -8
- package/dist/components/custom/goo-blob/constants.d.ts +57 -0
- package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
- package/dist/components/custom/handmark/brush.d.ts +33 -6
- package/dist/components/custom/handmark/{useHandMark.d.ts → composables/useHandMark.d.ts} +6 -4
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/geometry.d.ts +14 -12
- package/dist/components/custom/handmark/index.d.ts +8 -2
- package/dist/components/custom/handmark/types.d.ts +9 -0
- package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
- package/dist/components/custom/icon-chip/index.d.ts +2 -0
- package/dist/components/custom/icon-chip/types.d.ts +72 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +37 -0
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +6 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +6 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +6 -0
- package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +11 -18
- package/dist/components/custom/metric-badge/index.d.ts +1 -0
- package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +15 -4
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +6 -4
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +20 -25
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +18 -0
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
- package/dist/components/ui/card/Card.vue.d.ts +16 -4
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/metric-pill/MetricPill.vue.d.ts +6 -3
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/components/ui/slider/index.d.ts +22 -19
- package/dist/components/ui/tabs/TabsIndicator.vue.d.ts +4 -1
- package/dist/components/ui/toast/use-toast.d.ts +2 -2
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -7
- package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +1 -3
- package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +0 -13
- package/dist/composables/color/index.d.ts +12 -0
- package/dist/composables/dark/useGlobalDark.d.ts +14 -12
- package/dist/composables/glass/index.d.ts +0 -1
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +59 -0
- package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
- package/dist/composables/motion/core/index.d.ts +1 -1
- package/dist/composables/motion/curves.d.ts +48 -0
- package/dist/composables/motion/index.d.ts +2 -0
- package/dist/composables/motion/springPresets.d.ts +33 -0
- package/dist/composables/motion/suite.d.ts +2 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +85 -0
- package/dist/composables/motion/useSpringMount.d.ts +1 -1
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/constellation.js +373 -261
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +48 -14
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +901 -372
- package/dist/dockContext-Bu1Avy-a.js +17 -0
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-BJ7E9js_.js} +11 -8
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +44 -81
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/forms.js +5 -5
- package/dist/fourier-field.js +140 -104
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +90 -21
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +230 -236
- package/dist/goo-blob.js +264 -228
- package/dist/handmark.js +203 -159
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.d.ts +1 -0
- package/dist/icon-chip.js +2 -0
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +28 -18
- package/dist/{math-DTpRVC0e.js → math-DeuJwLFx.js} +26 -2
- package/dist/{menuItemVariants-CCoBNkU5.js → menuItemVariants-DWRQXBxJ.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +29 -22
- package/dist/metric-stack.js +35 -34
- package/dist/{minimize-2-lcXOuc6V.js → minimize-2-BV31Ob_h.js} +1 -1
- package/dist/motion-core.js +32 -136
- package/dist/motion-curves.d.ts +1 -0
- package/dist/motion-curves.js +130 -0
- package/dist/motion.js +38 -37
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.d.ts +1 -0
- package/dist/pager-dots.js +91 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-nbkvr2dC.js → search-BSGrf2Sk.js} +1 -1
- package/dist/search.js +10 -10
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/sheet-CquRYOAw.js +218 -0
- package/dist/sheet.js +1 -1
- package/dist/{slider-ClgpP7EB.js → slider-DQ95MET2.js} +8 -8
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/springPresets-WXaLbu8u.js +40 -0
- package/dist/stacked-icons.js +6 -6
- package/dist/styles/animations.css +25 -125
- package/dist/styles/cards.css +55 -0
- package/dist/styles/components.css +4 -1
- package/dist/styles/configurator.css +77 -0
- package/dist/styles/dock/density.css +19 -0
- package/dist/styles/dock/layer-group.css +83 -25
- package/dist/styles/dock/layers.css +23 -1
- package/dist/styles/dock/morph-bridge.css +123 -0
- package/dist/styles/dock/morph.css +175 -45
- package/dist/styles/dock/overflow.css +66 -1
- package/dist/styles/dock/rail-extend.css +397 -0
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +97 -110
- package/dist/styles/dock-controls/dark-mode-toggle.css +109 -0
- package/dist/styles/dock-controls/icon-button.css +143 -0
- package/dist/styles/dock-controls/tab-button.css +143 -0
- package/dist/styles/dock-controls/touch-floor.css +94 -0
- package/dist/styles/dock-controls/triggers.css +135 -0
- package/dist/styles/dock-controls.css +30 -595
- package/dist/styles/dock.css +8 -3
- package/dist/styles/drawer.css +48 -0
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/floating-panel.css +17 -0
- package/dist/styles/glass/a11y-fallback.css +245 -0
- package/dist/styles/glass/ladder.css +383 -0
- package/dist/styles/glass/material.css +238 -0
- package/dist/styles/glass/progress-rail.css +78 -0
- package/dist/styles/glass/squircle.css +66 -0
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +382 -0
- package/dist/styles/glass-refract.css +2 -0
- package/dist/styles/glass.css +34 -1188
- package/dist/styles/hover-popover.css +2 -0
- package/dist/styles/icon-chip.css +149 -0
- package/dist/styles/index.css +94 -18
- package/dist/styles/instrument-chassis.css +46 -0
- package/dist/styles/menu.css +127 -0
- package/dist/styles/paper.css +2 -68
- package/dist/styles/segmented-tabs.css +346 -0
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +347 -0
- package/dist/styles/theme/dark.css +7 -0
- package/dist/styles/theme/literals.css +94 -0
- package/dist/styles/theme/radius.css +95 -0
- package/dist/styles/theme.css +26 -529
- package/dist/styles/tokens/color-radius.css +287 -0
- package/dist/styles/tokens/dark-arm.css +308 -0
- package/dist/styles/tokens/glass.css +500 -0
- package/dist/styles/tokens/light-dark.css +187 -0
- package/dist/styles/tokens/offsets-sizing.css +562 -0
- package/dist/styles/tokens/property-regs.css +162 -0
- package/dist/styles/tokens/scale-paper.css +409 -0
- package/dist/styles/tokens/scheme-motion.css +352 -0
- package/dist/styles/tokens/shadow.css +166 -0
- package/dist/styles/tokens.css +22 -2360
- package/dist/styles/transitions.css +7 -7
- package/dist/styles/typography/scale.css +153 -0
- package/dist/styles/typography/semantic.css +220 -0
- package/dist/styles/typography/utilities.css +159 -0
- package/dist/styles/typography.css +23 -453
- package/dist/styles/utilities/a11y-overrides.css +169 -0
- package/dist/styles/utilities/animate.css +26 -0
- package/dist/styles/utilities/base.css +541 -0
- package/dist/styles/utilities/btn.css +218 -0
- package/dist/styles/utilities/components.css +317 -0
- package/dist/styles/utilities.css +19 -1318
- package/dist/styles/view-transition.css +4 -52
- package/dist/switch.js +1 -1
- package/dist/tabs.js +161 -181
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +3 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-Bcpy5Etf.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/useConfiguratorState-kiIlun8I.js +303 -0
- package/dist/useLiquidFlex-C12hXwOZ.js +30 -0
- package/dist/useRAFLoop-CdwJ7284.js +109 -0
- package/dist/{useScrollProgress-CffFGLa5.js → useScrollProgress-D7bYU2RK.js} +1 -1
- package/dist/useSpecularTracking-Bo5su68i.js +32 -0
- package/dist/useSpringMount-CvopqiFr.js +108 -0
- package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
- package/dist/{useTouchGate-WFyJYsth.js → useTouchGate-28Tk2-t2.js} +1 -1
- package/dist/useViewTransition-COsPjQVZ.js +47 -0
- package/dist/utils/coalesceMetric.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vReveal-D9k0jADx.js +10 -0
- package/dist/watercolor-dot.js +22 -13
- package/dist/{x-Dfsegz9Y.js → x-BUwTKe50.js} +1 -1
- package/package.json +134 -50
- package/src/styles/animations.css +25 -125
- package/src/styles/cards.css +53 -0
- package/src/styles/configurator.css +77 -0
- package/src/styles/dock/density.css +19 -0
- package/src/styles/dock/layer-group.css +83 -25
- package/src/styles/dock/layers.css +23 -1
- package/src/styles/dock/morph-bridge.css +123 -0
- package/src/styles/dock/morph.css +175 -45
- package/src/styles/dock/overflow.css +66 -1
- package/src/styles/dock/rail-extend.css +397 -0
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +97 -110
- package/src/styles/dock-controls/dark-mode-toggle.css +109 -0
- package/src/styles/dock-controls/icon-button.css +143 -0
- package/src/styles/dock-controls/tab-button.css +143 -0
- package/src/styles/dock-controls/touch-floor.css +94 -0
- package/src/styles/dock-controls/triggers.css +135 -0
- package/src/styles/dock-controls.css +30 -595
- package/src/styles/dock.css +8 -3
- package/src/styles/drawer.css +42 -0
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/floating-panel.css +15 -0
- package/src/styles/glass/a11y-fallback.css +245 -0
- package/src/styles/glass/ladder.css +383 -0
- package/src/styles/glass/material.css +238 -0
- package/src/styles/glass/progress-rail.css +78 -0
- package/src/styles/glass/squircle.css +66 -0
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +382 -0
- package/src/styles/glass.css +34 -1188
- package/src/styles/icon-chip.css +149 -0
- package/src/styles/index.css +93 -17
- package/src/styles/instrument-chassis.css +42 -0
- package/src/styles/menu.css +127 -0
- package/src/styles/paper.css +2 -68
- package/src/styles/segmented-tabs.css +340 -0
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +347 -0
- package/src/styles/theme/dark.css +7 -0
- package/src/styles/theme/literals.css +94 -0
- package/src/styles/theme/radius.css +95 -0
- package/src/styles/theme.css +26 -529
- package/src/styles/tokens/color-radius.css +287 -0
- package/src/styles/tokens/dark-arm.css +308 -0
- package/src/styles/tokens/glass.css +500 -0
- package/src/styles/tokens/light-dark.css +187 -0
- package/src/styles/tokens/offsets-sizing.css +562 -0
- package/src/styles/tokens/property-regs.css +162 -0
- package/src/styles/tokens/scale-paper.css +409 -0
- package/src/styles/tokens/scheme-motion.css +352 -0
- package/src/styles/tokens/shadow.css +166 -0
- package/src/styles/tokens.css +22 -2360
- package/src/styles/transitions.css +7 -7
- package/src/styles/typography/scale.css +153 -0
- package/src/styles/typography/semantic.css +220 -0
- package/src/styles/typography/utilities.css +159 -0
- package/src/styles/typography.css +23 -453
- package/src/styles/utilities/a11y-overrides.css +169 -0
- package/src/styles/utilities/animate.css +26 -0
- package/src/styles/utilities/base.css +541 -0
- package/src/styles/utilities/btn.css +218 -0
- package/src/styles/utilities/components.css +317 -0
- package/src/styles/utilities.css +19 -1318
- package/src/styles/view-transition.css +4 -52
- package/dist/CardAction-DuArVky-.js +0 -157
- package/dist/DeckProgress-Dmk4_AKN.js +0 -23
- package/dist/DialogContent-BRkT1cjP.js +0 -100
- package/dist/InstrumentRail-CUJ05YVG.js +0 -44
- package/dist/MetricBadge-BZVWIxNy.js +0 -80
- package/dist/PopoverContent-BId6ggf_.js +0 -121
- package/dist/TabsList-B8CVOQPC.js +0 -101
- package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
- package/dist/components/custom/deck-progress/index.d.ts +0 -2
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
- package/dist/components/custom/dialog-native/index.d.ts +0 -1
- package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
- package/dist/components/custom/instrument-rail/index.d.ts +0 -2
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/composables/motion/useRouteTransition.d.ts +0 -42
- package/dist/deck-progress.d.ts +0 -1
- package/dist/deck-progress.js +0 -2
- package/dist/dockContext-BKeIMmNk.js +0 -9
- package/dist/instrument-rail.d.ts +0 -1
- package/dist/instrument-rail.js +0 -2
- package/dist/sheet-VZEtNFvO.js +0 -214
- package/dist/styles/instrument-rail.css +0 -127
- package/dist/useConfiguratorState-DxAqksK6.js +0 -287
- package/dist/useGlassRenderer-D7YGOYiM.js +0 -69
- package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
- package/dist/useSpringMount-BJSHcLl3.js +0 -113
- package/dist/useViewTransition-DaN5Zrox.js +0 -21
- package/dist/vReveal-zUIQk-rJ.js +0 -53
- package/src/styles/instrument-rail.css +0 -127
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
- /package/dist/{ContextMenuContent-DDa0v27s.js → ContextMenuContent-ON3x7cuk.js} +0 -0
- /package/dist/{HoverCardContent-B6CcQ8He.js → HoverCardContent-DkMaQzH5.js} +0 -0
- /package/dist/{Input-xuDwALQR.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{InstrumentChassis-C2f6cBaQ.js → InstrumentChassis-UUJX0-mW.js} +0 -0
- /package/dist/{Label-zRfbQdCn.js → Label-Ck9SWEKM.js} +0 -0
- /package/dist/{ModalOverlay-B1GkAjNb.js → ModalOverlay-CkPRRgl_.js} +0 -0
- /package/dist/{PaperBackdrop-CqwjnfLv.js → PaperBackdrop-nBKe0vkB.js} +0 -0
- /package/dist/{SelectGroup-BFiod7X2.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-C4Ql0gzV.js → SelectSeparator-DK2y1Bun.js} +0 -0
- /package/dist/{Separator-D7sD7RKj.js → Separator-BArl4OaB.js} +0 -0
- /package/dist/{TooltipProvider-CmZzCuaG.js → TooltipProvider-B3MkB_8P.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
- /package/dist/{compile-BOXjLUxu.js → compile-EXXzEr1q.js} +0 -0
- /package/dist/{constants-yKeKnE84.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-B44Sah_H.js → createContext-B2RaZ-b8.js} +0 -0
- /package/dist/{createLucideIcon-B6uNAU9G.js → createLucideIcon-DydS2qgk.js} +0 -0
- /package/dist/{presets-BP_ALM0m.js → presets-BW2b-fr1.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
- /package/dist/{supportsCssTimeline-C5oe0lnD.js → supportsCssTimeline-BWenxvHU.js} +0 -0
- /package/dist/{useGlobalDark-CAhOXNLO.js → useGlobalDark-C28t0VWJ.js} +0 -0
- /package/dist/{useIntersectionPause-Cck5Uxk8.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-Dsmqwi03.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-CyIYrndH.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-CWCbk5Px.js → useResizeObserver-V6nq5gJb.js} +0 -0
- /package/dist/{useResolveTokenColor-r9pnNjqK.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
- /package/dist/{useSortable-C8ReQ50P.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{useTimer-3xqf_54b.js → useTimer-B_PAasDL.js} +0 -0
- /package/dist/{useUserInvalidAria-DoJKMZ3s.js → useUserInvalidAria-CDfJuakL.js} +0 -0
- /package/dist/{useViewportReady-RIr5Wgkh.js → useViewportReady-CvBcCYDf.js} +0 -0
package/dist/constellation.js
CHANGED
|
@@ -1,41 +1,36 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./useCanvas2D-ClrQuZtp.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper-
|
|
4
|
-
import { n as r, t as i } from "./prng-
|
|
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
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";
|
|
6
|
-
//#region src/components/custom/constellation/
|
|
7
|
-
var g = 1280, _ =
|
|
6
|
+
//#region src/components/custom/constellation/constants.ts
|
|
7
|
+
var g = 1280, _ = {
|
|
8
8
|
node: "#b4afa3",
|
|
9
9
|
nodeDim: "#cdc8bd",
|
|
10
10
|
line: "#1c1714",
|
|
11
11
|
edgeAlpha: .22,
|
|
12
12
|
edgeFocusAlpha: .34,
|
|
13
|
-
alpha: .
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
edgeFocusAlpha: r("--constellation-edge-focus-alpha", y.edgeFocusAlpha),
|
|
29
|
-
alpha: r("--constellation-alpha", y.alpha)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function x(e) {
|
|
13
|
+
alpha: .8,
|
|
14
|
+
accent: "#b35030",
|
|
15
|
+
edgeFloor: 0,
|
|
16
|
+
edgeAccentAlpha: .3
|
|
17
|
+
}, v = .55, y = 1, b = {
|
|
18
|
+
gain: 14e3,
|
|
19
|
+
reach: 340,
|
|
20
|
+
ramp: 4,
|
|
21
|
+
maxSpeed: 4,
|
|
22
|
+
soften: 8,
|
|
23
|
+
holdMs: 140
|
|
24
|
+
}, x = 8e3, S = 8e3, C = .14, w = 2600, T = 6e3, E = 8e3, D = .72;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/custom/constellation/constellationInteraction.ts
|
|
27
|
+
function O(e) {
|
|
33
28
|
let t = {
|
|
34
|
-
response:
|
|
29
|
+
response: v,
|
|
35
30
|
zeta: 1
|
|
36
|
-
}, n = { ...
|
|
37
|
-
minIdle:
|
|
38
|
-
jitter:
|
|
31
|
+
}, n = { ...b }, r = {
|
|
32
|
+
minIdle: x,
|
|
33
|
+
jitter: S
|
|
39
34
|
};
|
|
40
35
|
if (typeof window > "u") return {
|
|
41
36
|
warp: t,
|
|
@@ -48,62 +43,21 @@ function x(e) {
|
|
|
48
43
|
let r = Number.parseFloat(n);
|
|
49
44
|
return Number.isFinite(r) ? r : t;
|
|
50
45
|
};
|
|
51
|
-
return t.response = a("--constellation-warp-response",
|
|
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), {
|
|
52
47
|
warp: t,
|
|
53
48
|
well: n,
|
|
54
49
|
wander: r
|
|
55
50
|
};
|
|
56
51
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (let o = 0; o < t; o++) {
|
|
60
|
-
let t = e() * Math.PI * 2;
|
|
61
|
-
a.push({
|
|
62
|
-
x: e() * n,
|
|
63
|
-
y: e() * r,
|
|
64
|
-
vx: Math.cos(t) * i,
|
|
65
|
-
vy: Math.sin(t) * i,
|
|
66
|
-
r: 1.6 + e() * 1.6,
|
|
67
|
-
dim: e() < .45
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
return a;
|
|
71
|
-
}
|
|
72
|
-
function C(e, t, n) {
|
|
73
|
-
if (!(t > 0) || !(n > 0) || t === e.w && n === e.h) return;
|
|
74
|
-
let r = e.w / t, i = e.h / n;
|
|
75
|
-
for (let t of e.nodes) t.x *= r, t.y *= i;
|
|
76
|
-
e.warp.x *= r, e.warp.y *= i;
|
|
77
|
-
}
|
|
78
|
-
function w(e, t, n, r, i = 0, a = 0, o = Math.random) {
|
|
79
|
-
let { nodes: s, w: c, h: l } = e;
|
|
80
|
-
for (let e = 0; e < s.length; e++) {
|
|
81
|
-
let n = s[e];
|
|
82
|
-
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);
|
|
83
|
-
}
|
|
84
|
-
if (r && r.x >= 0) {
|
|
85
|
-
let e = 180 * t;
|
|
86
|
-
for (let t = 0; t < s.length; t++) {
|
|
87
|
-
let i = s[t], a = r.x - i.x, o = r.y - i.y, c = Math.hypot(a, o);
|
|
88
|
-
if (c > .5 && c < e) {
|
|
89
|
-
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;
|
|
90
|
-
i.vx = s / u * t, i.vy = l / u * t;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (k(e, t, n, i), F(e, i), e.wander && a > 0) {
|
|
95
|
-
let t = e.wander;
|
|
96
|
-
t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt && z(e) && (I(e, B(e, o)), t.nextAt = a + t.minIdle + o() * t.jitter);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
var T = .001, E = 1.5, D = 7, O = 22;
|
|
100
|
-
function k(e, t, n, r) {
|
|
52
|
+
var k = .001, A = 1.5, j = 7, M = 22;
|
|
53
|
+
function N(e, t, n, r) {
|
|
101
54
|
let i = e.well;
|
|
102
55
|
if (!i || !(r > 0)) return;
|
|
103
|
-
let a = Math.min(r,
|
|
104
|
-
i.strength += (i.target - i.strength) * c, i.strength <
|
|
105
|
-
let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ?
|
|
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;
|
|
106
59
|
for (let e = 0; e < l.length; e++) {
|
|
60
|
+
if (e === g) continue;
|
|
107
61
|
let t = l[e];
|
|
108
62
|
if (h) {
|
|
109
63
|
let e = i.x - t.x, n = i.y - t.y, r = e * e + n * n;
|
|
@@ -119,15 +73,8 @@ function k(e, t, n, r) {
|
|
|
119
73
|
}
|
|
120
74
|
}
|
|
121
75
|
}
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
reach: 340,
|
|
125
|
-
ramp: 4,
|
|
126
|
-
maxSpeed: 4,
|
|
127
|
-
soften: 8,
|
|
128
|
-
holdMs: 140
|
|
129
|
-
};
|
|
130
|
-
function P(e, t, n, r = -1) {
|
|
76
|
+
var P = .05;
|
|
77
|
+
function F(e, t, n, r = -1) {
|
|
131
78
|
let { nodes: i } = e, a = -1, o = Infinity;
|
|
132
79
|
for (let e = 0; e < i.length; e++) {
|
|
133
80
|
if (e === r) continue;
|
|
@@ -136,13 +83,13 @@ function P(e, t, n, r = -1) {
|
|
|
136
83
|
}
|
|
137
84
|
return a;
|
|
138
85
|
}
|
|
139
|
-
function
|
|
86
|
+
function I(e, t) {
|
|
140
87
|
let { warp: n, nodes: r } = e;
|
|
141
88
|
if (!n || n.targetIdx < 0 || n.targetIdx >= r.length || !(t > 0)) return;
|
|
142
|
-
let i = Math.min(t,
|
|
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);
|
|
143
90
|
n.vx += l * i, n.vy += u * i, n.x += n.vx * i, n.y += n.vy * i;
|
|
144
91
|
}
|
|
145
|
-
function
|
|
92
|
+
function L(e, t) {
|
|
146
93
|
let { warp: n, nodes: r } = e;
|
|
147
94
|
if (t < 0 || t >= r.length) {
|
|
148
95
|
n.targetIdx = -1, e.focalIndex = -1;
|
|
@@ -150,20 +97,20 @@ function I(e, t) {
|
|
|
150
97
|
}
|
|
151
98
|
e.focalIndex = t, n.targetIdx = t;
|
|
152
99
|
}
|
|
153
|
-
function
|
|
154
|
-
let r =
|
|
100
|
+
function R(e, t, n) {
|
|
101
|
+
let r = F(e, t, n, -1);
|
|
155
102
|
if (r >= 0 && r === e.focalIndex) return e.focalIndex;
|
|
156
|
-
let i =
|
|
157
|
-
return i < 0 ? -1 : (
|
|
103
|
+
let i = F(e, t, n, e.focalIndex);
|
|
104
|
+
return i < 0 ? -1 : (L(e, i), i);
|
|
158
105
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
106
|
+
var z = 24;
|
|
107
|
+
function B(e) {
|
|
161
108
|
let { warp: t, nodes: n } = e;
|
|
162
109
|
if (!t || t.targetIdx < 0 || t.targetIdx >= n.length) return !0;
|
|
163
110
|
let r = n[t.targetIdx];
|
|
164
|
-
return Math.hypot(t.x - r.x, t.y - r.y) <
|
|
111
|
+
return Math.hypot(t.x - r.x, t.y - r.y) < z;
|
|
165
112
|
}
|
|
166
|
-
function
|
|
113
|
+
function V(e, t) {
|
|
167
114
|
let n = e.nodes.length;
|
|
168
115
|
if (n <= 1) return e.focalIndex;
|
|
169
116
|
let r = e.focalIndex;
|
|
@@ -171,58 +118,336 @@ function B(e, t) {
|
|
|
171
118
|
let i = Math.floor(t() * (n - 1));
|
|
172
119
|
return i < r ? i : i + 1;
|
|
173
120
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
121
|
+
function H(e = {}) {
|
|
122
|
+
return {
|
|
123
|
+
anchorX: 0,
|
|
124
|
+
anchorY: 0,
|
|
125
|
+
nextAt: -1,
|
|
126
|
+
legStart: -1,
|
|
127
|
+
fromX: 0,
|
|
128
|
+
fromY: 0,
|
|
129
|
+
toX: 0,
|
|
130
|
+
toY: 0,
|
|
131
|
+
wanderFrac: e.wanderFrac ?? .14,
|
|
132
|
+
durMs: e.durMs ?? 2600,
|
|
133
|
+
minIdle: e.minIdle ?? 6e3,
|
|
134
|
+
jitter: e.jitter ?? 8e3
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function U(e) {
|
|
138
|
+
return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
139
|
+
}
|
|
140
|
+
function W(e, t, n) {
|
|
141
|
+
let r = e.pinnedDrift;
|
|
142
|
+
if (!r || e.pinnedIndex < 0 || e.pinnedIndex >= e.nodes.length || !(t > 0)) return;
|
|
143
|
+
let i = e.nodes[e.pinnedIndex];
|
|
144
|
+
if (r.nextAt < 0) {
|
|
145
|
+
r.anchorX = i.x, r.anchorY = i.y, r.nextAt = t + r.minIdle + n() * r.jitter;
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (r.legStart < 0) {
|
|
149
|
+
if (t < r.nextAt) return;
|
|
150
|
+
r.fromX = i.x, r.fromY = i.y;
|
|
151
|
+
let a = r.wanderFrac, o = r.anchorX + (n() * 2 - 1) * a * e.w, s = r.anchorY + (n() * 2 - 1) * a * e.h;
|
|
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
|
+
}
|
|
154
|
+
let a = Math.min((t - r.legStart) / r.durMs, 1), o = U(a);
|
|
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
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/custom/constellation/constellationField.ts
|
|
159
|
+
function G(e, t, n, r, i) {
|
|
160
|
+
let a = [];
|
|
161
|
+
for (let o = 0; o < t; o++) {
|
|
162
|
+
let t = e() * Math.PI * 2;
|
|
163
|
+
a.push({
|
|
164
|
+
x: e() * n,
|
|
165
|
+
y: e() * r,
|
|
166
|
+
vx: Math.cos(t) * i,
|
|
167
|
+
vy: Math.sin(t) * i,
|
|
168
|
+
r: 1.6 + e() * 1.6,
|
|
169
|
+
dim: e() < .45
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return a;
|
|
173
|
+
}
|
|
174
|
+
function K(e, t, n) {
|
|
175
|
+
if (!(t > 0) || !(n > 0) || t === e.w && n === e.h) return;
|
|
176
|
+
let r = e.w / t, i = e.h / n;
|
|
177
|
+
for (let t of e.nodes) t.x *= r, t.y *= i;
|
|
178
|
+
e.warp.x *= r, e.warp.y *= i;
|
|
179
|
+
}
|
|
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);
|
|
186
|
+
}
|
|
187
|
+
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;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
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) {
|
|
199
|
+
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);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/components/custom/constellation/constellationDraw.ts
|
|
205
|
+
function J(e) {
|
|
206
|
+
return Math.max(e.k, e.kFloor ?? .72);
|
|
207
|
+
}
|
|
208
|
+
function Y(e) {
|
|
209
|
+
if (typeof window > "u") return { ..._ };
|
|
210
|
+
let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
|
|
211
|
+
let r = t.getPropertyValue(e).trim();
|
|
212
|
+
if (!r) return n;
|
|
213
|
+
let i = Number.parseFloat(r);
|
|
214
|
+
return Number.isFinite(i) ? i : n;
|
|
215
|
+
};
|
|
216
|
+
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)
|
|
226
|
+
};
|
|
227
|
+
}
|
|
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();
|
|
182
237
|
}
|
|
183
238
|
}
|
|
184
239
|
e.globalAlpha = 1;
|
|
185
240
|
}
|
|
186
|
-
function
|
|
187
|
-
let { nodes:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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();
|
|
191
247
|
}
|
|
248
|
+
e.globalAlpha = 1;
|
|
192
249
|
}
|
|
193
|
-
function
|
|
250
|
+
function Q(e, t, n, r, i, a = 1) {
|
|
194
251
|
if (!i || i.x < 0) return;
|
|
195
|
-
let { nodes:
|
|
196
|
-
e.strokeStyle = r.line, e.lineWidth = 1 *
|
|
197
|
-
for (let t of
|
|
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) {
|
|
198
255
|
let n = t.x - i.x, r = t.y - i.y, a = n * n + r * r;
|
|
199
|
-
a >
|
|
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());
|
|
200
257
|
}
|
|
201
|
-
e.globalAlpha = .55, e.fillStyle = r.node, e.beginPath(), e.arc(i.x, i.y, 2.6 *
|
|
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;
|
|
202
259
|
}
|
|
203
|
-
function
|
|
204
|
-
let
|
|
260
|
+
function $(e, t, n, r, i, a = 1) {
|
|
261
|
+
let o = J(t);
|
|
205
262
|
e.strokeStyle = i.line;
|
|
206
263
|
for (let t = r.length - 1; t >= 0; t--) {
|
|
207
264
|
let i = r[t];
|
|
208
265
|
i.start < 0 && (i.start = n);
|
|
209
|
-
let
|
|
210
|
-
if (
|
|
266
|
+
let s = (n - i.start) / 900;
|
|
267
|
+
if (s >= 1) {
|
|
211
268
|
r.splice(t, 1);
|
|
212
269
|
continue;
|
|
213
270
|
}
|
|
214
|
-
e.globalAlpha = (1 -
|
|
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();
|
|
215
272
|
}
|
|
216
273
|
e.globalAlpha = 1;
|
|
217
274
|
}
|
|
218
275
|
//#endregion
|
|
219
|
-
//#region src/components/custom/constellation/
|
|
220
|
-
|
|
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
|
+
}
|
|
318
|
+
}
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/components/custom/constellation/composables/createConstellationField.ts
|
|
321
|
+
function te(e, t, n = !1, r = !1, i = !1) {
|
|
322
|
+
let a = {
|
|
323
|
+
nodes: [],
|
|
324
|
+
canvas: null,
|
|
325
|
+
w: 0,
|
|
326
|
+
h: 0,
|
|
327
|
+
k: 1,
|
|
328
|
+
dpr: 1,
|
|
329
|
+
focalIndex: -1,
|
|
330
|
+
warp: {
|
|
331
|
+
x: 0,
|
|
332
|
+
y: 0,
|
|
333
|
+
vx: 0,
|
|
334
|
+
vy: 0,
|
|
335
|
+
targetIdx: -1
|
|
336
|
+
},
|
|
337
|
+
pinnedIndex: n === !1 ? -1 : n === !0 ? 0 : Math.max(0, Math.trunc(n)),
|
|
338
|
+
warpAutoRelease: !!i
|
|
339
|
+
};
|
|
340
|
+
a.pinnedDrift = r ? H(r === !0 ? {} : r) : void 0;
|
|
341
|
+
let o = e && e !== !0 ? e : {};
|
|
342
|
+
a.wander = e ? {
|
|
343
|
+
nextAt: -1,
|
|
344
|
+
minIdle: o.minIdle ?? 8e3,
|
|
345
|
+
jitter: o.jitter ?? 8e3
|
|
346
|
+
} : void 0;
|
|
347
|
+
let s = t && t !== !0 ? t : {};
|
|
348
|
+
return a.well = t ? {
|
|
349
|
+
x: -1,
|
|
350
|
+
y: -1,
|
|
351
|
+
strength: 0,
|
|
352
|
+
target: 0,
|
|
353
|
+
cfg: {
|
|
354
|
+
...b,
|
|
355
|
+
...s
|
|
356
|
+
}
|
|
357
|
+
} : void 0, {
|
|
358
|
+
field: a,
|
|
359
|
+
wanderOverride: o,
|
|
360
|
+
wellOverride: s
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
//#endregion
|
|
364
|
+
//#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 = {
|
|
367
|
+
x: -1,
|
|
368
|
+
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 = {
|
|
385
|
+
...e.well,
|
|
386
|
+
...k
|
|
387
|
+
}), E.wander && (E.wander.minIdle = D.minIdle ?? e.wander.minIdle, E.wander.jitter = D.jitter ?? e.wander.jitter);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
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
|
|
413
|
+
});
|
|
414
|
+
}), {
|
|
415
|
+
field: E,
|
|
416
|
+
isFrozen: T,
|
|
417
|
+
warpTo(e, t) {
|
|
418
|
+
if (typeof e == "number" && typeof t == "number") {
|
|
419
|
+
let n = F.value?.({
|
|
420
|
+
clientX: e,
|
|
421
|
+
clientY: t
|
|
422
|
+
});
|
|
423
|
+
return n ? R(E, n.x, n.y) : -1;
|
|
424
|
+
}
|
|
425
|
+
let n = e;
|
|
426
|
+
return R(E, n.x, n.y);
|
|
427
|
+
},
|
|
428
|
+
holdWellAt(e, t) {
|
|
429
|
+
return E.well ? (E.well.x = e, E.well.y = t, E.well.target = 1, !0) : !1;
|
|
430
|
+
},
|
|
431
|
+
releaseWell() {
|
|
432
|
+
E.well && (E.well.target = 0);
|
|
433
|
+
},
|
|
434
|
+
warpSettled() {
|
|
435
|
+
return B(E);
|
|
436
|
+
},
|
|
437
|
+
pinNode(e) {
|
|
438
|
+
E.pinnedIndex = e, E.pinnedDrift && (E.pinnedDrift.nextAt = -1);
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/components/custom/constellation/Constellation.vue
|
|
444
|
+
var re = /* @__PURE__ */ n(/* @__PURE__ */ c({
|
|
221
445
|
__name: "Constellation",
|
|
222
446
|
props: {
|
|
223
447
|
count: { default: 64 },
|
|
224
448
|
link: { default: 132 },
|
|
225
449
|
speed: { default: .16 },
|
|
450
|
+
opacityCeiling: { default: 1 },
|
|
226
451
|
seed: {},
|
|
227
452
|
pointerReactive: {
|
|
228
453
|
type: Boolean,
|
|
@@ -240,152 +465,39 @@ var G = 0, K = /* @__PURE__ */ n(/* @__PURE__ */ c({
|
|
|
240
465
|
type: [Boolean, Object],
|
|
241
466
|
default: !1
|
|
242
467
|
},
|
|
468
|
+
pinned: {
|
|
469
|
+
type: [Boolean, Number],
|
|
470
|
+
default: !1
|
|
471
|
+
},
|
|
472
|
+
accentEdges: {
|
|
473
|
+
type: Boolean,
|
|
474
|
+
default: !1
|
|
475
|
+
},
|
|
476
|
+
pinnedDrift: {
|
|
477
|
+
type: [Boolean, Object],
|
|
478
|
+
default: !1
|
|
479
|
+
},
|
|
480
|
+
warpAutoRelease: {
|
|
481
|
+
type: Boolean,
|
|
482
|
+
default: !1
|
|
483
|
+
},
|
|
243
484
|
freeze: { type: Boolean },
|
|
244
|
-
class: {
|
|
245
|
-
|
|
246
|
-
null,
|
|
247
|
-
String,
|
|
248
|
-
Object,
|
|
249
|
-
Array
|
|
250
|
-
] },
|
|
251
|
-
drawOverlay: { type: Function }
|
|
485
|
+
class: {},
|
|
486
|
+
drawOverlay: {}
|
|
252
487
|
},
|
|
253
|
-
setup(
|
|
254
|
-
let
|
|
255
|
-
|
|
256
|
-
canvas: null,
|
|
257
|
-
w: 0,
|
|
258
|
-
h: 0,
|
|
259
|
-
k: 1,
|
|
260
|
-
dpr: 1,
|
|
261
|
-
focalIndex: -1,
|
|
262
|
-
warp: {
|
|
263
|
-
x: 0,
|
|
264
|
-
y: 0,
|
|
265
|
-
vx: 0,
|
|
266
|
-
vy: 0,
|
|
267
|
-
targetIdx: -1
|
|
268
|
-
}
|
|
269
|
-
}, A = n.wander && n.wander !== !0 ? n.wander : {};
|
|
270
|
-
k.wander = n.wander ? {
|
|
271
|
-
nextAt: -1,
|
|
272
|
-
minIdle: A.minIdle ?? 8e3,
|
|
273
|
-
jitter: A.jitter ?? 8e3
|
|
274
|
-
} : void 0;
|
|
275
|
-
let j = n.gravityWell && n.gravityWell !== !0 ? n.gravityWell : {};
|
|
276
|
-
k.well = n.gravityWell ? {
|
|
277
|
-
x: -1,
|
|
278
|
-
y: -1,
|
|
279
|
-
strength: 0,
|
|
280
|
-
target: 0,
|
|
281
|
-
cfg: {
|
|
282
|
-
...N,
|
|
283
|
-
...j
|
|
284
|
-
}
|
|
285
|
-
} : void 0;
|
|
286
|
-
let M = {
|
|
287
|
-
x: -1,
|
|
288
|
-
y: -1
|
|
289
|
-
}, P = [], F = { ...y }, I = -1, R = !1, z = p(null);
|
|
290
|
-
return d(() => {
|
|
291
|
-
let e = v.value;
|
|
292
|
-
if (!e) return;
|
|
293
|
-
let r = t({
|
|
294
|
-
canvas: v,
|
|
295
|
-
setup: (t) => ({ render(t, i) {
|
|
296
|
-
let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a / g;
|
|
297
|
-
if (k.canvas = e, k.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), k.w !== a || k.h !== o) {
|
|
298
|
-
let t = k.w, r = k.h;
|
|
299
|
-
if (k.w = a, k.h = o, k.k = s, k.nodes.length ? C(k, t, r) : (k.nodes = S(T.value, n.count, a, o, n.speed), k.warp.x = a / 2, k.warp.y = o / 2), F = b(e), !R) {
|
|
300
|
-
R = !0;
|
|
301
|
-
let t = x(e);
|
|
302
|
-
k.warpCfg = t.warp, k.well && (k.well.cfg = {
|
|
303
|
-
...t.well,
|
|
304
|
-
...j
|
|
305
|
-
}), k.wander && (k.wander.minIdle = A.minIdle ?? t.wander.minIdle, k.wander.jitter = A.jitter ?? t.wander.jitter);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
k.k = s;
|
|
309
|
-
let c = I < 0 ? 0 : (i - I) / 1e3;
|
|
310
|
-
I = i;
|
|
311
|
-
let l = O.value || r.reducedMotion;
|
|
312
|
-
if (l && k.well && (k.well.strength = 0, k.well.target = 0, k.well.x = -1, k.well.y = -1), !l) {
|
|
313
|
-
let e = n.pointerReactive ? M : null;
|
|
314
|
-
w(k, s, n.speed, e, c, i, T.value);
|
|
315
|
-
}
|
|
316
|
-
t.clearRect(0, 0, a, o), V(t, k, n.link, F), H(t, k, F), n.pointerReactive && !l && (U(t, k, n.link, F, M), W(t, k, i, P, F)), n.drawOverlay?.(t, k, l ? G : i);
|
|
317
|
-
} })
|
|
318
|
-
}), i = _.value, a = (t) => {
|
|
319
|
-
let n = e.getBoundingClientRect();
|
|
320
|
-
if (!n.width || !n.height) return null;
|
|
321
|
-
let r = (t.clientX - n.left) / n.width, i = (t.clientY - n.top) / n.height;
|
|
322
|
-
return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
|
|
323
|
-
x: r * k.w,
|
|
324
|
-
y: i * k.h
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
if (z.value = a, n.pointerReactive && i && !O.value && !r.reducedMotion && (i.addEventListener("pointermove", (e) => {
|
|
328
|
-
let t = a(e);
|
|
329
|
-
t ? (M.x = t.x, M.y = t.y) : (M.x = -1, M.y = -1), r.wake();
|
|
330
|
-
}), i.addEventListener("pointerleave", () => {
|
|
331
|
-
M.x = -1, M.y = -1;
|
|
332
|
-
}), i.addEventListener("pointerdown", (e) => {
|
|
333
|
-
let t = a(e);
|
|
334
|
-
t && P.push({
|
|
335
|
-
x: t.x,
|
|
336
|
-
y: t.y,
|
|
337
|
-
start: -1
|
|
338
|
-
}), r.wake();
|
|
339
|
-
})), n.warpOnClick && i && !O.value && !r.reducedMotion && i.addEventListener("pointerdown", (e) => {
|
|
340
|
-
let t = a(e);
|
|
341
|
-
t && (L(k, t.x, t.y), r.wake());
|
|
342
|
-
}), n.gravityWell && i && k.well && !O.value && !r.reducedMotion) {
|
|
343
|
-
let e = k.well, t, n = (n) => {
|
|
344
|
-
let i = a(n);
|
|
345
|
-
i && (e.x = i.x, e.y = i.y, t = window.setTimeout(() => {
|
|
346
|
-
e.target = 1, r.wake();
|
|
347
|
-
}, e.cfg.holdMs), r.wake());
|
|
348
|
-
}, o = (t) => {
|
|
349
|
-
if (e.target > 0) {
|
|
350
|
-
let n = a(t);
|
|
351
|
-
n && (e.x = n.x, e.y = n.y);
|
|
352
|
-
}
|
|
353
|
-
}, s = () => {
|
|
354
|
-
t !== void 0 && (clearTimeout(t), t = void 0), e.target = 0, r.wake();
|
|
355
|
-
};
|
|
356
|
-
i.addEventListener("pointerdown", n), i.addEventListener("pointermove", o), i.addEventListener("pointerup", s), i.addEventListener("pointerleave", s), i.addEventListener("pointercancel", s);
|
|
357
|
-
}
|
|
358
|
-
}), c({
|
|
359
|
-
field: k,
|
|
360
|
-
isFrozen: O,
|
|
361
|
-
warpTo(e, t) {
|
|
362
|
-
if (typeof e == "number" && typeof t == "number") {
|
|
363
|
-
let n = z.value?.({
|
|
364
|
-
clientX: e,
|
|
365
|
-
clientY: t
|
|
366
|
-
});
|
|
367
|
-
return n ? L(k, n.x, n.y) : -1;
|
|
368
|
-
}
|
|
369
|
-
let n = e;
|
|
370
|
-
return L(k, n.x, n.y);
|
|
371
|
-
},
|
|
372
|
-
holdWellAt(e, t) {
|
|
373
|
-
return k.well ? (k.well.x = e, k.well.y = t, k.well.target = 1, !0) : !1;
|
|
374
|
-
},
|
|
375
|
-
releaseWell() {
|
|
376
|
-
k.well && (k.well.target = 0);
|
|
377
|
-
}
|
|
378
|
-
}), (t, r) => (f(), o("div", {
|
|
488
|
+
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", {
|
|
379
491
|
ref_key: "hostRef",
|
|
380
|
-
ref:
|
|
381
|
-
class: u(m(e)("constellation",
|
|
492
|
+
ref: i,
|
|
493
|
+
class: u(m(e)("constellation", r.class))
|
|
382
494
|
}, [s("canvas", {
|
|
383
495
|
ref_key: "canvasRef",
|
|
384
|
-
ref:
|
|
496
|
+
ref: a,
|
|
385
497
|
class: "constellation-canvas",
|
|
386
498
|
"aria-hidden": "true"
|
|
387
499
|
}, null, 512)], 2));
|
|
388
500
|
}
|
|
389
|
-
}), [["__scopeId", "data-v-
|
|
501
|
+
}), [["__scopeId", "data-v-2ada60ff"]]);
|
|
390
502
|
//#endregion
|
|
391
|
-
export { g as BASE_WIDTH,
|
|
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 };
|