@brett_lamy/ui 5.1.0 → 5.2.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/components/adaptive-pane.d.ts +12 -1
- package/dist/components/adaptive-pane.d.ts.map +1 -1
- package/dist/components/adaptive-pane.js +122 -19
- package/dist/components/avatar.d.ts +47 -5
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/avatar.js +101 -14
- package/dist/components/breadcrumb.d.ts +87 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +312 -0
- package/dist/components/color-picker.js +15 -15
- package/dist/components/command-menu.js +13 -13
- package/dist/components/credenza.d.ts +5 -2
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.js +62 -60
- package/dist/components/date-picker.js +9 -9
- package/dist/components/edge-drawer.d.ts +7 -2
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.js +7 -4
- package/dist/components/filmstrip.d.ts +19 -0
- package/dist/components/filmstrip.d.ts.map +1 -0
- package/dist/components/filmstrip.js +59 -0
- package/dist/components/filter-input.js +4 -4
- package/dist/components/filter.js +62 -62
- package/dist/components/font-picker.d.ts +67 -0
- package/dist/components/font-picker.d.ts.map +1 -0
- package/dist/components/font-picker.js +373 -0
- package/dist/components/markdown-editor.d.ts +11 -0
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +72 -65
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +75 -65
- package/dist/components/number-morph.d.ts.map +1 -1
- package/dist/components/number-morph.js +5 -5
- package/dist/components/replay-preview.d.ts +2 -2
- package/dist/components/replay-preview.d.ts.map +1 -1
- package/dist/components/replay-preview.js +3 -3
- package/dist/components/result-table.js +10 -10
- package/dist/components/schema-tree.d.ts.map +1 -1
- package/dist/components/schema-tree.js +62 -131
- package/dist/components/segmented.d.ts +1 -1
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +8 -4
- package/dist/components/split-view.d.ts +3 -1
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.js +211 -211
- package/dist/components/spreadsheet.d.ts +58 -0
- package/dist/components/spreadsheet.d.ts.map +1 -0
- package/dist/components/spreadsheet.js +804 -0
- package/dist/components/sql-console.d.ts.map +1 -1
- package/dist/components/sql-console.js +2 -1
- package/dist/components/sql-editor.js +8 -8
- package/dist/components/stl-viewer.d.ts +3 -0
- package/dist/components/stl-viewer.d.ts.map +1 -0
- package/dist/components/stl-viewer.js +2 -0
- package/dist/components/strudel-player.d.ts +3 -0
- package/dist/components/strudel-player.d.ts.map +1 -0
- package/dist/components/strudel-player.js +2 -0
- package/dist/components/strudel-rack.d.ts +3 -0
- package/dist/components/strudel-rack.d.ts.map +1 -0
- package/dist/components/strudel-rack.js +2 -0
- package/dist/components/strudel-syntax.d.ts +3 -0
- package/dist/components/strudel-syntax.d.ts.map +1 -0
- package/dist/components/strudel-syntax.js +2 -0
- package/dist/components/tabs.js +3 -3
- package/dist/components/tailscale-menu.d.ts +69 -0
- package/dist/components/tailscale-menu.d.ts.map +1 -0
- package/dist/components/tailscale-menu.js +202 -0
- package/dist/components/toggle-group.js +3 -3
- package/dist/components/tree.d.ts +82 -0
- package/dist/components/tree.d.ts.map +1 -0
- package/dist/components/tree.js +494 -0
- package/dist/components/video-preview.d.ts +46 -0
- package/dist/components/video-preview.d.ts.map +1 -0
- package/dist/components/video-preview.js +197 -0
- package/dist/components/video-timeline.d.ts +64 -0
- package/dist/components/video-timeline.d.ts.map +1 -0
- package/dist/components/video-timeline.js +479 -0
- package/dist/components/waveform.d.ts +23 -0
- package/dist/components/waveform.d.ts.map +1 -0
- package/dist/components/waveform.js +56 -0
- package/dist/ffmpeg-worker.js +118 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +48 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +145 -121
- package/dist/lib/csv.d.ts +28 -0
- package/dist/lib/csv.d.ts.map +1 -0
- package/dist/lib/csv.js +90 -0
- package/dist/lib/drawer-swipe.d.ts +31 -0
- package/dist/lib/drawer-swipe.d.ts.map +1 -0
- package/dist/lib/drawer-swipe.js +68 -0
- package/dist/lib/ffmpeg/index.d.ts +117 -0
- package/dist/lib/ffmpeg/index.d.ts.map +1 -0
- package/dist/lib/ffmpeg/index.js +204 -0
- package/dist/lib/ffmpeg/media.d.ts +39 -0
- package/dist/lib/ffmpeg/media.d.ts.map +1 -0
- package/dist/lib/ffmpeg/media.js +100 -0
- package/dist/lib/ffmpeg/react.d.ts +51 -0
- package/dist/lib/ffmpeg/react.d.ts.map +1 -0
- package/dist/lib/ffmpeg/react.js +113 -0
- package/dist/lib/google-fonts.d.ts +47 -0
- package/dist/lib/google-fonts.d.ts.map +1 -0
- package/dist/lib/google-fonts.generated.d.ts +2 -0
- package/dist/lib/google-fonts.generated.d.ts.map +1 -0
- package/dist/lib/google-fonts.generated.js +1925 -0
- package/dist/lib/google-fonts.js +112 -0
- package/dist/lib/icon.d.ts +6 -1
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.js +2 -0
- package/dist/lib/playback.d.ts +34 -0
- package/dist/lib/playback.d.ts.map +1 -0
- package/dist/lib/playback.js +79 -0
- package/dist/lib/spreadsheet-gpu.d.ts +9 -0
- package/dist/lib/spreadsheet-gpu.d.ts.map +1 -0
- package/dist/lib/spreadsheet-gpu.js +237 -0
- package/dist/lib/spreadsheet.d.ts +82 -0
- package/dist/lib/spreadsheet.d.ts.map +1 -0
- package/dist/lib/spreadsheet.js +162 -0
- package/dist/lib/syntax.d.ts +2 -6
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/syntax.js +53 -75
- package/dist/lib/tailscale-connect.d.ts +33 -0
- package/dist/lib/tailscale-connect.d.ts.map +1 -1
- package/dist/lib/tailscale-connect.js +221 -42
- package/dist/lib/tailscale-exit.d.ts +19 -0
- package/dist/lib/tailscale-exit.d.ts.map +1 -0
- package/dist/lib/tailscale-exit.js +14 -0
- package/dist/lib/tailscale-fake.d.ts +8 -0
- package/dist/lib/tailscale-fake.d.ts.map +1 -1
- package/dist/lib/tailscale-fake.js +51 -26
- package/dist/lib/tailscale-roots.d.ts +3 -0
- package/dist/lib/tailscale-roots.d.ts.map +1 -0
- package/dist/lib/tailscale-roots.js +4 -0
- package/dist/lib/tailscale.d.ts +23 -0
- package/dist/lib/tailscale.d.ts.map +1 -1
- package/dist/lib/tailscale.js +156 -94
- package/dist/lib/title-flight.d.ts +4 -0
- package/dist/lib/title-flight.d.ts.map +1 -1
- package/dist/lib/title-flight.js +15 -12
- package/dist/lib/tokens.generated.d.ts +2 -2
- package/dist/lib/tokens.generated.d.ts.map +1 -1
- package/dist/lib/tokens.generated.js +2 -2
- package/dist/lib/video-render.d.ts +38 -0
- package/dist/lib/video-render.d.ts.map +1 -0
- package/dist/lib/video-render.js +147 -0
- package/dist/lib/video-timeline.d.ts +154 -0
- package/dist/lib/video-timeline.d.ts.map +1 -0
- package/dist/lib/video-timeline.js +265 -0
- package/dist/lib/webgpu.d.ts +26 -0
- package/dist/lib/webgpu.d.ts.map +1 -0
- package/dist/lib/webgpu.js +28 -0
- package/dist/theme.css +3 -0
- package/package.json +8 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { GOOGLE_FONT_ROWS as e } from "./google-fonts.generated.js";
|
|
3
|
+
import { useEffect as t, useState as n } from "react";
|
|
4
|
+
//#region src/lib/google-fonts.ts
|
|
5
|
+
var r = [
|
|
6
|
+
{
|
|
7
|
+
id: "sans-serif",
|
|
8
|
+
label: "Sans Serif"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: "serif",
|
|
12
|
+
label: "Serif"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: "display",
|
|
16
|
+
label: "Display"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: "handwriting",
|
|
20
|
+
label: "Handwriting"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "monospace",
|
|
24
|
+
label: "Monospace"
|
|
25
|
+
}
|
|
26
|
+
], i = e.map(([e, t, n, i]) => {
|
|
27
|
+
let a = /^(\d+)\.\.(\d+)$/.exec(n), o = a ? Array.from({ length: (Number(a[2]) - Number(a[1])) / 100 + 1 }, (e, t) => Number(a[1]) + t * 100) : n.split(",").map(Number);
|
|
28
|
+
return {
|
|
29
|
+
family: e,
|
|
30
|
+
category: r[t]?.id ?? "sans-serif",
|
|
31
|
+
weights: o,
|
|
32
|
+
variable: !!a,
|
|
33
|
+
italic: !!i
|
|
34
|
+
};
|
|
35
|
+
}), a = new Map(i.map((e) => [e.family.toLowerCase(), e])), o = (e) => a.get(e.trim().toLowerCase()), s = {
|
|
36
|
+
"sans-serif": "ui-sans-serif, system-ui, sans-serif",
|
|
37
|
+
serif: "ui-serif, Georgia, serif",
|
|
38
|
+
display: "ui-sans-serif, system-ui, sans-serif",
|
|
39
|
+
handwriting: "cursive",
|
|
40
|
+
monospace: "ui-monospace, SFMono-Regular, Menlo, monospace"
|
|
41
|
+
}, c = (e) => (typeof e == "string" ? [e] : e ?? []).map((e) => e.trim()).filter(Boolean);
|
|
42
|
+
function l(e, t) {
|
|
43
|
+
let n = c(e);
|
|
44
|
+
if (n.length) return `${n.map((e) => `"${e.replace(/"/g, "")}"`).join(", ")}, ${s[t ?? o(n[0])?.category ?? "sans-serif"]}`;
|
|
45
|
+
}
|
|
46
|
+
var u = [
|
|
47
|
+
100,
|
|
48
|
+
200,
|
|
49
|
+
300,
|
|
50
|
+
400,
|
|
51
|
+
500,
|
|
52
|
+
600,
|
|
53
|
+
700,
|
|
54
|
+
800,
|
|
55
|
+
900
|
|
56
|
+
];
|
|
57
|
+
function d(e, { weights: t, italic: n, text: r } = {}) {
|
|
58
|
+
let i = e.trim().replace(/\s+/g, "+"), a = "";
|
|
59
|
+
if (t?.length || n) {
|
|
60
|
+
let e = [...new Set(t?.length ? t : u)].sort((e, t) => e - t);
|
|
61
|
+
a = n ? `:ital,wght@${[0, 1].flatMap((t) => e.map((e) => `${t},${e}`)).join(";")}` : `:wght@${e.join(";")}`;
|
|
62
|
+
}
|
|
63
|
+
return `https://fonts.googleapis.com/css2?family=${i}${a}&display=swap${r ? `&text=${encodeURIComponent(r)}` : ""}`;
|
|
64
|
+
}
|
|
65
|
+
var f = /* @__PURE__ */ new Map();
|
|
66
|
+
function p(e, t = {}) {
|
|
67
|
+
let n = e.trim();
|
|
68
|
+
if (!n || typeof document > "u") return Promise.resolve(!1);
|
|
69
|
+
let r = o(n), i = t.weights ?? (t.text ? void 0 : r?.weights ?? u), a = !!t.italic && r?.italic !== !1, s = d(n, {
|
|
70
|
+
...t,
|
|
71
|
+
weights: i,
|
|
72
|
+
italic: a
|
|
73
|
+
}), c = f.get(s);
|
|
74
|
+
return c || (c = (async () => {
|
|
75
|
+
try {
|
|
76
|
+
let e = await fetch(s);
|
|
77
|
+
if (!e.ok && (a || i) && (e = await fetch(d(n, { text: t.text }))), !e.ok) return !1;
|
|
78
|
+
let r = document.createElement("style");
|
|
79
|
+
return r.dataset.googleFont = n, r.textContent = await e.text(), document.head.append(r), await document.fonts.load(`${i?.includes(400) === !1 ? i[0] : 400} 16px "${n}"`, t.text || void 0), !0;
|
|
80
|
+
} catch {
|
|
81
|
+
return !1;
|
|
82
|
+
}
|
|
83
|
+
})(), f.set(s, c), c.then((e) => {
|
|
84
|
+
e || f.delete(s);
|
|
85
|
+
})), c;
|
|
86
|
+
}
|
|
87
|
+
function m(e, r = {}) {
|
|
88
|
+
let { weights: i, italic: a, text: o } = r, s = c(e), l = s.map((e) => d(e, {
|
|
89
|
+
weights: i,
|
|
90
|
+
italic: a,
|
|
91
|
+
text: o
|
|
92
|
+
})).join(" "), [u, f] = n(null);
|
|
93
|
+
return t(() => {
|
|
94
|
+
if (!l) return;
|
|
95
|
+
let e = !0;
|
|
96
|
+
return Promise.all(s.map((e) => p(e, {
|
|
97
|
+
weights: i,
|
|
98
|
+
italic: a,
|
|
99
|
+
text: o
|
|
100
|
+
}))).then((t) => {
|
|
101
|
+
e && f({
|
|
102
|
+
key: l,
|
|
103
|
+
ok: t.every(Boolean)
|
|
104
|
+
});
|
|
105
|
+
}), () => {
|
|
106
|
+
e = !1;
|
|
107
|
+
};
|
|
108
|
+
}, [l]), l ? u?.key === l ? u.ok ? "ready" : "missing" : "loading" : "idle";
|
|
109
|
+
}
|
|
110
|
+
var h = (e, t) => m(e, t) === "ready";
|
|
111
|
+
//#endregion
|
|
112
|
+
export { r as FONT_CATEGORIES, i as GOOGLE_FONTS, o as findGoogleFont, l as fontStack, d as googleFontsUrl, p as loadGoogleFont, h as useGoogleFont, m as useGoogleFontStatus };
|
package/dist/lib/icon.d.ts
CHANGED
|
@@ -1193,6 +1193,11 @@ declare const SHAPES: {
|
|
|
1193
1193
|
}, {
|
|
1194
1194
|
readonly d: "M4.6 12.4L12 16.6l7.4-4.2";
|
|
1195
1195
|
}];
|
|
1196
|
+
readonly cube: readonly [{
|
|
1197
|
+
readonly d: "M12 3.4l7.6 4.2v8.8L12 20.6l-7.6-4.2V7.6z";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly d: "M4.6 7.7L12 11.9l7.4-4.2M12 11.9v8.6";
|
|
1200
|
+
}];
|
|
1196
1201
|
readonly envelope: readonly [{
|
|
1197
1202
|
readonly r: readonly [3.5, 5.5, 17, 13, 2];
|
|
1198
1203
|
}, {
|
|
@@ -1625,7 +1630,7 @@ export declare const IC: Readonly<Record<IconName, readonly IconShape[]>> & {
|
|
|
1625
1630
|
readonly [name: string]: readonly IconShape[] | undefined;
|
|
1626
1631
|
};
|
|
1627
1632
|
/** Canonical names, sorted. */
|
|
1628
|
-
export declare const ICON_NAMES: ("number" | "sidebar" | "warning" | "link" | "tray" | "at" | "grid" | "repeat" | "power" | "stop" | "menu" | "table" | "video" | "circle" | "key" | "copy" | "ellipsis" | "list" | "note" | "sidebar-left" | "sidebar-right" | "panel-bottom" | "square-pencil" | "magnifier" | "folder-closed" | "folder-plus" | "chevron-down-wide" | "chevron-right-wide" | "chevron-up-wide" | "xmark-large" | "gearshape" | "terminal" | "network" | "square-on-square" | "doc-text" | "robot" | "arrows-expand" | "arrows-collapse" | "arrow-up-compact" | "stop-square" | "branch" | "bin" | "rectangle-split" | "checkmark" | "checkmark-circle" | "clock-dial" | "lock-rounded" | "asterisk" | "doc-corner" | "bubble-left" | "arrow-down-to-line" | "line-3-horizontal" | "play-outline" | "paperclip-diagonal" | "star-sharp" | "grip-dots" | "chevron-right-compact" | "text-bubble" | "bell-simple" | "bubble-oval" | "bolt-simple" | "sparkle" | "people-simple" | "pencil-tip" | "highlighter" | "pencil-sketch" | "eraser" | "arrow-uturn-backward" | "arrow-uturn-forward" | "trash-slim" | "play" | "pause" | "forward" | "backward" | "play-circle" | "play-circle-fill" | "shuffle" | "repeat-1" | "quote-bubble" | "queue" | "airplay" | "speaker" | "speaker-fill" | "speaker-low" | "speaker-low-fill" | "speaker-high" | "speaker-high-fill" | "speaker-slash" | "speaker-slash-fill" | "mic" | "mic-fill" | "music-note" | "music-notes" | "music-note-list" | "books-vertical" | "e-square-fill" | "waveform" | "radiowaves" | "headphones" | "photo" | "camera" | "camera-fill" | "video-fill" | "lock" | "lock-fill" | "lock-open" | "lock-open-fill" | "lock-rotation" | "key-fill" | "passkey" | "shield" | "shield-fill" | "shield-check" | "shield-check-fill" | "shield-exclamation" | "eye" | "eye-slash" | "faceid" | "qrcode" | "warning-fill" | "wifi" | "bluetooth" | "antenna" | "cellularbars" | "hotspot" | "vpn" | "airplane" | "battery" | "battery-full" | "battery-empty" | "bolt" | "bolt-fill" | "hourglass" | "hand" | "moon" | "moon-fill" | "bell" | "bell-fill" | "bell-slash" | "gear" | "sliders" | "sun" | "sun-fill" | "accessibility" | "sos" | "flower" | "location" | "location-fill" | "cloud" | "cloud-fill" | "iphone" | "laptop" | "applewatch" | "keyboard" | "internaldrive" | "switch-2" | "car" | "bed" | "cart" | "flag" | "flag-fill" | "tray-fill" | "archivebox" | "xmark-bin" | "archivebox-fill" | "trash" | "trash-fill" | "folder" | "folder-fill" | "folder-badge-plus" | "folder-badge-gear" | "pushpin" | "pushpin-fill" | "pushpin-slash" | "mappin" | "mappin-fill" | "checklist" | "grid-fill" | "wallet" | "share" | "download" | "compose" | "pencil" | "paperclip" | "calendar" | "calendar-fill" | "clock" | "clock-fill" | "tag" | "tag-fill" | "doc" | "bookmark" | "bookmark-fill" | "book" | "briefcase" | "briefcase-fill" | "gift" | "chart-bar" | "textformat" | "filter-circle" | "filter-circle-fill" | "layers" | "envelope" | "envelope-fill" | "envelope-open" | "envelope-badge" | "paperplane" | "paperplane-fill" | "reply" | "reply-all" | "arrow-forward" | "phone-fill" | "message-fill" | "bubble" | "person" | "person-fill" | "person-bust" | "person-bust-fill" | "people" | "people-fill" | "globe" | "chevron-right" | "chevron-left" | "chevron-up" | "chevron-down" | "chevron-up-down" | "arrow-right" | "arrow-left" | "arrow-up" | "arrow-down" | "arrow-up-right" | "arrow-clockwise" | "arrow-counterclockwise" | "arrow-up-circle" | "arrow-down-circle" | "house" | "house-fill" | "magnifyingglass" | "ellipsis-circle" | "ellipsis-circle-fill" | "plus" | "minus" | "xmark" | "check" | "circle-fill" | "check-circle" | "check-circle-fill" | "xmark-circle" | "xmark-circle-fill" | "plus-circle" | "plus-circle-fill" | "minus-circle" | "minus-circle-fill" | "info" | "info-fill" | "exclamation-circle" | "exclamation-circle-fill" | "question-circle" | "question-circle-fill" | "star" | "star-fill" | "heart" | "heart-fill" | "pulse" | "drop")[];
|
|
1633
|
+
export declare const ICON_NAMES: ("number" | "sidebar" | "warning" | "link" | "tray" | "at" | "grid" | "repeat" | "power" | "stop" | "menu" | "table" | "video" | "circle" | "key" | "copy" | "ellipsis" | "list" | "note" | "sidebar-left" | "sidebar-right" | "panel-bottom" | "square-pencil" | "magnifier" | "folder-closed" | "folder-plus" | "chevron-down-wide" | "chevron-right-wide" | "chevron-up-wide" | "xmark-large" | "gearshape" | "terminal" | "network" | "square-on-square" | "doc-text" | "robot" | "arrows-expand" | "arrows-collapse" | "arrow-up-compact" | "stop-square" | "branch" | "bin" | "rectangle-split" | "checkmark" | "checkmark-circle" | "clock-dial" | "lock-rounded" | "asterisk" | "doc-corner" | "bubble-left" | "arrow-down-to-line" | "line-3-horizontal" | "play-outline" | "paperclip-diagonal" | "star-sharp" | "grip-dots" | "chevron-right-compact" | "text-bubble" | "bell-simple" | "bubble-oval" | "bolt-simple" | "sparkle" | "people-simple" | "pencil-tip" | "highlighter" | "pencil-sketch" | "eraser" | "arrow-uturn-backward" | "arrow-uturn-forward" | "trash-slim" | "play" | "pause" | "forward" | "backward" | "play-circle" | "play-circle-fill" | "shuffle" | "repeat-1" | "quote-bubble" | "queue" | "airplay" | "speaker" | "speaker-fill" | "speaker-low" | "speaker-low-fill" | "speaker-high" | "speaker-high-fill" | "speaker-slash" | "speaker-slash-fill" | "mic" | "mic-fill" | "music-note" | "music-notes" | "music-note-list" | "books-vertical" | "e-square-fill" | "waveform" | "radiowaves" | "headphones" | "photo" | "camera" | "camera-fill" | "video-fill" | "lock" | "lock-fill" | "lock-open" | "lock-open-fill" | "lock-rotation" | "key-fill" | "passkey" | "shield" | "shield-fill" | "shield-check" | "shield-check-fill" | "shield-exclamation" | "eye" | "eye-slash" | "faceid" | "qrcode" | "warning-fill" | "wifi" | "bluetooth" | "antenna" | "cellularbars" | "hotspot" | "vpn" | "airplane" | "battery" | "battery-full" | "battery-empty" | "bolt" | "bolt-fill" | "hourglass" | "hand" | "moon" | "moon-fill" | "bell" | "bell-fill" | "bell-slash" | "gear" | "sliders" | "sun" | "sun-fill" | "accessibility" | "sos" | "flower" | "location" | "location-fill" | "cloud" | "cloud-fill" | "iphone" | "laptop" | "applewatch" | "keyboard" | "internaldrive" | "switch-2" | "car" | "bed" | "cart" | "flag" | "flag-fill" | "tray-fill" | "archivebox" | "xmark-bin" | "archivebox-fill" | "trash" | "trash-fill" | "folder" | "folder-fill" | "folder-badge-plus" | "folder-badge-gear" | "pushpin" | "pushpin-fill" | "pushpin-slash" | "mappin" | "mappin-fill" | "checklist" | "grid-fill" | "wallet" | "share" | "download" | "compose" | "pencil" | "paperclip" | "calendar" | "calendar-fill" | "clock" | "clock-fill" | "tag" | "tag-fill" | "doc" | "bookmark" | "bookmark-fill" | "book" | "briefcase" | "briefcase-fill" | "gift" | "chart-bar" | "textformat" | "filter-circle" | "filter-circle-fill" | "layers" | "cube" | "envelope" | "envelope-fill" | "envelope-open" | "envelope-badge" | "paperplane" | "paperplane-fill" | "reply" | "reply-all" | "arrow-forward" | "phone-fill" | "message-fill" | "bubble" | "person" | "person-fill" | "person-bust" | "person-bust-fill" | "people" | "people-fill" | "globe" | "chevron-right" | "chevron-left" | "chevron-up" | "chevron-down" | "chevron-up-down" | "arrow-right" | "arrow-left" | "arrow-up" | "arrow-down" | "arrow-up-right" | "arrow-clockwise" | "arrow-counterclockwise" | "arrow-up-circle" | "arrow-down-circle" | "house" | "house-fill" | "magnifyingglass" | "ellipsis-circle" | "ellipsis-circle-fill" | "plus" | "minus" | "xmark" | "check" | "circle-fill" | "check-circle" | "check-circle-fill" | "xmark-circle" | "xmark-circle-fill" | "plus-circle" | "plus-circle-fill" | "minus-circle" | "minus-circle-fill" | "info" | "info-fill" | "exclamation-circle" | "exclamation-circle-fill" | "question-circle" | "question-circle-fill" | "star" | "star-fill" | "heart" | "heart-fill" | "pulse" | "drop")[];
|
|
1629
1634
|
export type IconCategory = 'media' | 'security' | 'system' | 'productivity' | 'communication' | 'navigation' | 'status';
|
|
1630
1635
|
/** Canonical names grouped for galleries, in drawing order (the grouping follows the source above). */
|
|
1631
1636
|
export declare const ICON_CATEGORIES: Record<IconCategory, readonly IconCanonicalName[]>;
|
package/dist/lib/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/lib/icon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AA0DF,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/lib/icon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AA0DF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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{ d: "M4.6 12.4L12 16.6l7.4-4.2" }],
|
|
1123
|
+
cube: [{ d: "M12 3.4l7.6 4.2v8.8L12 20.6l-7.6-4.2V7.6z" }, { d: "M4.6 7.7L12 11.9l7.4-4.2M12 11.9v8.6" }],
|
|
1123
1124
|
envelope: [{ r: H }, { d: U }],
|
|
1124
1125
|
"envelope-fill": [{
|
|
1125
1126
|
r: H,
|
|
@@ -1649,6 +1650,7 @@ var c = { c: [
|
|
|
1649
1650
|
"filter-circle": "filter sort",
|
|
1650
1651
|
"filter-circle-fill": "filter sort active",
|
|
1651
1652
|
layers: "stack square stack copy",
|
|
1653
|
+
cube: "3d model box stl object",
|
|
1652
1654
|
envelope: "mail email message",
|
|
1653
1655
|
"envelope-open": "read mail",
|
|
1654
1656
|
"envelope-badge": "unread mail",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface PlaybackState {
|
|
2
|
+
/** Seconds. */
|
|
3
|
+
time: number;
|
|
4
|
+
playing: boolean;
|
|
5
|
+
/** Seconds; the clock stops (or loops) here. */
|
|
6
|
+
duration: number;
|
|
7
|
+
/** Times real time. */
|
|
8
|
+
rate: number;
|
|
9
|
+
loop: boolean;
|
|
10
|
+
/** A pointer is dragging the time. */
|
|
11
|
+
scrubbing: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface Playback {
|
|
14
|
+
getState(): PlaybackState;
|
|
15
|
+
subscribe(listener: () => void): () => void;
|
|
16
|
+
play(): void;
|
|
17
|
+
pause(): void;
|
|
18
|
+
toggle(): void;
|
|
19
|
+
/** Moves the time (clamped to 0…duration). */
|
|
20
|
+
seek(time: number): void;
|
|
21
|
+
/** Moves the time by `delta` seconds. */
|
|
22
|
+
step(delta: number): void;
|
|
23
|
+
setDuration(duration: number): void;
|
|
24
|
+
setRate(rate: number): void;
|
|
25
|
+
setLoop(loop: boolean): void;
|
|
26
|
+
setScrubbing(scrubbing: boolean): void;
|
|
27
|
+
}
|
|
28
|
+
/** A clock (paused, at `initial.time`); `playing` and `scrubbing` in `initial` are ignored: call `play()`. */
|
|
29
|
+
export declare function createPlayback(initial?: Partial<PlaybackState>): Playback;
|
|
30
|
+
/** A clock that lives as long as the component. */
|
|
31
|
+
export declare function usePlaybackClock(initial?: Partial<PlaybackState>): Playback;
|
|
32
|
+
/** Re-renders when the selected part of the clock's state changes: `usePlaybackState(clock, (s) => s.playing)`. */
|
|
33
|
+
export declare function usePlaybackState<T = PlaybackState>(clock: Playback, select?: (s: PlaybackState) => T): T;
|
|
34
|
+
//# sourceMappingURL=playback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playback.d.ts","sourceRoot":"","sources":["../../src/lib/playback.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,eAAe;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,IAAI,aAAa,CAAC;IAC1B,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;IAC5C,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;IACd,MAAM,IAAI,IAAI,CAAC;IACf,8CAA8C;IAC9C,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yCAAyC;IACzC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CACxC;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM,GAAG,QAAQ,CAyD7E;AAED,mDAAmD;AACnD,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,QAAQ,CAG3E;AAED,mHAAmH;AACnH,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAE,CAAC,CAAC,EAAE,aAAa,KAAK,CAAiB,GAAG,CAAC,CAEvH"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as e, useSyncExternalStore as t } from "react";
|
|
3
|
+
//#region src/lib/playback.ts
|
|
4
|
+
function n(e = {}) {
|
|
5
|
+
let t = {
|
|
6
|
+
time: 0,
|
|
7
|
+
duration: 0,
|
|
8
|
+
rate: 1,
|
|
9
|
+
loop: !1,
|
|
10
|
+
...e,
|
|
11
|
+
playing: !1,
|
|
12
|
+
scrubbing: !1
|
|
13
|
+
}, n = /* @__PURE__ */ new Set(), r = 0, i = 0, a = (e) => {
|
|
14
|
+
t = {
|
|
15
|
+
...t,
|
|
16
|
+
...e
|
|
17
|
+
}, n.forEach((e) => e());
|
|
18
|
+
}, o = () => {
|
|
19
|
+
r && cancelAnimationFrame(r), r = 0;
|
|
20
|
+
}, s = (e) => {
|
|
21
|
+
let n = Math.min(.25, (e - i) / 1e3);
|
|
22
|
+
i = e;
|
|
23
|
+
let o = t.time + n * t.rate;
|
|
24
|
+
if (o >= t.duration) {
|
|
25
|
+
if (t.loop && t.duration > 0) o %= t.duration;
|
|
26
|
+
else {
|
|
27
|
+
r = 0, a({
|
|
28
|
+
time: t.duration,
|
|
29
|
+
playing: !1
|
|
30
|
+
});
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
r = requestAnimationFrame(s), a({ time: o });
|
|
35
|
+
}, c = (e) => Number.isNaN(e) ? 0 : Math.max(0, Math.min(t.duration, e)), l = () => {
|
|
36
|
+
t.playing || t.duration <= 0 || (i = performance.now(), a({
|
|
37
|
+
playing: !0,
|
|
38
|
+
time: t.time >= t.duration ? 0 : t.time
|
|
39
|
+
}), r = requestAnimationFrame(s));
|
|
40
|
+
}, u = () => {
|
|
41
|
+
t.playing && (o(), a({ playing: !1 }));
|
|
42
|
+
}, d = (e) => {
|
|
43
|
+
i = performance.now(), a({ time: c(e) });
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getState: () => t,
|
|
47
|
+
subscribe(e) {
|
|
48
|
+
return n.add(e), () => {
|
|
49
|
+
n.delete(e);
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
play: l,
|
|
53
|
+
pause: u,
|
|
54
|
+
toggle: () => t.playing ? u() : l(),
|
|
55
|
+
seek: d,
|
|
56
|
+
step: (e) => d(t.time + e),
|
|
57
|
+
setDuration(e) {
|
|
58
|
+
let n = Math.max(0, e);
|
|
59
|
+
n !== t.duration && a({
|
|
60
|
+
duration: n,
|
|
61
|
+
time: Math.min(t.time, n)
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
setRate: (e) => a({ rate: e }),
|
|
65
|
+
setLoop: (e) => a({ loop: e }),
|
|
66
|
+
setScrubbing: (e) => {
|
|
67
|
+
e !== t.scrubbing && a({ scrubbing: e });
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function r(t) {
|
|
72
|
+
let [r] = e(() => n(t));
|
|
73
|
+
return r;
|
|
74
|
+
}
|
|
75
|
+
function i(e, n = (e) => e) {
|
|
76
|
+
return t(e.subscribe, () => n(e.getState()), () => n(e.getState()));
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { n as createPlayback, r as usePlaybackClock, i as usePlaybackState };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The most rows the GPU sorts in one piece (past it, the CPU sorts). */
|
|
2
|
+
export declare const gpuSortLimit: () => number;
|
|
3
|
+
/** Drop the shared device (after an error); the next job asks for a new one. */
|
|
4
|
+
export declare function resetSpreadsheetGpu(): void;
|
|
5
|
+
/** The stable permutation that sorts `keys` ((high, low) pairs from `sortKeys`), computed on the GPU. */
|
|
6
|
+
export declare function gpuSortPermutation(keys: Uint32Array): Promise<Uint32Array>;
|
|
7
|
+
/** Counts of `values` in `bins` (≤ 64) equal bins from `min`, `scale` bins per unit (see `binScale`), on the GPU. */
|
|
8
|
+
export declare function gpuHistogram(values: Float32Array, min: number, scale: number, bins: number): Promise<Uint32Array>;
|
|
9
|
+
//# sourceMappingURL=spreadsheet-gpu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spreadsheet-gpu.d.ts","sourceRoot":"","sources":["../../src/lib/spreadsheet-gpu.ts"],"names":[],"mappings":"AAgKA,yEAAyE;AACzE,eAAO,MAAM,YAAY,cAAiB,CAAC;AAE3C,gFAAgF;AAChF,wBAAgB,mBAAmB,SAIlC;AA4BD,yGAAyG;AACzG,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CA6C1E;AAED,qHAAqH;AACrH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CA6BjH"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { navigatorGpu as e } from "./webgpu.js";
|
|
2
|
+
//#region src/lib/spreadsheet-gpu.ts
|
|
3
|
+
var t = 1, n = 4, r = 256, i = `
|
|
4
|
+
struct Step { j: u32, k: u32, n: u32, width: u32 }
|
|
5
|
+
@group(0) @binding(0) var<storage, read_write> data: array<vec4<u32>>;
|
|
6
|
+
@group(0) @binding(1) var<uniform> step: Step;
|
|
7
|
+
|
|
8
|
+
fn before(a: vec4<u32>, b: vec4<u32>) -> bool {
|
|
9
|
+
if (a.x != b.x) { return a.x < b.x; }
|
|
10
|
+
if (a.y != b.y) { return a.y < b.y; }
|
|
11
|
+
return a.z < b.z;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@compute @workgroup_size(${r})
|
|
15
|
+
fn main(@builtin(global_invocation_id) id: vec3<u32>) {
|
|
16
|
+
let i = id.x + id.y * step.width;
|
|
17
|
+
if (i >= step.n) { return; }
|
|
18
|
+
let l = i ^ step.j;
|
|
19
|
+
if (l <= i) { return; }
|
|
20
|
+
let a = data[i];
|
|
21
|
+
let b = data[l];
|
|
22
|
+
// Ascending within blocks where bit k of i is clear, descending where it is set.
|
|
23
|
+
if (before(b, a) == ((i & step.k) == 0u)) {
|
|
24
|
+
data[i] = b;
|
|
25
|
+
data[l] = a;
|
|
26
|
+
}
|
|
27
|
+
}`, a = `
|
|
28
|
+
struct Params { min: f32, scale: f32, n: u32, bins: u32, width: u32 }
|
|
29
|
+
@group(0) @binding(0) var<storage, read> values: array<f32>;
|
|
30
|
+
@group(0) @binding(1) var<storage, read_write> bins: array<atomic<u32>>;
|
|
31
|
+
@group(0) @binding(2) var<uniform> p: Params;
|
|
32
|
+
var<workgroup> tally: array<atomic<u32>, 64>;
|
|
33
|
+
|
|
34
|
+
@compute @workgroup_size(${r})
|
|
35
|
+
fn main(@builtin(global_invocation_id) id: vec3<u32>, @builtin(local_invocation_index) local: u32) {
|
|
36
|
+
if (local < 64u) { atomicStore(&tally[local], 0u); }
|
|
37
|
+
workgroupBarrier();
|
|
38
|
+
let i = id.x + id.y * p.width;
|
|
39
|
+
if (i < p.n) {
|
|
40
|
+
let scaled = floor((values[i] - p.min) * p.scale);
|
|
41
|
+
let b = u32(clamp(scaled, 0.0, f32(p.bins - 1u)));
|
|
42
|
+
atomicAdd(&tally[b], 1u);
|
|
43
|
+
}
|
|
44
|
+
workgroupBarrier();
|
|
45
|
+
if (local < p.bins) {
|
|
46
|
+
let count = atomicLoad(&tally[local]);
|
|
47
|
+
if (count > 0u) { atomicAdd(&bins[local], count); }
|
|
48
|
+
}
|
|
49
|
+
}`, o = null, s = 1 << 23, c = Promise.resolve();
|
|
50
|
+
function l(e, t, n) {
|
|
51
|
+
let r = e.createBindGroupLayout({ entries: n });
|
|
52
|
+
return {
|
|
53
|
+
layout: r,
|
|
54
|
+
pipeline: e.createComputePipeline({
|
|
55
|
+
layout: e.createPipelineLayout({ bindGroupLayouts: [r] }),
|
|
56
|
+
compute: {
|
|
57
|
+
module: e.createShaderModule({ code: t }),
|
|
58
|
+
entryPoint: "main"
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function u() {
|
|
64
|
+
return o ??= (async () => {
|
|
65
|
+
let t = await e()?.requestAdapter({ powerPreference: "high-performance" });
|
|
66
|
+
if (!t) throw Error("WebGPU unavailable");
|
|
67
|
+
let r = Math.min(t.limits.maxStorageBufferBindingSize, t.limits.maxBufferSize, 1 << 30), c = await t.requestDevice({ requiredLimits: {
|
|
68
|
+
maxStorageBufferBindingSize: r,
|
|
69
|
+
maxBufferSize: r
|
|
70
|
+
} });
|
|
71
|
+
c.lost.then(() => {
|
|
72
|
+
o = null;
|
|
73
|
+
});
|
|
74
|
+
let u = (e) => ({
|
|
75
|
+
visibility: n,
|
|
76
|
+
buffer: { type: e }
|
|
77
|
+
}), d = {
|
|
78
|
+
device: c,
|
|
79
|
+
sort: l(c, i, [{
|
|
80
|
+
binding: 0,
|
|
81
|
+
...u("storage")
|
|
82
|
+
}, {
|
|
83
|
+
binding: 1,
|
|
84
|
+
visibility: n,
|
|
85
|
+
buffer: {
|
|
86
|
+
type: "uniform",
|
|
87
|
+
hasDynamicOffset: !0
|
|
88
|
+
}
|
|
89
|
+
}]),
|
|
90
|
+
histogram: l(c, a, [
|
|
91
|
+
{
|
|
92
|
+
binding: 0,
|
|
93
|
+
...u("read-only-storage")
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
binding: 1,
|
|
97
|
+
...u("storage")
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
binding: 2,
|
|
101
|
+
visibility: n,
|
|
102
|
+
buffer: { type: "uniform" }
|
|
103
|
+
}
|
|
104
|
+
])
|
|
105
|
+
};
|
|
106
|
+
return s = Math.min(1 << 23, 2 ** Math.floor(Math.log2(c.limits.maxStorageBufferBindingSize / 16))), d;
|
|
107
|
+
})().catch((e) => {
|
|
108
|
+
throw o = null, e;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
var d = () => s;
|
|
112
|
+
function f() {
|
|
113
|
+
let e = o;
|
|
114
|
+
o = null, e?.then((e) => e.device.destroy(), () => void 0);
|
|
115
|
+
}
|
|
116
|
+
function p(e) {
|
|
117
|
+
let t = c.then(() => u()).then(e);
|
|
118
|
+
return c = t.catch(() => void 0), t;
|
|
119
|
+
}
|
|
120
|
+
function m(e, t) {
|
|
121
|
+
let n = Math.ceil(t / r), i = e.limits.maxComputeWorkgroupsPerDimension, a = Math.min(n, i);
|
|
122
|
+
return {
|
|
123
|
+
x: a,
|
|
124
|
+
y: Math.ceil(n / a),
|
|
125
|
+
width: a * r
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
async function h(e, n, r, i) {
|
|
129
|
+
let a = e.createBuffer({
|
|
130
|
+
size: r,
|
|
131
|
+
usage: 9
|
|
132
|
+
});
|
|
133
|
+
i.copyBufferToBuffer(n, 0, a, 0, r), e.queue.submit([i.finish()]), await a.mapAsync(t);
|
|
134
|
+
let o = new Uint32Array(a.getMappedRange().slice(0));
|
|
135
|
+
return a.unmap(), a.destroy(), o;
|
|
136
|
+
}
|
|
137
|
+
function g(e) {
|
|
138
|
+
let t = e.length / 2;
|
|
139
|
+
return t < 2 ? Promise.resolve(Uint32Array.from({ length: t }, (e, t) => t)) : p(async ({ device: n, sort: r }) => {
|
|
140
|
+
let i = 1;
|
|
141
|
+
for (; i < t;) i *= 2;
|
|
142
|
+
if (i > s) throw Error(`${t} rows is past the GPU sort's ${s}`);
|
|
143
|
+
let a = new Uint32Array(i * 4);
|
|
144
|
+
for (let n = 0; n < i; n++) {
|
|
145
|
+
let r = n * 4;
|
|
146
|
+
n < t ? (a[r] = e[2 * n], a[r + 1] = e[2 * n + 1], a[r + 2] = n) : (a[r] = 4294967295, a[r + 1] = 4294967295, a[r + 2] = 4294967295);
|
|
147
|
+
}
|
|
148
|
+
let o = n.createBuffer({
|
|
149
|
+
size: a.byteLength,
|
|
150
|
+
usage: 140
|
|
151
|
+
});
|
|
152
|
+
n.queue.writeBuffer(o, 0, a);
|
|
153
|
+
let { x: c, y: l, width: u } = m(n, i), d = Math.max(256, n.limits.minUniformBufferOffsetAlignment), f = [];
|
|
154
|
+
for (let e = 2; e <= i; e *= 2) for (let t = e / 2; t > 0; t = Math.floor(t / 2)) f.push([t, e]);
|
|
155
|
+
let p = new Uint32Array(f.length * d / 4);
|
|
156
|
+
f.forEach(([e, t], n) => p.set([
|
|
157
|
+
e,
|
|
158
|
+
t,
|
|
159
|
+
i,
|
|
160
|
+
u
|
|
161
|
+
], n * d / 4));
|
|
162
|
+
let g = n.createBuffer({
|
|
163
|
+
size: p.byteLength,
|
|
164
|
+
usage: 72
|
|
165
|
+
});
|
|
166
|
+
n.queue.writeBuffer(g, 0, p);
|
|
167
|
+
let _ = n.createBindGroup({
|
|
168
|
+
layout: r.layout,
|
|
169
|
+
entries: [{
|
|
170
|
+
binding: 0,
|
|
171
|
+
resource: { buffer: o }
|
|
172
|
+
}, {
|
|
173
|
+
binding: 1,
|
|
174
|
+
resource: {
|
|
175
|
+
buffer: g,
|
|
176
|
+
size: 16
|
|
177
|
+
}
|
|
178
|
+
}]
|
|
179
|
+
}), v = n.createCommandEncoder(), y = v.beginComputePass();
|
|
180
|
+
y.setPipeline(r.pipeline);
|
|
181
|
+
for (let e = 0; e < f.length; e++) y.setBindGroup(0, _, [e * d]), y.dispatchWorkgroups(c, l);
|
|
182
|
+
y.end();
|
|
183
|
+
let b = await h(n, o, a.byteLength, v);
|
|
184
|
+
o.destroy(), g.destroy();
|
|
185
|
+
let x = new Uint32Array(t);
|
|
186
|
+
for (let e = 0; e < t; e++) x[e] = b[e * 4 + 2];
|
|
187
|
+
return x;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function _(e, t, n, r) {
|
|
191
|
+
return p(async ({ device: i, histogram: a }) => {
|
|
192
|
+
if (e.byteLength > i.limits.maxStorageBufferBindingSize) throw Error("Column too large for one GPU buffer");
|
|
193
|
+
let o = i.createBuffer({
|
|
194
|
+
size: Math.max(16, e.byteLength),
|
|
195
|
+
usage: 136
|
|
196
|
+
});
|
|
197
|
+
i.queue.writeBuffer(o, 0, e);
|
|
198
|
+
let s = i.createBuffer({
|
|
199
|
+
size: 256,
|
|
200
|
+
usage: 140
|
|
201
|
+
});
|
|
202
|
+
i.queue.writeBuffer(s, 0, /* @__PURE__ */ new Uint32Array(64));
|
|
203
|
+
let { x: c, y: l, width: u } = m(i, e.length), d = /* @__PURE__ */ new ArrayBuffer(32);
|
|
204
|
+
new Float32Array(d, 0, 2).set([t, n]), new Uint32Array(d, 8, 3).set([
|
|
205
|
+
e.length,
|
|
206
|
+
r,
|
|
207
|
+
u
|
|
208
|
+
]);
|
|
209
|
+
let f = i.createBuffer({
|
|
210
|
+
size: 32,
|
|
211
|
+
usage: 72
|
|
212
|
+
});
|
|
213
|
+
i.queue.writeBuffer(f, 0, new Uint8Array(d));
|
|
214
|
+
let p = i.createBindGroup({
|
|
215
|
+
layout: a.layout,
|
|
216
|
+
entries: [
|
|
217
|
+
{
|
|
218
|
+
binding: 0,
|
|
219
|
+
resource: { buffer: o }
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
binding: 1,
|
|
223
|
+
resource: { buffer: s }
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
binding: 2,
|
|
227
|
+
resource: { buffer: f }
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}), g = i.createCommandEncoder(), _ = g.beginComputePass();
|
|
231
|
+
_.setPipeline(a.pipeline), _.setBindGroup(0, p), _.dispatchWorkgroups(c, l), _.end();
|
|
232
|
+
let v = await h(i, s, 256, g);
|
|
233
|
+
return o.destroy(), s.destroy(), f.destroy(), v.slice(0, r);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
237
|
+
export { _ as gpuHistogram, d as gpuSortLimit, g as gpuSortPermutation, f as resetSpreadsheetGpu };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export type SpreadsheetColumnType = 'number' | 'date' | 'text' | 'empty';
|
|
2
|
+
export type SpreadsheetSortDirection = 'ascending' | 'descending';
|
|
3
|
+
export interface SpreadsheetSort {
|
|
4
|
+
column: number;
|
|
5
|
+
direction: SpreadsheetSortDirection;
|
|
6
|
+
}
|
|
7
|
+
/** Where the sort and histograms run. `auto` (default): WebGPU on a hardware adapter for work of at least
|
|
8
|
+
`gpuMinRows` rows, the CPU otherwise (and where the only adapter is a software one, there is none, or the probe
|
|
9
|
+
times out). `gpu`: WebGPU whenever there is any adapter, whatever the size. `fallback`: always the CPU. */
|
|
10
|
+
export type SpreadsheetEngine = 'auto' | 'gpu' | 'fallback';
|
|
11
|
+
/** Which one answered. */
|
|
12
|
+
export type SpreadsheetRanOn = 'gpu' | 'cpu';
|
|
13
|
+
/** Below this many rows, `auto` stays on the CPU: an upload, dispatch and readback cost more than they save. */
|
|
14
|
+
export declare const GPU_MIN_ROWS = 20000;
|
|
15
|
+
/** A cell as a number: plain and scientific notation, thousands commas ("1,234.5"), a leading currency sign, a
|
|
16
|
+
trailing `%` (as a fraction: "12%" → 0.12) and accounting negatives ("(12)"). `NaN` for anything else, empty
|
|
17
|
+
included. */
|
|
18
|
+
export declare function parseCellNumber(cell: string): number;
|
|
19
|
+
/** An ISO 8601 date or date-time ("2026-10-21", "2026-10-21T09:30Z") as milliseconds since the epoch, else `NaN`. */
|
|
20
|
+
export declare function parseCellDate(cell: string): number;
|
|
21
|
+
/** `number` or `date` when every sampled non-empty value reads as one, `empty` when there are none, else `text`. */
|
|
22
|
+
export declare function inferColumnType(rows: readonly (readonly string[])[], column: number, from?: number): SpreadsheetColumnType;
|
|
23
|
+
/** A column read as numbers (dates as milliseconds): `NaN` where a cell is empty or doesn't read. */
|
|
24
|
+
export declare function columnNumbers(rows: readonly (readonly string[])[], column: number, from?: number, type?: SpreadsheetColumnType): Float64Array;
|
|
25
|
+
/** Exact sort keys: each value's 64 bits as two unsigned words, in an order-preserving encoding (a positive number
|
|
26
|
+
has its sign bit flipped, a negative one all its bits), so comparing (high, low) as unsigned integers orders the
|
|
27
|
+
doubles exactly — no rounding to 32-bit floats. Descending inverts the words. A missing value (`NaN`) gets the
|
|
28
|
+
largest key in either direction, so empty cells always sort last. */
|
|
29
|
+
export declare function sortKeys(values: Float64Array, direction?: SpreadsheetSortDirection): Uint32Array;
|
|
30
|
+
/** The permutation that sorts `keys` (pairs from `sortKeys`), ties kept in their original order. The CPU half of
|
|
31
|
+
the GPU's bitonic sort: both return the same array. */
|
|
32
|
+
export declare function sortPermutationCpu(keys: Uint32Array): Uint32Array;
|
|
33
|
+
/** Text order: natural ("file 2" before "file 10"), case- and accent-insensitive, empty cells last, ties stable. */
|
|
34
|
+
export declare function sortTextPermutation(rows: readonly (readonly string[])[], column: number, from?: number, direction?: SpreadsheetSortDirection): Uint32Array;
|
|
35
|
+
export interface SpreadsheetSortResult {
|
|
36
|
+
/** Row indexes (counted from `from`) in display order. */
|
|
37
|
+
order: Uint32Array;
|
|
38
|
+
ranOn: SpreadsheetRanOn;
|
|
39
|
+
/** Wall-clock time of the sort itself, including GPU upload and readback. */
|
|
40
|
+
ms: number;
|
|
41
|
+
}
|
|
42
|
+
export interface SpreadsheetEngineOptions {
|
|
43
|
+
engine?: SpreadsheetEngine;
|
|
44
|
+
/** `auto` uses the GPU from this many rows (default `GPU_MIN_ROWS`). */
|
|
45
|
+
gpuMinRows?: number;
|
|
46
|
+
}
|
|
47
|
+
/** The display order for `sort`: number and date columns by their exact keys (on the GPU when the engine allows),
|
|
48
|
+
text columns by natural text order on the CPU. A GPU failure falls back to the CPU and says so in `ranOn`. */
|
|
49
|
+
export declare function sortRows(rows: readonly (readonly string[])[], sort: SpreadsheetSort, { from, type, ...options }?: SpreadsheetEngineOptions & {
|
|
50
|
+
from?: number;
|
|
51
|
+
type?: SpreadsheetColumnType;
|
|
52
|
+
}): Promise<SpreadsheetSortResult>;
|
|
53
|
+
export interface SelectionStats {
|
|
54
|
+
/** Cells that aren't empty. */
|
|
55
|
+
count: number;
|
|
56
|
+
/** Cells that read as numbers. */
|
|
57
|
+
numbers: number;
|
|
58
|
+
sum: number;
|
|
59
|
+
average: number;
|
|
60
|
+
min: number;
|
|
61
|
+
max: number;
|
|
62
|
+
}
|
|
63
|
+
/** Count, and sum / average / min / max of the cells that read as numbers (in 64-bit floats, so they are exact
|
|
64
|
+
to the usual double precision). */
|
|
65
|
+
export declare function selectionStats(cells: Iterable<string>): SelectionStats;
|
|
66
|
+
/** Most bins a histogram has (the GPU kernel's workgroup tally holds this many). */
|
|
67
|
+
export declare const MAX_BINS = 64;
|
|
68
|
+
export interface SpreadsheetHistogram {
|
|
69
|
+
/** Values per bin, lowest first. */
|
|
70
|
+
bins: Uint32Array;
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
ranOn: SpreadsheetRanOn;
|
|
74
|
+
}
|
|
75
|
+
/** The scale that maps [min, max] onto `bins` equal bins (0 when every value is the same). Shared by both paths. */
|
|
76
|
+
export declare const binScale: (min: number, max: number, bins: number) => number;
|
|
77
|
+
/** The bin of each value, in the same 32-bit float steps the GPU kernel takes. */
|
|
78
|
+
export declare function histogramCpu(values: Float32Array, min: number, max: number, bins: number): Uint32Array;
|
|
79
|
+
/** A histogram of a column's numbers in `bins` equal-width bins (at most `MAX_BINS`), on the GPU when the engine
|
|
80
|
+
allows. `null` when the column has no numbers. Bin edges are computed in 32-bit floats on both paths. */
|
|
81
|
+
export declare function columnHistogram(values: Float64Array, bins?: number, options?: SpreadsheetEngineOptions): Promise<SpreadsheetHistogram | null>;
|
|
82
|
+
//# sourceMappingURL=spreadsheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spreadsheet.d.ts","sourceRoot":"","sources":["../../src/lib/spreadsheet.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACzE,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,YAAY,CAAC;AAClE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,wBAAwB,CAAC;CACrC;AAED;;8GAE8G;AAC9G,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;AAC5D,0BAA0B;AAC1B,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,KAAK,CAAC;AAE7C,gHAAgH;AAChH,eAAO,MAAM,YAAY,QAAS,CAAC;AAQnC;;gBAEgB;AAChB,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYpD;AAID,qHAAqH;AACrH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAKD,oHAAoH;AACpH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,qBAAqB,CAcrH;AAED,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,SAAI,EAAE,IAAI,GAAE,qBAAgC,GAAG,YAAY,CASlJ;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