@mkbabb/glass-ui 5.0.0 → 7.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/README.md +61 -56
- package/dist/DropdownMenuTrigger-ClIq8RJE.js +93 -0
- package/dist/FeedbackMark-DZq5001h.js +23 -0
- package/dist/Input-9BlLluik.js +77 -0
- package/dist/PagerDots-BEq0MgtH.js +311 -0
- package/dist/Surface-kFQeYrYv.js +82 -0
- package/dist/accent-tone-solve-Cw7WkRD9.js +14 -0
- package/dist/animated-digit.js +5 -5
- package/dist/asElement-CRnm6A2v.js +9 -0
- package/dist/aurora.js +858 -793
- package/dist/axes.js +25 -14
- package/dist/badge-u65NClWn.js +62 -0
- package/dist/badge.js +1 -1
- package/dist/blob-config.d.ts +0 -4
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +490 -424
- package/dist/button-Bu9F4uU6.js +98 -0
- package/dist/button.js +2 -2
- package/dist/canvas.js +1 -1
- package/dist/card-Bk96VI2R.js +234 -0
- package/dist/card.js +2 -2
- package/dist/carousel.d.ts +1 -2
- package/dist/carousel.js +109 -238
- package/dist/chip-DFZQr6rV.js +129 -0
- package/dist/chip.d.ts +0 -9
- package/dist/chip.js +2 -81
- package/dist/{class-names-5jotTFzp.js → class-names-Cpy5eaBk.js} +11 -4
- package/dist/collapsible-BAP95XTt.js +154 -0
- package/dist/collapsible.js +1 -1
- package/dist/color.js +83 -3
- package/dist/{procedural-color.wgsl-ByduxnzV.js → color.wgsl-Ct5o9dpf.js} +410 -3
- package/dist/command-SFqDQ65h.js +320 -0
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +72 -63
- package/dist/components/_shared/FeedbackMark.vue.d.ts +11 -0
- package/dist/components/_shared/axes.d.ts +9 -3
- package/dist/components/_shared/class-names.d.ts +9 -8
- package/dist/components/_shared/control-size.d.ts +2 -0
- package/dist/components/_shared/disclosure-context.d.ts +7 -0
- package/dist/components/_shared/disclosure.css +1 -0
- package/dist/components/_shared/feedback.d.ts +7 -0
- package/dist/components/_shared/field-control.css +1 -0
- package/dist/components/_shared/field-surfaces.css +1 -0
- package/dist/components/_shared/fieldControl.d.ts +13 -0
- package/dist/components/_shared/floating.d.ts +14 -0
- package/dist/components/_shared/index.d.ts +2 -6
- package/dist/components/_shared/interaction.d.ts +23 -0
- package/dist/components/_shared/menu.css +1 -0
- package/dist/components/_shared/menuRowClass.d.ts +2 -0
- package/dist/components/_shared/primitive.d.ts +19 -0
- package/dist/components/_shared/resolveSurfaceClass.d.ts +3 -0
- package/dist/components/_shared/selection.d.ts +7 -0
- package/dist/components/_shared/useMotionAxis.d.ts +5 -4
- package/dist/components/_shared/valueDomain.d.ts +6 -0
- package/dist/components/accordion/Accordion.vue.d.ts +41 -16
- package/dist/components/accordion/AccordionContent.vue.d.ts +11 -9
- package/dist/components/accordion/AccordionItem.vue.d.ts +12 -9
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +8 -11
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/alert/Alert.vue.d.ts +9 -5
- package/dist/components/alert/index.d.ts +17 -8
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +3 -4
- package/dist/components/aurora/Aurora.vue.d.ts +44 -43
- package/dist/components/aurora/composables/atoms-fields.d.ts +13 -2
- package/dist/components/aurora/composables/atoms.d.ts +52 -50
- package/dist/components/aurora/composables/auroraFallbackGround.d.ts +13 -13
- package/dist/components/aurora/composables/auroraImageSource.d.ts +4 -5
- package/dist/components/aurora/composables/color.d.ts +15 -20
- package/dist/components/aurora/composables/frameLoop.d.ts +14 -11
- package/dist/components/aurora/composables/glSetup.d.ts +19 -2
- package/dist/components/aurora/composables/runtime.d.ts +58 -60
- package/dist/components/aurora/composables/uniformBridge.d.ts +9 -14
- package/dist/components/aurora/composables/uniformBridgeWGPU.d.ts +21 -22
- package/dist/components/aurora/composables/uniformBridgeWGPUImage.d.ts +13 -13
- package/dist/components/aurora/composables/useAurora.d.ts +21 -30
- package/dist/components/aurora/composables/wgpuSetup.d.ts +10 -8
- package/dist/components/aurora/constants/budget.d.ts +12 -25
- package/dist/components/aurora/constants/presets.d.ts +47 -58
- package/dist/components/aurora/constants/renderMode.d.ts +21 -36
- package/dist/components/aurora/constants/shaders/aurora-image.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/flow.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/metal-medium.glsl.d.ts +2 -2
- package/dist/components/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -1
- package/dist/components/aurora/index.d.ts +2 -1
- package/dist/components/avatar/Avatar.vue.d.ts +72 -11
- package/dist/components/avatar/AvatarFallback.vue.d.ts +1 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +12 -6
- package/dist/components/avatar/index.d.ts +3 -9
- package/dist/components/avatar/styles.css +1 -0
- package/dist/components/badge/Badge.vue.d.ts +2 -9
- package/dist/components/badge/index.d.ts +32 -9
- package/dist/components/blob/Blob.vue.d.ts +16 -12
- package/dist/components/blob/composables/blobSimulation.d.ts +80 -0
- package/dist/components/blob/composables/buildMetaballProgram.d.ts +1 -1
- package/dist/components/blob/composables/resolveBlobSurface.d.ts +6 -0
- package/dist/components/blob/composables/satelliteKinematics.d.ts +3 -3
- package/dist/components/blob/composables/uniformBridgeWGPU.d.ts +1 -1
- package/dist/components/blob/composables/uploadBlobUniforms.d.ts +4 -31
- package/dist/components/blob/composables/useBlobMood.d.ts +5 -5
- package/dist/components/blob/composables/useBlobPointer.d.ts +11 -12
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +29 -24
- package/dist/components/blob/composables/wgpuSetup.d.ts +7 -5
- package/dist/components/blob/config.d.ts +1 -1
- package/dist/components/blob/index.d.ts +2 -2
- package/dist/components/blob/presets.d.ts +2 -2
- package/dist/components/blob/shaders/metaball-palette.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/watercolor-edges.glsl.d.ts +1 -1
- package/dist/components/blob/types.d.ts +28 -60
- package/dist/components/button/Button.vue.d.ts +27 -19
- package/dist/components/button/index.d.ts +1 -9
- package/dist/components/button/styles.css +1 -0
- package/dist/components/card/Card.vue.d.ts +20 -155
- package/dist/components/card/CardAction.vue.d.ts +0 -7
- package/dist/components/card/CardContent.vue.d.ts +2 -2
- package/dist/components/card/CardDescription.vue.d.ts +2 -2
- package/dist/components/card/CardFooter.vue.d.ts +2 -2
- package/dist/components/card/CardHeader.vue.d.ts +3 -42
- package/dist/components/card/CardTitle.vue.d.ts +6 -3
- package/dist/components/card/card-scroll.css +1 -0
- package/dist/components/card/index.d.ts +1 -3
- package/dist/components/card/styles.css +1 -0
- package/dist/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/carousel/index.d.ts +0 -3
- package/dist/components/carousel/interface.d.ts +2 -0
- package/dist/components/carousel/useCarousel.d.ts +2 -2
- package/dist/components/checkbox/Checkbox.vue.d.ts +17 -9
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/styles.css +1 -0
- package/dist/components/chip/Chip.vue.d.ts +12 -7
- package/dist/components/chip/chipVariants.d.ts +20 -43
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip/types.d.ts +45 -30
- package/dist/components/collapsible/Collapsible.vue.d.ts +22 -9
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +11 -5
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +12 -9
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/combobox/Combobox.vue.d.ts +10 -20
- package/dist/components/combobox/ComboboxAnchor.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxEmpty.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxGroup.vue.d.ts +2 -7
- package/dist/components/combobox/ComboboxInput.vue.d.ts +7 -12
- package/dist/components/combobox/ComboboxItem.vue.d.ts +7 -11
- package/dist/components/combobox/ComboboxItemIndicator.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxList.vue.d.ts +14 -17
- package/dist/components/combobox/ComboboxTrigger.vue.d.ts +16 -0
- package/dist/components/combobox/index.d.ts +2 -3
- package/dist/components/combobox/types.d.ts +87 -0
- package/dist/components/command/Command.vue.d.ts +9 -23
- package/dist/components/command/CommandDialog.vue.d.ts +8 -10
- package/dist/components/command/CommandEmpty.vue.d.ts +2 -6
- package/dist/components/command/CommandGroup.vue.d.ts +2 -7
- package/dist/components/command/CommandInput.vue.d.ts +6 -7
- package/dist/components/command/CommandItem.vue.d.ts +7 -11
- package/dist/components/command/CommandList.vue.d.ts +12 -19
- package/dist/components/command/CommandSeparator.vue.d.ts +2 -6
- package/dist/components/command/CommandShortcut.vue.d.ts +2 -2
- package/dist/components/command/dialogContext.d.ts +6 -0
- package/dist/components/command/index.d.ts +10 -10
- package/dist/components/command/styles.css +1 -0
- package/dist/components/command/types.d.ts +27 -0
- package/dist/components/completion-seal/CompletionSeal.vue.d.ts +2 -2
- package/dist/components/completion-seal/constants.d.ts +2 -2
- package/dist/components/completion-seal/styles.css +1 -0
- package/dist/components/configurator/Configurator.vue.d.ts +6 -6
- package/dist/components/configurator/ConfiguratorLayer.vue.d.ts +14 -18
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +14 -17
- package/dist/components/configurator/size.d.ts +5 -7
- package/dist/components/configurator/styles.css +1 -0
- package/dist/components/constellation/Constellation.vue.d.ts +7 -2
- package/dist/components/constellation/composables/createConstellationField.d.ts +2 -2
- package/dist/components/constellation/composables/useConstellation.d.ts +3 -16
- package/dist/components/constellation/constants.d.ts +14 -24
- package/dist/components/constellation/constellationField.d.ts +8 -11
- package/dist/components/constellation/constellationInteraction.d.ts +9 -9
- package/dist/components/constellation/constellationRender.d.ts +11 -21
- package/dist/components/constellation/constellationTypes.d.ts +64 -62
- package/dist/components/constellation/constellationWell.d.ts +2 -2
- package/dist/components/constellation/index.d.ts +1 -1
- package/dist/components/dark-mode-toggle/DarkModeToggle.vue.d.ts +12 -0
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -0
- package/dist/components/dark-mode-toggle/index.d.ts +2 -0
- package/dist/components/data-table/DataTable.vue.d.ts +12 -48
- package/dist/components/data-table/composables/useDataTableRowIdentity.d.ts +5 -23
- package/dist/components/data-table/index.d.ts +1 -2
- package/dist/components/data-table/styles.css +1 -0
- package/dist/components/data-table/types.d.ts +36 -13
- package/dist/components/deck/constants.d.ts +0 -10
- package/dist/components/deck/index.d.ts +0 -2
- package/dist/components/dialog/Dialog.vue.d.ts +8 -3
- package/dist/components/dialog/DialogClose.vue.d.ts +3 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +28 -85
- package/dist/components/dialog/DialogDescription.vue.d.ts +5 -6
- package/dist/components/dialog/DialogTitle.vue.d.ts +5 -6
- package/dist/components/dialog/DialogTrigger.vue.d.ts +3 -1
- package/dist/components/dialog/ModalOverlay.vue.d.ts +45 -0
- package/dist/components/dialog/dialogStageContext.d.ts +7 -0
- package/dist/components/dialog/index.d.ts +8 -9
- package/dist/components/dialog/placement.css +1 -0
- package/dist/components/dialog/sheet-motion.d.ts +17 -0
- package/dist/components/dock/DockControl.vue.d.ts +13 -16
- package/dist/components/dock/DockCrossfade.vue.d.ts +4 -8
- package/dist/components/dock/DockLayer.vue.d.ts +2 -3
- package/dist/components/dock/DockLayerGroup.vue.d.ts +6 -6
- package/dist/components/dock/DockSeparator.vue.d.ts +8 -8
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockContext.d.ts +4 -14
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +6 -7
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +6 -75
- package/dist/components/dock/composables/index.d.ts +1 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +5 -1
- package/dist/components/dock/composables/useDockHold.d.ts +4 -5
- package/dist/components/dock/composables/useDockMorph.d.ts +26 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +7 -9
- package/dist/components/dock/composables/useDockSearch.d.ts +8 -8
- package/dist/components/dock/composables/useDockShellProps.d.ts +53 -43
- package/dist/components/dock/composables/useDockSpring.d.ts +7 -11
- package/dist/components/dock/composables/useDockState.d.ts +14 -5
- package/dist/components/dock/composables/useDockTouchGate.d.ts +14 -23
- package/dist/components/dock/constants.d.ts +5 -90
- package/dist/components/dock/index.d.ts +2 -6
- package/dist/components/dock/styles/adaptive-legibility.css +1 -0
- package/dist/components/dock/styles/controls/icon-button.css +1 -0
- package/dist/{styles/dock-controls → components/dock/styles/controls}/touch-floor.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -0
- package/dist/components/dock/styles/crossfade.css +1 -0
- package/dist/{styles/dock → components/dock/styles}/density.css +1 -1
- package/dist/components/dock/styles/dock.css +1 -0
- package/dist/components/dock/styles/index.css +1 -0
- package/dist/components/dock/styles/layer-group.css +1 -0
- package/dist/components/dock/styles/layers.css +1 -0
- package/dist/components/dock/styles/morph.css +1 -0
- package/dist/components/dock/styles/overflow.css +1 -0
- package/dist/components/dock/styles/shape.css +1 -0
- package/dist/components/dock/styles/shell.css +1 -0
- package/dist/components/drawer/Drawer.vue.d.ts +20 -23
- package/dist/components/drawer/DrawerContent.vue.d.ts +15 -16
- package/dist/components/drawer/DrawerDescription.vue.d.ts +5 -6
- package/dist/components/drawer/DrawerOverlay.vue.d.ts +6 -6
- package/dist/components/drawer/DrawerTitle.vue.d.ts +5 -6
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +9 -1
- package/dist/components/drawer/composables/useDrawerSnap.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +10 -28
- package/dist/components/drawer/index.d.ts +13 -15
- package/dist/components/drawer/styles.css +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +43 -16
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +22 -13
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -19
- package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +6 -4
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +21 -9
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts +9 -9
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -6
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -11
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +5 -6
- package/dist/components/dropdown-menu/DropdownMenuShortcut.vue.d.ts +7 -8
- package/dist/components/dropdown-menu/DropdownMenuSub.vue.d.ts +15 -7
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +24 -17
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -9
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -5
- package/dist/components/dropdown-menu/index.d.ts +15 -16
- package/dist/components/dropdown-menu/styles.css +1 -0
- package/dist/components/dropdown-menu/useMenuTrigger.d.ts +2 -9
- package/dist/components/easing/EasingConfigurator.vue.d.ts +1 -1
- package/dist/components/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/easing/composables/useEasingPicker.d.ts +8 -7
- package/dist/components/easing/constants.d.ts +3 -1
- package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +1 -25
- package/dist/components/expandable-container/styles.css +1 -0
- package/dist/components/fading-scroll/FadingScroll.vue.d.ts +4 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +7 -3
- package/dist/components/fading-scroll/constants.d.ts +1 -2
- package/dist/components/fourier-field/FourierField.vue.d.ts +10 -6
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +1 -1
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +1 -1
- package/dist/components/fourier-field/composables/useFourierField.d.ts +6 -5
- package/dist/components/fourier-field/constants.d.ts +10 -10
- package/dist/components/fourier-field/index.d.ts +3 -3
- package/dist/components/fourier-field/presets.d.ts +3 -3
- package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +2 -2
- package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -1
- package/dist/components/handmark/HandMark.vue.d.ts +2 -2
- package/dist/components/handmark/brush.d.ts +1 -1
- package/dist/components/handmark/composables/useHandMark.d.ts +4 -4
- package/dist/components/handmark/constants.d.ts +10 -10
- package/dist/components/handmark/geometry.d.ts +9 -9
- package/dist/components/handmark/index.d.ts +11 -14
- package/dist/components/handmark/noise.d.ts +3 -3
- package/dist/components/handmark/types.d.ts +2 -2
- package/dist/components/header-ribbon/HeaderRibbon.vue.d.ts +3 -21
- package/dist/components/header-ribbon/styles.css +1 -0
- package/dist/components/header-ribbon/types.d.ts +5 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/components/infinite-scroll/composables/types.d.ts +1 -1
- package/dist/components/infinite-scroll/index.d.ts +1 -0
- package/dist/components/input/Input.vue.d.ts +10 -35
- package/dist/components/input/index.d.ts +2 -1
- package/dist/components/input/types.d.ts +22 -0
- package/dist/components/instrument-chassis/InstrumentChassis.vue.d.ts +10 -84
- package/dist/components/instrument-chassis/index.d.ts +1 -2
- package/dist/components/instrument-chassis/styles.css +1 -0
- package/dist/components/instrument-chassis/types.d.ts +13 -0
- package/dist/components/label/Label.vue.d.ts +9 -14
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/labeled-field/LabeledField.vue.d.ts +11 -99
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +5 -18
- package/dist/components/labeled-field/LabeledSelect.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSlider.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +14 -17
- package/dist/components/labeled-field/index.d.ts +1 -0
- package/dist/components/labeled-field/types.d.ts +50 -0
- package/dist/components/liquid-grid/LiquidGrid.vue.d.ts +4 -0
- package/dist/components/liquid-grid/composables/liquidGrid.d.ts +5 -5
- package/dist/components/liquid-grid/composables/useLiquidGrid.d.ts +2 -1
- package/dist/components/liquid-grid/constants.d.ts +6 -7
- package/dist/components/liquid-grid/shaders/liquid-grid.glsl.d.ts +1 -1
- package/dist/components/liquid-grid/shaders/liquid-grid.wgsl.d.ts +1 -1
- package/dist/components/metric/Metric.vue.d.ts +24 -0
- package/dist/components/metric/MetricCell.vue.d.ts +26 -0
- package/dist/components/metric/MetricRow.vue.d.ts +22 -0
- package/dist/components/metric/MetricStack.vue.d.ts +16 -0
- package/dist/components/metric/coalesce-metric.d.ts +7 -28
- package/dist/components/metric/index.d.ts +5 -0
- package/dist/components/metric/styles.css +1 -0
- package/dist/components/metric/types.d.ts +32 -0
- package/dist/components/number-field/NumberField.vue.d.ts +21 -9
- package/dist/components/number-field/NumberFieldContent.vue.d.ts +2 -2
- package/dist/components/number-field/NumberFieldDecrement.vue.d.ts +6 -6
- package/dist/components/number-field/NumberFieldIncrement.vue.d.ts +6 -6
- package/dist/components/number-field/NumberFieldInput.vue.d.ts +1 -6
- package/dist/components/number-field/context.d.ts +6 -0
- package/dist/components/number-field/index.d.ts +5 -5
- package/dist/components/number-field/styles.css +1 -0
- package/dist/components/pager-dots/PagerDots.vue.d.ts +1 -1
- package/dist/components/pager-dots/constants.d.ts +1 -2
- package/dist/components/pager-dots/index.d.ts +0 -2
- package/dist/components/paper-backdrop/PaperBackdrop.vue.d.ts +1 -14
- package/dist/components/paper-backdrop/index.d.ts +1 -1
- package/dist/components/popover/Popover.vue.d.ts +24 -36
- package/dist/components/popover/PopoverContent.vue.d.ts +23 -29
- package/dist/components/popover/PopoverTrigger.vue.d.ts +12 -7
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/popoverContext.d.ts +3 -4
- package/dist/components/progress/Progress.vue.d.ts +6 -49
- package/dist/components/progress/index.d.ts +1 -5
- package/dist/components/progress/types.d.ts +19 -0
- package/dist/components/pulse/Pulse.vue.d.ts +8 -47
- package/dist/components/pulse/index.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.vue.d.ts +27 -15
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +9 -6
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/styles.css +1 -0
- package/dist/components/scroll-progress-rim/styles.css +1 -0
- package/dist/components/search/FuzzySearch.vue.d.ts +4 -2
- package/dist/components/search/SearchBar.vue.d.ts +3 -3
- package/dist/components/search/searchVariants.d.ts +15 -17
- package/dist/components/select/Select.vue.d.ts +25 -14
- package/dist/components/select/SelectContent.vue.d.ts +26 -29
- package/dist/components/select/SelectGroup.vue.d.ts +7 -11
- package/dist/components/select/SelectItem.vue.d.ts +24 -13
- package/dist/components/select/SelectLabel.vue.d.ts +7 -11
- package/dist/components/select/SelectScrollDownButton.vue.d.ts +3 -4
- package/dist/components/select/SelectScrollUpButton.vue.d.ts +3 -4
- package/dist/components/select/SelectSeparator.vue.d.ts +5 -6
- package/dist/components/select/SelectTrigger.vue.d.ts +15 -41
- package/dist/components/select/SelectValue.vue.d.ts +13 -7
- package/dist/components/select/index.d.ts +16 -10
- package/dist/components/separator/Separator.vue.d.ts +11 -6
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.vue.d.ts +3 -31
- package/dist/components/slider/Slider.vue.d.ts +10 -35
- package/dist/components/slider/index.d.ts +1 -45
- package/dist/components/slider/types.d.ts +25 -0
- package/dist/components/sortable-list/SortableList.vue.d.ts +1 -1
- package/dist/components/sortable-list/composables/ghostRenderer.d.ts +1 -1
- package/dist/components/sortable-list/composables/touchGate.d.ts +1 -1
- package/dist/components/sortable-list/composables/transitionTiming.d.ts +1 -1
- package/dist/components/status-dot/StatusDot.vue.d.ts +7 -10
- package/dist/components/status-dot/index.d.ts +1 -0
- package/dist/components/surface/Surface.vue.d.ts +13 -21
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/switch/Switch.vue.d.ts +20 -11
- package/dist/components/switch/index.d.ts +2 -1
- package/dist/components/switch/styles.css +1 -0
- package/dist/components/table/Table.vue.d.ts +5 -1
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +31 -13
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +6 -6
- package/dist/components/tabs/composables/useTabResponsive.d.ts +5 -6
- package/dist/components/tabs/composables/useTabRovingFocus.d.ts +16 -16
- package/dist/components/tabs/constants.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -0
- package/dist/components/tabs/styles/segmented.css +1 -0
- package/dist/components/tags-input/TagsInput.vue.d.ts +28 -15
- package/dist/components/tags-input/TagsInputInput.vue.d.ts +8 -6
- package/dist/components/tags-input/TagsInputItem.vue.d.ts +9 -8
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts +5 -6
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts +5 -6
- package/dist/components/tags-input/context.d.ts +5 -0
- package/dist/components/tags-input/index.d.ts +5 -5
- package/dist/components/tags-input/styles.css +1 -0
- package/dist/components/textarea/Textarea.vue.d.ts +10 -55
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/types.d.ts +22 -0
- package/dist/components/timeline/ContinuousMarkers.vue.d.ts +2 -4
- package/dist/components/timeline/ContinuousRail.vue.d.ts +3 -6
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +11 -12
- package/dist/components/timeline/GlassTimeline.vue.d.ts +9 -10
- package/dist/components/timeline/ScrubberTimeline.vue.d.ts +4 -4
- package/dist/components/timeline/SegmentedTimeline.vue.d.ts +2 -3
- package/dist/components/timeline/geometry.d.ts +3 -4
- package/dist/components/timeline/types.d.ts +3 -3
- package/dist/components/toast/Toast.vue.d.ts +38 -80
- package/dist/components/toast/ToastAction.vue.d.ts +5 -5
- package/dist/components/toast/ToastClose.vue.d.ts +4 -5
- package/dist/components/toast/ToastDescription.vue.d.ts +4 -5
- package/dist/components/toast/ToastTitle.vue.d.ts +4 -5
- package/dist/components/toast/Toaster.vue.d.ts +1 -1
- package/dist/components/toast/index.d.ts +8 -9
- package/dist/components/toast/use-toast.d.ts +20 -163
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +44 -22
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +11 -9
- package/dist/components/toggle-group/index.d.ts +3 -2
- package/dist/components/toggle-group/styles.css +1 -0
- package/dist/components/toggle-group/toggleGroupContext.d.ts +4 -15
- package/dist/components/tooltip/Tooltip.vue.d.ts +20 -7
- package/dist/components/tooltip/TooltipContent.vue.d.ts +20 -12
- package/dist/components/tooltip/TooltipProvider.vue.d.ts +12 -5
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +12 -5
- package/dist/components/tooltip/index.d.ts +4 -4
- package/dist/components/typewriter/TypewriterText.vue.d.ts +1 -4
- package/dist/components/typewriter/composables/useTypewriter.d.ts +1 -1
- package/dist/components/typewriter/utils/graphemes.d.ts +1 -0
- package/dist/components/typewriter/utils/timing.d.ts +0 -2
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +5 -18
- package/dist/components/watercolor-dot/useWatercolorBlob.d.ts +1 -4
- package/dist/composables/color/accent-tone-solve.d.ts +2 -5
- package/dist/composables/color/index.d.ts +31 -38
- package/dist/composables/color/useAccentTone.d.ts +0 -3
- package/dist/composables/color/value.d.ts +21 -0
- package/dist/composables/context/createContext.d.ts +2 -2
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +7 -6
- package/dist/composables/dom/useBreakpoint.d.ts +2 -2
- package/dist/composables/dom/useClipboard.d.ts +28 -52
- package/dist/composables/dom/useDocumentVisibility.d.ts +3 -1
- package/dist/composables/dom/useIdleReady.d.ts +5 -6
- package/dist/composables/dom/useTokenColor.d.ts +2 -2
- package/dist/composables/dom/useUserInvalidAria.d.ts +2 -3
- package/dist/composables/dom/useViewportReady.d.ts +4 -4
- package/dist/composables/glass/backdropLuminanceSample.d.ts +7 -6
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +7 -1
- package/dist/composables/glass/textureUpload.d.ts +8 -10
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +42 -19
- package/dist/composables/glass/useSpecularPointer.d.ts +6 -6
- package/dist/composables/glass/useSpecularTracking.d.ts +12 -15
- package/dist/composables/glass/wave/waveField.d.ts +2 -2
- package/dist/composables/glass/wave/waveField.glsl.d.ts +1 -1
- package/dist/composables/glass/wave/waveField.wgsl.d.ts +1 -1
- package/dist/composables/glass/webgl/backingSize.d.ts +5 -8
- package/dist/composables/glass/webgl/compile.d.ts +1 -1
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +20 -20
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -28
- package/dist/composables/glass/webgl/visibility.d.ts +3 -4
- package/dist/composables/glass/webgpu/rendererStatus.d.ts +13 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +13 -10
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -1
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +14 -10
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +15 -16
- package/dist/composables/motion/core/asElement.d.ts +2 -0
- package/dist/composables/motion/{constants.d.ts → core/constants.d.ts} +2 -3
- package/dist/composables/motion/core/index.d.ts +20 -23
- package/dist/composables/motion/core/useReducedMotion.d.ts +5 -0
- package/dist/composables/motion/core/useViewTransition.d.ts +44 -0
- package/dist/composables/motion/index.d.ts +14 -16
- package/dist/composables/motion/{useDockCtaReceive.d.ts → morph/useDockCtaReceive.d.ts} +57 -3
- package/dist/composables/motion/{useDragMorph.d.ts → morph/useDragMorph.d.ts} +7 -7
- package/dist/composables/motion/morph/useElementMorph.d.ts +50 -0
- package/dist/composables/motion/{useLeadTrail.d.ts → morph/useLeadTrail.d.ts} +6 -6
- package/dist/composables/motion/{useSelectionGroup.d.ts → morph/useSelectionGroup.d.ts} +7 -5
- package/dist/composables/motion/{useSelectionIndicator.d.ts → morph/useSelectionIndicator.d.ts} +9 -16
- package/dist/composables/motion/{useAnimatedNumber.d.ts → number/useAnimatedNumber.d.ts} +1 -6
- package/dist/composables/motion/{useCountup.d.ts → number/useCountup.d.ts} +1 -6
- package/dist/composables/motion/{useNumericTransition.d.ts → number/useNumericTransition.d.ts} +4 -2
- package/dist/composables/motion/{pointerFieldMappings.d.ts → pointer/pointerFieldMappings.d.ts} +7 -10
- package/dist/composables/motion/{usePointerVelocityField.d.ts → pointer/usePointerVelocityField.d.ts} +1 -1
- package/dist/composables/motion/{bloomUpField.d.ts → reveal/bloomUpField.d.ts} +1 -1
- package/dist/composables/motion/reveal/useBloomUp.d.ts +33 -0
- package/dist/composables/motion/{useLiquidReveal.d.ts → reveal/useLiquidReveal.d.ts} +5 -5
- package/dist/composables/motion/{useStagger.d.ts → reveal/useStagger.d.ts} +3 -3
- package/dist/composables/motion/reveal/useStaggerReveal.d.ts +28 -0
- package/dist/composables/motion/{useTextHighlight.d.ts → reveal/useTextHighlight.d.ts} +2 -1
- package/dist/composables/motion/{useScrollChrome.d.ts → scroll/useScrollChrome.d.ts} +2 -2
- package/dist/composables/motion/{useScrollProgress.d.ts → scroll/useScrollProgress.d.ts} +12 -2
- package/dist/composables/motion/{springPresets.d.ts → spring/springPresets.d.ts} +8 -7
- package/dist/composables/motion/spring/springProjection.d.ts +19 -0
- package/dist/composables/motion/{useLiquidFlex.d.ts → spring/useLiquidFlex.d.ts} +11 -12
- package/dist/composables/motion/{useLiquidPress.d.ts → spring/useLiquidPress.d.ts} +15 -7
- package/dist/composables/motion/{useSpring.d.ts → spring/useSpring.d.ts} +5 -2
- package/dist/composables/motion/{useSpringMount.d.ts → spring/useSpringMount.d.ts} +8 -1
- package/dist/composables/sidebar/types.d.ts +3 -3
- package/dist/configurator-M5OaIlJd.js +311 -0
- package/dist/configurator.js +2 -3
- package/dist/{constants-D8lSMkOz.js → constants-nBz23tJE.js} +1 -1
- package/dist/constellation.js +230 -565
- package/dist/createCanvasLifecycle-DbXRwjU_.js +214 -0
- package/dist/dark-mode-toggle.d.ts +1 -0
- package/dist/dark-mode-toggle.js +43 -0
- package/dist/dark-z_P5QwqI.js +70 -0
- package/dist/dark.d.ts +1 -2
- package/dist/dark.js +2 -20
- package/dist/data-table-BygKg6ZA.js +491 -0
- package/dist/data-table.js +2 -2
- package/dist/deck.js +12 -23
- package/dist/dialog-TNRDkcE4.js +385 -0
- package/dist/dialog.js +2 -3
- package/dist/dock.js +624 -908
- package/dist/dockContext-BUTlGRNJ.js +13 -0
- package/dist/dom.js +134 -7
- package/dist/drawer.js +291 -193
- package/dist/dropdown-menu-BlbnvMaZ.js +507 -0
- package/dist/dropdown-menu.js +3 -2
- package/dist/easing.d.ts +0 -9
- package/dist/easing.js +385 -222
- package/dist/expandable-container.js +107 -85
- package/dist/fading-scroll-DhxXIhm2.js +96 -0
- package/dist/fading-scroll.js +1 -1
- package/dist/field-control.css_vue_type_style_index_0_src_true_lang-CeLay9Tk.js +21 -0
- package/dist/floating-dB5TD88k.js +7 -0
- package/dist/{flow.glsl-CVqPSj8_.js → flow.wgsl-Cd2GUkPx.js} +2 -2
- package/dist/fonts/README.md +14 -18
- package/dist/forms.js +268 -204
- package/dist/fourier-field.js +298 -288
- package/dist/fourier-math.d.ts +0 -6
- package/dist/fourier-math.js +112 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +512 -437
- package/dist/handmark.d.ts +0 -2
- package/dist/handmark.js +84 -84
- package/dist/header-ribbon.js +37 -57
- package/dist/index.d.ts +9 -19
- package/dist/infinite-scroll.d.ts +0 -1
- package/dist/infinite-scroll.js +39 -34
- package/dist/instrument-chassis.js +54 -2
- package/dist/keyboard.js +104 -2
- package/dist/label-DnMqH7jr.js +55 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +295 -192
- package/dist/liquid-grid.js +199 -198
- package/dist/menuRowClass-Nh7CtMON.js +12 -0
- package/dist/metric.d.ts +1 -0
- package/dist/metric.js +192 -0
- package/dist/motion-core.js +73 -166
- package/dist/motion.js +111 -167
- package/dist/number-field-Boe09SvX.js +154 -0
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +2 -2
- package/dist/paper-backdrop.js +23 -2
- package/dist/{pointerFieldMappings-4VtmkOWv.js → pointerFieldMappings-DP5tla5z.js} +4 -7
- package/dist/popover-BQGYXZyO.js +244 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-B07HzyKd.js → presets-5myqNv59.js} +1 -1
- package/dist/primitive-B2t2jdqM.js +11 -0
- package/dist/progress-DClbhRAT.js +88 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +29 -41
- package/dist/reactive.js +19 -3
- package/dist/rendererStatus-BxUlBLVy.js +40 -0
- package/dist/resolveCanvasColor-DS_6DBxA.js +82 -0
- package/dist/resolveSurfaceClass-DCZ4PZcy.js +6 -0
- package/dist/scroll-progress-rim.js +1 -1
- package/dist/{scrollReader-DzYqPQ6V.js → scrollReader-Brf5cQNo.js} +1 -1
- package/dist/search.js +287 -218
- package/dist/select-BcBAyLXA.js +336 -0
- package/dist/select.js +2 -4
- package/dist/selection-DqIULxRG.js +6 -0
- package/dist/separator-CgZInrX-.js +75 -0
- package/dist/separator.js +1 -1
- package/dist/sidebar.js +53 -42
- package/dist/slider-DzqeQmMu.js +162 -0
- package/dist/slider.js +2 -2
- package/dist/sortable-list.js +51 -50
- package/dist/springPresets-rCii5KqX.js +52 -0
- package/dist/status-dot.js +26 -43
- package/dist/styles/accessibility.css +1 -0
- package/dist/styles/animations.css +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/a11y-fallback.css +1 -1
- package/dist/styles/glass/accent-tone.css +1 -1
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/defined.css +1 -1
- package/dist/styles/glass/glass-atom.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/glass-chip.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/liquid-fill.css +1 -1
- package/dist/styles/glass/material-roles.css +1 -0
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/reveal.css +1 -1
- package/dist/styles/glass/squircle.css +1 -1
- package/dist/styles/glass/surface-axis.css +1 -1
- package/dist/styles/glass/surfaces-pager.css +1 -1
- package/dist/styles/glass/surfaces.css +1 -1
- package/dist/styles/glass-refract.css +1 -1
- package/dist/styles/glass.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/paper.css +1 -1
- package/dist/styles/scroll-driven.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/theme/radius.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm.css +1 -1
- package/dist/styles/tokens/glass-deep.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/manifest.d.ts +14 -0
- package/dist/styles/tokens/manifest.ts +56 -0
- package/dist/styles/tokens/motion-registers.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/property-regs-specular.css +1 -1
- package/dist/styles/tokens/property-regs.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-motion.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/scroll-tokens.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens/sizing-config.css +1 -1
- package/dist/styles/tokens/sizing.css +1 -1
- package/dist/styles/tokens.d.ts +48 -0
- package/dist/styles/tokens.ts +54 -0
- package/dist/styles/transitions.css +1 -1
- package/dist/styles/typography/scale.css +1 -1
- package/dist/styles/typography/semantic.css +1 -1
- package/dist/styles/typography/utilities.css +1 -1
- package/dist/styles/utilities/a11y-overrides.css +1 -1
- package/dist/styles/utilities/base-misc.css +1 -1
- package/dist/styles/utilities/base.css +1 -1
- package/dist/styles/utilities/btn.css +1 -1
- package/dist/styles/utilities/components.css +1 -1
- package/dist/styles/utilities/metal.css +1 -1
- package/dist/styles/utilities/responsive.css +1 -0
- package/dist/styles/utilities.css +1 -1
- package/dist/styles/view-transition.css +1 -1
- package/dist/{supportsCssTimeline-Ie4xJFbD.js → supportsCssTimeline-C2zyWpl8.js} +1 -1
- package/dist/surface.js +2 -3
- package/dist/switch-DZjQuFLa.js +54 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +146 -168
- package/dist/timeline.js +86 -87
- package/dist/toast-CH5mnsYT.js +267 -0
- package/dist/toast.js +1 -1
- package/dist/toggle-group-O6jBo7AE.js +150 -0
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -53
- package/dist/tokens.js +96 -5
- package/dist/tooltip-Drx5qnw_.js +148 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +233 -219
- package/dist/{useAccentTone-D25DxviG.js → useAccentTone-DyInfHXE.js} +2 -2
- package/dist/{useAnimatedNumber-2XC4aRB6.js → useAnimatedNumber-WPtMz0AN.js} +2 -2
- package/dist/useClipboard-D36OTaeT.js +53 -0
- package/dist/useDockCtaReceive-DkrOTM0q.js +146 -0
- package/dist/useDocumentVisibility-Dh_TGXsU.js +21 -0
- package/dist/useDragMorph-BogSV_nv.js +293 -0
- package/dist/{useIntersectionPause-Cmt5Tnv9.js → useIntersectionPause-B5mAU6XY.js} +15 -15
- package/dist/useLeadTrail-AW1-zZcd.js +74 -0
- package/dist/{useLiquidFlex-Ch4exNvN.js → useLiquidFlex-TJZmRqyY.js} +1 -1
- package/dist/useLiquidPress-BOxuDkKa.js +101 -0
- package/dist/useMotionAxis-D-rtIhca.js +19 -0
- package/dist/usePointerVelocityField-DsIf7yyq.js +121 -0
- package/dist/useRAFLoop-B3YlWK4M.js +98 -0
- package/dist/useReducedMotion-vCXA_vyM.js +27 -0
- package/dist/useRoutePointer-B8itM7Ka.js +53 -0
- package/dist/useScrollProgress-CSFYXIZT.js +43 -0
- package/dist/useScrollTrigger-BDdqptlc.js +87 -0
- package/dist/useSelectionGroup-B5XplBbo.js +132 -0
- package/dist/{useSpring-BBSKFx_0.js → useSpring-9u2_shxV.js} +2 -2
- package/dist/useSpringMount-uQ8QL9Ff.js +74 -0
- package/dist/useTabRovingFocus-YnWh-Ytr.js +169 -0
- package/dist/useTextHighlight-mfwNIC1f.js +112 -0
- package/dist/{useTouchGate-BlegwvwL.js → useTouchGate-B4mzQcHJ.js} +1 -1
- package/dist/vSpecular-DMJo8pfD.js +68 -0
- package/dist/value-DMhh2R94.js +33 -0
- package/dist/valueDomain-SbVzoHMH.js +13 -0
- package/dist/watercolor-dot.js +77 -101
- package/package.json +166 -242
- package/dist/CardAction-2uUvjMQK.js +0 -285
- package/dist/CollapsibleContent-DiHcB_HH.js +0 -63
- package/dist/CommandShortcut-fmdbsEJL.js +0 -302
- package/dist/ConfiguratorRow-BV6zPjTM.js +0 -151
- package/dist/DataTable-Bxya8nBn.js +0 -518
- package/dist/DialogContent-Bl4v10AC.js +0 -192
- package/dist/DialogFooter-C0v4Hz2F.js +0 -168
- package/dist/FadingScroll-BSRLqQCx.js +0 -76
- package/dist/FocusScope-BzKwhsBn.js +0 -23
- package/dist/IconChip-CwLmBJ_K.js +0 -57
- package/dist/IconTooltip-D9sbK-Mk.js +0 -25
- package/dist/Input-DKf-XwUM.js +0 -57
- package/dist/InstrumentChassis-Dss5Tjcm.js +0 -65
- package/dist/Label-C84TaQiw.js +0 -36
- package/dist/Notification-DQv2cOh9.js +0 -43
- package/dist/NumberFieldContent-BkE7xPS9.js +0 -140
- package/dist/PagerDots-BP6jh7z4.js +0 -279
- package/dist/PaperBackdrop-BYwE8_kg.js +0 -31
- package/dist/PopoverContent-DOtszFWK.js +0 -251
- package/dist/Progress-uWLyXE7J.js +0 -308
- package/dist/SelectGroup-BuEptUsa.js +0 -31
- package/dist/SelectScrollDownButton-CDtwaWkZ.js +0 -261
- package/dist/SelectSeparator-4QGephvr.js +0 -49
- package/dist/Separator-DqJ6PfOd.js +0 -44
- package/dist/Surface-BWRfwyn8.js +0 -59
- package/dist/Switch-BPBfhMU3.js +0 -49
- package/dist/Toaster-C_-WeU9W.js +0 -281
- package/dist/ToggleGroupItem-DNWx2aSW.js +0 -175
- package/dist/TooltipProvider-GtfYdSVf.js +0 -110
- package/dist/accent-tone-solve-CBw3L0cy.js +0 -20
- package/dist/badge-C0C-rTBu.js +0 -80
- package/dist/button-BXzhydVB.js +0 -187
- package/dist/coalesce-metric-B8o7zT9u.js +0 -13
- package/dist/color-Bp5jmv4Z.js +0 -86
- package/dist/color-swatch.d.ts +0 -1
- package/dist/color-swatch.js +0 -47
- package/dist/components/_shared/ModalOverlay.vue.d.ts +0 -90
- package/dist/components/_shared/menuItemVariants.d.ts +0 -51
- package/dist/components/_shared/useControlSize.d.ts +0 -46
- package/dist/components/_shared/useStalePropWarning.d.ts +0 -27
- package/dist/components/_shared/useSurfaceAxis.d.ts +0 -64
- package/dist/components/card/ScrollCard.vue.d.ts +0 -33
- package/dist/components/card/ScrollCardHeader.vue.d.ts +0 -17
- package/dist/components/carousel/CarouselNext.vue.d.ts +0 -21
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +0 -21
- package/dist/components/carousel/GlassCarouselPager.vue.d.ts +0 -50
- package/dist/components/color-swatch/ColorSwatch.vue.d.ts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -1
- package/dist/components/combobox/ComboboxSeparator.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxViewport.vue.d.ts +0 -18
- package/dist/components/constellation/composables/constellationGLSetup.d.ts +0 -10
- package/dist/components/constellation/composables/constellationWGPUSetup.d.ts +0 -19
- package/dist/components/constellation/composables/uniformBridgeWGPU.d.ts +0 -66
- package/dist/components/constellation/shaders/constellation-lines.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-lines.wgsl.d.ts +0 -1
- package/dist/components/constellation/shaders/constellation-points.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-points.wgsl.d.ts +0 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -34
- package/dist/components/controls/index.d.ts +0 -1
- package/dist/components/data-table/DataTablePagination.vue.d.ts +0 -13
- package/dist/components/deck/composables/useDeckSpring.d.ts +0 -22
- package/dist/components/dialog/DialogScrollContent.vue.d.ts +0 -33
- package/dist/components/dock/DockSection.vue.d.ts +0 -69
- package/dist/components/dock/DockStack.vue.d.ts +0 -73
- package/dist/components/dock/composables/dockMorphContext.d.ts +0 -89
- package/dist/components/dock/composables/useDockFisheye.d.ts +0 -24
- package/dist/components/dock/composables/useDockPopover.d.ts +0 -68
- package/dist/components/focus-scope/FocusScope.vue.d.ts +0 -20
- package/dist/components/focus-scope/index.d.ts +0 -2
- package/dist/components/goo-filter/GooFilter.vue.d.ts +0 -22
- package/dist/components/goo-filter/index.d.ts +0 -1
- package/dist/components/icon-chip/IconChip.vue.d.ts +0 -4
- package/dist/components/icon-chip/index.d.ts +0 -2
- package/dist/components/icon-chip/types.d.ts +0 -92
- package/dist/components/icon-tooltip/IconTooltip.vue.d.ts +0 -16
- package/dist/components/icon-tooltip/index.d.ts +0 -1
- package/dist/components/instrument-chassis/ChassisDivider.vue.d.ts +0 -30
- package/dist/components/metric-badge/MetricBadge.vue.d.ts +0 -40
- package/dist/components/metric-badge/index.d.ts +0 -2
- package/dist/components/metric-cell/MetricCell.vue.d.ts +0 -108
- package/dist/components/metric-cell/index.d.ts +0 -2
- package/dist/components/metric-stack/MetricRow.vue.d.ts +0 -120
- package/dist/components/metric-stack/MetricStack.vue.d.ts +0 -92
- package/dist/components/metric-stack/index.d.ts +0 -4
- package/dist/components/notification/Notification.vue.d.ts +0 -16
- package/dist/components/notification/index.d.ts +0 -1
- package/dist/components/progress/ProgressDefault.vue.d.ts +0 -25
- package/dist/components/progress/ProgressGradient.vue.d.ts +0 -25
- package/dist/components/progress/ProgressLiquid.vue.d.ts +0 -21
- package/dist/components/progress/ProgressSectioned.vue.d.ts +0 -47
- package/dist/components/progress/useProgressGeometry.d.ts +0 -60
- package/dist/components/section/Section.vue.d.ts +0 -73
- package/dist/components/section/index.d.ts +0 -1
- package/dist/components/spa-view/SpaView.vue.d.ts +0 -50
- package/dist/components/spa-view/index.d.ts +0 -2
- package/dist/components/split-chars/SplitChars.vue.d.ts +0 -53
- package/dist/components/split-chars/index.d.ts +0 -1
- package/dist/components/stacked-icons/StackedIconGroup.vue.d.ts +0 -30
- package/dist/components/stacked-icons/index.d.ts +0 -2
- package/dist/components/stacked-icons/types.d.ts +0 -19
- package/dist/components/tabs/composables/useEyeglassLive.d.ts +0 -17
- package/dist/components/toggle/Toggle.vue.d.ts +0 -29
- package/dist/components/toggle/index.d.ts +0 -26
- package/dist/composables/glass/webgl/shaders/glass-refract.glsl.d.ts +0 -36
- package/dist/composables/motion/curves.d.ts +0 -48
- package/dist/composables/motion/gooBarbellGeometry.d.ts +0 -79
- package/dist/composables/motion/morphSignatures.d.ts +0 -88
- package/dist/composables/motion/suite.d.ts +0 -2
- package/dist/composables/motion/useBloomUp.d.ts +0 -97
- package/dist/composables/motion/useCharStagger.d.ts +0 -44
- package/dist/composables/motion/useElementMorph.d.ts +0 -99
- package/dist/composables/motion/useGooMorph.d.ts +0 -72
- package/dist/composables/motion/usePrioritizedTask.d.ts +0 -41
- package/dist/composables/motion/useStaggerReveal.d.ts +0 -52
- package/dist/composables/motion/useViewTransition.d.ts +0 -81
- package/dist/composables/virtual/index.d.ts +0 -4
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +0 -72
- package/dist/composables/virtual/useWindowedStore.d.ts +0 -43
- package/dist/composables/virtual/virtualSectionLayout.d.ts +0 -103
- package/dist/controls.d.ts +0 -1
- package/dist/controls.js +0 -91
- package/dist/createCanvasLifecycle-DlrcvWbb.js +0 -209
- package/dist/dockContext-d-WpJN2Z.js +0 -13
- package/dist/dropdown-menu-DaGlVdp9.js +0 -421
- package/dist/focus-scope.d.ts +0 -1
- package/dist/focus-scope.js +0 -2
- package/dist/icon-chip.d.ts +0 -1
- package/dist/icon-chip.js +0 -2
- package/dist/icon-tooltip.d.ts +0 -1
- package/dist/icon-tooltip.js +0 -2
- package/dist/math-CIEcwsYi.js +0 -112
- package/dist/menuItemVariants-DbO-Fr74.js +0 -36
- package/dist/metric-badge.d.ts +0 -1
- package/dist/metric-badge.js +0 -79
- package/dist/metric-cell.d.ts +0 -1
- package/dist/metric-cell.js +0 -61
- package/dist/metric-stack.d.ts +0 -1
- package/dist/metric-stack.js +0 -113
- package/dist/motion-curves.d.ts +0 -21
- package/dist/motion-curves.js +0 -146
- package/dist/notification.d.ts +0 -1
- package/dist/notification.js +0 -2
- package/dist/resolveCanvasColor-B3L-akX0.js +0 -93
- package/dist/slider-Cxuj_W_H.js +0 -151
- package/dist/spa-view.d.ts +0 -1
- package/dist/spa-view.js +0 -46
- package/dist/springPresets-h5VKJQqG.js +0 -58
- package/dist/stacked-icons.d.ts +0 -1
- package/dist/stacked-icons.js +0 -98
- package/dist/styles/card-scroll.css +0 -1
- package/dist/styles/cards.css +0 -1
- package/dist/styles/completion-seal.css +0 -1
- package/dist/styles/configurator.css +0 -1
- package/dist/styles/dialog-placement.css +0 -1
- package/dist/styles/dock/adaptive-legibility.css +0 -1
- package/dist/styles/dock/crossfade.css +0 -1
- package/dist/styles/dock/dock.css +0 -1
- package/dist/styles/dock/fisheye.css +0 -1
- package/dist/styles/dock/layer-group.css +0 -1
- package/dist/styles/dock/layers.css +0 -1
- package/dist/styles/dock/morph.css +0 -1
- package/dist/styles/dock/overflow.css +0 -1
- package/dist/styles/dock/popover.css +0 -1
- package/dist/styles/dock/section.css +0 -1
- package/dist/styles/dock/shape.css +0 -1
- package/dist/styles/dock/shell.css +0 -1
- package/dist/styles/dock-controls/dark-mode-toggle.css +0 -1
- package/dist/styles/dock-controls/icon-button.css +0 -1
- package/dist/styles/dock-controls.css +0 -1
- package/dist/styles/dock.css +0 -1
- package/dist/styles/drawer.css +0 -1
- package/dist/styles/glass/progress-rail.css +0 -1
- package/dist/styles/icon-chip.css +0 -1
- package/dist/styles/instrument-chassis.css +0 -1
- package/dist/styles/menu.css +0 -1
- package/dist/styles/scroll-progress-rim.css +0 -1
- package/dist/styles/segmented-tabs.css +0 -1
- package/dist/styles/select.css +0 -1
- package/dist/styles/tabs/segmented-tabs-drag.css +0 -1
- package/dist/styles/utilities/animate.css +0 -0
- package/dist/useConfiguratorState-Dq35N_7t.js +0 -167
- package/dist/useControlSize-DJwe-7ZQ.js +0 -9
- package/dist/useDockCtaReceive-BgMmeINo.js +0 -161
- package/dist/useDocumentVisibility-CpJGUgcJ.js +0 -17
- package/dist/useDragMorph-65ihHePq.js +0 -93
- package/dist/useGlobalDark-DjKMEQE2.js +0 -53
- package/dist/useGooMorph-CU1pwuC6.js +0 -268
- package/dist/useGpuSubstrate-DcY584kE.js +0 -347
- package/dist/useInterval-ZATRi-1T.js +0 -18
- package/dist/useKeyboardShortcuts-ynVmNFo3.js +0 -104
- package/dist/useLeadTrail-DOH4XkL1.js +0 -74
- package/dist/useLiquidPress-BXNHydZh.js +0 -40
- package/dist/useMotionAxis-DCCXMC-i.js +0 -20
- package/dist/usePointerVelocityField-CwXyeW0Z.js +0 -122
- package/dist/useRAFLoop-CvOo_kgb.js +0 -109
- package/dist/useRoutePointer-DL7I0gY4.js +0 -52
- package/dist/useScrollProgress-C-yImzhU.js +0 -35
- package/dist/useSelectionGroup-Btpf24aY.js +0 -215
- package/dist/useSpringMount-CNvvgGiC.js +0 -71
- package/dist/useSpringPress-BypV_KO-.js +0 -36
- package/dist/useSurfaceAxis-DudiZVOR.js +0 -10
- package/dist/useTabRovingFocus-CG1H1k1J.js +0 -143
- package/dist/useTextHighlight-C46Le9u_.js +0 -72
- package/dist/useViewportReady-c0isoKL8.js +0 -191
- package/dist/vReveal-DUmiEkX_.js +0 -10
- package/dist/vSpecular-DlYN0UZy.js +0 -68
- package/src/fonts/README.md +0 -124
- package/src/fonts/fira-code/OFL.txt +0 -93
- package/src/fonts/fira-code/fira-code-latin-ext.woff2 +0 -0
- package/src/fonts/fira-code/fira-code-latin.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/OFL.txt +0 -93
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2 +0 -0
- package/src/styles/animations.css +0 -468
- package/src/styles/card-scroll.css +0 -189
- package/src/styles/cards.css +0 -485
- package/src/styles/completion-seal.css +0 -205
- package/src/styles/configurator.css +0 -359
- package/src/styles/dialog-placement.css +0 -68
- package/src/styles/dock/adaptive-legibility.css +0 -119
- package/src/styles/dock/crossfade.css +0 -139
- package/src/styles/dock/cta-seat.css +0 -87
- package/src/styles/dock/density.css +0 -458
- package/src/styles/dock/dock.css +0 -199
- package/src/styles/dock/fisheye.css +0 -81
- package/src/styles/dock/layer-group.css +0 -329
- package/src/styles/dock/layers.css +0 -438
- package/src/styles/dock/morph.css +0 -455
- package/src/styles/dock/overflow.css +0 -332
- package/src/styles/dock/popover.css +0 -249
- package/src/styles/dock/search.css +0 -68
- package/src/styles/dock/section.css +0 -59
- package/src/styles/dock/shape.css +0 -188
- package/src/styles/dock/shell-regions.css +0 -73
- package/src/styles/dock/shell.css +0 -500
- package/src/styles/dock-controls/dark-mode-toggle.css +0 -123
- package/src/styles/dock-controls/icon-button.css +0 -221
- package/src/styles/dock-controls/tab-button.css +0 -143
- package/src/styles/dock-controls/touch-floor.css +0 -119
- package/src/styles/dock-controls/triggers.css +0 -157
- package/src/styles/dock-controls.css +0 -92
- package/src/styles/dock.css +0 -219
- package/src/styles/draw-in.css +0 -89
- package/src/styles/drawer.css +0 -434
- package/src/styles/feedback-tone.css +0 -104
- package/src/styles/fonts.css +0 -143
- package/src/styles/glass/a11y-fallback.css +0 -188
- package/src/styles/glass/accent-tone.css +0 -66
- package/src/styles/glass/control-surfaces.css +0 -171
- package/src/styles/glass/deep.css +0 -114
- package/src/styles/glass/defined.css +0 -88
- package/src/styles/glass/glass-atom.css +0 -247
- package/src/styles/glass/glass-capsule.css +0 -175
- package/src/styles/glass/glass-chip.css +0 -211
- package/src/styles/glass/grain-overlay.css +0 -79
- package/src/styles/glass/ladder-undershadow.css +0 -61
- package/src/styles/glass/ladder.css +0 -452
- package/src/styles/glass/liquid-enter.css +0 -240
- package/src/styles/glass/liquid-fill.css +0 -65
- package/src/styles/glass/material.css +0 -494
- package/src/styles/glass/progress-rail.css +0 -78
- package/src/styles/glass/reveal.css +0 -333
- package/src/styles/glass/rim.css +0 -122
- package/src/styles/glass/squircle.css +0 -58
- package/src/styles/glass/surface-axis.css +0 -136
- package/src/styles/glass/surfaces-pager.css +0 -79
- package/src/styles/glass/surfaces.css +0 -434
- package/src/styles/glass-refract.css +0 -112
- package/src/styles/glass-specular-track.css +0 -74
- package/src/styles/glass.css +0 -110
- package/src/styles/icon-chip.css +0 -256
- package/src/styles/index.css +0 -280
- package/src/styles/instrument-chassis.css +0 -449
- package/src/styles/menu.css +0 -187
- package/src/styles/paper.css +0 -187
- package/src/styles/scroll-choreography.css +0 -294
- package/src/styles/scroll-chrome.css +0 -123
- package/src/styles/scroll-driven.css +0 -123
- package/src/styles/scroll-progress-rim.css +0 -87
- package/src/styles/segmented-tabs.css +0 -424
- package/src/styles/select.css +0 -201
- package/src/styles/tabs/segmented-tabs-drag.css +0 -200
- package/src/styles/theme/bridges.css +0 -386
- package/src/styles/theme/dark.css +0 -7
- package/src/styles/theme/literals.css +0 -104
- package/src/styles/theme/radius.css +0 -148
- package/src/styles/theme.css +0 -33
- package/src/styles/tokens/color-radius.css +0 -308
- package/src/styles/tokens/dark-arm-glass.css +0 -55
- package/src/styles/tokens/dark-arm.css +0 -455
- package/src/styles/tokens/glass-deep.css +0 -126
- package/src/styles/tokens/glass-fx.css +0 -484
- package/src/styles/tokens/glass.css +0 -478
- package/src/styles/tokens/light-dark.css +0 -216
- package/src/styles/tokens/motion-registers.css +0 -93
- package/src/styles/tokens/offsets.css +0 -143
- package/src/styles/tokens/on-glass-fg.css +0 -39
- package/src/styles/tokens/property-regs-specular.css +0 -160
- package/src/styles/tokens/property-regs.css +0 -447
- package/src/styles/tokens/scale-paper.css +0 -496
- package/src/styles/tokens/scheme-motion.css +0 -422
- package/src/styles/tokens/scheme-spring.css +0 -292
- package/src/styles/tokens/scroll-tokens.css +0 -137
- package/src/styles/tokens/shadow.css +0 -232
- package/src/styles/tokens/sizing-config.css +0 -110
- package/src/styles/tokens/sizing.css +0 -505
- package/src/styles/tokens.css +0 -68
- package/src/styles/transitions.css +0 -228
- package/src/styles/typography/scale.css +0 -163
- package/src/styles/typography/semantic.css +0 -233
- package/src/styles/typography/utilities.css +0 -197
- package/src/styles/typography.css +0 -46
- package/src/styles/utilities/a11y-overrides.css +0 -184
- package/src/styles/utilities/animate.css +0 -29
- package/src/styles/utilities/base-misc.css +0 -307
- package/src/styles/utilities/base.css +0 -337
- package/src/styles/utilities/btn.css +0 -327
- package/src/styles/utilities/components.css +0 -337
- package/src/styles/utilities/metal.css +0 -272
- package/src/styles/utilities.css +0 -26
- package/src/styles/view-transition.css +0 -67
- package/src/styles/viz-reveal.css +0 -63
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
- /package/dist/{compile-C55K3P9g.js → compile-D7VYG3gi.js} +0 -0
- /package/dist/{styles → components/_shared}/feedback-tone.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/tab-button.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/triggers.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/cta-seat.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/search.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/shell-regions.css +0 -0
- /package/dist/composables/glass/{webgl/shaders/procedural-color.glsl.d.ts → procedural/color.glsl.d.ts} +0 -0
- /package/dist/{components/aurora/constants/shaders/procedural-color.wgsl.d.ts → composables/glass/procedural/color.wgsl.d.ts} +0 -0
- /package/dist/composables/motion/{motionTempo.d.ts → core/motionTempo.d.ts} +0 -0
- /package/dist/composables/motion/{useIntersectionPause.d.ts → core/useIntersectionPause.d.ts} +0 -0
- /package/dist/composables/motion/{useRAFLoop.d.ts → core/useRAFLoop.d.ts} +0 -0
- /package/dist/composables/motion/{useYieldToMain.d.ts → core/useYieldToMain.d.ts} +0 -0
- /package/dist/composables/motion/{useAnimatedNumberMap.d.ts → number/useAnimatedNumberMap.d.ts} +0 -0
- /package/dist/composables/motion/{useRoutePointer.d.ts → pointer/useRoutePointer.d.ts} +0 -0
- /package/dist/composables/motion/{vReveal.d.ts → reveal/vReveal.d.ts} +0 -0
- /package/dist/composables/motion/{scrollReader.d.ts → scroll/scrollReader.d.ts} +0 -0
- /package/dist/composables/motion/{supportsCssTimeline.d.ts → scroll/supportsCssTimeline.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollPin.d.ts → scroll/useScrollPin.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollScene.d.ts → scroll/useScrollScene.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollTrigger.d.ts → scroll/useScrollTrigger.d.ts} +0 -0
- /package/dist/composables/motion/{useSpringPress.d.ts → spring/useSpringPress.d.ts} +0 -0
- /package/dist/{createContext-BQ1Gy_LB.js → createContext-BhkE9mLH.js} +0 -0
- /package/dist/{motionTempo-CMS5b0Vu.js → motionTempo-tscp92Nm.js} +0 -0
- /package/dist/{prng-B0PLRmR6.js → prng-2uS6J_A1.js} +0 -0
- /package/dist/{useDragVelocity-BWcNMCux.js → useDragVelocity-6ONX0sr0.js} +0 -0
- /package/dist/{useFuzzySearch-KslRxiJY.js → useFuzzySearch-CUnZknpm.js} +0 -0
- /package/dist/{useResizeObserver-DDuoBeBo.js → useResizeObserver-CdUlm2QZ.js} +0 -0
- /package/dist/{useResolveTokenColor-DVT5kwv6.js → useResolveTokenColor-B2FfJnd9.js} +0 -0
- /package/dist/{useTimer-CkDV8SC2.js → useTimer-C3yfti4C.js} +0 -0
- /package/dist/{useUserInvalidAria-Bkruei7M.js → useUserInvalidAria-0GNrddMX.js} +0 -0
- /package/dist/{writeVelocityWeight-D1rvdxJu.js → writeVelocityWeight-DoGOCW3e.js} +0 -0
package/dist/constellation.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { t as e } from "./class-names-Cpy5eaBk.js";
|
|
2
|
+
import { t } from "./useReducedMotion-vCXA_vyM.js";
|
|
3
|
+
import { n } from "./resolveCanvasColor-DS_6DBxA.js";
|
|
4
|
+
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
|
+
import { t as i } from "./usePointerVelocityField-DsIf7yyq.js";
|
|
6
|
+
import { t as a } from "./useRoutePointer-B8itM7Ka.js";
|
|
7
|
+
import { d as o, l as s } from "./pointerFieldMappings-DP5tla5z.js";
|
|
8
|
+
import { a as c, t as l } from "./rendererStatus-BxUlBLVy.js";
|
|
9
|
+
import { n as u, t as d } from "./prng-2uS6J_A1.js";
|
|
10
|
+
import { computed as f, createElementBlock as p, createElementVNode as m, defineComponent as h, getCurrentInstance as g, normalizeClass as _, onMounted as v, onUnmounted as y, openBlock as b, readonly as x, ref as S, shallowRef as C, unref as ee, useTemplateRef as w, watch as T } from "vue";
|
|
9
11
|
//#region src/components/constellation/constants.ts
|
|
10
|
-
var
|
|
12
|
+
var E = 1280, D = {
|
|
11
13
|
node: "#b4afa3",
|
|
12
14
|
nodeDim: "#cdc8bd",
|
|
13
15
|
line: "#1c1714",
|
|
@@ -17,20 +19,20 @@ var S = 1280, C = {
|
|
|
17
19
|
accent: "#b35030",
|
|
18
20
|
edgeFloor: 0,
|
|
19
21
|
edgeAccentAlpha: .3
|
|
20
|
-
},
|
|
22
|
+
}, O = .55, k = 1, A = {
|
|
21
23
|
gain: 19e3,
|
|
22
24
|
reach: 340,
|
|
23
25
|
ramp: 8,
|
|
24
26
|
maxSpeed: 4,
|
|
25
27
|
soften: 8,
|
|
26
28
|
holdMs: 140
|
|
27
|
-
},
|
|
28
|
-
function
|
|
29
|
+
}, j = 8e3, M = 8e3, N = .14, P = 2600, F = 6e3, I = 8e3, L = .72, R = 256, te = 12, z = 256 * 12, B = 0, V = 1.6, H = 1.6, U = .001, W = .6, G = 11, K = 22, ne = .05;
|
|
30
|
+
function q(e, t, n, r) {
|
|
29
31
|
let i = e.well;
|
|
30
32
|
if (!i || !(r > 0)) return;
|
|
31
|
-
let a = Math.min(r,
|
|
32
|
-
i.strength += (i.target - i.strength) * c, i.strength <
|
|
33
|
-
let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ?
|
|
33
|
+
let a = Math.min(r, ne), o = i.cfg, s = i.target > 0 ? o.ramp : K, c = Math.min(s * a, 1);
|
|
34
|
+
i.strength += (i.target - i.strength) * c, i.strength < U && (i.strength = i.target <= 0 ? 0 : i.strength);
|
|
35
|
+
let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ? W : G, m = Math.min(p * a, 1), h = i.strength > U && i.x >= 0, g = e.pinnedIndex;
|
|
34
36
|
for (let e = 0; e < l.length; e++) {
|
|
35
37
|
if (e === g) continue;
|
|
36
38
|
let t = l[e];
|
|
@@ -50,13 +52,13 @@ function H(e, t, n, r) {
|
|
|
50
52
|
}
|
|
51
53
|
//#endregion
|
|
52
54
|
//#region src/components/constellation/constellationInteraction.ts
|
|
53
|
-
function
|
|
55
|
+
function J(e) {
|
|
54
56
|
let t = {
|
|
55
|
-
response:
|
|
57
|
+
response: O,
|
|
56
58
|
zeta: 1
|
|
57
|
-
}, n = { ...
|
|
58
|
-
minIdle:
|
|
59
|
-
jitter:
|
|
59
|
+
}, n = { ...A }, r = {
|
|
60
|
+
minIdle: j,
|
|
61
|
+
jitter: M
|
|
60
62
|
};
|
|
61
63
|
if (typeof window > "u") return {
|
|
62
64
|
warp: t,
|
|
@@ -69,14 +71,14 @@ function re(e) {
|
|
|
69
71
|
let r = Number.parseFloat(n);
|
|
70
72
|
return Number.isFinite(r) ? r : t;
|
|
71
73
|
};
|
|
72
|
-
return t.response = a("--constellation-warp-response",
|
|
74
|
+
return t.response = a("--constellation-warp-response", O), t.zeta = a("--constellation-warp-zeta", 1), n.gain = a("--constellation-well-gain", A.gain), n.reach = a("--constellation-well-reach", A.reach), n.ramp = a("--constellation-well-ramp", A.ramp), n.maxSpeed = a("--constellation-well-max-speed", A.maxSpeed), n.holdMs = a("--constellation-well-hold-ms", A.holdMs), r.minIdle = a("--constellation-wander-idle", j), r.jitter = a("--constellation-wander-jitter", M), {
|
|
73
75
|
warp: t,
|
|
74
76
|
well: n,
|
|
75
77
|
wander: r
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
+
var re = .05;
|
|
81
|
+
function Y(e, t, n, r = -1) {
|
|
80
82
|
let { nodes: i } = e, a = -1, o = Infinity;
|
|
81
83
|
for (let e = 0; e < i.length; e++) {
|
|
82
84
|
if (e === r) continue;
|
|
@@ -88,10 +90,10 @@ function W(e, t, n, r = -1) {
|
|
|
88
90
|
function ie(e, t) {
|
|
89
91
|
let { warp: n, nodes: r } = e;
|
|
90
92
|
if (!n || n.targetIdx < 0 || n.targetIdx >= r.length || !(t > 0)) return;
|
|
91
|
-
let i = Math.min(t,
|
|
93
|
+
let i = Math.min(t, re), 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);
|
|
92
94
|
n.vx += l * i, n.vy += u * i, n.x += n.vx * i, n.y += n.vy * i;
|
|
93
95
|
}
|
|
94
|
-
function
|
|
96
|
+
function X(e, t) {
|
|
95
97
|
let { warp: n, nodes: r } = e;
|
|
96
98
|
if (t < 0 || t >= r.length) {
|
|
97
99
|
n.targetIdx = -1, e.focalIndex = -1;
|
|
@@ -99,14 +101,14 @@ function G(e, t) {
|
|
|
99
101
|
}
|
|
100
102
|
e.focalIndex = t, n.targetIdx = t;
|
|
101
103
|
}
|
|
102
|
-
function
|
|
103
|
-
let r =
|
|
104
|
+
function Z(e, t, n) {
|
|
105
|
+
let r = Y(e, t, n, -1);
|
|
104
106
|
if (r >= 0 && r === e.focalIndex) return e.focalIndex;
|
|
105
|
-
let i =
|
|
106
|
-
return i < 0 ? -1 : (
|
|
107
|
+
let i = Y(e, t, n, e.focalIndex);
|
|
108
|
+
return i < 0 ? -1 : (X(e, i), i);
|
|
107
109
|
}
|
|
108
110
|
var ae = 24;
|
|
109
|
-
function
|
|
111
|
+
function Q(e) {
|
|
110
112
|
let { warp: t, nodes: n } = e;
|
|
111
113
|
if (!t || t.targetIdx < 0 || t.targetIdx >= n.length) return !0;
|
|
112
114
|
let r = n[t.targetIdx];
|
|
@@ -158,7 +160,7 @@ function le(e, t, n) {
|
|
|
158
160
|
}
|
|
159
161
|
var ue = .45;
|
|
160
162
|
function de(e, t, n, r) {
|
|
161
|
-
return n >= .45 ? (
|
|
163
|
+
return n >= .45 ? (Z(e, t.x, t.y), r.push({
|
|
162
164
|
x: e.warp.x,
|
|
163
165
|
y: e.warp.y,
|
|
164
166
|
start: -1
|
|
@@ -175,7 +177,7 @@ function fe(e, t, n, r, i) {
|
|
|
175
177
|
y: e() * r,
|
|
176
178
|
vx: Math.cos(t) * i,
|
|
177
179
|
vy: Math.sin(t) * i,
|
|
178
|
-
r:
|
|
180
|
+
r: V + e() * H,
|
|
179
181
|
dim: e() < .45,
|
|
180
182
|
z: e()
|
|
181
183
|
});
|
|
@@ -206,9 +208,9 @@ function me(e, t, n, r, i = 0, a = 0, o = Math.random, s = null) {
|
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
|
-
if (
|
|
211
|
+
if (q(e, t, n, i), le(e, a, o), ie(e, i), e.warpAutoRelease && e.warp.targetIdx >= 0 && Q(e) && (e.warp.targetIdx = -1), e.wander && a > 0) {
|
|
210
212
|
let t = e.wander;
|
|
211
|
-
t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt &&
|
|
213
|
+
t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt && Q(e) && (X(e, oe(e, o)), t.nextAt = a + t.minIdle + o() * t.jitter);
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
216
|
function he(e, t, n = -1, r = Infinity) {
|
|
@@ -262,117 +264,62 @@ function _e(e, t, n, r, i) {
|
|
|
262
264
|
}
|
|
263
265
|
//#endregion
|
|
264
266
|
//#region src/components/constellation/constellationRender.ts
|
|
265
|
-
function
|
|
267
|
+
function $(e) {
|
|
266
268
|
return Math.max(e.k, e.kFloor ?? .72);
|
|
267
269
|
}
|
|
268
|
-
function
|
|
269
|
-
if (typeof window > "u") return { ...
|
|
270
|
+
function ve(e) {
|
|
271
|
+
if (typeof window > "u") return { ...D };
|
|
270
272
|
let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
|
|
271
|
-
let r = t.getPropertyValue(e)
|
|
272
|
-
|
|
273
|
-
let i = Number.parseFloat(r);
|
|
274
|
-
return Number.isFinite(i) ? i : n;
|
|
273
|
+
let r = Number.parseFloat(t.getPropertyValue(e));
|
|
274
|
+
return Number.isFinite(r) ? r : n;
|
|
275
275
|
};
|
|
276
276
|
return {
|
|
277
|
-
node: n("--constellation-node",
|
|
278
|
-
nodeDim: n("--constellation-node-dim",
|
|
279
|
-
line: n("--constellation-line",
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
277
|
+
node: n("--constellation-node", D.node),
|
|
278
|
+
nodeDim: n("--constellation-node-dim", D.nodeDim),
|
|
279
|
+
line: n("--constellation-line", D.line),
|
|
280
|
+
accent: n("--constellation-accent", D.accent),
|
|
281
|
+
alpha: r("--constellation-alpha", D.alpha),
|
|
282
|
+
edgeAlpha: r("--constellation-edge-alpha", D.edgeAlpha),
|
|
283
|
+
edgeFocusAlpha: r("--constellation-edge-focus-alpha", D.edgeFocusAlpha),
|
|
284
|
+
edgeAccentAlpha: r("--constellation-edge-accent-alpha", D.edgeAccentAlpha),
|
|
285
|
+
edgeFloor: r("--constellation-edge-floor", D.edgeFloor)
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
let
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
let t = e.length === 8 ? parseInt(e.slice(6, 8), 16) / 255 : 1;
|
|
300
|
-
return [
|
|
301
|
-
parseInt(e.slice(0, 2), 16) / 255,
|
|
302
|
-
parseInt(e.slice(2, 4), 16) / 255,
|
|
303
|
-
parseInt(e.slice(4, 6), 16) / 255,
|
|
304
|
-
t
|
|
305
|
-
];
|
|
306
|
-
}
|
|
288
|
+
function ye(e, t, n, r, i = 1) {
|
|
289
|
+
let a = $(t), o = r.alpha * i;
|
|
290
|
+
for (let t of n) t.focus ? (e.strokeStyle = r.line, e.lineWidth = a, e.globalAlpha = t.alpha * r.edgeFocusAlpha * o) : t.accent ? (e.strokeStyle = r.accent, e.lineWidth = 1.1 * a, e.globalAlpha = t.alpha * r.edgeAccentAlpha * o) : (e.strokeStyle = r.line, e.lineWidth = a, e.globalAlpha = (t.alpha * r.edgeAlpha + r.edgeFloor) * o), e.beginPath(), e.moveTo(t.ax, t.ay), e.lineTo(t.bx, t.by), e.stroke();
|
|
291
|
+
e.globalAlpha = 1;
|
|
292
|
+
}
|
|
293
|
+
function be(e, t, n, r = 1, i = null, a = 0) {
|
|
294
|
+
let o = $(t);
|
|
295
|
+
e.globalAlpha = r;
|
|
296
|
+
for (let r of t.nodes) {
|
|
297
|
+
let s = _e(r, i, t.w, t.h, a);
|
|
298
|
+
e.fillStyle = r.dim ? n.nodeDim : n.node, e.beginPath(), e.arc(s.x, s.y, r.r * o, 0, Math.PI * 2), e.fill();
|
|
307
299
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
e
|
|
326
|
-
];
|
|
300
|
+
e.globalAlpha = 1;
|
|
301
|
+
}
|
|
302
|
+
function xe(e, t, n, r, i = 1) {
|
|
303
|
+
!n || n.x < 0 || (e.globalAlpha = .55 * i, e.fillStyle = r.node, e.beginPath(), e.arc(n.x, n.y, 2.6 * $(t), 0, Math.PI * 2), e.fill(), e.globalAlpha = 1);
|
|
304
|
+
}
|
|
305
|
+
function Se(e, t, n, r, i, a = 1) {
|
|
306
|
+
let o = $(t);
|
|
307
|
+
e.strokeStyle = i.line;
|
|
308
|
+
for (let t = r.length - 1; t >= 0; t--) {
|
|
309
|
+
let i = r[t];
|
|
310
|
+
i.start < 0 && (i.start = n);
|
|
311
|
+
let s = (n - i.start) / 900;
|
|
312
|
+
if (s >= 1) {
|
|
313
|
+
r.splice(t, 1);
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
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();
|
|
327
317
|
}
|
|
328
|
-
|
|
329
|
-
.11,
|
|
330
|
-
.09,
|
|
331
|
-
.08,
|
|
332
|
-
1
|
|
333
|
-
];
|
|
334
|
-
}
|
|
335
|
-
function Y(e) {
|
|
336
|
-
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
337
|
-
}
|
|
338
|
-
function be(e) {
|
|
339
|
-
return Y(e.endsWith("%") ? Number(e.slice(0, -1)) / 100 : Number(e));
|
|
340
|
-
}
|
|
341
|
-
function xe(e, t, n) {
|
|
342
|
-
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;
|
|
343
|
-
return r < 60 ? [s, c, l] = [
|
|
344
|
-
i,
|
|
345
|
-
a,
|
|
346
|
-
0
|
|
347
|
-
] : r < 120 ? [s, c, l] = [
|
|
348
|
-
a,
|
|
349
|
-
i,
|
|
350
|
-
0
|
|
351
|
-
] : r < 180 ? [s, c, l] = [
|
|
352
|
-
0,
|
|
353
|
-
i,
|
|
354
|
-
a
|
|
355
|
-
] : r < 240 ? [s, c, l] = [
|
|
356
|
-
0,
|
|
357
|
-
a,
|
|
358
|
-
i
|
|
359
|
-
] : r < 300 ? [s, c, l] = [
|
|
360
|
-
a,
|
|
361
|
-
0,
|
|
362
|
-
i
|
|
363
|
-
] : [s, c, l] = [
|
|
364
|
-
i,
|
|
365
|
-
0,
|
|
366
|
-
a
|
|
367
|
-
], [
|
|
368
|
-
Y(s + o),
|
|
369
|
-
Y(c + o),
|
|
370
|
-
Y(l + o)
|
|
371
|
-
];
|
|
318
|
+
e.globalAlpha = 1;
|
|
372
319
|
}
|
|
373
320
|
//#endregion
|
|
374
321
|
//#region src/components/constellation/composables/createConstellationField.ts
|
|
375
|
-
function
|
|
322
|
+
function Ce(e, t, n = !1, r = !1, i = !1) {
|
|
376
323
|
let a = {
|
|
377
324
|
nodes: [],
|
|
378
325
|
canvas: null,
|
|
@@ -405,7 +352,7 @@ function Se(e, t, n = !1, r = !1, i = !1) {
|
|
|
405
352
|
strength: 0,
|
|
406
353
|
target: 0,
|
|
407
354
|
cfg: {
|
|
408
|
-
...
|
|
355
|
+
...A,
|
|
409
356
|
...s
|
|
410
357
|
}
|
|
411
358
|
} : void 0, {
|
|
@@ -415,461 +362,172 @@ function Se(e, t, n = !1, r = !1, i = !1) {
|
|
|
415
362
|
};
|
|
416
363
|
}
|
|
417
364
|
//#endregion
|
|
418
|
-
//#region src/components/constellation/shaders/constellation-points.wgsl.ts
|
|
419
|
-
var Ce = "\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", we = "\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", Te = 256 * 16, Ee = I * 32, X = {
|
|
420
|
-
u0: 0,
|
|
421
|
-
u1: 4,
|
|
422
|
-
uEdge: 8,
|
|
423
|
-
uNode: 12,
|
|
424
|
-
uNodeDim: 16,
|
|
425
|
-
uLine: 20,
|
|
426
|
-
uAccent: 24
|
|
427
|
-
};
|
|
428
|
-
function De() {
|
|
429
|
-
let e = /* @__PURE__ */ new ArrayBuffer(112);
|
|
430
|
-
return {
|
|
431
|
-
buffer: e,
|
|
432
|
-
f32: new Float32Array(e)
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
function Oe(e, t) {
|
|
436
|
-
let { f32: n } = e;
|
|
437
|
-
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;
|
|
438
|
-
}
|
|
439
|
-
function Z(e, t, n) {
|
|
440
|
-
e[t + 0] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3];
|
|
441
|
-
}
|
|
442
|
-
function ke() {
|
|
443
|
-
return new Float32Array(256 * 4);
|
|
444
|
-
}
|
|
445
|
-
function Ae() {
|
|
446
|
-
return new Float32Array(I * 8);
|
|
447
|
-
}
|
|
448
|
-
function je(e, t) {
|
|
449
|
-
let n = Math.min(t.length, 256);
|
|
450
|
-
for (let r = 0; r < n; r++) {
|
|
451
|
-
let n = r * 4, i = t[r];
|
|
452
|
-
e[n + 0] = i.x, e[n + 1] = i.y, e[n + 2] = i.r, e[n + 3] = i.dim;
|
|
453
|
-
}
|
|
454
|
-
return n;
|
|
455
|
-
}
|
|
456
|
-
function Me(e, t) {
|
|
457
|
-
let n = Math.min(t.length, I);
|
|
458
|
-
for (let r = 0; r < n; r++) {
|
|
459
|
-
let n = r * 8, i = t[r];
|
|
460
|
-
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;
|
|
461
|
-
}
|
|
462
|
-
return n;
|
|
463
|
-
}
|
|
464
|
-
//#endregion
|
|
465
|
-
//#region src/components/constellation/composables/constellationWGPUSetup.ts
|
|
466
|
-
var Ne = 64, Pe = 128, Fe = 8, Q = 1, Ie = 2;
|
|
467
|
-
function Le(e) {
|
|
468
|
-
let { canvas: t, resolveFrame: n, onResize: r, shouldContinue: i } = e;
|
|
469
|
-
return function(e, a, o) {
|
|
470
|
-
let s = e.createShaderModule({
|
|
471
|
-
label: "[Constellation] constellation-points.wgsl",
|
|
472
|
-
code: Ce
|
|
473
|
-
}), c = e.createShaderModule({
|
|
474
|
-
label: "[Constellation] constellation-lines.wgsl",
|
|
475
|
-
code: we
|
|
476
|
-
}), l = e.createBuffer({
|
|
477
|
-
label: "[Constellation] uniforms",
|
|
478
|
-
size: 112,
|
|
479
|
-
usage: Ne | Fe
|
|
480
|
-
}), u = e.createBuffer({
|
|
481
|
-
label: "[Constellation] nodes",
|
|
482
|
-
size: Te,
|
|
483
|
-
usage: Pe | Fe
|
|
484
|
-
}), d = e.createBuffer({
|
|
485
|
-
label: "[Constellation] edges",
|
|
486
|
-
size: Ee,
|
|
487
|
-
usage: Pe | Fe
|
|
488
|
-
}), f = e.createBindGroupLayout({
|
|
489
|
-
label: "[Constellation] points-bgl",
|
|
490
|
-
entries: [{
|
|
491
|
-
binding: 0,
|
|
492
|
-
visibility: Q | Ie,
|
|
493
|
-
buffer: { type: "uniform" }
|
|
494
|
-
}, {
|
|
495
|
-
binding: 1,
|
|
496
|
-
visibility: Q,
|
|
497
|
-
buffer: { type: "read-only-storage" }
|
|
498
|
-
}]
|
|
499
|
-
}), p = e.createBindGroupLayout({
|
|
500
|
-
label: "[Constellation] lines-bgl",
|
|
501
|
-
entries: [{
|
|
502
|
-
binding: 0,
|
|
503
|
-
visibility: Q | Ie,
|
|
504
|
-
buffer: { type: "uniform" }
|
|
505
|
-
}, {
|
|
506
|
-
binding: 1,
|
|
507
|
-
visibility: Q,
|
|
508
|
-
buffer: { type: "read-only-storage" }
|
|
509
|
-
}]
|
|
510
|
-
}), m = {
|
|
511
|
-
color: {
|
|
512
|
-
srcFactor: "one",
|
|
513
|
-
dstFactor: "one-minus-src-alpha",
|
|
514
|
-
operation: "add"
|
|
515
|
-
},
|
|
516
|
-
alpha: {
|
|
517
|
-
srcFactor: "one",
|
|
518
|
-
dstFactor: "one-minus-src-alpha",
|
|
519
|
-
operation: "add"
|
|
520
|
-
}
|
|
521
|
-
}, h = e.createRenderPipeline({
|
|
522
|
-
label: "[Constellation] points-pipeline",
|
|
523
|
-
layout: e.createPipelineLayout({ bindGroupLayouts: [f] }),
|
|
524
|
-
vertex: {
|
|
525
|
-
module: s,
|
|
526
|
-
entryPoint: "vs_main"
|
|
527
|
-
},
|
|
528
|
-
fragment: {
|
|
529
|
-
module: s,
|
|
530
|
-
entryPoint: "fs_main",
|
|
531
|
-
targets: [{
|
|
532
|
-
format: o,
|
|
533
|
-
blend: m
|
|
534
|
-
}]
|
|
535
|
-
},
|
|
536
|
-
primitive: { topology: "triangle-list" }
|
|
537
|
-
}), g = e.createRenderPipeline({
|
|
538
|
-
label: "[Constellation] lines-pipeline",
|
|
539
|
-
layout: e.createPipelineLayout({ bindGroupLayouts: [p] }),
|
|
540
|
-
vertex: {
|
|
541
|
-
module: c,
|
|
542
|
-
entryPoint: "vs_main"
|
|
543
|
-
},
|
|
544
|
-
fragment: {
|
|
545
|
-
module: c,
|
|
546
|
-
entryPoint: "fs_main",
|
|
547
|
-
targets: [{
|
|
548
|
-
format: o,
|
|
549
|
-
blend: m
|
|
550
|
-
}]
|
|
551
|
-
},
|
|
552
|
-
primitive: { topology: "triangle-list" }
|
|
553
|
-
}), _ = e.createBindGroup({
|
|
554
|
-
label: "[Constellation] points-bg",
|
|
555
|
-
layout: f,
|
|
556
|
-
entries: [{
|
|
557
|
-
binding: 0,
|
|
558
|
-
resource: { buffer: l }
|
|
559
|
-
}, {
|
|
560
|
-
binding: 1,
|
|
561
|
-
resource: { buffer: u }
|
|
562
|
-
}]
|
|
563
|
-
}), v = e.createBindGroup({
|
|
564
|
-
label: "[Constellation] lines-bg",
|
|
565
|
-
layout: p,
|
|
566
|
-
entries: [{
|
|
567
|
-
binding: 0,
|
|
568
|
-
resource: { buffer: l }
|
|
569
|
-
}, {
|
|
570
|
-
binding: 1,
|
|
571
|
-
resource: { buffer: d }
|
|
572
|
-
}]
|
|
573
|
-
}), y = De(), b = ke(), x = Ae();
|
|
574
|
-
function S(e) {
|
|
575
|
-
r?.(e?.w ?? t.width, e?.h ?? t.height);
|
|
576
|
-
}
|
|
577
|
-
function C(t) {
|
|
578
|
-
let r = n(t);
|
|
579
|
-
if (!r) return;
|
|
580
|
-
let i = je(b, r.nodes), o = Me(x, r.edges);
|
|
581
|
-
Oe(y, r.uniforms), e.queue.writeBuffer(l, 0, y.buffer), i > 0 && e.queue.writeBuffer(u, 0, b.buffer, b.byteOffset, i * 4 * 4), o > 0 && e.queue.writeBuffer(d, 0, x.buffer, x.byteOffset, o * 8 * 4);
|
|
582
|
-
let s = a.getCurrentTexture().createView(), c = e.createCommandEncoder({ label: "[Constellation] frame" }), f = c.beginRenderPass({ colorAttachments: [{
|
|
583
|
-
view: s,
|
|
584
|
-
clearValue: {
|
|
585
|
-
r: 0,
|
|
586
|
-
g: 0,
|
|
587
|
-
b: 0,
|
|
588
|
-
a: 0
|
|
589
|
-
},
|
|
590
|
-
loadOp: "clear",
|
|
591
|
-
storeOp: "store"
|
|
592
|
-
}] });
|
|
593
|
-
o > 0 && (f.setPipeline(g), f.setBindGroup(0, v), f.draw(6, o, 0, 0)), i > 0 && (f.setPipeline(h), f.setBindGroup(0, _), f.draw(6, i, 0, 0)), f.end(), e.queue.submit([c.finish()]);
|
|
594
|
-
}
|
|
595
|
-
return {
|
|
596
|
-
frame: C,
|
|
597
|
-
shouldContinue: i,
|
|
598
|
-
resize: S,
|
|
599
|
-
teardown: () => {
|
|
600
|
-
l.destroy(), u.destroy(), d.destroy();
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
//#endregion
|
|
606
|
-
//#region src/components/constellation/shaders/constellation-points.glsl.ts
|
|
607
|
-
var Re = "#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", ze = "#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", Be = "#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", Ve = "#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";
|
|
608
|
-
//#endregion
|
|
609
|
-
//#region src/components/constellation/composables/constellationGLSetup.ts
|
|
610
|
-
function $(e, t, n) {
|
|
611
|
-
let r = e.createShader(t);
|
|
612
|
-
if (e.shaderSource(r, n), e.compileShader(r), !e.getShaderParameter(r, e.COMPILE_STATUS)) {
|
|
613
|
-
let t = e.getShaderInfoLog(r);
|
|
614
|
-
throw e.deleteShader(r), Error(`[Constellation] shader compile failed: ${t}`);
|
|
615
|
-
}
|
|
616
|
-
return r;
|
|
617
|
-
}
|
|
618
|
-
function He(e, t, n) {
|
|
619
|
-
let r = e.createProgram();
|
|
620
|
-
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)}`);
|
|
621
|
-
return e.deleteShader(t), e.deleteShader(n), r;
|
|
622
|
-
}
|
|
623
|
-
function Ue(e) {
|
|
624
|
-
let { canvas: t, resolveFrame: n, onResize: r, shouldContinue: i } = e;
|
|
625
|
-
return function(e) {
|
|
626
|
-
let a = He(e, $(e, e.VERTEX_SHADER, Re), $(e, e.FRAGMENT_SHADER, ze)), o = He(e, $(e, e.VERTEX_SHADER, Be), $(e, e.FRAGMENT_SHADER, Ve)), s = e.createVertexArray();
|
|
627
|
-
e.bindVertexArray(s);
|
|
628
|
-
let c = e.createBuffer();
|
|
629
|
-
e.bindBuffer(e.ARRAY_BUFFER, c), 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);
|
|
630
|
-
let l = e.createVertexArray();
|
|
631
|
-
e.bindVertexArray(l);
|
|
632
|
-
let u = e.createBuffer();
|
|
633
|
-
e.bindBuffer(e.ARRAY_BUFFER, u), e.bufferData(e.ARRAY_BUFFER, I * 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);
|
|
634
|
-
let d = (t) => e.getUniformLocation(a, t), f = (t) => e.getUniformLocation(o, t), p = d("uResolution"), m = d("uDpr"), h = d("uKVis"), g = d("uNode"), _ = d("uNodeDim"), v = d("uOpacityCeiling"), y = f("uResolution"), b = f("uDpr"), x = f("uKVis"), S = f("uLineWidth"), C = f("uLine"), w = f("uAccent"), T = f("uAlphaGlobal"), E = f("uOpacityCeiling"), D = f("uEdgeAlpha"), O = f("uEdgeFocusAlpha"), k = f("uEdgeAccentAlpha"), A = f("uEdgeFloor"), j = ke(), M = Ae();
|
|
635
|
-
function N(n) {
|
|
636
|
-
e.viewport(0, 0, n?.w ?? t.width, n?.h ?? t.height), r?.(n?.w ?? t.width, n?.h ?? t.height);
|
|
637
|
-
}
|
|
638
|
-
function P(r) {
|
|
639
|
-
let i = n(r);
|
|
640
|
-
if (!i) return;
|
|
641
|
-
let d = je(j, i.nodes), f = Me(M, i.edges), N = 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(o), e.bindVertexArray(l), e.bindBuffer(e.ARRAY_BUFFER, u), e.bufferSubData(e.ARRAY_BUFFER, 0, M.subarray(0, f * 8)), e.uniform2f(y, N.resolutionX, N.resolutionY), e.uniform1f(b, N.dpr), e.uniform1f(x, N.kVis), e.uniform1f(S, N.lineWidth), e.uniform4f(C, N.line[0], N.line[1], N.line[2], N.line[3]), e.uniform4f(w, N.accent[0], N.accent[1], N.accent[2], N.accent[3]), e.uniform1f(T, N.alpha), e.uniform1f(E, N.opacityCeiling), e.uniform1f(D, N.edgeAlpha), e.uniform1f(O, N.edgeFocusAlpha), e.uniform1f(k, N.edgeAccentAlpha), e.uniform1f(A, N.edgeFloor), e.drawArraysInstanced(e.TRIANGLES, 0, 6, f)), d > 0 && (e.useProgram(a), e.bindVertexArray(s), e.bindBuffer(e.ARRAY_BUFFER, c), e.bufferSubData(e.ARRAY_BUFFER, 0, j.subarray(0, d * 4)), e.uniform2f(p, N.resolutionX, N.resolutionY), e.uniform1f(m, N.dpr), e.uniform1f(h, N.kVis), e.uniform4f(g, N.node[0], N.node[1], N.node[2], N.node[3]), e.uniform4f(_, N.nodeDim[0], N.nodeDim[1], N.nodeDim[2], N.nodeDim[3]), e.uniform1f(v, N.opacityCeiling), e.drawArraysInstanced(e.TRIANGLES, 0, 6, d)), e.bindVertexArray(null);
|
|
643
|
-
}
|
|
644
|
-
return {
|
|
645
|
-
frame: P,
|
|
646
|
-
shouldContinue: i,
|
|
647
|
-
resize: N,
|
|
648
|
-
teardown: () => {
|
|
649
|
-
e.deleteProgram(a), e.deleteProgram(o), e.deleteVertexArray(s), e.deleteVertexArray(l), e.deleteBuffer(c), e.deleteBuffer(u);
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
//#endregion
|
|
655
365
|
//#region src/components/constellation/composables/useConstellation.ts
|
|
656
|
-
var
|
|
366
|
+
var we = {
|
|
657
367
|
gain: 5200,
|
|
658
368
|
reach: 480,
|
|
659
369
|
maxSpeed: 1.6,
|
|
660
370
|
soften: 24,
|
|
661
371
|
ramp: 4
|
|
662
|
-
},
|
|
663
|
-
function
|
|
664
|
-
let
|
|
372
|
+
}, Te = .5, Ee = 0;
|
|
373
|
+
function De(e, r, a, p = {}) {
|
|
374
|
+
let m = p.routePointer, h = Math.min(e.count ?? 64, 256), _ = e.link ?? 132, b = e.speed ?? .16, ee = e.parallax ?? 0, w = e.seed, T = e.warpOnClick ?? !1, O = e.wander ?? !1, k = e.gravityWell || (m ? { ...we } : !1), A = e.pinned ?? !1, j = e.pinnedDrift ?? !1, M = e.warpAutoRelease ?? !1, N = f(() => w === void 0 ? Math.random : u(typeof w == "string" ? d(w) : w)), P = g()?.vnode.props?.freeze, F = () => typeof window < "u" && /[?&](export|print|freeze)\b/.test(window.location.search), I = f(() => P === void 0 ? F() : P === !0 || P === ""), { field: L, wanderOverride: R, wellOverride: te } = Ce(O, k, A, j, M), B = {
|
|
665
375
|
x: -1,
|
|
666
376
|
y: -1
|
|
667
|
-
},
|
|
377
|
+
}, V = [], H = S(null), U = i(m ? {
|
|
668
378
|
respectReducedMotion: !0,
|
|
669
379
|
halfLifeMs: 600,
|
|
670
380
|
mass: 1.3,
|
|
671
381
|
damping: .9,
|
|
672
382
|
attractorResponse: .5
|
|
673
|
-
} : { respectReducedMotion: !0 }),
|
|
674
|
-
return
|
|
675
|
-
let
|
|
676
|
-
if (!
|
|
677
|
-
let c =
|
|
678
|
-
let t =
|
|
383
|
+
} : { respectReducedMotion: !0 }), W = C(c("canvas2d")), G = null, K = () => U.dispose();
|
|
384
|
+
return y(() => K()), v(() => {
|
|
385
|
+
let i = a.value;
|
|
386
|
+
if (!i) return;
|
|
387
|
+
let c = { ...D }, u = !0, d = !1, f = -1, p = !1, g, v = () => G?.reducedMotion ?? t(), y = (e) => {
|
|
388
|
+
let t = i.getBoundingClientRect();
|
|
679
389
|
if (!t.width || !t.height) return null;
|
|
680
|
-
let
|
|
681
|
-
return
|
|
682
|
-
x:
|
|
683
|
-
y:
|
|
390
|
+
let n = (e.clientX - t.left) / t.width, r = (e.clientY - t.top) / t.height;
|
|
391
|
+
return n < 0 || r < 0 || n > 1 || r > 1 ? null : {
|
|
392
|
+
x: n * L.w,
|
|
393
|
+
y: r * L.h
|
|
684
394
|
};
|
|
685
395
|
};
|
|
686
|
-
|
|
687
|
-
let
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
B.
|
|
699
|
-
},
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
396
|
+
H.value = y;
|
|
397
|
+
let x = () => {
|
|
398
|
+
g !== void 0 && clearTimeout(g), g = void 0, L.well && (L.well.target = 0), G?.wake();
|
|
399
|
+
}, S = r.value ?? i, C = [], w = (e, t) => {
|
|
400
|
+
S.addEventListener(e, t), C.push([e, t]);
|
|
401
|
+
};
|
|
402
|
+
!m && !I.value && (w("pointerenter", (() => {
|
|
403
|
+
U.onPointerEnter(), G?.wake();
|
|
404
|
+
})), w("pointermove", ((t) => {
|
|
405
|
+
if (v()) return;
|
|
406
|
+
U.onPointerMove(t);
|
|
407
|
+
let n = y(t);
|
|
408
|
+
e.pointerReactive !== !1 && n ? (B.x = n.x, B.y = n.y) : (B.x = -1, B.y = -1), L.well?.target && n && (L.well.x = n.x, L.well.y = n.y), G?.wake();
|
|
409
|
+
})), w("pointerleave", (() => {
|
|
410
|
+
U.onPointerLeave(), B.x = -1, B.y = -1, x();
|
|
411
|
+
})), w("pointerdown", ((t) => {
|
|
412
|
+
if (v()) return;
|
|
413
|
+
let n = y(t);
|
|
414
|
+
n && (e.pointerReactive !== !1 && V.push({
|
|
415
|
+
...n,
|
|
416
|
+
start: -1
|
|
417
|
+
}), T && Z(L, n.x, n.y), e.gravityWell && L.well && (L.well.x = n.x, L.well.y = n.y, g = setTimeout(() => {
|
|
418
|
+
L.well && (L.well.target = 1), G?.wake();
|
|
419
|
+
}, L.well.cfg.holdMs)), G?.wake());
|
|
420
|
+
})), w("pointerup", x), w("pointercancel", x), (T || e.gravityWell) && (w("keydown", ((t) => {
|
|
421
|
+
if (t.repeat || t.key !== "Enter" && t.key !== " " || v()) return;
|
|
422
|
+
t.preventDefault();
|
|
423
|
+
let n = L.w / 2, r = L.h / 2;
|
|
424
|
+
T && Z(L, n, r), e.gravityWell && L.well && (L.well.x = n, L.well.y = r, L.well.target = 1), G?.wake();
|
|
425
|
+
})), w("keyup", ((e) => {
|
|
426
|
+
(e.key === "Enter" || e.key === " ") && x();
|
|
427
|
+
}))));
|
|
428
|
+
let O = typeof MutationObserver > "u" ? null : new MutationObserver(() => {
|
|
429
|
+
u = !0, I.value ? G?.resume("manual") : G?.wake();
|
|
706
430
|
});
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
431
|
+
O?.observe(document.documentElement, {
|
|
432
|
+
attributes: !0,
|
|
433
|
+
attributeFilter: ["class"]
|
|
434
|
+
}), G = n({
|
|
435
|
+
canvas: a,
|
|
436
|
+
respectReducedMotion: !0,
|
|
437
|
+
setup: () => ({ render(t, n) {
|
|
438
|
+
let r = Math.min(window.devicePixelRatio || 1, 2), a = i.width ? i.width / r : E, l = i.height ? i.height / r : 720, g = a / E;
|
|
439
|
+
L.canvas = i, L.dpr = r;
|
|
440
|
+
let y = Number.parseFloat(getComputedStyle(i).getPropertyValue("--constellation-k-floor"));
|
|
441
|
+
if (L.kFloor = Number.isFinite(y) ? y : void 0, L.w !== a || L.h !== l) {
|
|
442
|
+
let e = L.w, t = L.h;
|
|
443
|
+
if (L.w = a, L.h = l, L.k = g, L.nodes.length ? pe(L, e, t) : (L.nodes = fe(N.value, h, a, l, b), L.warp.x = a / 2, L.warp.y = l / 2), !d) {
|
|
444
|
+
d = !0;
|
|
445
|
+
let e = J(i);
|
|
446
|
+
L.warpCfg = e.warp, L.well && (L.well.cfg = {
|
|
718
447
|
...e.well,
|
|
719
|
-
...
|
|
720
|
-
}),
|
|
448
|
+
...te
|
|
449
|
+
}), L.wander && (L.wander.minIdle = R.minIdle ?? e.wander.minIdle, L.wander.jitter = R.jitter ?? e.wander.jitter);
|
|
721
450
|
}
|
|
722
451
|
}
|
|
723
|
-
|
|
724
|
-
let
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
let n = (e.x * window.innerWidth - r.left) / r.width, i = (e.y * window.innerHeight - r.top) / r.height;
|
|
733
|
-
t = n >= 0 && n <= 1 && i >= 0 && i <= 1, t && B.setPointer(n, i);
|
|
452
|
+
L.k = g, u &&= (c = ve(i), !1);
|
|
453
|
+
let x = I.value || v(), S = f < 0 ? 0 : n - f, C = S / 1e3;
|
|
454
|
+
if (f = n, x && L.well && (L.well.strength = 0, L.well.target = 0, L.well.x = -1, L.well.y = -1), m && !x) {
|
|
455
|
+
let e = m(), t = !1;
|
|
456
|
+
if (e?.active) {
|
|
457
|
+
let n = i.getBoundingClientRect();
|
|
458
|
+
if (n.width && n.height) {
|
|
459
|
+
let r = (e.x * window.innerWidth - n.left) / n.width, i = (e.y * window.innerHeight - n.top) / n.height;
|
|
460
|
+
t = r >= 0 && r <= 1 && i >= 0 && i <= 1, t && U.setPointer(r, i);
|
|
734
461
|
}
|
|
735
462
|
}
|
|
736
|
-
|
|
463
|
+
U.setActive(t);
|
|
737
464
|
}
|
|
738
|
-
if (
|
|
739
|
-
let e =
|
|
740
|
-
|
|
465
|
+
if (U.tick(x ? 0 : S), m && L.well && !x) {
|
|
466
|
+
let e = s(o(U));
|
|
467
|
+
L.well.x = e.x * a, L.well.y = e.y * l, L.well.target = e.engagement * Te;
|
|
741
468
|
}
|
|
742
|
-
let
|
|
743
|
-
if (
|
|
744
|
-
let e =
|
|
745
|
-
|
|
746
|
-
x: e.x *
|
|
747
|
-
y: e.y *
|
|
748
|
-
},
|
|
469
|
+
let w = e.pointerReactive !== !1, T = w ? B : null, D = null;
|
|
470
|
+
if (T && !x) {
|
|
471
|
+
let e = U.velocity.value;
|
|
472
|
+
D = {
|
|
473
|
+
x: e.x * a / 60,
|
|
474
|
+
y: e.y * l / 60
|
|
475
|
+
}, B.x >= 0 && de(L, B, U.burst.value, V);
|
|
749
476
|
}
|
|
750
|
-
|
|
751
|
-
let
|
|
752
|
-
|
|
753
|
-
let
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
r: t.r,
|
|
762
|
-
dim: +!!t.dim
|
|
763
|
-
});
|
|
477
|
+
x || me(L, g, b, T, C, n, N.value, D);
|
|
478
|
+
let O = e.accentEdges ? L.pinnedIndex >= 0 ? L.pinnedIndex : L.focalIndex : -1, k = he(L, _, O, z);
|
|
479
|
+
w && !x && ge(k, L, _, B, z);
|
|
480
|
+
let A = e.opacityCeiling ?? 1;
|
|
481
|
+
if (t.clearRect(0, 0, a, l), ye(t, L, k, c, A), be(t, L, c, A, T, x ? 0 : ee), w && !x && (xe(t, L, B, c, A), Se(t, L, n, V, c, A)), e.drawOverlay) {
|
|
482
|
+
t.save();
|
|
483
|
+
try {
|
|
484
|
+
e.drawOverlay(t, L, x ? Ee : n);
|
|
485
|
+
} finally {
|
|
486
|
+
t.restore();
|
|
487
|
+
}
|
|
764
488
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
alpha: e.alpha,
|
|
774
|
-
accent: e.accent,
|
|
775
|
-
focus: e.focus
|
|
776
|
-
});
|
|
777
|
-
return {
|
|
778
|
-
nodes: W,
|
|
779
|
-
edges: G,
|
|
780
|
-
uniforms: k
|
|
781
|
-
};
|
|
782
|
-
},
|
|
783
|
-
shouldContinue: () => !0
|
|
489
|
+
I.value && G && !p && (p = !0, queueMicrotask(() => {
|
|
490
|
+
p = !1, G?.suspend("manual");
|
|
491
|
+
}));
|
|
492
|
+
} })
|
|
493
|
+
}), W.value = l(), K = () => {
|
|
494
|
+
g !== void 0 && clearTimeout(g), O?.disconnect();
|
|
495
|
+
for (let [e, t] of C) S.removeEventListener(e, t);
|
|
496
|
+
U.dispose(), G?.dispose(), G = null;
|
|
784
497
|
};
|
|
785
|
-
V = s(n, {
|
|
786
|
-
mode: "live",
|
|
787
|
-
respectReducedMotion: !0,
|
|
788
|
-
dprPolicy: o,
|
|
789
|
-
revealBloom: !0,
|
|
790
|
-
setupWGPU: Le({
|
|
791
|
-
canvas: n,
|
|
792
|
-
...T
|
|
793
|
-
}),
|
|
794
|
-
setupGL: Ue({
|
|
795
|
-
canvas: n,
|
|
796
|
-
...T
|
|
797
|
-
})
|
|
798
|
-
}), V.armAsync().then(() => {
|
|
799
|
-
H = V?.backend ?? "webgpu";
|
|
800
|
-
});
|
|
801
498
|
}), {
|
|
802
|
-
field:
|
|
803
|
-
isFrozen:
|
|
804
|
-
backend: () => H,
|
|
499
|
+
field: L,
|
|
500
|
+
isFrozen: I,
|
|
805
501
|
warpTo(e, t) {
|
|
806
|
-
if (
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
return K(P, n.x, n.y);
|
|
502
|
+
if (I.value) return -1;
|
|
503
|
+
let n = typeof e == "number" && typeof t == "number" ? H.value?.({
|
|
504
|
+
clientX: e,
|
|
505
|
+
clientY: t
|
|
506
|
+
}) : e;
|
|
507
|
+
if (!n) return -1;
|
|
508
|
+
let r = Z(L, n.x, n.y);
|
|
509
|
+
return G?.wake(), r;
|
|
815
510
|
},
|
|
816
511
|
holdWellAt(e, t) {
|
|
817
|
-
return
|
|
512
|
+
return !L.well || I.value ? !1 : (L.well.x = e, L.well.y = t, L.well.target = 1, G?.wake(), !0);
|
|
818
513
|
},
|
|
819
514
|
releaseWell() {
|
|
820
|
-
|
|
821
|
-
},
|
|
822
|
-
warpSettled() {
|
|
823
|
-
return q(P);
|
|
515
|
+
L.well && (L.well.target = 0, G?.wake());
|
|
824
516
|
},
|
|
517
|
+
warpSettled: () => Q(L),
|
|
825
518
|
pinNode(e) {
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
}
|
|
830
|
-
function qe() {
|
|
831
|
-
return {
|
|
832
|
-
resolutionX: 0,
|
|
833
|
-
resolutionY: 0,
|
|
834
|
-
dpr: 1,
|
|
835
|
-
kVis: 1,
|
|
836
|
-
time: 0,
|
|
837
|
-
lineWidth: 1,
|
|
838
|
-
opacityCeiling: 1,
|
|
839
|
-
alpha: C.alpha,
|
|
840
|
-
edgeAlpha: C.edgeAlpha,
|
|
841
|
-
edgeFocusAlpha: C.edgeFocusAlpha,
|
|
842
|
-
edgeAccentAlpha: C.edgeAccentAlpha,
|
|
843
|
-
edgeFloor: C.edgeFloor,
|
|
844
|
-
node: [
|
|
845
|
-
.7,
|
|
846
|
-
.69,
|
|
847
|
-
.64,
|
|
848
|
-
1
|
|
849
|
-
],
|
|
850
|
-
nodeDim: [
|
|
851
|
-
.8,
|
|
852
|
-
.78,
|
|
853
|
-
.74,
|
|
854
|
-
1
|
|
855
|
-
],
|
|
856
|
-
line: [
|
|
857
|
-
.11,
|
|
858
|
-
.09,
|
|
859
|
-
.08,
|
|
860
|
-
1
|
|
861
|
-
],
|
|
862
|
-
accent: [
|
|
863
|
-
.7,
|
|
864
|
-
.31,
|
|
865
|
-
.19,
|
|
866
|
-
1
|
|
867
|
-
]
|
|
519
|
+
L.pinnedIndex = e, L.pinnedDrift && (L.pinnedDrift.nextAt = -1), G?.wake();
|
|
520
|
+
},
|
|
521
|
+
rendererStatus: x(W)
|
|
868
522
|
};
|
|
869
523
|
}
|
|
870
524
|
//#endregion
|
|
871
|
-
//#region src/components/constellation/Constellation.vue
|
|
872
|
-
var
|
|
525
|
+
//#region src/components/constellation/Constellation.vue?vue&type=script&setup=true&lang.ts
|
|
526
|
+
var Oe = [
|
|
527
|
+
"role",
|
|
528
|
+
"tabindex",
|
|
529
|
+
"aria-label"
|
|
530
|
+
], ke = /*#__PURE__*/ r(/* @__PURE__ */ h({
|
|
873
531
|
__name: "Constellation",
|
|
874
532
|
props: {
|
|
875
533
|
count: { default: 64 },
|
|
@@ -918,23 +576,30 @@ var Je = /* @__PURE__ */ t(/* @__PURE__ */ p({
|
|
|
918
576
|
class: {},
|
|
919
577
|
drawOverlay: {}
|
|
920
578
|
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
x:
|
|
925
|
-
y:
|
|
926
|
-
active:
|
|
927
|
-
}) : void 0
|
|
579
|
+
emits: ["rendererStatus"],
|
|
580
|
+
setup(t, { expose: n, emit: r }) {
|
|
581
|
+
let i = r, o = t, s = w("hostRef"), c = w("canvasRef"), l = a(), u = o.backgroundInteractive ? () => ({
|
|
582
|
+
x: l.pointer.value.x,
|
|
583
|
+
y: l.pointer.value.y,
|
|
584
|
+
active: l.active.value
|
|
585
|
+
}) : void 0, d = f(() => !o.backgroundInteractive && (o.warpOnClick || !!o.gravityWell)), h = f(() => o.warpOnClick && o.gravityWell ? "Move the constellation focal point or pull the field" : o.gravityWell ? "Pull the constellation field" : "Move the constellation focal point"), g = De(o, s, c, { routePointer: u });
|
|
586
|
+
return T(g.rendererStatus, (e) => i("rendererStatus", e), {
|
|
587
|
+
immediate: !0,
|
|
588
|
+
flush: "sync"
|
|
589
|
+
}), n(g), (t, n) => (b(), p("div", {
|
|
928
590
|
ref_key: "hostRef",
|
|
929
|
-
ref:
|
|
930
|
-
class:
|
|
931
|
-
|
|
591
|
+
ref: s,
|
|
592
|
+
class: _(ee(e)("constellation", o.class)),
|
|
593
|
+
role: d.value ? "button" : void 0,
|
|
594
|
+
tabindex: d.value ? 0 : void 0,
|
|
595
|
+
"aria-label": d.value ? h.value : void 0
|
|
596
|
+
}, [m("canvas", {
|
|
932
597
|
ref_key: "canvasRef",
|
|
933
|
-
ref:
|
|
598
|
+
ref: c,
|
|
934
599
|
class: "constellation-canvas",
|
|
935
600
|
"aria-hidden": "true"
|
|
936
|
-
}, null, 512)],
|
|
601
|
+
}, null, 512)], 10, Oe));
|
|
937
602
|
}
|
|
938
|
-
}), [["__scopeId", "data-v-
|
|
603
|
+
}), [["__scopeId", "data-v-798f084d"]]);
|
|
939
604
|
//#endregion
|
|
940
|
-
export {
|
|
605
|
+
export { E as BASE_WIDTH, ue as BURST_FIRE_THRESHOLD, ke as Constellation, L as DEFAULT_K_FLOOR, D as DEFAULT_PALETTE, B as DEFAULT_PARALLAX, P as DEFAULT_PINNED_DRIFT_DUR, N as DEFAULT_PINNED_DRIFT_FRAC, F as DEFAULT_PINNED_DRIFT_IDLE, I as DEFAULT_PINNED_DRIFT_JITTER, j as DEFAULT_WANDER_IDLE, M as DEFAULT_WANDER_JITTER, A as DEFAULT_WELL_CONFIG, z as E_MAX, te as MAX_DEGREE, R as MAX_NODES, O as WARP_RESPONSE, k as WARP_ZETA, ge as appendPointerWeb, he as buildEdges, de as fireBurst, $ as kVisOf, se as makePinnedDrift, Y as nearestNode, _e as parallaxNodePos, oe as pickWanderTarget, J as readInteractionConfig, ve as readPalette, pe as refitField, fe as seedField, X as setWarpTarget, me as stepField, le as stepPinnedDrift, q as stepWell, Q as warpSettled, ie as warpStep, Z as warpTo };
|