@mkbabb/glass-ui 3.5.1 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CardAction-D8nSE62a.js +163 -0
- package/dist/CollapsibleContent-D7UNsXQr.js +63 -0
- package/dist/{CommandShortcut-BiVyqipe.js → CommandShortcut-CY0aQTz5.js} +4 -4
- package/dist/{ContextMenuContent-De01_83g.js → ContextMenuContent-DGKZX1Du.js} +1 -1
- package/dist/{ContextMenuSubContent-DrWkXKQP.js → ContextMenuSubContent-BeDz7G6f.js} +4 -4
- package/dist/{DataTable-DyKc_26a.js → DataTable-gtPOLZvl.js} +14 -7
- package/dist/{DialogContent-IQ8_BRrC.js → DialogContent-DG1YMR-P.js} +24 -24
- package/dist/{DialogFooter-Er0wA3K6.js → DialogFooter-BCIaDP15.js} +2 -2
- package/dist/{DiscoGlyph-BaZ8OawK.js → DiscoGlyph-ZoBYpoxI.js} +1 -1
- package/dist/{GlyphFace-B_7vOmYn.js → GlyphFace-Ce_oe3tM.js} +1 -1
- package/dist/{HoverCardContent-ICfIMZX1.js → HoverCardContent-Bn0UBMY9.js} +1 -1
- package/dist/{HoverPopover-DTSYkJtw.js → HoverPopover-DXpOEw1P.js} +1 -1
- package/dist/{IconTooltip-BTyYn4mr.js → IconTooltip-Cu86JR4e.js} +1 -1
- package/dist/{Input-CU9CNKmo.js → Input-DWQQIOC4.js} +4 -1
- package/dist/{Label-CZk-3nTc.js → Label-DBc7bKzZ.js} +1 -1
- package/dist/{MetricBadge-BlrdbOGN.js → MetricBadge-D-bRaQUD.js} +1 -1
- package/dist/{Notification-DP_ApJLo.js → Notification-B5WHP3_1.js} +5 -4
- package/dist/{NumberFieldContent-jO-zGOHf.js → NumberFieldContent-CLNVR1iY.js} +5 -5
- package/dist/{PopoverContent-B8WtJECb.js → PopoverContent-F1bWnYoh.js} +2 -2
- package/dist/{Progress-DjM86vfb.js → Progress-c4vo4ALi.js} +6 -6
- package/dist/{ScrollingText-P9o_DuMn.js → ScrollingText-BEp377U5.js} +2 -2
- package/dist/{SelectScrollDownButton-BGn3rjs9.js → SelectScrollDownButton-DAo5NmY_.js} +8 -7
- package/dist/{Separator-C2XtAXRp.js → Separator-DZyqsCum.js} +1 -1
- package/dist/{Switch-x8n6husW.js → Switch-2rsAtDfA.js} +8 -2
- package/dist/TabsList-COqIdW7i.js +101 -0
- package/dist/{Toaster-DdhMKfus.js → Toaster-BMaeziJJ.js} +54 -60
- package/dist/{ToggleGroupItem-gyXj998A.js → ToggleGroupItem-C-AIkBUw.js} +13 -5
- package/dist/{TooltipProvider-D-JrSqDu.js → TooltipProvider-CD2IXfRv.js} +1 -1
- package/dist/{UnderlineTabs-Cq_AD03t.js → UnderlineTabs-D_c1iYo-.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +2 -1
- package/dist/api.js +1 -1
- package/dist/aurora.js +845 -204
- package/dist/{badge-Cl6JZ1B7.js → badge-DHQrc_GQ.js} +13 -9
- package/dist/badge.js +1 -1
- package/dist/{button-i8Ek5vvg.js → button-CAywcrhO.js} +8 -5
- package/dist/button.js +1 -1
- package/dist/card.js +2 -2
- package/dist/carousel.js +5 -5
- package/dist/{check-CdkxGxXJ.js → check-BBKKKSTf.js} +1 -1
- package/dist/{chevron-down-pBY8sYfV.js → chevron-down-BSkTP2aL.js} +1 -1
- package/dist/{chevron-right-BjeKC22V.js → chevron-right-sDM0Yvrf.js} +1 -1
- package/dist/{chevron-up-DBeNHUm1.js → chevron-up-CCOD_FTz.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-DjJCAQ6f.js +76 -0
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/compile-iM4IUB66.js +158 -0
- package/dist/components/custom/aurora/Aurora.vue.d.ts +1 -0
- package/dist/components/custom/aurora/composables/atoms.d.ts +60 -0
- package/dist/components/custom/aurora/composables/color.d.ts +36 -9
- package/dist/components/custom/aurora/composables/cursorModel.d.ts +35 -2
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +16 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +18 -0
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +29 -0
- package/dist/components/custom/aurora/composables/useAurora.d.ts +6 -0
- package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +64 -2
- package/dist/components/custom/aurora/constants/renderMode.d.ts +10 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +7 -0
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
- package/dist/components/custom/aurora/constants/shaders/painterly.wgsl.d.ts +7 -0
- package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +4 -0
- package/dist/components/custom/aurora/index.d.ts +5 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +45 -0
- package/dist/components/custom/constellation/constellationField.d.ts +85 -0
- package/dist/components/custom/constellation/index.d.ts +3 -0
- package/dist/components/custom/dock/GlassDock.vue.d.ts +34 -3
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +38 -0
- package/dist/components/custom/fourier-field/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/math.d.ts +57 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +14 -2
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +45 -4
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +1 -1
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -2
- package/dist/components/custom/goo-blob/types.d.ts +40 -0
- package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +1 -1
- package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/ui/_shared/ModalOverlay.vue.d.ts +1 -1
- package/dist/components/ui/alert/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +10 -3
- package/dist/components/ui/card/CardAction.vue.d.ts +24 -0
- package/dist/components/ui/card/index.d.ts +1 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +5 -1
- package/dist/components/ui/tabs/TabsList.vue.d.ts +13 -3
- package/dist/components/ui/toast/Toast.vue.d.ts +5 -5
- package/dist/components/ui/toast/use-toast.d.ts +1 -1
- package/dist/composables/color/index.d.ts +50 -0
- package/dist/composables/glass/canvas2d/index.d.ts +2 -0
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +48 -0
- package/dist/composables/glass/createGPUCanvas.d.ts +40 -0
- package/dist/composables/glass/index.d.ts +2 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +45 -0
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +3 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +4 -4
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/constellation.d.ts +1 -0
- package/dist/constellation.js +182 -0
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +129 -110
- package/dist/{dockContext-spUj_-E5.js → dockContext-DLgrVWsU.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-EFjl5iKo.js → dropdown-menu-BWpwutt0.js} +5 -5
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +2 -2
- package/dist/forms.js +10 -7
- package/dist/fourier-field.d.ts +1 -0
- package/dist/fourier-field.js +166 -0
- package/dist/glass-carousel.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +207 -191
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.js +336 -234
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/{keys-BFoma9vm.js → keys-Dyf_uTs5.js} +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-BP27-qBY.js → minimize-2-lcXOuc6V.js} +1 -1
- package/dist/motion-core.js +76 -106
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-DBG8qaRs.js → search-nbkvr2dC.js} +1 -1
- package/dist/search.js +8 -8
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-CQYYrkr9.js → sheet-Cv1uO-Gq.js} +4 -4
- package/dist/sheet.js +1 -1
- package/dist/{slider-CgNzRSh6.js → slider-BA9wIs5e.js} +5 -4
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/components.css +1 -1
- package/dist/styles/dock.css +185 -1
- package/dist/styles/glass-refract.css +60 -0
- package/dist/styles/glass-specular-track.css +43 -130
- package/dist/styles/glass.css +243 -27
- package/dist/styles/index.css +1 -0
- package/dist/styles/theme.css +55 -0
- package/dist/styles/tokens.css +33 -0
- package/dist/styles/typography.css +3 -3
- package/dist/styles/utilities.css +17 -13
- package/dist/supportsCssTimeline-C5oe0lnD.js +12 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +4 -4
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-BF6r64lA.js → useAnimatedNumber-C5I3wWd8.js} +1 -1
- package/dist/useCanvas2D-C31yfUGY.js +95 -0
- package/dist/{useConfiguratorState-DUtC1jxr.js → useConfiguratorState-B24TcgIn.js} +5 -5
- package/dist/useScrollProgress-CAH8Ofwt.js +35 -0
- package/dist/{useTouchGate-CS5Csc2h.js → useTouchGate-YQRwyUGU.js} +1 -1
- package/dist/{vReveal-u2wSG2El.js → vReveal-BE2TsPoR.js} +6 -17
- package/dist/watercolor-dot.js +2 -2
- package/dist/{x-C4pz9nbD.js → x-Dfsegz9Y.js} +1 -1
- package/package.json +49 -1
- package/src/styles/dock.css +185 -1
- package/src/styles/glass-refract.css +60 -0
- package/src/styles/glass-specular-track.css +43 -130
- package/src/styles/glass.css +243 -27
- package/src/styles/index.css +1 -0
- package/src/styles/theme.css +55 -0
- package/src/styles/tokens.css +33 -0
- package/src/styles/typography.css +3 -3
- package/src/styles/utilities.css +17 -13
- package/dist/CardFooter-C390imy7.js +0 -129
- package/dist/CollapsibleContent-cauTbZEM.js +0 -52
- package/dist/TabsIndicator-DA0x9gPr.js +0 -97
- package/dist/color-rkK4RMx2.js +0 -33
- package/dist/compile-DVgAxagk.js +0 -106
- /package/dist/{InstrumentChassis-DaHIZCqy.js → InstrumentChassis-BLJBl1BW.js} +0 -0
- /package/dist/{InstrumentRail-B0qqLFN0.js → InstrumentRail-BElFwKyt.js} +0 -0
- /package/dist/{ModalOverlay-B_CBtqcE.js → ModalOverlay-D1VrWyoi.js} +0 -0
- /package/dist/{PaperBackdrop-D_YZW47j.js → PaperBackdrop-DCGoGatv.js} +0 -0
- /package/dist/{SelectGroup-CMdoCjRE.js → SelectGroup-BcaFjvP4.js} +0 -0
- /package/dist/{SelectSeparator-CaJnPF3_.js → SelectSeparator-COFMJGng.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-gLzyemvl.js} +0 -0
- /package/dist/{constants-DsCdlK9I.js → constants-CS75AWHG.js} +0 -0
- /package/dist/{createContext-DBMGRlx4.js → createContext-CvNyBk4o.js} +0 -0
- /package/dist/{createLucideIcon-DuDoe_ra.js → createLucideIcon-B6uNAU9G.js} +0 -0
- /package/dist/{menuItemVariants-C2QlXqT3.js → menuItemVariants-B4eFR5Ix.js} +0 -0
- /package/dist/{presets-1OhFpaIC.js → presets-BKVyQfbt.js} +0 -0
- /package/dist/{prng-Bz_1Tydc.js → prng-wHuHlNHE.js} +0 -0
- /package/dist/{useGlassRenderer-Dn3WpfG-.js → useGlassRenderer-HebgSEgN.js} +0 -0
- /package/dist/{useGlobalDark-CWiaCoEw.js → useGlobalDark-yhL4Wp-s.js} +0 -0
- /package/dist/{useIntersectionPause-DAdVPVp4.js → useIntersectionPause-Cc-H9ees.js} +0 -0
- /package/dist/{useInterval-CHVYFpXV.js → useInterval-D3USn0yc.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BQfnAHHW.js → useKeyboardShortcuts-Be3w_Rwk.js} +0 -0
- /package/dist/{useResizeObserver-DX-STszm.js → useResizeObserver-CSyxGxIX.js} +0 -0
- /package/dist/{useSortable-DnyGXKKY.js → useSortable-C8ReQ50P.js} +0 -0
- /package/dist/{useSpringMount-CnizvZGm.js → useSpringMount-LRZqJTaF.js} +0 -0
- /package/dist/{useTextHighlight-Dmtofpk2.js → useTextHighlight-aMPdEpkq.js} +0 -0
- /package/dist/{useTimer-DGgoxTXL.js → useTimer-DEJonOZa.js} +0 -0
- /package/dist/{useUserInvalidAria-DmvZ_6Dx.js → useUserInvalidAria-CQKjEfwP.js} +0 -0
- /package/dist/{useViewTransition-CJnqg6wl.js → useViewTransition-DaN5Zrox.js} +0 -0
- /package/dist/{useViewportReady-Dcvf0c4p.js → useViewportReady-K96m-Mdv.js} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from "vue";
|
|
2
|
+
/** The suspend reasons that gate the loop. Twins the WebGL substrate's union. */
|
|
3
|
+
export type Canvas2DSuspendReason = "tab-hidden" | "off-screen" | "manual";
|
|
4
|
+
/** The per-frame hooks a consumer's `setup(ctx)` returns. */
|
|
5
|
+
export interface Canvas2DFrame {
|
|
6
|
+
/**
|
|
7
|
+
* Draw one frame. `ctx` is pre-transformed for CSS px (the dpr scale is
|
|
8
|
+
* applied by the substrate's resize), `now` is `performance.now()` ms. The
|
|
9
|
+
* consumer steps + clears + paints — the substrate clears nothing.
|
|
10
|
+
*/
|
|
11
|
+
render: (ctx: CanvasRenderingContext2D, now: number) => void;
|
|
12
|
+
/** Release per-instance resources. Runs on dispose. */
|
|
13
|
+
teardown?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface Canvas2DOptions {
|
|
16
|
+
/** The canvas element ref (or getter). The substrate observes + sizes it. */
|
|
17
|
+
canvas: MaybeRefOrGetter<HTMLCanvasElement | null>;
|
|
18
|
+
/** Build per-instance state on a fresh 2D context; returns the frame hooks. */
|
|
19
|
+
setup: (ctx: CanvasRenderingContext2D) => Canvas2DFrame;
|
|
20
|
+
/** Auto-`arm()` once the canvas resolves (default `true`). */
|
|
21
|
+
autoStart?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Honor `prefers-reduced-motion: reduce` by painting ONE static frame then
|
|
24
|
+
* parking the loop. Live-monitored via a `matchMedia` `change` listener;
|
|
25
|
+
* re-arms (one static frame) on un-reduce. Default `true`.
|
|
26
|
+
*/
|
|
27
|
+
respectReducedMotion?: boolean;
|
|
28
|
+
/** `getContext("2d", …)` attributes. */
|
|
29
|
+
contextAttrs?: CanvasRenderingContext2DSettings;
|
|
30
|
+
/** IntersectionObserver `rootMargin` for the offscreen seam. Default `200px`. */
|
|
31
|
+
rootMargin?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Canvas2DHandle {
|
|
34
|
+
/** Run the cheap init (2D context + `setup` + arm the loop). Idempotent; no-op post-dispose. */
|
|
35
|
+
arm: () => void;
|
|
36
|
+
suspend: (reason?: Canvas2DSuspendReason) => void;
|
|
37
|
+
resume: (reason?: Canvas2DSuspendReason) => void;
|
|
38
|
+
/** Re-arm a parked loop on demand (a setter that re-introduced motion calls this). */
|
|
39
|
+
wake: () => void;
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
/** `true` while the suspend set is empty (the loop is live). */
|
|
42
|
+
isRunning: () => boolean;
|
|
43
|
+
/** The live 2D context (null before arm / after dispose). */
|
|
44
|
+
readonly ctx: CanvasRenderingContext2D | null;
|
|
45
|
+
/** The live `prefers-reduced-motion: reduce` state (consumers read it to skip stepping). */
|
|
46
|
+
readonly reducedMotion: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare function createCanvas2D(options: Canvas2DOptions): Canvas2DHandle;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** The per-frame hooks a consumer's WebGPU `setup` returns (mirrors WebGLCanvasFrame). */
|
|
2
|
+
export interface GPUCanvasFrame {
|
|
3
|
+
frame: (timeSec: number) => void;
|
|
4
|
+
shouldContinue: () => boolean;
|
|
5
|
+
resize: () => void;
|
|
6
|
+
time?: (elapsedSec: number) => number;
|
|
7
|
+
teardown?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface GPUCanvasSetupArgs {
|
|
10
|
+
device: GPUDevice;
|
|
11
|
+
context: GPUCanvasContext;
|
|
12
|
+
/** The swapchain format (`navigator.gpu.getPreferredCanvasFormat()`). */
|
|
13
|
+
format: GPUTextureFormat;
|
|
14
|
+
}
|
|
15
|
+
export interface GPUCanvasOptions {
|
|
16
|
+
/** The pre-acquired `GPUDevice` (from `resolveRenderModeAsync`'s adapter→device). */
|
|
17
|
+
device: GPUDevice;
|
|
18
|
+
/** Alpha mode for the swapchain (premultiplied to match the WebGL2 premultiply). */
|
|
19
|
+
alphaMode?: GPUCanvasAlphaMode;
|
|
20
|
+
mode?: "live" | "capture";
|
|
21
|
+
respectReducedMotion?: boolean;
|
|
22
|
+
/** Build the pipeline + bind group on the configured context. Returns frame hooks. */
|
|
23
|
+
setup: (args: GPUCanvasSetupArgs) => GPUCanvasFrame;
|
|
24
|
+
}
|
|
25
|
+
export interface GPUCanvasHandle {
|
|
26
|
+
arm: () => void;
|
|
27
|
+
suspend: (reason?: "tab-hidden" | "off-screen" | "manual") => void;
|
|
28
|
+
resume: (reason?: "tab-hidden" | "off-screen" | "manual") => void;
|
|
29
|
+
wake: () => void;
|
|
30
|
+
renderAt: (timeSec: number) => void;
|
|
31
|
+
dispose: () => void;
|
|
32
|
+
readonly device: GPUDevice | null;
|
|
33
|
+
readonly reducedMotion: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Build a WebGPU canvas over the shared lifecycle core. The `GPUDevice` is acquired
|
|
37
|
+
* by `resolveRenderModeAsync` (the probe) and passed in — `createGPUCanvas` configures
|
|
38
|
+
* the canvas context + threads the consumer `setup` through the agnostic schedule.
|
|
39
|
+
*/
|
|
40
|
+
export declare function createGPUCanvas(canvas: HTMLCanvasElement, options: GPUCanvasOptions): GPUCanvasHandle;
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export { useGlassRenderer, createGlassFilter, destroyGlassFilter, type GlassTier, type GlassFilterState, type UseGlassRendererReturn, } from "./useGlassRenderer";
|
|
2
|
+
export { createCanvas2D } from "./canvas2d";
|
|
3
|
+
export type { Canvas2DFrame, Canvas2DHandle, Canvas2DOptions, Canvas2DSuspendReason, } from "./canvas2d";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type CanvasSuspendReason = "tab-hidden" | "off-screen" | "manual";
|
|
2
|
+
/** The per-frame hooks a backend's `buildContext` returns to the lifecycle core. */
|
|
3
|
+
export interface CanvasFrameHooks {
|
|
4
|
+
/** Draw one frame at `timeSec`. */
|
|
5
|
+
frame: (timeSec: number) => void;
|
|
6
|
+
/** Demand-gate: is there live motion to render next frame? `false` → park. */
|
|
7
|
+
shouldContinue: () => boolean;
|
|
8
|
+
/** Frame time from elapsed seconds — the consumer owns frozen/reduced-motion. */
|
|
9
|
+
time?: (elapsedSec: number) => number;
|
|
10
|
+
/** Release backend resources (program/buffers/pipelines). */
|
|
11
|
+
teardown?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface CanvasLifecycleOptions {
|
|
14
|
+
canvas: HTMLCanvasElement;
|
|
15
|
+
mode?: "live" | "capture";
|
|
16
|
+
respectReducedMotion?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Acquire the backend context + build the per-frame hooks. Called on `arm()` AND
|
|
19
|
+
* on a backend context-restore. Throws on backend-unavailable / setup failure.
|
|
20
|
+
*/
|
|
21
|
+
buildContext: () => CanvasFrameHooks;
|
|
22
|
+
/** Resize the backing store + viewport. The consumer owns its DPR policy. */
|
|
23
|
+
resize: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Bind/unbind backend-specific context-loss/restore listeners. `rebuild` re-runs
|
|
26
|
+
* `buildContext` on a fresh context + resumes the loop (the self-heal); the backend
|
|
27
|
+
* calls `markContextLost` on loss so the lifecycle NULLS its hooks + cancels the
|
|
28
|
+
* rAF (the loop parks while the surface is blank — no frame attaches to a dead gl).
|
|
29
|
+
*/
|
|
30
|
+
bindContextEvents?: (rebuild: () => void, markContextLost: () => void) => void;
|
|
31
|
+
unbindContextEvents?: () => void;
|
|
32
|
+
}
|
|
33
|
+
export interface CanvasLifecycleHandle {
|
|
34
|
+
arm: () => void;
|
|
35
|
+
suspend: (reason?: CanvasSuspendReason) => void;
|
|
36
|
+
resume: (reason?: CanvasSuspendReason) => void;
|
|
37
|
+
wake: () => void;
|
|
38
|
+
renderAt: (timeSec: number) => void;
|
|
39
|
+
dispose: () => void;
|
|
40
|
+
readonly armed: boolean;
|
|
41
|
+
readonly disposed: boolean;
|
|
42
|
+
readonly running: boolean;
|
|
43
|
+
readonly reducedMotion: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare function createCanvasLifecycle(options: CanvasLifecycleOptions): CanvasLifecycleHandle;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export declare const OETF_GLSL = "\nfloat srgbToLinearCh(float c) {\n return c <= 0.04045 ? c / 12.92 : pow((c + 0.055) / 1.055, 2.4);\n}\nvec3 srgbToLinear(vec3 c) {\n return vec3(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\n\nfloat linearToSrgbCh(float c) {\n return c <= 0.0031308 ? c * 12.92 : 1.055 * pow(c, 1.0 / 2.4) - 0.055;\n}\nvec3 linearToSrgb(vec3 c) {\n return vec3(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}";
|
|
2
2
|
export declare const FBM_ROT_GLSL = "const mat2 FBM_ROT = mat2(0.8, 0.6, -0.6, 0.8);";
|
|
3
3
|
export declare const OKLCH_MATRICES_GLSL = "\n// value.js LINEAR_SRGB_TO_LMS (constants.ts), row-major; written here as GLSL\n// columns (= the transpose) so mat3 * vec3 evaluates the row-major M\u00B7v.\nconst mat3 LINEAR_SRGB_TO_LMS = mat3(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\n\n// value.js srgbToOKLab's INLINE LMS\u2192OKLab coefficients (gamut.ts lines 295-297 \u2014\n// these differ at the ~1e-9 digit from LMS_TO_OKLAB_MATRIX; use the inline ones to\n// mirror the exact value.js path), row-major \u2192 GLSL columns.\nconst mat3 LMS_TO_OKLAB = mat3(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\n\n// value.js OKLAB_TO_LMS_COEFF (constants.ts), row-major \u2192 GLSL columns. Rows:\n// l = [1, 0.3963377774, 0.2158037573], m = [1, -0.1055613458, -0.0638541728],\n// s = [1, -0.0894841775, -1.2914855480].\nconst mat3 OKLAB_TO_LMS = mat3(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\n\n// value.js LMS_TO_LINEAR_SRGB (constants.ts), row-major \u2192 GLSL columns.\nconst mat3 LMS_TO_LINEAR_SRGB = mat3(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\n// Gamma sRGB \u2192 raw OKLab (L, a, b). Mirrors value.js srgbToOKLab.\nvec3 srgbToOklab(vec3 c) {\n vec3 lin = srgbToLinear(c);\n vec3 lms = LINEAR_SRGB_TO_LMS * lin;\n vec3 lmsCbrt = sign(lms) * pow(abs(lms), vec3(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\n\n// Raw OKLab (L, a, b) \u2192 linear sRGB. Mirrors value.js oklabToLinearSRGB.\nvec3 oklabToLinearSrgb(vec3 lab) {\n vec3 lms_ = OKLAB_TO_LMS * lab;\n vec3 lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\n\n// OKLab \u2192 OKLCh: H in RADIANS. Mirrors value.js rawOklabToOklch (which returns\n// degrees; we stay in radians and only fold to [0, 2pi)).\nvec3 oklabToOklch(vec3 lab) {\n float C = length(lab.yz);\n float H = atan(lab.z, lab.y);\n if (H < 0.0) H += 2.0 * PI;\n return vec3(lab.x, C, H);\n}\n\n// OKLCh (H radians) \u2192 OKLab. Mirrors value.js rawOklchToOklab.\nvec3 oklchToOklab(vec3 lch) {\n return vec3(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}";
|
|
4
|
+
export declare const OETF_WGSL = "\nfn srgbToLinearCh(c: f32) -> f32 {\n return select(pow((c + 0.055) / 1.055, 2.4), c / 12.92, c <= 0.04045);\n}\nfn srgbToLinear(c: vec3f) -> vec3f {\n return vec3f(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\nfn linearToSrgbCh(c: f32) -> f32 {\n return select(1.055 * pow(c, 1.0 / 2.4) - 0.055, c * 12.92, c <= 0.0031308);\n}\nfn linearToSrgb(c: vec3f) -> vec3f {\n return vec3f(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}";
|
|
5
|
+
export declare const FBM_ROT_WGSL = "const FBM_ROT: mat2x2f = mat2x2f(0.8, 0.6, -0.6, 0.8);";
|
|
6
|
+
export declare const OKLCH_MATRICES_WGSL = "\nconst LINEAR_SRGB_TO_LMS: mat3x3f = mat3x3f(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\nconst LMS_TO_OKLAB: mat3x3f = mat3x3f(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\nconst OKLAB_TO_LMS: mat3x3f = mat3x3f(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\nconst LMS_TO_LINEAR_SRGB: mat3x3f = mat3x3f(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\nfn srgbToOklab(c: vec3f) -> vec3f {\n let lin = srgbToLinear(c);\n let lms = LINEAR_SRGB_TO_LMS * lin;\n let lmsCbrt = sign(lms) * pow(abs(lms), vec3f(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\nfn oklabToLinearSrgb(lab: vec3f) -> vec3f {\n let lms_ = OKLAB_TO_LMS * lab;\n let lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\nfn oklabToOklch(lab: vec3f) -> vec3f {\n let C = length(lab.yz);\n var H = atan2(lab.z, lab.y);\n if (H < 0.0) { H = H + 2.0 * PI; }\n return vec3f(lab.x, C, H);\n}\nfn oklchToOklab(lch: vec3f) -> vec3f {\n return vec3f(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}";
|
|
@@ -19,7 +19,7 @@ export interface WebGLCanvasOptions {
|
|
|
19
19
|
mode?: "live" | "capture";
|
|
20
20
|
/**
|
|
21
21
|
* Honor `prefers-reduced-motion: reduce` by painting ONE static frame then
|
|
22
|
-
* parking the loop
|
|
22
|
+
* parking the loop. The shared lifecycle core live-monitors the query via a
|
|
23
23
|
* `matchMedia` `change` listener and re-arms (one static frame) on un-reduce.
|
|
24
24
|
* Default `true` for live mode, `false` for capture mode (a capture runtime
|
|
25
25
|
* draws deterministic frames via `renderAt`, never the live loop). A consumer
|
|
@@ -45,9 +45,9 @@ export interface WebGLCanvasHandle {
|
|
|
45
45
|
/** The live context (null before arm / after dispose / mid-loss). */
|
|
46
46
|
readonly gl: WebGL2RenderingContext | null;
|
|
47
47
|
/**
|
|
48
|
-
* The live `prefers-reduced-motion: reduce` state
|
|
49
|
-
* owns + re-monitors it; consumers read it (e.g. aurora freezes its frame
|
|
50
|
-
*
|
|
48
|
+
* The live `prefers-reduced-motion: reduce` state. The shared lifecycle core
|
|
49
|
+
* owns + re-monitors it; consumers read it (e.g. aurora freezes its frame time
|
|
50
|
+
* at the authored offset while this is `true`). `false` when
|
|
51
51
|
* `respectReducedMotion` is off.
|
|
52
52
|
*/
|
|
53
53
|
readonly reducedMotion: boolean;
|
package/dist/configurator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./useConfiguratorState-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./useConfiguratorState-B24TcgIn.js";
|
|
2
2
|
export { e as CONFIGURATOR_DENSITY_KEY, t as Configurator, i as ConfiguratorLayer, n as ConfiguratorRow, r as provideConfiguratorDensity, o as useConfiguratorState, a as useOptionalConfiguratorDensity };
|
package/dist/confirm-dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
2
|
-
import { n as t } from "./button-
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./createLucideIcon-B6uNAU9G.js";
|
|
2
|
+
import { n as t } from "./button-CAywcrhO.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
4
4
|
import { Transition as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeModels as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, withCtx as _, withKeys as v, withModifiers as y } from "vue";
|
|
5
5
|
var b = e("loader-circle", [["path", {
|
|
6
6
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/constellation";
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
3
|
+
import { t as n } from "./useCanvas2D-C31yfUGY.js";
|
|
4
|
+
import { n as r, t as i } from "./prng-wHuHlNHE.js";
|
|
5
|
+
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, openBlock as d, unref as f, useTemplateRef as p } from "vue";
|
|
6
|
+
//#region src/components/custom/constellation/constellationField.ts
|
|
7
|
+
var m = 1280, h = {
|
|
8
|
+
node: "#b4afa3",
|
|
9
|
+
nodeDim: "#cdc8bd",
|
|
10
|
+
line: "#1c1714"
|
|
11
|
+
};
|
|
12
|
+
function g(e) {
|
|
13
|
+
if (typeof window > "u") return { ...h };
|
|
14
|
+
let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n;
|
|
15
|
+
return {
|
|
16
|
+
node: n("--constellation-node", h.node),
|
|
17
|
+
nodeDim: n("--constellation-node-dim", h.nodeDim),
|
|
18
|
+
line: n("--constellation-line", h.line)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function _(e, t, n, r, i) {
|
|
22
|
+
let a = [];
|
|
23
|
+
for (let o = 0; o < t; o++) {
|
|
24
|
+
let t = e() * Math.PI * 2;
|
|
25
|
+
a.push({
|
|
26
|
+
x: e() * n,
|
|
27
|
+
y: e() * r,
|
|
28
|
+
vx: Math.cos(t) * i,
|
|
29
|
+
vy: Math.sin(t) * i,
|
|
30
|
+
r: 1.6 + e() * 1.6,
|
|
31
|
+
dim: e() < .45
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return a;
|
|
35
|
+
}
|
|
36
|
+
function v(e, t, n, r) {
|
|
37
|
+
let { nodes: i, w: a, h: o } = e;
|
|
38
|
+
for (let e = 0; e < i.length; e++) {
|
|
39
|
+
let n = i[e];
|
|
40
|
+
n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > a && (n.x = a, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > o && (n.y = o, n.vy *= -1);
|
|
41
|
+
}
|
|
42
|
+
if (r && r.x >= 0) {
|
|
43
|
+
let e = 180 * t;
|
|
44
|
+
for (let t = 0; t < i.length; t++) {
|
|
45
|
+
let a = i[t], o = r.x - a.x, s = r.y - a.y, c = Math.hypot(o, s);
|
|
46
|
+
if (c > .5 && c < e) {
|
|
47
|
+
let t = Math.hypot(a.vx, a.vy) || n, r = (1 - c / e) * .08, i = a.vx + o / c * r * t, l = a.vy + s / c * r * t, u = Math.hypot(i, l) || 1;
|
|
48
|
+
a.vx = i / u * t, a.vy = l / u * t;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function y(e, t, n, r) {
|
|
54
|
+
let { nodes: i, k: a } = t, o = n * a, s = o * o;
|
|
55
|
+
e.strokeStyle = r.line, e.lineWidth = 1 * a;
|
|
56
|
+
for (let t = 0; t < i.length; t++) {
|
|
57
|
+
let n = i[t];
|
|
58
|
+
for (let r = t + 1; r < i.length; r++) {
|
|
59
|
+
let t = i[r], a = n.x - t.x, o = n.y - t.y, c = a * a + o * o;
|
|
60
|
+
c > s || (e.globalAlpha = .17 * (1 - c / s), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(t.x, t.y), e.stroke());
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
e.globalAlpha = 1;
|
|
64
|
+
}
|
|
65
|
+
function b(e, t, n) {
|
|
66
|
+
let { nodes: r, k: i } = t;
|
|
67
|
+
for (let t = 0; t < r.length; t++) {
|
|
68
|
+
let a = r[t];
|
|
69
|
+
e.fillStyle = a.dim ? n.nodeDim : n.node, e.beginPath(), e.arc(a.x, a.y, a.r * i, 0, Math.PI * 2), e.fill();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function x(e, t, n, r, i) {
|
|
73
|
+
if (!i || i.x < 0) return;
|
|
74
|
+
let { nodes: a, k: o } = t, s = n * o, c = s * s;
|
|
75
|
+
e.strokeStyle = r.line, e.lineWidth = 1 * o;
|
|
76
|
+
for (let t of a) {
|
|
77
|
+
let n = t.x - i.x, r = t.y - i.y, a = n * n + r * r;
|
|
78
|
+
a > c || (e.globalAlpha = (1 - a / c) * .24, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
|
|
79
|
+
}
|
|
80
|
+
e.globalAlpha = .55, e.fillStyle = r.node, e.beginPath(), e.arc(i.x, i.y, 2.6 * o, 0, Math.PI * 2), e.fill(), e.globalAlpha = 1;
|
|
81
|
+
}
|
|
82
|
+
function S(e, t, n, r, i) {
|
|
83
|
+
let { k: a } = t;
|
|
84
|
+
e.strokeStyle = i.line;
|
|
85
|
+
for (let t = r.length - 1; t >= 0; t--) {
|
|
86
|
+
let i = r[t];
|
|
87
|
+
i.start < 0 && (i.start = n);
|
|
88
|
+
let o = (n - i.start) / 900;
|
|
89
|
+
if (o >= 1) {
|
|
90
|
+
r.splice(t, 1);
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
e.globalAlpha = (1 - o) * .5, e.lineWidth = 1.4 * a, e.beginPath(), e.arc(i.x, i.y, (8 + o * 130) * a, 0, Math.PI * 2), e.stroke();
|
|
94
|
+
}
|
|
95
|
+
e.globalAlpha = 1;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/custom/constellation/Constellation.vue
|
|
99
|
+
var C = /* @__PURE__ */ t(/* @__PURE__ */ c({
|
|
100
|
+
__name: "Constellation",
|
|
101
|
+
props: {
|
|
102
|
+
count: { default: 64 },
|
|
103
|
+
link: { default: 132 },
|
|
104
|
+
speed: { default: .16 },
|
|
105
|
+
seed: {},
|
|
106
|
+
pointerReactive: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !0
|
|
109
|
+
},
|
|
110
|
+
class: { type: [
|
|
111
|
+
Boolean,
|
|
112
|
+
null,
|
|
113
|
+
String,
|
|
114
|
+
Object,
|
|
115
|
+
Array
|
|
116
|
+
] },
|
|
117
|
+
drawOverlay: { type: Function }
|
|
118
|
+
},
|
|
119
|
+
setup(t, { expose: c }) {
|
|
120
|
+
let C = p("hostRef"), w = p("canvasRef"), T = a(() => t.seed === void 0 ? Math.random : r(typeof t.seed == "string" ? i(t.seed) : t.seed)), E = {
|
|
121
|
+
nodes: [],
|
|
122
|
+
canvas: null,
|
|
123
|
+
w: 0,
|
|
124
|
+
h: 0,
|
|
125
|
+
k: 1,
|
|
126
|
+
dpr: 1
|
|
127
|
+
}, D = {
|
|
128
|
+
x: -1,
|
|
129
|
+
y: -1
|
|
130
|
+
}, O = [], k = { ...h };
|
|
131
|
+
return u(() => {
|
|
132
|
+
let e = w.value;
|
|
133
|
+
if (!e) return;
|
|
134
|
+
let r = n({
|
|
135
|
+
canvas: w,
|
|
136
|
+
setup: (n) => ({ render(n, i) {
|
|
137
|
+
let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a / m;
|
|
138
|
+
if (E.canvas = e, E.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), (E.w !== a || E.h !== o) && (E.w = a, E.h = o, E.k = s, E.nodes.length || (E.nodes = _(T.value, t.count, a, o, t.speed)), k = g(e)), E.k = s, !r.reducedMotion) {
|
|
139
|
+
let e = t.pointerReactive ? D : null;
|
|
140
|
+
v(E, s, t.speed, e);
|
|
141
|
+
}
|
|
142
|
+
n.clearRect(0, 0, a, o), y(n, E, t.link, k), b(n, E, k), t.pointerReactive && !r.reducedMotion && (x(n, E, t.link, k, D), S(n, E, i, O, k)), t.drawOverlay?.(n, E, i);
|
|
143
|
+
} })
|
|
144
|
+
}), i = C.value;
|
|
145
|
+
if (t.pointerReactive && i && !r.reducedMotion) {
|
|
146
|
+
let t = (t) => {
|
|
147
|
+
let n = e.getBoundingClientRect();
|
|
148
|
+
if (!n.width || !n.height) return null;
|
|
149
|
+
let r = (t.clientX - n.left) / n.width, i = (t.clientY - n.top) / n.height;
|
|
150
|
+
return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
|
|
151
|
+
x: r * E.w,
|
|
152
|
+
y: i * E.h
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
i.addEventListener("pointermove", (e) => {
|
|
156
|
+
let n = t(e);
|
|
157
|
+
n ? (D.x = n.x, D.y = n.y) : (D.x = -1, D.y = -1), r.wake();
|
|
158
|
+
}), i.addEventListener("pointerleave", () => {
|
|
159
|
+
D.x = -1, D.y = -1;
|
|
160
|
+
}), i.addEventListener("pointerdown", (e) => {
|
|
161
|
+
let n = t(e);
|
|
162
|
+
n && O.push({
|
|
163
|
+
x: n.x,
|
|
164
|
+
y: n.y,
|
|
165
|
+
start: -1
|
|
166
|
+
}), r.wake();
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}), c({ field: E }), (n, r) => (d(), o("div", {
|
|
170
|
+
ref_key: "hostRef",
|
|
171
|
+
ref: C,
|
|
172
|
+
class: l(f(e)("constellation", t.class))
|
|
173
|
+
}, [s("canvas", {
|
|
174
|
+
ref_key: "canvasRef",
|
|
175
|
+
ref: w,
|
|
176
|
+
class: "constellation-canvas",
|
|
177
|
+
"aria-hidden": "true"
|
|
178
|
+
}, null, 512)], 2));
|
|
179
|
+
}
|
|
180
|
+
}), [["__scopeId", "data-v-3f8670a5"]]);
|
|
181
|
+
//#endregion
|
|
182
|
+
export { m as BASE_WIDTH, C as Constellation, h as DEFAULT_PALETTE, y as drawEdges, b as drawNodes, x as drawPointerWeb, S as drawRipples, g as readPalette, _ as seedField, v as stepField };
|
package/dist/context-menu.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./ContextMenuSubContent-
|
|
2
|
-
import { n as l, r as u, t as d } from "./ContextMenuContent-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./ContextMenuSubContent-BeDz7G6f.js";
|
|
2
|
+
import { n as l, r as u, t as d } from "./ContextMenuContent-DGKZX1Du.js";
|
|
3
3
|
export { u as ContextMenu, s as ContextMenuCheckboxItem, d as ContextMenuContent, t as ContextMenuItem, o as ContextMenuLabel, r as ContextMenuRadioGroup, a as ContextMenuRadioItem, n as ContextMenuSeparator, e as ContextMenuShortcut, c as ContextMenuSubContent, i as ContextMenuSubTrigger, l as ContextMenuTrigger };
|
package/dist/controls.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { t as n } from "./useGlobalDark-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
3
|
+
import { t as n } from "./useGlobalDark-yhL4Wp-s.js";
|
|
4
4
|
import { computed as r, createBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u, useAttrs as d, watchEffect as f, withCtx as p } from "vue";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/custom/controls/DarkModeToggle.vue
|
package/dist/dark.js
CHANGED
package/dist/data-table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./DataTable-
|
|
1
|
+
import { n as e, t } from "./DataTable-gtPOLZvl.js";
|
|
2
2
|
export { t as DataTable, e as DataTablePagination };
|
package/dist/dialog.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "./DialogContent-
|
|
2
|
-
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./DialogFooter-
|
|
1
|
+
import { n as e, t } from "./DialogContent-DG1YMR-P.js";
|
|
2
|
+
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./DialogFooter-BCIaDP15.js";
|
|
3
3
|
export { e as Dialog, s as DialogClose, t as DialogContent, o as DialogDescription, c as DialogFooter, n as DialogHeader, i as DialogScrollContent, r as DialogTitle, a as DialogTrigger };
|
package/dist/disco-glyph.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./DiscoGlyph-
|
|
1
|
+
import { t as e } from "./DiscoGlyph-ZoBYpoxI.js";
|
|
2
2
|
export { e as DiscoGlyph };
|