@graphysdk/react-renderer 1.9.0-beta.1795085215745 → 1.9.0-beta.1795088979177
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/editable.cjs +1 -1
- package/dist/editable.css +1 -1
- package/dist/editable.d.ts +21 -7
- package/dist/editable.mjs +5424 -4319
- package/dist/history-chords-BiHIKX8x.cjs +2 -0
- package/dist/{history-chords-4HhTI_R-.js → history-chords-DlWrq7dw.js} +2122 -2130
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +221 -221
- package/package.json +2 -2
- package/dist/history-chords-CnuVNZrO.cjs +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as _r, $n as
|
|
2
|
-
import { COMPILER_STAGE_KEYS as ce, DEFAULT_LOCALE as
|
|
1
|
+
import { $ as _r, $n as kr, Bn as _e, C as $r, Cn as Hr, Ct as Mr, Et as xr, Fn as Ie, Ft as Ar, Gn as U, H as Or, Hn as ke, In as Br, It as Fr, Jn as Kr, Jt as Ur, Kn as zr, Ln as $e, Mn as Wr, Mt as Yr, N as Vr, Nn as jr, Pn as z, Qn as He, Qt as Z, Rn as te, Rt as Xr, Tt as Qr, U as Jr, Un as W, V as Zr, Vn as en, Wn as re, Wt as tn, Xn as Me, Xt as rn, Y as nn, Yn as sn, Yt as on, Zn as xe, _n as an, a as cn, an as Ae, ar as ln, cn as dn, cr as Oe, dn as un, er as Be, et as mn, fr as Fe, gn as hn, hn as Ke, i as gn, ir as pn, kn as fn, l as vn, ln as ne, lr as Ue, mn as ze, mr as ee, n as yn, nr as We, on as Ye, or as Sn, pn as bn, qt as Tn, r as En, rn as Ve, rr as Ne, sn as Gn, sr as Rn, t as je, tn as Xe, tt as In, un as Qe, ur as ae, vn as Nn, wt as wn, yn as Pn, zn as we } from "./history-chords-DlWrq7dw.js";
|
|
2
|
+
import { COMPILER_STAGE_KEYS as ce, DEFAULT_LOCALE as Je, Geom as Ze, GraphCompilationSession as et, areEditTargetsEqual as tt, buildDiagnostic as me, buildPointSymbolPath as rt, canonicalizeLocale as nt, createAnchorResolver as st, createCompiler as ot, createDataLabelPlacementResolver as it, createSpecBuilder as at, createStyleResolver as Pe, findAnnotation as ct, findIntlLocale as lt, findLayerById as he, foldGeomCornerRadii as dt, isCompilerCachingEnabled as ut, isGeometricSymbol as le, isImageSymbol as mt, resolveDefinition as ht, resolveGeomCornerRadiusPx as ge, setCompilerCachingEnabled as gt, toPercent as Q } from "@graphysdk/viz-engine";
|
|
3
3
|
import { Component as pt, useCallback as p, useEffect as k, useId as ft, useImperativeHandle as vt, useMemo as H, useRef as pe, useState as y, useSyncExternalStore as yt } from "react";
|
|
4
4
|
import { Fragment as St, jsx as c, jsxs as f } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as ie } from "zustand";
|
|
6
6
|
import { motion as se } from "motion/react";
|
|
7
7
|
import { createStore as de } from "zustand/vanilla";
|
|
8
8
|
import bt from "clsx";
|
|
9
|
-
import './index.css';var Tt = "_1a5iqpb0",
|
|
10
|
-
var
|
|
9
|
+
import './index.css';var Tt = "_1a5iqpb0", Et = "_1a5iqpb1";
|
|
10
|
+
var Gt = "_1a5iqpb3", Rt = "_1a5iqpb4", It = "_1a5iqpb5";
|
|
11
11
|
var fe = ({ errors: e }) => {
|
|
12
12
|
const [t, ...r] = e;
|
|
13
13
|
return /* @__PURE__ */ f("div", {
|
|
@@ -15,7 +15,7 @@ var fe = ({ errors: e }) => {
|
|
|
15
15
|
className: Tt,
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ c("strong", {
|
|
18
|
-
className:
|
|
18
|
+
className: Et,
|
|
19
19
|
children: "This chart could not be rendered."
|
|
20
20
|
}),
|
|
21
21
|
t && /* @__PURE__ */ c(ve, { diagnostic: t }),
|
|
@@ -26,14 +26,14 @@ var fe = ({ errors: e }) => {
|
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
28
|
}, ve = ({ diagnostic: e }) => /* @__PURE__ */ f("div", {
|
|
29
|
-
className:
|
|
29
|
+
className: Gt,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ c("span", {
|
|
32
32
|
className: Rt,
|
|
33
33
|
children: e.code
|
|
34
34
|
}),
|
|
35
35
|
/* @__PURE__ */ c("p", {
|
|
36
|
-
className:
|
|
36
|
+
className: It,
|
|
37
37
|
children: e.message
|
|
38
38
|
}),
|
|
39
39
|
e.suggestion && /* @__PURE__ */ c("p", {
|
|
@@ -42,10 +42,10 @@ var fe = ({ errors: e }) => {
|
|
|
42
42
|
})
|
|
43
43
|
]
|
|
44
44
|
});
|
|
45
|
-
function
|
|
45
|
+
function Nt(e = [], t = []) {
|
|
46
46
|
return e.length === t.length && e.every((r, n) => Object.is(r, t[n]));
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var wt = class extends pt {
|
|
49
49
|
constructor(...e) {
|
|
50
50
|
super(...e), this.state = { caughtDiagnostic: null };
|
|
51
51
|
}
|
|
@@ -57,7 +57,7 @@ var Nt = class extends pt {
|
|
|
57
57
|
ee([r]), this.props.onError?.([r]), console.error("Chart render component stack:", t.componentStack);
|
|
58
58
|
}
|
|
59
59
|
componentDidUpdate(e) {
|
|
60
|
-
this.state.caughtDiagnostic && !
|
|
60
|
+
this.state.caughtDiagnostic && !Nt(e.resetKeys, this.props.resetKeys) && this.setState({ caughtDiagnostic: null });
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
63
|
const { caughtDiagnostic: e } = this.state;
|
|
@@ -65,17 +65,17 @@ var Nt = class extends pt {
|
|
|
65
65
|
const { forcedErrors: t, children: r } = this.props;
|
|
66
66
|
return t && t.length > 0 ? /* @__PURE__ */ c(fe, { errors: t }) : r;
|
|
67
67
|
}
|
|
68
|
-
}, Ce = (e) => typeof e == "object" && "geom" in e && "render" in e,
|
|
68
|
+
}, Ce = (e) => typeof e == "object" && "geom" in e && "render" in e, De = (e) => {
|
|
69
69
|
const t = ht(e);
|
|
70
|
-
return t instanceof
|
|
70
|
+
return t instanceof Ze ? t : null;
|
|
71
71
|
}, Pt = (e, t) => {
|
|
72
72
|
const r = e.filter((n) => Ct(n, t));
|
|
73
73
|
return r.length === e.length ? e : r;
|
|
74
|
-
}, Ct = (e, t) => e.kind === "annotation" ? ct(t.annotations, e.id) !== null : e.kind === "observations" ? he(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? he(t.layers, e.layerId) !== void 0 : !0, ye = [],
|
|
74
|
+
}, Ct = (e, t) => e.kind === "annotation" ? ct(t.annotations, e.id) !== null : e.kind === "observations" ? he(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? he(t.layers, e.layerId) !== void 0 : !0, ye = [], Dt = () => de((e) => ({
|
|
75
75
|
selection: ye,
|
|
76
|
-
setSelection: (t) => e((r) =>
|
|
76
|
+
setSelection: (t) => e((r) => Lt(r.selection, t) ? r : { selection: t }),
|
|
77
77
|
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: ye })
|
|
78
|
-
})),
|
|
78
|
+
})), Lt = (e, t) => e === t ? !0 : e.length !== t.length ? !1 : e.every((r, n) => {
|
|
79
79
|
const s = t[n];
|
|
80
80
|
return s !== void 0 && tt(r, s);
|
|
81
81
|
}), qt = 5, _t = (e) => {
|
|
@@ -120,7 +120,7 @@ var Nt = class extends pt {
|
|
|
120
120
|
};
|
|
121
121
|
return {
|
|
122
122
|
lastCompile: s,
|
|
123
|
-
history:
|
|
123
|
+
history: Mt(n.history, s, qt),
|
|
124
124
|
nextId: n.nextId + 1,
|
|
125
125
|
lastSnapshot: r
|
|
126
126
|
};
|
|
@@ -137,14 +137,14 @@ var Nt = class extends pt {
|
|
|
137
137
|
case "command":
|
|
138
138
|
return e.command.metadata.description;
|
|
139
139
|
}
|
|
140
|
-
},
|
|
140
|
+
}, Mt = (e, t, r) => {
|
|
141
141
|
const n = e.length >= r ? e.length - (r - 1) : 0;
|
|
142
142
|
return [...e.slice(n), t];
|
|
143
143
|
};
|
|
144
144
|
function Se(e) {
|
|
145
|
-
const t = e.filter(Ce), r = /* @__PURE__ */ new Set([...Object.keys(
|
|
145
|
+
const t = e.filter(Ce), r = /* @__PURE__ */ new Set([...Object.keys(Qe), ...t.map((l) => l.geom)]), n = [], s = /* @__PURE__ */ new Set();
|
|
146
146
|
for (const l of e) {
|
|
147
|
-
const d =
|
|
147
|
+
const d = De(l);
|
|
148
148
|
d === null || r.has(d.type) || s.has(d.type) || (s.add(d.type), n.push({
|
|
149
149
|
kind: "userInput",
|
|
150
150
|
severity: "error",
|
|
@@ -180,12 +180,12 @@ function Se(e) {
|
|
|
180
180
|
},
|
|
181
181
|
suggestion: `Keep a single render-only override for ('${l}', '${d}').`
|
|
182
182
|
});
|
|
183
|
-
return a.push(...
|
|
183
|
+
return a.push(...Wt(e)), {
|
|
184
184
|
errors: n,
|
|
185
185
|
warnings: a
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function xt(e, t) {
|
|
189
189
|
const { coordSystem: r, layers: n } = e, s = /* @__PURE__ */ new Set(), i = [];
|
|
190
190
|
for (const a of n)
|
|
191
191
|
t(a.geom, r.type) !== null || s.has(a.geom) || (s.add(a.geom), i.push({
|
|
@@ -292,9 +292,9 @@ function Kt(e, t) {
|
|
|
292
292
|
}
|
|
293
293
|
return i;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Ut(e, t) {
|
|
296
296
|
let r;
|
|
297
|
-
return e.layers.flatMap((n, s) => ne(t(n.geom, e.coordSystem.type)) ?
|
|
297
|
+
return e.layers.flatMap((n, s) => ne(t(n.geom, e.coordSystem.type)) ? zt(n) ? (r ??= Pe().readers(e), (r.geom(n).get("overpaint", void 0, "hovered")?.length ?? 0) === 0 ? [] : [{
|
|
298
298
|
kind: "userInput",
|
|
299
299
|
severity: "warning",
|
|
300
300
|
code: "INVALID_STYLE_RULE",
|
|
@@ -307,11 +307,11 @@ function zt(e, t) {
|
|
|
307
307
|
suggestion: "Remove the hovered overpaint, or paint the hover treatment in the geom's live render."
|
|
308
308
|
}]) : [] : []);
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
310
|
+
var zt = (e) => [e.styles.defaults, e.styles.overrides].some((t) => t.some((r) => r.state === "hovered" && (r.declarations.overpaint?.length ?? 0) > 0));
|
|
311
|
+
function Wt(e) {
|
|
312
312
|
const t = /* @__PURE__ */ new Set(), r = [];
|
|
313
313
|
for (const n of e) {
|
|
314
|
-
const s =
|
|
314
|
+
const s = De(n);
|
|
315
315
|
s === null || t.has(s.type) || s.dataLabelCoordTypes.length === 0 || s.getDataLabelPlacements !== void 0 || (t.add(s.type), r.push({
|
|
316
316
|
kind: "userInput",
|
|
317
317
|
severity: "warning",
|
|
@@ -326,11 +326,11 @@ function jt(e) {
|
|
|
326
326
|
}
|
|
327
327
|
return r;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
329
|
+
var Yt = (e) => de((t) => ({
|
|
330
330
|
scene: e,
|
|
331
331
|
setScene: (r) => t((n) => n.scene === r ? n : { scene: r })
|
|
332
|
-
})),
|
|
333
|
-
const S =
|
|
332
|
+
})), Vt = ({ spec: e, data: t, colorScheme: r, plugins: n, theme: s, resolveRenderer: i, anchorResolver: a, onSpecChange: l, onError: d, onWarnings: h }) => {
|
|
333
|
+
const S = Z(l), D = Z(d), N = Z(h), [{ session: g, compileBus: m, findGeom: T }] = y(() => {
|
|
334
334
|
const o = ot({
|
|
335
335
|
plugins: n,
|
|
336
336
|
theme: s
|
|
@@ -346,37 +346,37 @@ var Wt = (e) => de((t) => ({
|
|
|
346
346
|
errors: [...u.errors, ...o.errors],
|
|
347
347
|
warnings: [...u.warnings, ...o.warnings]
|
|
348
348
|
};
|
|
349
|
-
}),
|
|
349
|
+
}), L = pe(null), [R] = y(jt), E = pe(null), w = p((o) => v.errors.length === 0 ? o : [...v.errors, ...o ?? []], [v]), q = p((o) => {
|
|
350
350
|
if (!o.ok) return o.errors;
|
|
351
|
-
if (
|
|
351
|
+
if (E.current) E.current.getState().setScene(o.scene);
|
|
352
352
|
else {
|
|
353
|
-
const u =
|
|
354
|
-
u.subscribe(R.notify),
|
|
353
|
+
const u = Yt(o.scene);
|
|
354
|
+
u.subscribe(R.notify), E.current = u, R.notify();
|
|
355
355
|
}
|
|
356
356
|
return null;
|
|
357
|
-
}, [R]), [
|
|
357
|
+
}, [R]), [I, M] = y(() => {
|
|
358
358
|
const o = g.compile({
|
|
359
359
|
spec: e,
|
|
360
360
|
data: t,
|
|
361
361
|
colorScheme: r
|
|
362
362
|
});
|
|
363
|
-
return
|
|
363
|
+
return L.current = o, w(q(o));
|
|
364
364
|
}), P = p((o) => o.ok ? [
|
|
365
365
|
...o.warnings,
|
|
366
|
-
...
|
|
366
|
+
...xt(o.scene, i),
|
|
367
367
|
...At(o.scene, i),
|
|
368
368
|
...Ot(o.scene),
|
|
369
369
|
...Bt(o.scene, i),
|
|
370
370
|
...Kt(o.scene, i),
|
|
371
|
-
...
|
|
371
|
+
...Ut(o.scene, i),
|
|
372
372
|
...Ft(o.scene, a)
|
|
373
373
|
] : o.warnings, [i, a]), b = p((o) => {
|
|
374
|
-
o.length !== 0 && (ee(o),
|
|
375
|
-
}, [
|
|
376
|
-
o.length !== 0 && (ee(o),
|
|
377
|
-
}, [
|
|
374
|
+
o.length !== 0 && (ee(o), D.current?.(o));
|
|
375
|
+
}, [D]), C = p((o) => {
|
|
376
|
+
o.length !== 0 && (ee(o), N.current?.(o));
|
|
377
|
+
}, [N]);
|
|
378
378
|
k(() => {
|
|
379
|
-
const o =
|
|
379
|
+
const o = L.current;
|
|
380
380
|
o && (b([...v.errors, ...o.ok ? [] : o.errors]), C([...v.warnings, ...P(o)]), o.ok && m.emit({ kind: "init" }));
|
|
381
381
|
}, [
|
|
382
382
|
m,
|
|
@@ -393,7 +393,7 @@ var Wt = (e) => de((t) => ({
|
|
|
393
393
|
if (!o) return;
|
|
394
394
|
o.committedSpec && S.current?.(o.committedSpec);
|
|
395
395
|
const u = q(o.result);
|
|
396
|
-
|
|
396
|
+
M(w(u)), u && b(u), C(P(o.result)), u || m.emit({ kind: o.hasSpecChange ? "spec" : "data" });
|
|
397
397
|
}, [
|
|
398
398
|
e,
|
|
399
399
|
t,
|
|
@@ -403,39 +403,39 @@ var Wt = (e) => de((t) => ({
|
|
|
403
403
|
q,
|
|
404
404
|
b,
|
|
405
405
|
C,
|
|
406
|
-
|
|
406
|
+
w,
|
|
407
407
|
P,
|
|
408
408
|
S
|
|
409
409
|
]);
|
|
410
|
-
const
|
|
411
|
-
|
|
410
|
+
const x = p((o) => {
|
|
411
|
+
M((u) => u === null ? u : w(null)), C(P(o));
|
|
412
412
|
}, [
|
|
413
|
-
|
|
413
|
+
w,
|
|
414
414
|
C,
|
|
415
415
|
P
|
|
416
416
|
]), A = p((o) => {
|
|
417
|
-
o.scene &&
|
|
417
|
+
o.scene && E.current?.getState().setScene(o.scene), o.result && x(o.result), o.command && m.emit({
|
|
418
418
|
kind: "command",
|
|
419
419
|
command: o.command
|
|
420
420
|
}), o.spec && S.current?.(o.spec), o.errors && b([...o.errors]);
|
|
421
421
|
}, [
|
|
422
|
-
|
|
422
|
+
x,
|
|
423
423
|
m,
|
|
424
424
|
S,
|
|
425
425
|
b
|
|
426
|
-
]),
|
|
426
|
+
]), G = p((o) => {
|
|
427
427
|
for (const u of o) A(u);
|
|
428
428
|
return o.some((u) => !!u.scene);
|
|
429
429
|
}, [A]), _ = p((o, u) => {
|
|
430
|
-
|
|
431
|
-
}, [g,
|
|
432
|
-
|
|
433
|
-
}, [g,
|
|
430
|
+
G(g.applyCommand(o, u));
|
|
431
|
+
}, [g, G]), Y = p(() => {
|
|
432
|
+
G(g.commit());
|
|
433
|
+
}, [g, G]), O = p(() => G(g.undo()), [g, G]), B = p(() => G(g.redo()), [g, G]), oe = p((o) => {
|
|
434
434
|
const u = g.preview(o).find((X) => X.scene)?.scene;
|
|
435
|
-
return u ? (
|
|
436
|
-
}, [g]),
|
|
435
|
+
return u ? (E.current?.getState().setScene(u), !0) : !1;
|
|
436
|
+
}, [g]), V = p(() => {
|
|
437
437
|
const o = g.scene;
|
|
438
|
-
o &&
|
|
438
|
+
o && E.current?.getState().setScene(o);
|
|
439
439
|
}, [g]), $ = H(() => ({
|
|
440
440
|
stack: g.history,
|
|
441
441
|
undo: O,
|
|
@@ -444,21 +444,21 @@ var Wt = (e) => de((t) => ({
|
|
|
444
444
|
g,
|
|
445
445
|
O,
|
|
446
446
|
B
|
|
447
|
-
]),
|
|
447
|
+
]), j = p(() => E.current?.getState().scene ?? null, []);
|
|
448
448
|
return {
|
|
449
|
-
store:
|
|
449
|
+
store: E.current,
|
|
450
450
|
dispatch: _,
|
|
451
|
-
commit:
|
|
451
|
+
commit: Y,
|
|
452
452
|
paintPreview: oe,
|
|
453
|
-
clearPreview:
|
|
453
|
+
clearPreview: V,
|
|
454
454
|
history: $,
|
|
455
455
|
subscribe: R.subscribe,
|
|
456
|
-
getScene:
|
|
456
|
+
getScene: j,
|
|
457
457
|
compileBus: m,
|
|
458
|
-
compileErrors:
|
|
458
|
+
compileErrors: I,
|
|
459
459
|
findGeom: T
|
|
460
460
|
};
|
|
461
|
-
},
|
|
461
|
+
}, jt = () => {
|
|
462
462
|
const e = /* @__PURE__ */ new Set();
|
|
463
463
|
return {
|
|
464
464
|
subscribe: (t) => (e.add(t), () => {
|
|
@@ -466,17 +466,17 @@ var Wt = (e) => de((t) => ({
|
|
|
466
466
|
}),
|
|
467
467
|
notify: () => e.forEach((t) => t())
|
|
468
468
|
};
|
|
469
|
-
}, Xt = ["cartesian", "polar"], Qt = ({ data: e, spec: t, plugins: r = [], theme: n, glyphs: s, formattingLocale: i, handleRef: a, onSpecChange: l, onError: d, onWarnings: h, colorScheme: S = "light", mode:
|
|
470
|
-
const g =
|
|
471
|
-
|
|
472
|
-
const
|
|
469
|
+
}, Xt = ["cartesian", "polar"], Qt = ({ data: e, spec: t, plugins: r = [], theme: n, glyphs: s, formattingLocale: i, handleRef: a, onSpecChange: l, onError: d, onWarnings: h, colorScheme: S = "light", mode: D = Ve.readonly, children: N }) => {
|
|
470
|
+
const g = Ae(D), m = er(i, h), [T] = y(() => n), [v] = y(() => Be(n?.glyphs, s)), L = T?.colorScheme ?? S, [R] = y(() => Ye([...T?.plugins ?? [], ...r].filter(Ce)));
|
|
471
|
+
Zt(R, v);
|
|
472
|
+
const E = ft(), [w] = y(() => st(r)), [q] = y(() => it(r)), [I] = y(() => Dt()), [M] = y(() => Xe()), P = H(() => Pe({ colorScheme: L }), [L]), { store: b, dispatch: C, commit: x, paintPreview: A, clearPreview: G, history: _, subscribe: Y, getScene: O, compileBus: B, compileErrors: oe, findGeom: V } = Vt({
|
|
473
473
|
spec: t,
|
|
474
474
|
data: e,
|
|
475
|
-
colorScheme:
|
|
475
|
+
colorScheme: L,
|
|
476
476
|
plugins: r,
|
|
477
477
|
theme: T,
|
|
478
478
|
resolveRenderer: R,
|
|
479
|
-
anchorResolver:
|
|
479
|
+
anchorResolver: w,
|
|
480
480
|
onSpecChange: l,
|
|
481
481
|
onError: d,
|
|
482
482
|
onWarnings: h
|
|
@@ -485,31 +485,31 @@ var Wt = (e) => de((t) => ({
|
|
|
485
485
|
if (b)
|
|
486
486
|
return b.subscribe((o, u) => {
|
|
487
487
|
if (o.scene.spec === u.scene.spec) return;
|
|
488
|
-
const { selection: X, setSelection: qe } =
|
|
488
|
+
const { selection: X, setSelection: qe } = I.getState();
|
|
489
489
|
X.length !== 0 && qe(Pt(X, o.scene.spec));
|
|
490
490
|
});
|
|
491
|
-
}, [b,
|
|
491
|
+
}, [b, I]);
|
|
492
492
|
const $ = H(() => ({
|
|
493
493
|
dispatch: C,
|
|
494
|
-
commit:
|
|
494
|
+
commit: x,
|
|
495
495
|
paintPreview: A,
|
|
496
|
-
clearPreview:
|
|
496
|
+
clearPreview: G
|
|
497
497
|
}), [
|
|
498
498
|
C,
|
|
499
|
-
|
|
499
|
+
x,
|
|
500
500
|
A,
|
|
501
|
-
|
|
501
|
+
G
|
|
502
502
|
]);
|
|
503
503
|
vt(a, () => ({
|
|
504
504
|
commands: $,
|
|
505
505
|
undo: _.undo,
|
|
506
506
|
redo: _.redo,
|
|
507
|
-
subscribe:
|
|
507
|
+
subscribe: Y,
|
|
508
508
|
getScene: O,
|
|
509
509
|
formattingLocale: m,
|
|
510
|
-
getSelection: () =>
|
|
511
|
-
setSelection: (o) =>
|
|
512
|
-
subscribeSelection:
|
|
510
|
+
getSelection: () => I.getState().selection,
|
|
511
|
+
setSelection: (o) => I.getState().setSelection(o),
|
|
512
|
+
subscribeSelection: I.subscribe,
|
|
513
513
|
canPlaceDataLabels: q.hasCapability,
|
|
514
514
|
canFormatDataLabelsAsPercentages: q.hasPercentageFormat,
|
|
515
515
|
getGlyphs: () => v,
|
|
@@ -517,79 +517,79 @@ var Wt = (e) => de((t) => ({
|
|
|
517
517
|
}), [
|
|
518
518
|
$,
|
|
519
519
|
_,
|
|
520
|
-
|
|
520
|
+
Y,
|
|
521
521
|
O,
|
|
522
522
|
m,
|
|
523
|
-
|
|
523
|
+
I,
|
|
524
524
|
q,
|
|
525
525
|
v,
|
|
526
526
|
R
|
|
527
527
|
]);
|
|
528
|
-
const
|
|
529
|
-
chartId:
|
|
528
|
+
const j = H(() => b ? {
|
|
529
|
+
chartId: E,
|
|
530
530
|
store: b,
|
|
531
|
-
selectionStore:
|
|
532
|
-
targetBoundaryStore:
|
|
531
|
+
selectionStore: I,
|
|
532
|
+
targetBoundaryStore: M,
|
|
533
533
|
commands: $,
|
|
534
534
|
history: _,
|
|
535
535
|
formattingLocale: m,
|
|
536
536
|
compileBus: B,
|
|
537
|
-
colorScheme:
|
|
537
|
+
colorScheme: L,
|
|
538
538
|
mode: g,
|
|
539
539
|
styleResolver: P,
|
|
540
|
-
anchorResolver:
|
|
541
|
-
findGeom:
|
|
540
|
+
anchorResolver: w,
|
|
541
|
+
findGeom: V
|
|
542
542
|
} : null, [
|
|
543
|
-
|
|
543
|
+
E,
|
|
544
544
|
b,
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
I,
|
|
546
|
+
M,
|
|
547
547
|
$,
|
|
548
548
|
_,
|
|
549
549
|
m,
|
|
550
550
|
B,
|
|
551
|
-
|
|
551
|
+
L,
|
|
552
552
|
g,
|
|
553
553
|
P,
|
|
554
|
-
|
|
555
|
-
|
|
554
|
+
w,
|
|
555
|
+
V
|
|
556
556
|
]);
|
|
557
|
-
return /* @__PURE__ */ c(
|
|
557
|
+
return /* @__PURE__ */ c(wt, {
|
|
558
558
|
forcedErrors: oe,
|
|
559
559
|
onError: d,
|
|
560
560
|
resetKeys: [t, e],
|
|
561
|
-
children:
|
|
562
|
-
value:
|
|
563
|
-
children: /* @__PURE__ */ c(
|
|
561
|
+
children: j ? /* @__PURE__ */ c(Ue.Provider, {
|
|
562
|
+
value: j,
|
|
563
|
+
children: /* @__PURE__ */ c(ze, {
|
|
564
564
|
value: R,
|
|
565
|
-
children: /* @__PURE__ */ c(
|
|
565
|
+
children: /* @__PURE__ */ c(Fe, {
|
|
566
566
|
value: q,
|
|
567
|
-
children: /* @__PURE__ */ c(
|
|
567
|
+
children: /* @__PURE__ */ c(z, {
|
|
568
568
|
shapes: T?.shapes,
|
|
569
|
-
children: /* @__PURE__ */ c(
|
|
569
|
+
children: /* @__PURE__ */ c(He, {
|
|
570
570
|
glyphs: v,
|
|
571
|
-
children:
|
|
571
|
+
children: N
|
|
572
572
|
})
|
|
573
573
|
})
|
|
574
574
|
})
|
|
575
575
|
})
|
|
576
576
|
}) : null
|
|
577
577
|
});
|
|
578
|
-
},
|
|
578
|
+
}, Jt = (e, t) => (e ?? []).filter((r) => !le(r) && !t.has(r)), Zt = (e, t) => {
|
|
579
579
|
k(() => {
|
|
580
580
|
if (!Ne) return;
|
|
581
581
|
const r = new Set(t.map(({ name: n }) => n));
|
|
582
|
-
for (const n of Xt) for (const s of
|
|
582
|
+
for (const n of Xt) for (const s of Jt(e("point", n)?.symbols, r)) console.warn(`[graphy] The ${n} point renderer lists "${s}", but no glyph has that name. The shape menu offers it, and SymbolFigure draws the first listed symbol in its place.`);
|
|
583
583
|
}, [e, t]);
|
|
584
584
|
}, er = (e, t) => {
|
|
585
|
-
const r =
|
|
585
|
+
const r = Z(t);
|
|
586
586
|
return k(() => {
|
|
587
587
|
if (e === void 0 || lt(e) !== void 0) return;
|
|
588
588
|
const n = [{
|
|
589
589
|
severity: "warning",
|
|
590
590
|
kind: "userInput",
|
|
591
591
|
code: "INVALID_FORMATTING_LOCALE",
|
|
592
|
-
message: `formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${
|
|
592
|
+
message: `formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${Je}.`
|
|
593
593
|
}];
|
|
594
594
|
ee(n), r.current?.(n);
|
|
595
595
|
}, [e, r]), e === void 0 ? void 0 : nt(e);
|
|
@@ -611,7 +611,7 @@ var K = (e, t) => {
|
|
|
611
611
|
if (!e.endsWith("%")) return null;
|
|
612
612
|
const r = Number.parseFloat(e);
|
|
613
613
|
return Number.isFinite(r) ? r / 100 * t : null;
|
|
614
|
-
},
|
|
614
|
+
}, Mn = ({ x: e, y: t, width: r, height: n }, s) => {
|
|
615
615
|
const i = K(e, s.width), a = K(t, s.height), l = K(r, s.width), d = K(n, s.height);
|
|
616
616
|
return i === null || a === null || l === null || d === null ? null : {
|
|
617
617
|
x: i,
|
|
@@ -620,7 +620,7 @@ var K = (e, t) => {
|
|
|
620
620
|
height: d
|
|
621
621
|
};
|
|
622
622
|
}, tr = ({ animateTransitions: e, cx: t, cy: r, r: n, effects: s, ...i }) => {
|
|
623
|
-
const a =
|
|
623
|
+
const a = U(s);
|
|
624
624
|
return e ? /* @__PURE__ */ c(se.circle, {
|
|
625
625
|
initial: !1,
|
|
626
626
|
animate: {
|
|
@@ -628,7 +628,7 @@ var K = (e, t) => {
|
|
|
628
628
|
cy: r,
|
|
629
629
|
r: n
|
|
630
630
|
},
|
|
631
|
-
transition:
|
|
631
|
+
transition: W,
|
|
632
632
|
style: a,
|
|
633
633
|
...i
|
|
634
634
|
}) : /* @__PURE__ */ c("circle", {
|
|
@@ -639,7 +639,7 @@ var K = (e, t) => {
|
|
|
639
639
|
...i
|
|
640
640
|
});
|
|
641
641
|
}, rr = ({ animateTransitions: e, x1: t, y1: r, x2: n, y2: s, effects: i, ...a }) => {
|
|
642
|
-
const l =
|
|
642
|
+
const l = U(i);
|
|
643
643
|
return e ? /* @__PURE__ */ c(se.line, {
|
|
644
644
|
initial: !1,
|
|
645
645
|
animate: {
|
|
@@ -648,7 +648,7 @@ var K = (e, t) => {
|
|
|
648
648
|
x2: n,
|
|
649
649
|
y2: s
|
|
650
650
|
},
|
|
651
|
-
transition:
|
|
651
|
+
transition: W,
|
|
652
652
|
style: l,
|
|
653
653
|
...a
|
|
654
654
|
}) : /* @__PURE__ */ c("line", {
|
|
@@ -660,7 +660,7 @@ var K = (e, t) => {
|
|
|
660
660
|
...a
|
|
661
661
|
});
|
|
662
662
|
}, nr = ({ animateTransitions: e, x: t, y: r, width: n, height: s, rx: i, ry: a, effects: l, ...d }) => {
|
|
663
|
-
const h =
|
|
663
|
+
const h = U(l);
|
|
664
664
|
return e ? /* @__PURE__ */ c(se.rect, {
|
|
665
665
|
initial: !1,
|
|
666
666
|
animate: {
|
|
@@ -673,7 +673,7 @@ var K = (e, t) => {
|
|
|
673
673
|
ry: a
|
|
674
674
|
} : {}
|
|
675
675
|
},
|
|
676
|
-
transition:
|
|
676
|
+
transition: W,
|
|
677
677
|
style: h,
|
|
678
678
|
...d
|
|
679
679
|
}) : /* @__PURE__ */ c("rect", {
|
|
@@ -687,7 +687,7 @@ var K = (e, t) => {
|
|
|
687
687
|
...d
|
|
688
688
|
});
|
|
689
689
|
}, sr = ({ animateTransitions: e, d: t, source: r, effects: n, ...s }) => {
|
|
690
|
-
const i =
|
|
690
|
+
const i = U(n);
|
|
691
691
|
return e ? /* @__PURE__ */ c(or, {
|
|
692
692
|
d: t,
|
|
693
693
|
source: r,
|
|
@@ -698,15 +698,15 @@ var K = (e, t) => {
|
|
|
698
698
|
style: i,
|
|
699
699
|
...s
|
|
700
700
|
});
|
|
701
|
-
},
|
|
701
|
+
}, xn = (e) => {
|
|
702
702
|
const { Circle: t } = te(), { animateTransitions: r } = re(), { symbol: n, ...s } = e, i = {
|
|
703
703
|
...s,
|
|
704
704
|
animateTransitions: r
|
|
705
705
|
};
|
|
706
706
|
return n !== void 0 && n !== "circle" ? /* @__PURE__ */ c("g", {
|
|
707
|
-
style:
|
|
707
|
+
style: U(e.effects),
|
|
708
708
|
"data-testid": e["data-testid"],
|
|
709
|
-
children: /* @__PURE__ */ c(
|
|
709
|
+
children: /* @__PURE__ */ c(Me, {
|
|
710
710
|
symbol: n,
|
|
711
711
|
cx: be(e.cx),
|
|
712
712
|
cy: be(e.cy),
|
|
@@ -718,33 +718,33 @@ var K = (e, t) => {
|
|
|
718
718
|
strokeOpacity: e.strokeOpacity,
|
|
719
719
|
strokeWidth: e.strokeWidth,
|
|
720
720
|
motion: r ? {
|
|
721
|
-
transition:
|
|
721
|
+
transition: W,
|
|
722
722
|
intro: !1,
|
|
723
723
|
fadesIn: !1
|
|
724
724
|
} : null
|
|
725
725
|
})
|
|
726
|
-
}) : t === void 0 ? tr(i) : /* @__PURE__ */ c(
|
|
726
|
+
}) : t === void 0 ? tr(i) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(t, { ...i }) });
|
|
727
727
|
}, An = (e) => {
|
|
728
728
|
const { Line: t } = te(), { animateTransitions: r } = re(), n = {
|
|
729
729
|
...e,
|
|
730
730
|
animateTransitions: r
|
|
731
731
|
};
|
|
732
|
-
return t === void 0 ? rr(n) : /* @__PURE__ */ c(
|
|
732
|
+
return t === void 0 ? rr(n) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(t, { ...n }) });
|
|
733
733
|
}, On = ({ cornerRadius: e, ...t }) => {
|
|
734
|
-
const { Rect: r } = te(), n =
|
|
734
|
+
const { Rect: r } = te(), n = we()?.size ?? null, s = $e(), { animateTransitions: i } = re(), a = {
|
|
735
735
|
...t,
|
|
736
736
|
animateTransitions: i,
|
|
737
737
|
...ir(e, t, n, s)
|
|
738
738
|
};
|
|
739
|
-
return r === void 0 ? nr(a) : /* @__PURE__ */ c(
|
|
739
|
+
return r === void 0 ? nr(a) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(r, { ...a }) });
|
|
740
740
|
}, Bn = (e) => {
|
|
741
741
|
const { Path: t } = te(), { animateTransitions: r } = re(), n = {
|
|
742
742
|
...e,
|
|
743
743
|
animateTransitions: r
|
|
744
744
|
};
|
|
745
|
-
return t === void 0 ? sr(n) : /* @__PURE__ */ c(
|
|
745
|
+
return t === void 0 ? sr(n) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(t, { ...n }) });
|
|
746
746
|
}, be = (e) => typeof e == "number" ? `${e}px` : e, or = ({ d: e, source: t, ...r }) => {
|
|
747
|
-
const n =
|
|
747
|
+
const n = ke(e, W, t);
|
|
748
748
|
return /* @__PURE__ */ c(se.path, {
|
|
749
749
|
d: n,
|
|
750
750
|
...r
|
|
@@ -755,12 +755,12 @@ var K = (e, t) => {
|
|
|
755
755
|
if (s === void 0) return {};
|
|
756
756
|
const i = ar(t, r, n);
|
|
757
757
|
if (i === null)
|
|
758
|
-
return s === "full" ? {} :
|
|
758
|
+
return s === "full" ? {} : Ee(ge({ cornerRadius: s }), n);
|
|
759
759
|
const a = Math.min(ge({
|
|
760
760
|
cornerRadius: s,
|
|
761
761
|
box: i
|
|
762
762
|
}), Math.min(i.width, i.height) / 2);
|
|
763
|
-
return
|
|
763
|
+
return Ee(a, n);
|
|
764
764
|
}, ar = (e, t, r) => {
|
|
765
765
|
const n = Te(e.width, t?.width, r.x), s = Te(e.height, t?.height, r.y);
|
|
766
766
|
return n === null || s === null ? null : {
|
|
@@ -772,14 +772,14 @@ var K = (e, t) => {
|
|
|
772
772
|
if (t === void 0) return null;
|
|
773
773
|
const n = K(e, t);
|
|
774
774
|
return n === null ? null : Math.abs(n);
|
|
775
|
-
},
|
|
775
|
+
}, Ee = (e, t) => t.x <= 0 || t.y <= 0 ? {
|
|
776
776
|
rx: 0,
|
|
777
777
|
ry: 0
|
|
778
778
|
} : {
|
|
779
779
|
rx: e / t.x,
|
|
780
780
|
ry: e / t.y
|
|
781
781
|
}, Fn = ({ symbol: e, size: t, fill: r, fillOpacity: n, stroke: s, strokeOpacity: i, strokeWidth: a }) => {
|
|
782
|
-
const l =
|
|
782
|
+
const l = We(), d = Ke(), h = Oe((N) => N.coordSystem.type), S = cr(e, d("point", h)?.symbols ?? [], l), D = {
|
|
783
783
|
size: t,
|
|
784
784
|
fill: r,
|
|
785
785
|
fillOpacity: n,
|
|
@@ -795,13 +795,13 @@ var K = (e, t) => {
|
|
|
795
795
|
strokeOpacity: i,
|
|
796
796
|
strokeWidth: a,
|
|
797
797
|
strokeLinejoin: "round"
|
|
798
|
-
}) : /* @__PURE__ */ c(
|
|
798
|
+
}) : /* @__PURE__ */ c(xe, {
|
|
799
799
|
symbol: S,
|
|
800
800
|
glyphs: l,
|
|
801
|
-
...
|
|
801
|
+
...D
|
|
802
802
|
});
|
|
803
803
|
}, cr = (e, t, r) => mt(e) || t.includes(e) || !le(e) && r.has(e) ? e : t[0] ?? "circle", Kn = ({ children: e, ...t }) => {
|
|
804
|
-
const r =
|
|
804
|
+
const r = we()?.size ?? null;
|
|
805
805
|
return /* @__PURE__ */ c("svg", {
|
|
806
806
|
viewBox: "0 0 1 1",
|
|
807
807
|
preserveAspectRatio: "none",
|
|
@@ -809,14 +809,14 @@ var K = (e, t) => {
|
|
|
809
809
|
height: "100%",
|
|
810
810
|
pointerEvents: "none",
|
|
811
811
|
...t,
|
|
812
|
-
children: /* @__PURE__ */ c(
|
|
812
|
+
children: /* @__PURE__ */ c(Ie, {
|
|
813
813
|
size: r,
|
|
814
814
|
space: "unit",
|
|
815
815
|
children: e
|
|
816
816
|
})
|
|
817
817
|
});
|
|
818
|
-
},
|
|
819
|
-
const r =
|
|
818
|
+
}, Un = ({ box: e, children: t }) => {
|
|
819
|
+
const r = _e(), n = r === null ? null : r.width * (e.x1 - e.x0), s = r === null ? null : r.height * (e.y1 - e.y0), i = H(() => n === null || s === null ? null : {
|
|
820
820
|
width: n,
|
|
821
821
|
height: s
|
|
822
822
|
}, [n, s]);
|
|
@@ -827,30 +827,30 @@ var K = (e, t) => {
|
|
|
827
827
|
height: Q(e.y1 - e.y0),
|
|
828
828
|
overflow: "hidden",
|
|
829
829
|
pointerEvents: "none",
|
|
830
|
-
children: /* @__PURE__ */ c(
|
|
830
|
+
children: /* @__PURE__ */ c(Ie, {
|
|
831
831
|
size: i,
|
|
832
832
|
children: t
|
|
833
833
|
})
|
|
834
834
|
});
|
|
835
|
-
}, lr = "drqe3u0", dr = "drqe3u1", ur = "drqe3u2", mr = "drqe3u3", F = "drqe3u4", hr = "drqe3u5", gr = "drqe3u6", pr = "drqe3u7",
|
|
835
|
+
}, lr = "drqe3u0", dr = "drqe3u1", ur = "drqe3u2", mr = "drqe3u3", F = "drqe3u4", hr = "drqe3u5", gr = "drqe3u6", pr = "drqe3u7", J = "drqe3u8", fr = "drqe3u9", vr = "drqe3ua";
|
|
836
836
|
var yr = "drqe3uc", Sr = "drqe3ud", br = "drqe3ue", Tr = "drqe3uf";
|
|
837
|
-
var
|
|
837
|
+
var Er = "drqe3uh", Gr = "drqe3ui", Ge = {
|
|
838
838
|
enabled: "drqe3uk drqe3uj",
|
|
839
839
|
disabled: "drqe3ul drqe3uj"
|
|
840
840
|
}, Re = {
|
|
841
841
|
ran: "drqe3un drqe3um",
|
|
842
842
|
dim: "drqe3uo drqe3um"
|
|
843
|
-
},
|
|
843
|
+
}, Le = {
|
|
844
844
|
ran: "drqe3uq drqe3up",
|
|
845
845
|
cached: "drqe3ur drqe3up",
|
|
846
846
|
untouched: "drqe3us drqe3up"
|
|
847
|
-
},
|
|
847
|
+
}, zn = ({ width: e = 440, style: t, className: r } = {}) => {
|
|
848
848
|
const { compileBus: n } = ae(), [s] = y(() => kt()), [i, a] = y(!1), [l, d] = y(ut);
|
|
849
849
|
k(() => {
|
|
850
850
|
const { recordCompile: m } = s.getState(), T = n.getLastTrigger(), v = n.getLastCompile();
|
|
851
851
|
return T && v && m(T, v), n.subscribe(m);
|
|
852
852
|
}, [s, n]);
|
|
853
|
-
const h = ie(s, (m) => m.lastCompile), S = ie(s, (m) => m.history),
|
|
853
|
+
const h = ie(s, (m) => m.lastCompile), S = ie(s, (m) => m.history), D = n.getCacheStats(), N = h === null && S.length === 0, g = () => {
|
|
854
854
|
d((m) => {
|
|
855
855
|
const T = !m;
|
|
856
856
|
return gt(T), T;
|
|
@@ -870,7 +870,7 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
870
870
|
children: "compile cache"
|
|
871
871
|
}), /* @__PURE__ */ c("div", {
|
|
872
872
|
className: br,
|
|
873
|
-
children:
|
|
873
|
+
children: N ? "production: stats disabled" : h ? `last: ${h.label} · ${ue(h.durationMs)}` : "awaiting first compile…"
|
|
874
874
|
})] }), /* @__PURE__ */ c("button", {
|
|
875
875
|
type: "button",
|
|
876
876
|
onClick: () => a((m) => !m),
|
|
@@ -883,7 +883,7 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
883
883
|
children: [/* @__PURE__ */ f("button", {
|
|
884
884
|
type: "button",
|
|
885
885
|
onClick: g,
|
|
886
|
-
className: l ?
|
|
886
|
+
className: l ? Ge.enabled : Ge.disabled,
|
|
887
887
|
"aria-pressed": l,
|
|
888
888
|
children: ["cache ", l ? "enabled" : "disabled"]
|
|
889
889
|
}), /* @__PURE__ */ c("span", {
|
|
@@ -891,17 +891,17 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
891
891
|
children: "next compile reflects this toggle"
|
|
892
892
|
})]
|
|
893
893
|
}),
|
|
894
|
-
!i && !
|
|
894
|
+
!i && !N && /* @__PURE__ */ f(St, { children: [/* @__PURE__ */ c(Rr, {
|
|
895
895
|
delta: h?.stages,
|
|
896
896
|
durations: h?.stageDurationsMs,
|
|
897
|
-
cumulative:
|
|
898
|
-
}), /* @__PURE__ */ c(
|
|
897
|
+
cumulative: D
|
|
898
|
+
}), /* @__PURE__ */ c(Ir, { entries: S })] })
|
|
899
899
|
]
|
|
900
900
|
});
|
|
901
901
|
}, Rr = ({ delta: e, durations: t, cumulative: r }) => /* @__PURE__ */ f("table", {
|
|
902
902
|
className: ur,
|
|
903
903
|
children: [/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ f("tr", {
|
|
904
|
-
className:
|
|
904
|
+
className: Er,
|
|
905
905
|
children: [
|
|
906
906
|
/* @__PURE__ */ c("th", {
|
|
907
907
|
className: mr,
|
|
@@ -929,7 +929,7 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
929
929
|
})
|
|
930
930
|
]
|
|
931
931
|
}) }), /* @__PURE__ */ c("tbody", { children: ce.map((n) => {
|
|
932
|
-
const s = e?.[n], i =
|
|
932
|
+
const s = e?.[n], i = Nr(s);
|
|
933
933
|
return /* @__PURE__ */ f("tr", {
|
|
934
934
|
className: yr,
|
|
935
935
|
children: [
|
|
@@ -937,7 +937,7 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
937
937
|
className: hr,
|
|
938
938
|
children: [
|
|
939
939
|
/* @__PURE__ */ c("span", {
|
|
940
|
-
className:
|
|
940
|
+
className: Le[i],
|
|
941
941
|
"aria-hidden": !0
|
|
942
942
|
}),
|
|
943
943
|
" ",
|
|
@@ -945,7 +945,7 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
945
945
|
]
|
|
946
946
|
}),
|
|
947
947
|
/* @__PURE__ */ c("td", {
|
|
948
|
-
className:
|
|
948
|
+
className: J,
|
|
949
949
|
children: t === void 0 || i === "untouched" ? "—" : ue(t[n])
|
|
950
950
|
}),
|
|
951
951
|
/* @__PURE__ */ c("td", {
|
|
@@ -953,32 +953,32 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
953
953
|
children: s?.misses ?? 0
|
|
954
954
|
}),
|
|
955
955
|
/* @__PURE__ */ c("td", {
|
|
956
|
-
className:
|
|
956
|
+
className: J,
|
|
957
957
|
children: s?.hits ?? 0
|
|
958
958
|
}),
|
|
959
959
|
/* @__PURE__ */ c("td", {
|
|
960
|
-
className:
|
|
960
|
+
className: J,
|
|
961
961
|
children: r[n].misses
|
|
962
962
|
}),
|
|
963
963
|
/* @__PURE__ */ c("td", {
|
|
964
|
-
className:
|
|
964
|
+
className: J,
|
|
965
965
|
children: r[n].hits
|
|
966
966
|
})
|
|
967
967
|
]
|
|
968
968
|
}, n);
|
|
969
969
|
}) })]
|
|
970
|
-
}),
|
|
970
|
+
}), Ir = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ f("div", {
|
|
971
971
|
className: Sr,
|
|
972
972
|
children: [/* @__PURE__ */ c("div", {
|
|
973
|
-
className:
|
|
973
|
+
className: Gr,
|
|
974
974
|
children: "recent compiles"
|
|
975
975
|
}), e.map((t) => {
|
|
976
|
-
const r =
|
|
976
|
+
const r = wr(t.stages, (i) => i.misses > 0), n = ce.length;
|
|
977
977
|
return /* @__PURE__ */ f("div", {
|
|
978
978
|
className: gr,
|
|
979
979
|
children: [
|
|
980
980
|
/* @__PURE__ */ c("span", {
|
|
981
|
-
className:
|
|
981
|
+
className: Le[r === 0 ? "cached" : "ran"],
|
|
982
982
|
"aria-hidden": !0
|
|
983
983
|
}),
|
|
984
984
|
/* @__PURE__ */ c("span", {
|
|
@@ -999,11 +999,11 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
999
999
|
]
|
|
1000
1000
|
}, t.id);
|
|
1001
1001
|
})]
|
|
1002
|
-
}),
|
|
1002
|
+
}), Nr = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", wr = (e, t) => {
|
|
1003
1003
|
let r = 0;
|
|
1004
1004
|
for (const n of ce) t(e[n]) && (r += 1);
|
|
1005
1005
|
return r;
|
|
1006
|
-
}, ue = (e) => e < 0.1 ? "<0.1ms" : e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`,
|
|
1006
|
+
}, ue = (e) => e < 0.1 ? "<0.1ms" : e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, Wn = () => {
|
|
1007
1007
|
const { history: e } = ae(), { stack: t, undo: r, redo: n } = e, s = p((l) => t.subscribe(l), [t]), i = p(() => t.getSnapshot(), [t]), a = yt(s, i, i);
|
|
1008
1008
|
return H(() => ({
|
|
1009
1009
|
...a,
|
|
@@ -1025,14 +1025,14 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
1025
1025
|
"range",
|
|
1026
1026
|
"reset",
|
|
1027
1027
|
"submit"
|
|
1028
|
-
]),
|
|
1028
|
+
]), Yn = (e, t = {}) => {
|
|
1029
1029
|
const { target: r, enabled: n = !0 } = t;
|
|
1030
1030
|
k(() => {
|
|
1031
1031
|
const s = Cr(r);
|
|
1032
1032
|
if (!n || !s) return;
|
|
1033
1033
|
const i = (a) => {
|
|
1034
|
-
if (!
|
|
1035
|
-
const l =
|
|
1034
|
+
if (!Dr(a) || a.defaultPrevented || Lr(a.target)) return;
|
|
1035
|
+
const l = je(a);
|
|
1036
1036
|
if (!l) return;
|
|
1037
1037
|
const d = e.current;
|
|
1038
1038
|
d && (l === "undo" ? d.undo() : d.redo()) && a.preventDefault();
|
|
@@ -1043,84 +1043,84 @@ var Gr = "drqe3uh", Er = "drqe3ui", Ee = {
|
|
|
1043
1043
|
r,
|
|
1044
1044
|
n
|
|
1045
1045
|
]);
|
|
1046
|
-
}, Cr = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e,
|
|
1046
|
+
}, Cr = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, Dr = (e) => "key" in e, Lr = (e) => e instanceof HTMLInputElement ? !Pr.has(e.type) : e instanceof HTMLElement ? e.isContentEditable || e.tagName === "TEXTAREA" : !1, Vn = () => {
|
|
1047
1047
|
const { targetBoundaryStore: e } = ae();
|
|
1048
1048
|
return ie(e, (t) => t.boundary);
|
|
1049
1049
|
};
|
|
1050
1050
|
export {
|
|
1051
|
-
|
|
1052
|
-
|
|
1051
|
+
Nn as CanvasTextMeasurer,
|
|
1052
|
+
_r as DefaultFooter,
|
|
1053
1053
|
tr as DefaultGeomCircle,
|
|
1054
1054
|
rr as DefaultGeomLine,
|
|
1055
1055
|
sr as DefaultGeomPath,
|
|
1056
1056
|
nr as DefaultGeomRect,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1057
|
+
vn as DefaultGrid,
|
|
1058
|
+
nn as DefaultHeader,
|
|
1059
|
+
bn as DefaultSwatch,
|
|
1060
|
+
Qr as DefaultTooltip,
|
|
1061
|
+
zn as DevToolsPanel,
|
|
1062
|
+
Ve as GRAPH_MODES,
|
|
1063
|
+
xn as GeomCircle,
|
|
1064
1064
|
An as GeomLine,
|
|
1065
|
-
|
|
1066
|
-
|
|
1065
|
+
Ur as GeomOverpaint,
|
|
1066
|
+
jr as GeomPanelSizeProvider,
|
|
1067
1067
|
Bn as GeomPath,
|
|
1068
1068
|
On as GeomRect,
|
|
1069
|
-
|
|
1069
|
+
wt as GraphErrorBoundary,
|
|
1070
1070
|
fe as GraphErrorPanel,
|
|
1071
1071
|
Qt as GraphProvider,
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1072
|
+
cn as GraphRenderer,
|
|
1073
|
+
mn as GraphyBadge,
|
|
1074
|
+
rn as HoverProvider,
|
|
1075
|
+
Xr as IntlProvider,
|
|
1076
|
+
un as IntroFade,
|
|
1077
|
+
en as IntroWipeClip,
|
|
1078
1078
|
Fn as SymbolFigure,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1079
|
+
hn as TextMeasurerProvider,
|
|
1080
|
+
Yr as ThemeProvider,
|
|
1081
|
+
Un as UnitBoxSvg,
|
|
1082
1082
|
Kn as UnitSpaceSvg,
|
|
1083
|
-
|
|
1083
|
+
Kr as buildDotsEditOutlineShapes,
|
|
1084
1084
|
Hn as createGraphyKit,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1085
|
+
Ar as darkTheme,
|
|
1086
|
+
Gn as defineGeomRenderer,
|
|
1087
|
+
kr as defineGlyph,
|
|
1088
|
+
dn as getBuiltInEditOutlineShapes,
|
|
1089
|
+
Fr as lightTheme,
|
|
1090
|
+
Hr as lightenCss,
|
|
1091
1091
|
Pt as pruneSelection,
|
|
1092
1092
|
K as readPositionPixels,
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1093
|
+
Mn as readRectPixels,
|
|
1094
|
+
In as resolveGraphyBadgeVariant,
|
|
1095
|
+
zr as resolvePathStroke,
|
|
1096
|
+
sn as scalePointToPanel,
|
|
1097
|
+
Zr as stampAxisEditTarget,
|
|
1098
|
+
Or as stampGridEditTarget,
|
|
1099
1099
|
Jr as stampLegendEditTarget,
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1100
|
+
tn as useElementScreenRect,
|
|
1101
|
+
Mr as useFormattingLocale,
|
|
1102
|
+
on as useGeomHitTest,
|
|
1103
|
+
Tn as useGeomHover,
|
|
1104
|
+
Br as useGeomPanelSize,
|
|
1105
|
+
pn as useGeomReaderTree,
|
|
1106
|
+
ln as useGeomStyleReader,
|
|
1107
|
+
_e as useGeomViewportSize,
|
|
1108
1108
|
re as useGraphAnimation,
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1109
|
+
yn as useGraphCommands,
|
|
1110
|
+
gn as useGraphHandle,
|
|
1111
|
+
Wn as useGraphHistory,
|
|
1112
|
+
Yn as useGraphHistoryShortcuts,
|
|
1113
|
+
wn as useGraphLocale,
|
|
1114
|
+
$r as useGraphSelection,
|
|
1115
|
+
Vr as useGuidesTakePress,
|
|
1116
|
+
En as useHandleScene,
|
|
1117
|
+
xr as useHoverState,
|
|
1118
|
+
Wr as usePaintDefs,
|
|
1119
|
+
Pn as useResolvedStyle,
|
|
1120
|
+
Oe as useSceneSelector,
|
|
1121
|
+
Sn as useStyleReaderTree,
|
|
1122
|
+
Rn as useStyleResolver,
|
|
1123
|
+
Vn as useTargetBoundary,
|
|
1124
1124
|
an as useTextMeasurer,
|
|
1125
|
-
|
|
1125
|
+
fn as vars
|
|
1126
1126
|
};
|