@mkbabb/glass-ui 3.7.0 → 3.8.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-q2qHCJFG.js +157 -0
- package/dist/{CommandShortcut-CY0aQTz5.js → CommandShortcut-SzWRhROC.js} +2 -2
- package/dist/{ContextMenuSubContent-BeDz7G6f.js → ContextMenuSubContent-Do977Cbf.js} +1 -1
- package/dist/{DataTable-gtPOLZvl.js → DataTable-CvlWXz65.js} +3 -3
- package/dist/DeckProgress-AVgbIULY.js +23 -0
- package/dist/{DialogContent-DG1YMR-P.js → DialogContent-DjZWT3lK.js} +2 -2
- package/dist/{DialogFooter-BCIaDP15.js → DialogFooter-Gprw8H_A.js} +1 -1
- package/dist/{DiscoGlyph-ZoBYpoxI.js → DiscoGlyph-CG0F410s.js} +1 -1
- package/dist/{GlyphFace-Ce_oe3tM.js → GlyphFace-DRjDkB0s.js} +1 -1
- package/dist/{HoverPopover-DXpOEw1P.js → HoverPopover-D56O6Ylp.js} +1 -1
- package/dist/{IconTooltip-Cu86JR4e.js → IconTooltip-D2T5nYOM.js} +1 -1
- package/dist/{MetricBadge-D-bRaQUD.js → MetricBadge-lTc002u2.js} +1 -1
- package/dist/{Notification-B5WHP3_1.js → Notification-BxK8LZMw.js} +1 -1
- package/dist/{PopoverContent-F1bWnYoh.js → PopoverContent-BId6ggf_.js} +1 -1
- package/dist/{Progress-c4vo4ALi.js → Progress-iEuD9pxG.js} +4 -4
- package/dist/{ScrollingText-BEp377U5.js → ScrollingText-CVyqxvfv.js} +2 -2
- package/dist/{SelectScrollDownButton-DAo5NmY_.js → SelectScrollDownButton-C7TRe-ep.js} +2 -2
- package/dist/{ToggleGroupItem-C-AIkBUw.js → ToggleGroupItem-CkXUcBlt.js} +1 -1
- package/dist/{UnderlineTabs-D_c1iYo-.js → UnderlineTabs-Uxn-R3MT.js} +2 -2
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +4 -2
- package/dist/api.js +1 -1
- package/dist/aurora.js +336 -405
- package/dist/canvas.d.ts +1 -0
- package/dist/canvas.js +3 -0
- package/dist/card.js +1 -1
- package/dist/carousel.js +105 -104
- package/dist/collapsible.js +1 -1
- package/dist/{color-DjJCAQ6f.js → color-DMLTunJK.js} +22 -14
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/compile-BBTRjvQS.js +158 -0
- package/dist/components/custom/aurora/composables/atoms.d.ts +90 -25
- package/dist/components/custom/aurora/composables/color.d.ts +0 -12
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +34 -23
- package/dist/components/custom/aurora/constants/presets.d.ts +10 -7
- package/dist/components/custom/aurora/constants/renderMode.d.ts +22 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- 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/mediums.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +3 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +40 -5
- package/dist/components/custom/constellation/constellationField.d.ts +110 -5
- package/dist/components/custom/constellation/index.d.ts +2 -2
- package/dist/components/custom/dock/GlassDock.vue.d.ts +12 -4
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +57 -0
- package/dist/components/custom/dock/composables/index.d.ts +3 -0
- package/dist/components/custom/dock/composables/useDockHold.d.ts +61 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -59
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +13 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +4 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +20 -5
- 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 +8 -0
- package/dist/components/ui/card/Card.vue.d.ts +23 -7
- package/dist/components/ui/card/index.d.ts +1 -1
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -4
- package/dist/components/ui/slider/Slider.vue.d.ts +3 -1
- package/dist/composables/color/index.d.ts +19 -0
- package/dist/composables/dom/index.d.ts +1 -1
- package/dist/composables/dom/useResolveTokenColor.d.ts +27 -0
- package/dist/composables/glass/canvas2d/index.d.ts +2 -1
- package/dist/composables/glass/canvas2d/resolveCanvasColor.d.ts +20 -0
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +15 -1
- package/dist/composables/glass/index.d.ts +3 -1
- package/dist/composables/glass/useSpecularTracking.d.ts +33 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +1 -1
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +4 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +1 -1
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +1 -1
- package/dist/constellation.js +144 -75
- 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/deck-progress.d.ts +1 -0
- package/dist/deck-progress.js +2 -0
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +386 -285
- package/dist/{dockContext-DLgrVWsU.js → dockContext-BKeIMmNk.js} +1 -1
- package/dist/dom.js +6 -6
- package/dist/{dropdown-menu-BWpwutt0.js → dropdown-menu-B_4bWyyG.js} +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +1 -1
- package/dist/fonts/README.md +26 -18
- package/dist/forms.js +3 -3
- package/dist/fourier-field.js +37 -37
- package/dist/glass-carousel.js +12 -7
- package/dist/glass-panel.js +7 -7
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +150 -162
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.js +353 -270
- 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/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/{keys-Dyf_uTs5.js → keys-BsYjEFOW.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/motion-core.js +65 -65
- package/dist/motion.js +3 -3
- package/dist/notification.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/resolveCanvasColor-BBiYfp8g.js +11 -0
- package/dist/responsive-tabs.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +7 -7
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-Cv1uO-Gq.js → sheet-VZEtNFvO.js} +2 -2
- package/dist/sheet.js +1 -1
- package/dist/slider-D9puf-Ko.js +142 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/components.css +1 -1
- package/dist/styles/dock-controls.css +21 -18
- package/dist/styles/dock.css +415 -224
- package/dist/styles/fonts.css +0 -25
- package/dist/styles/glass.css +100 -41
- package/dist/styles/theme.css +9 -2
- package/dist/styles/tokens.css +139 -32
- package/dist/styles/typography.css +52 -69
- package/dist/styles/utilities.css +2 -1
- package/dist/styles/view-transition.css +12 -40
- package/dist/switch.js +1 -1
- package/dist/tabs.js +5 -5
- package/dist/timeline.js +3 -3
- 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-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/{useCanvas2D-C31yfUGY.js → useCanvas2D-ClrQuZtp.js} +2 -1
- package/dist/{useConfiguratorState-B24TcgIn.js → useConfiguratorState-CMff4GzH.js} +3 -3
- package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
- package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
- package/dist/{useTextHighlight-aMPdEpkq.js → useTextHighlight-9nMW23Qb.js} +1 -1
- package/dist/{useTouchGate-YQRwyUGU.js → useTouchGate-WFyJYsth.js} +1 -1
- package/dist/vReveal-CqaCz_mC.js +44 -0
- package/dist/watercolor-dot.js +2 -2
- package/package.json +36 -4
- package/src/fonts/README.md +26 -18
- package/src/styles/dock-controls.css +21 -18
- package/src/styles/dock.css +415 -224
- package/src/styles/fonts.css +0 -25
- package/src/styles/glass.css +100 -41
- package/src/styles/theme.css +9 -2
- package/src/styles/tokens.css +139 -32
- package/src/styles/typography.css +52 -69
- package/src/styles/utilities.css +2 -1
- package/src/styles/view-transition.css +12 -40
- package/dist/CardAction-D8nSE62a.js +0 -163
- package/dist/compile-iM4IUB66.js +0 -158
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/slider-BA9wIs5e.js +0 -130
- package/dist/useViewTransition-DaN5Zrox.js +0 -21
- package/dist/vReveal-BE2TsPoR.js +0 -24
- package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
- /package/dist/{CollapsibleContent-D7UNsXQr.js → CollapsibleContent-CP9qF1v4.js} +0 -0
- /package/dist/{ContextMenuContent-DGKZX1Du.js → ContextMenuContent-DDa0v27s.js} +0 -0
- /package/dist/{HoverCardContent-Bn0UBMY9.js → HoverCardContent-B6CcQ8He.js} +0 -0
- /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{InstrumentChassis-BLJBl1BW.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
- /package/dist/{InstrumentRail-BElFwKyt.js → InstrumentRail-CUJ05YVG.js} +0 -0
- /package/dist/{Label-DBc7bKzZ.js → Label-zRfbQdCn.js} +0 -0
- /package/dist/{ModalOverlay-D1VrWyoi.js → ModalOverlay-B1GkAjNb.js} +0 -0
- /package/dist/{PaperBackdrop-DCGoGatv.js → PaperBackdrop-CqwjnfLv.js} +0 -0
- /package/dist/{SelectGroup-BcaFjvP4.js → SelectGroup-BFiod7X2.js} +0 -0
- /package/dist/{SelectSeparator-COFMJGng.js → SelectSeparator-L8pPEn4L.js} +0 -0
- /package/dist/{Separator-DZyqsCum.js → Separator-D7sD7RKj.js} +0 -0
- /package/dist/{Switch-2rsAtDfA.js → Switch-LDKLmmgx.js} +0 -0
- /package/dist/{TabsList-COqIdW7i.js → TabsList-qyHZ2lKY.js} +0 -0
- /package/dist/{Toaster-BMaeziJJ.js → Toaster-CabYEEF_.js} +0 -0
- /package/dist/{TooltipProvider-CD2IXfRv.js → TooltipProvider-CmZzCuaG.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-gLzyemvl.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
- /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-CvNyBk4o.js → createContext-B44Sah_H.js} +0 -0
- /package/dist/{menuItemVariants-B4eFR5Ix.js → menuItemVariants-DKM85SNE.js} +0 -0
- /package/dist/{presets-BKVyQfbt.js → presets-D1XPuTj-.js} +0 -0
- /package/dist/{prng-wHuHlNHE.js → prng-COGhh02-.js} +0 -0
- /package/dist/{useGlassRenderer-HebgSEgN.js → useGlassRenderer-5I0YkI4t.js} +0 -0
- /package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-D3EBWzXK.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-D3USn0yc.js → useInterval-CcLfq2WU.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-CSyxGxIX.js → useResizeObserver-CWCbk5Px.js} +0 -0
- /package/dist/{useScrollProgress-CAH8Ofwt.js → useScrollProgress-C9ysDic5.js} +0 -0
- /package/dist/{useSortable-C8ReQ50P.js → useSortable-MGAbCGVJ.js} +0 -0
- /package/dist/{useSpringMount-LRZqJTaF.js → useSpringMount-BJSHcLl3.js} +0 -0
- /package/dist/{useTimer-DEJonOZa.js → useTimer-3xqf_54b.js} +0 -0
- /package/dist/{useUserInvalidAria-CQKjEfwP.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
- /package/dist/{useViewportReady-K96m-Mdv.js → useViewportReady-RIr5Wgkh.js} +0 -0
package/dist/constellation.js
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { n as r, t as i } from "./prng-
|
|
5
|
-
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, openBlock as d,
|
|
2
|
+
import { t } from "./useCanvas2D-ClrQuZtp.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
4
|
+
import { n as r, t as i } from "./prng-COGhh02-.js";
|
|
5
|
+
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, openBlock as d, ref as f, unref as p, useTemplateRef as m } from "vue";
|
|
6
6
|
//#region src/components/custom/constellation/constellationField.ts
|
|
7
|
-
var
|
|
7
|
+
var h = 1280, g = {
|
|
8
8
|
node: "#b4afa3",
|
|
9
9
|
nodeDim: "#cdc8bd",
|
|
10
|
-
line: "#1c1714"
|
|
10
|
+
line: "#1c1714",
|
|
11
|
+
edgeAlpha: .22,
|
|
12
|
+
edgeFocusAlpha: .34,
|
|
13
|
+
alpha: .8
|
|
11
14
|
};
|
|
12
|
-
function
|
|
13
|
-
if (typeof window > "u") return { ...
|
|
14
|
-
let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n
|
|
15
|
+
function _(e) {
|
|
16
|
+
if (typeof window > "u") return { ...g };
|
|
17
|
+
let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
|
|
18
|
+
let r = t.getPropertyValue(e).trim();
|
|
19
|
+
if (!r) return n;
|
|
20
|
+
let i = Number.parseFloat(r);
|
|
21
|
+
return Number.isFinite(i) ? i : n;
|
|
22
|
+
};
|
|
15
23
|
return {
|
|
16
|
-
node: n("--constellation-node",
|
|
17
|
-
nodeDim: n("--constellation-node-dim",
|
|
18
|
-
line: n("--constellation-line",
|
|
24
|
+
node: n("--constellation-node", g.node),
|
|
25
|
+
nodeDim: n("--constellation-node-dim", g.nodeDim),
|
|
26
|
+
line: n("--constellation-line", g.line),
|
|
27
|
+
edgeAlpha: r("--constellation-edge-alpha", g.edgeAlpha),
|
|
28
|
+
edgeFocusAlpha: r("--constellation-edge-focus-alpha", g.edgeFocusAlpha),
|
|
29
|
+
alpha: r("--constellation-alpha", g.alpha)
|
|
19
30
|
};
|
|
20
31
|
}
|
|
21
|
-
function
|
|
32
|
+
function v(e, t, n, r, i) {
|
|
22
33
|
let a = [];
|
|
23
34
|
for (let o = 0; o < t; o++) {
|
|
24
35
|
let t = e() * Math.PI * 2;
|
|
@@ -33,53 +44,84 @@ function _(e, t, n, r, i) {
|
|
|
33
44
|
}
|
|
34
45
|
return a;
|
|
35
46
|
}
|
|
36
|
-
function
|
|
37
|
-
let { nodes:
|
|
38
|
-
for (let e = 0; e <
|
|
39
|
-
let n =
|
|
40
|
-
n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x >
|
|
47
|
+
function y(e, t, n, r, i = 0) {
|
|
48
|
+
let { nodes: a, w: o, h: s } = e;
|
|
49
|
+
for (let e = 0; e < a.length; e++) {
|
|
50
|
+
let n = a[e];
|
|
51
|
+
n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > o && (n.x = o, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > s && (n.y = s, n.vy *= -1);
|
|
41
52
|
}
|
|
42
53
|
if (r && r.x >= 0) {
|
|
43
54
|
let e = 180 * t;
|
|
44
|
-
for (let t = 0; t <
|
|
45
|
-
let
|
|
55
|
+
for (let t = 0; t < a.length; t++) {
|
|
56
|
+
let i = a[t], o = r.x - i.x, s = r.y - i.y, c = Math.hypot(o, s);
|
|
46
57
|
if (c > .5 && c < e) {
|
|
47
|
-
let t = Math.hypot(
|
|
48
|
-
|
|
58
|
+
let t = Math.hypot(i.vx, i.vy) || n, r = (1 - c / e) * .08, a = i.vx + o / c * r * t, l = i.vy + s / c * r * t, u = Math.hypot(a, l) || 1;
|
|
59
|
+
i.vx = a / u * t, i.vy = l / u * t;
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
62
|
}
|
|
63
|
+
T(e, i);
|
|
64
|
+
}
|
|
65
|
+
var b = .55, x = 1, S = 2 * Math.PI / b, C = .05;
|
|
66
|
+
function w(e, t, n, r = -1) {
|
|
67
|
+
let { nodes: i } = e, a = -1, o = Infinity;
|
|
68
|
+
for (let e = 0; e < i.length; e++) {
|
|
69
|
+
if (e === r) continue;
|
|
70
|
+
let s = i[e], c = s.x - t, l = s.y - n, u = c * c + l * l;
|
|
71
|
+
u < o && (o = u, a = e);
|
|
72
|
+
}
|
|
73
|
+
return a;
|
|
74
|
+
}
|
|
75
|
+
function T(e, t) {
|
|
76
|
+
let { warp: n, nodes: r } = e;
|
|
77
|
+
if (!n || n.targetIdx < 0 || n.targetIdx >= r.length || !(t > 0)) return;
|
|
78
|
+
let i = Math.min(t, C), a = r[n.targetIdx], o = -2 * x * S * n.vx - S * S * (n.x - a.x), s = -2 * x * S * n.vy - S * S * (n.y - a.y);
|
|
79
|
+
n.vx += o * i, n.vy += s * i, n.x += n.vx * i, n.y += n.vy * i;
|
|
52
80
|
}
|
|
53
|
-
function
|
|
54
|
-
let {
|
|
81
|
+
function E(e, t) {
|
|
82
|
+
let { warp: n, nodes: r } = e;
|
|
83
|
+
if (t < 0 || t >= r.length) {
|
|
84
|
+
n.targetIdx = -1, e.focalIndex = -1;
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
e.focalIndex = t, n.targetIdx = t;
|
|
88
|
+
}
|
|
89
|
+
function D(e, t, n) {
|
|
90
|
+
let r = w(e, t, n, -1);
|
|
91
|
+
if (r >= 0 && r === e.focalIndex) return e.focalIndex;
|
|
92
|
+
let i = w(e, t, n, e.focalIndex);
|
|
93
|
+
return i < 0 ? -1 : (E(e, i), i);
|
|
94
|
+
}
|
|
95
|
+
function O(e, t, n, r) {
|
|
96
|
+
let { nodes: i, k: a } = t, o = n * a, s = o * o, c = r.edgeAlpha * r.alpha;
|
|
55
97
|
e.strokeStyle = r.line, e.lineWidth = 1 * a;
|
|
56
98
|
for (let t = 0; t < i.length; t++) {
|
|
57
99
|
let n = i[t];
|
|
58
100
|
for (let r = t + 1; r < i.length; r++) {
|
|
59
|
-
let t = i[r], a = n.x - t.x, o = n.y - t.y,
|
|
60
|
-
|
|
101
|
+
let t = i[r], a = n.x - t.x, o = n.y - t.y, l = a * a + o * o;
|
|
102
|
+
l > s || (e.globalAlpha = c * (1 - l / s), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(t.x, t.y), e.stroke());
|
|
61
103
|
}
|
|
62
104
|
}
|
|
63
105
|
e.globalAlpha = 1;
|
|
64
106
|
}
|
|
65
|
-
function
|
|
107
|
+
function k(e, t, n) {
|
|
66
108
|
let { nodes: r, k: i } = t;
|
|
67
109
|
for (let t = 0; t < r.length; t++) {
|
|
68
110
|
let a = r[t];
|
|
69
111
|
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
112
|
}
|
|
71
113
|
}
|
|
72
|
-
function
|
|
114
|
+
function A(e, t, n, r, i) {
|
|
73
115
|
if (!i || i.x < 0) return;
|
|
74
|
-
let { nodes: a, k: o } = t, s = n * o, c = s * s;
|
|
116
|
+
let { nodes: a, k: o } = t, s = n * o, c = s * s, l = r.edgeFocusAlpha * r.alpha;
|
|
75
117
|
e.strokeStyle = r.line, e.lineWidth = 1 * o;
|
|
76
118
|
for (let t of a) {
|
|
77
119
|
let n = t.x - i.x, r = t.y - i.y, a = n * n + r * r;
|
|
78
|
-
a > c || (e.globalAlpha = (1 - a / c) *
|
|
120
|
+
a > c || (e.globalAlpha = (1 - a / c) * l, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
|
|
79
121
|
}
|
|
80
122
|
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
123
|
}
|
|
82
|
-
function
|
|
124
|
+
function j(e, t, n, r, i) {
|
|
83
125
|
let { k: a } = t;
|
|
84
126
|
e.strokeStyle = i.line;
|
|
85
127
|
for (let t = r.length - 1; t >= 0; t--) {
|
|
@@ -96,7 +138,7 @@ function S(e, t, n, r, i) {
|
|
|
96
138
|
}
|
|
97
139
|
//#endregion
|
|
98
140
|
//#region src/components/custom/constellation/Constellation.vue
|
|
99
|
-
var
|
|
141
|
+
var M = /* @__PURE__ */ n(/* @__PURE__ */ c({
|
|
100
142
|
__name: "Constellation",
|
|
101
143
|
props: {
|
|
102
144
|
count: { default: 64 },
|
|
@@ -107,6 +149,10 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ c({
|
|
|
107
149
|
type: Boolean,
|
|
108
150
|
default: !0
|
|
109
151
|
},
|
|
152
|
+
warpOnClick: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: !1
|
|
155
|
+
},
|
|
110
156
|
class: { type: [
|
|
111
157
|
Boolean,
|
|
112
158
|
null,
|
|
@@ -116,67 +162,90 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ c({
|
|
|
116
162
|
] },
|
|
117
163
|
drawOverlay: { type: Function }
|
|
118
164
|
},
|
|
119
|
-
setup(
|
|
120
|
-
let
|
|
165
|
+
setup(n, { expose: c }) {
|
|
166
|
+
let b = m("hostRef"), x = m("canvasRef"), S = a(() => n.seed === void 0 ? Math.random : r(typeof n.seed == "string" ? i(n.seed) : n.seed)), C = {
|
|
121
167
|
nodes: [],
|
|
122
168
|
canvas: null,
|
|
123
169
|
w: 0,
|
|
124
170
|
h: 0,
|
|
125
171
|
k: 1,
|
|
126
|
-
dpr: 1
|
|
127
|
-
|
|
172
|
+
dpr: 1,
|
|
173
|
+
focalIndex: -1,
|
|
174
|
+
warp: {
|
|
175
|
+
x: 0,
|
|
176
|
+
y: 0,
|
|
177
|
+
vx: 0,
|
|
178
|
+
vy: 0,
|
|
179
|
+
targetIdx: -1
|
|
180
|
+
}
|
|
181
|
+
}, w = {
|
|
128
182
|
x: -1,
|
|
129
183
|
y: -1
|
|
130
|
-
},
|
|
184
|
+
}, T = [], E = { ...g }, M = -1, N = f(null);
|
|
131
185
|
return u(() => {
|
|
132
|
-
let e =
|
|
186
|
+
let e = x.value;
|
|
133
187
|
if (!e) return;
|
|
134
|
-
let r =
|
|
135
|
-
canvas:
|
|
136
|
-
setup: (
|
|
137
|
-
let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a /
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
188
|
+
let r = t({
|
|
189
|
+
canvas: x,
|
|
190
|
+
setup: (t) => ({ render(t, i) {
|
|
191
|
+
let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a / h;
|
|
192
|
+
C.canvas = e, C.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), (C.w !== a || C.h !== o) && (C.w = a, C.h = o, C.k = s, C.nodes.length || (C.nodes = v(S.value, n.count, a, o, n.speed), C.warp.x = a / 2, C.warp.y = o / 2), E = _(e)), C.k = s;
|
|
193
|
+
let c = M < 0 ? 0 : (i - M) / 1e3;
|
|
194
|
+
if (M = i, !r.reducedMotion) {
|
|
195
|
+
let e = n.pointerReactive ? w : null;
|
|
196
|
+
y(C, s, n.speed, e, c);
|
|
141
197
|
}
|
|
142
|
-
|
|
198
|
+
t.clearRect(0, 0, a, o), O(t, C, n.link, E), k(t, C, E), n.pointerReactive && !r.reducedMotion && (A(t, C, n.link, E, w), j(t, C, i, T, E)), n.drawOverlay?.(t, C, i);
|
|
143
199
|
} })
|
|
144
|
-
}), i =
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
x: r * E.w,
|
|
152
|
-
y: i * E.h
|
|
153
|
-
};
|
|
200
|
+
}), i = b.value, a = (t) => {
|
|
201
|
+
let n = e.getBoundingClientRect();
|
|
202
|
+
if (!n.width || !n.height) return null;
|
|
203
|
+
let r = (t.clientX - n.left) / n.width, i = (t.clientY - n.top) / n.height;
|
|
204
|
+
return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
|
|
205
|
+
x: r * C.w,
|
|
206
|
+
y: i * C.h
|
|
154
207
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
});
|
|
208
|
+
};
|
|
209
|
+
N.value = a, n.pointerReactive && i && !r.reducedMotion && (i.addEventListener("pointermove", (e) => {
|
|
210
|
+
let t = a(e);
|
|
211
|
+
t ? (w.x = t.x, w.y = t.y) : (w.x = -1, w.y = -1), r.wake();
|
|
212
|
+
}), i.addEventListener("pointerleave", () => {
|
|
213
|
+
w.x = -1, w.y = -1;
|
|
214
|
+
}), i.addEventListener("pointerdown", (e) => {
|
|
215
|
+
let t = a(e);
|
|
216
|
+
t && T.push({
|
|
217
|
+
x: t.x,
|
|
218
|
+
y: t.y,
|
|
219
|
+
start: -1
|
|
220
|
+
}), r.wake();
|
|
221
|
+
})), n.warpOnClick && i && !r.reducedMotion && i.addEventListener("pointerdown", (e) => {
|
|
222
|
+
let t = a(e);
|
|
223
|
+
t && (D(C, t.x, t.y), r.wake());
|
|
224
|
+
});
|
|
225
|
+
}), c({
|
|
226
|
+
field: C,
|
|
227
|
+
warpTo(e, t) {
|
|
228
|
+
if (typeof e == "number" && typeof t == "number") {
|
|
229
|
+
let n = N.value?.({
|
|
230
|
+
clientX: e,
|
|
231
|
+
clientY: t
|
|
232
|
+
});
|
|
233
|
+
return n ? D(C, n.x, n.y) : -1;
|
|
234
|
+
}
|
|
235
|
+
let n = e;
|
|
236
|
+
return D(C, n.x, n.y);
|
|
168
237
|
}
|
|
169
|
-
}),
|
|
238
|
+
}), (t, r) => (d(), o("div", {
|
|
170
239
|
ref_key: "hostRef",
|
|
171
|
-
ref:
|
|
172
|
-
class: l(
|
|
240
|
+
ref: b,
|
|
241
|
+
class: l(p(e)("constellation", n.class))
|
|
173
242
|
}, [s("canvas", {
|
|
174
243
|
ref_key: "canvasRef",
|
|
175
|
-
ref:
|
|
244
|
+
ref: x,
|
|
176
245
|
class: "constellation-canvas",
|
|
177
246
|
"aria-hidden": "true"
|
|
178
247
|
}, null, 512)], 2));
|
|
179
248
|
}
|
|
180
|
-
}), [["__scopeId", "data-v-
|
|
249
|
+
}), [["__scopeId", "data-v-63dd743d"]]);
|
|
181
250
|
//#endregion
|
|
182
|
-
export {
|
|
251
|
+
export { h as BASE_WIDTH, M as Constellation, g as DEFAULT_PALETTE, O as drawEdges, k as drawNodes, A as drawPointerWeb, j as drawRipples, w as nearestNode, _ as readPalette, v as seedField, E as setWarpTarget, y as stepField, T as warpStep, D as warpTo };
|
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-Do977Cbf.js";
|
|
2
|
+
import { n as l, r as u, t as d } from "./ContextMenuContent-DDa0v27s.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-ok8pgSl5.js";
|
|
3
|
+
import { t as n } from "./useGlobalDark-D3EBWzXK.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-CvlWXz65.js";
|
|
2
2
|
export { t as DataTable, e as DataTablePagination };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/deck-progress";
|
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-DjZWT3lK.js";
|
|
2
|
+
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./DialogFooter-Gprw8H_A.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-CG0F410s.js";
|
|
2
2
|
export { e as DiscoGlyph };
|