@graphysdk/react-renderer 1.9.0-beta.1795707432298 → 1.9.0-beta.1795708068076
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/ar-DRJfF3kx.cjs +1 -0
- package/dist/ar-DhjH4ZbY.js +883 -0
- package/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +3 -2
- package/dist/editable.mjs +3552 -6165
- package/dist/en-gb-Bj-PFdWU.js +886 -0
- package/dist/en-gb-wV0MmZLj.cjs +1 -0
- package/dist/en-us-CNHaFu8A.js +11 -0
- package/dist/en-us-CfL-X7mL.cjs +1 -0
- package/dist/{history-chords-DsyzK0E1.js → history-chords-Buxa3waC.js} +92 -91
- package/dist/{history-chords-DaTCFopa.cjs → history-chords-DDZ_6FBc.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +152 -152
- package/dist/pt-pt-1KAFquYm.js +884 -0
- package/dist/pt-pt-Dl-e1WyP.cjs +1 -0
- package/dist/{rich-text-editor-module-Gwyekzd_.js → rich-text-editor-module-BjO3665Z.js} +8 -8
- package/dist/{rich-text-editor-module-E-39Qvp9.cjs → rich-text-editor-module-DiUIhnGd.cjs} +1 -1
- package/dist/{start-arrow-button-CqFgBJ0s.js → start-arrow-button-CGhJeFr2.js} +79 -79
- package/dist/{start-arrow-button-DlSXTrKp.cjs → start-arrow-button-DjGnXDVD.cjs} +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as zr, $n as
|
|
2
|
-
import { COMPILER_STAGE_KEYS as le, DEFAULT_LOCALE as ct, Geom as lt, GraphCompilationSession as dt, areEditTargetsEqual as ut, buildDiagnostic as ge, buildPointSymbolPath as mt, canonicalizeLocale as ht, createAnchorResolver as gt, createCompiler as pt, createDataLabelPlacementResolver as ft, createSpecBuilder as vt, createStyleResolver as De, findAnnotation as yt, findIntlLocale as St, findLayerById as pe, foldGeomCornerRadii as bt, getLegendGroupKey as
|
|
3
|
-
import { Component as
|
|
1
|
+
import { $ as zr, $n as Ie, An as Vr, Cn as ee, Cr as Pe, Dn as jr, Dr as Yr, Er as Xr, Fr as ce, Ft as Qr, H as Jr, It as Zr, Jn as W, Kn as en, Kt as tn, Ln as rn, Lt as nn, Mn as sn, Mr as he, Nn as on, Nr as $e, On as He, Or as Me, P as an, Pr as xe, Pt as cn, Q as ln, Qn as te, Sn as dn, Sr as se, Tn as un, Tr as mn, U as hn, Un as gn, Ut as pn, W as fn, X as vn, Xn as yn, Yn as Ce, Yt as Sn, Zn as Ae, _n as Oe, _r as Le, a as bn, an as Tn, ar as z, bn as Be, br as Fe, cn as Gn, cr as En, dr as Ke, er as Ue, et as Rn, fn as We, fr as ze, gr as Ve, hn as je, i as wn, ir as Nn, jn as In, jr as oe, kn as Ye, kr as Xe, l as Pn, lr as Cn, mn as Qe, mr as Je, n as Ln, nn as Dn, nr as re, on as _n, or as qn, pn as Ze, pr as kn, qn as $n, qt as Hn, r as Mn, sn as xn, t as et, tr as tt, ur as rt, vr as nt, w as An, wn as st, wr as On, xn as Bn, xr as ot, yn as it, yr as at } from "./history-chords-Buxa3waC.js";
|
|
2
|
+
import { COMPILER_STAGE_KEYS as le, DEFAULT_LOCALE as ct, Geom as lt, GraphCompilationSession as dt, areEditTargetsEqual as ut, buildDiagnostic as ge, buildPointSymbolPath as mt, canonicalizeLocale as ht, createAnchorResolver as gt, createCompiler as pt, createDataLabelPlacementResolver as ft, createSpecBuilder as vt, createStyleResolver as De, findAnnotation as yt, findIntlLocale as St, findLayerById as pe, foldGeomCornerRadii as bt, getLegendGroupKey as Tt, isCompilerCachingEnabled as Gt, isGeometricSymbol as de, isImageSymbol as Et, resolveDefinition as Rt, resolveGeomCornerRadiusPx as fe, setCompilerCachingEnabled as wt, toPercent as J } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Component as Nt, useCallback as f, useEffect as q, useId as It, useImperativeHandle as Pt, useMemo as x, useRef as ve, useState as v, useSyncExternalStore as Ct } from "react";
|
|
4
4
|
import { Fragment as Lt, jsx as c, jsxs as y } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as ie } from "zustand";
|
|
6
6
|
import { createStore as ue } from "zustand/vanilla";
|
|
@@ -47,7 +47,7 @@ var ye = ({ errors: e }) => {
|
|
|
47
47
|
function Mt(e = [], t = []) {
|
|
48
48
|
return e.length === t.length && e.every((r, n) => Object.is(r, t[n]));
|
|
49
49
|
}
|
|
50
|
-
var xt = class extends
|
|
50
|
+
var xt = class extends Nt {
|
|
51
51
|
constructor(...e) {
|
|
52
52
|
super(...e), this.state = { caughtDiagnostic: null };
|
|
53
53
|
}
|
|
@@ -75,16 +75,16 @@ var xt = class extends It {
|
|
|
75
75
|
if (e.position === "none") return t;
|
|
76
76
|
for (const r of e.drawn)
|
|
77
77
|
if (!(!r.hidesGroups || r.display !== "pill"))
|
|
78
|
-
for (const n of r.items) t.add(
|
|
78
|
+
for (const n of r.items) t.add(Tt(r, n));
|
|
79
79
|
return t;
|
|
80
80
|
}, Ot = (e, t) => {
|
|
81
81
|
const r = e.filter((n) => Bt(n, t));
|
|
82
82
|
return r.length === e.length ? e : r;
|
|
83
|
-
}, Bt = (e, t) => e.kind === "annotation" ? yt(t.annotations, e.id) !== null : e.kind === "observations" ? pe(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? pe(t.layers, e.layerId) !== void 0 : !0, be = [],
|
|
83
|
+
}, Bt = (e, t) => e.kind === "annotation" ? yt(t.annotations, e.id) !== null : e.kind === "observations" ? pe(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? pe(t.layers, e.layerId) !== void 0 : !0, be = [], Ft = () => ue((e) => ({
|
|
84
84
|
selection: be,
|
|
85
|
-
setSelection: (t) => e((r) =>
|
|
85
|
+
setSelection: (t) => e((r) => Kt(r.selection, t) ? r : { selection: t }),
|
|
86
86
|
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: be })
|
|
87
|
-
})),
|
|
87
|
+
})), Kt = (e, t) => e === t ? !0 : e.length !== t.length ? !1 : e.every((r, n) => {
|
|
88
88
|
const s = t[n];
|
|
89
89
|
return s !== void 0 && ut(r, s);
|
|
90
90
|
}), Ut = 5, Wt = (e) => {
|
|
@@ -150,8 +150,8 @@ var xt = class extends It {
|
|
|
150
150
|
const n = e.length >= r ? e.length - (r - 1) : 0;
|
|
151
151
|
return [...e.slice(n), t];
|
|
152
152
|
};
|
|
153
|
-
function
|
|
154
|
-
const t = e.filter(_e), r = /* @__PURE__ */ new Set([...Object.keys(
|
|
153
|
+
function Te(e) {
|
|
154
|
+
const t = e.filter(_e), r = /* @__PURE__ */ new Set([...Object.keys(st), ...t.map((l) => l.geom)]), n = [], s = /* @__PURE__ */ new Set();
|
|
155
155
|
for (const l of e) {
|
|
156
156
|
const d = qe(l);
|
|
157
157
|
d === null || r.has(d.type) || s.has(d.type) || (s.add(d.type), n.push({
|
|
@@ -339,7 +339,7 @@ var or = (e) => ue((t) => ({
|
|
|
339
339
|
scene: e,
|
|
340
340
|
setScene: (r) => t((n) => n.scene === r ? n : { scene: r })
|
|
341
341
|
})), ir = ({ spec: e, data: t, colorScheme: r, hiddenGroups: n, plugins: s, theme: a, resolveRenderer: i, anchorResolver: l, onSpecChange: d, onError: g, onWarnings: S }) => {
|
|
342
|
-
const
|
|
342
|
+
const T = se(d), N = se(g), C = se(S), [h] = v(() => $e(ae, (o) => {
|
|
343
343
|
C.current?.(o);
|
|
344
344
|
})), [{ session: m, compileBus: p, findGeom: V }] = v(() => {
|
|
345
345
|
const o = pt({
|
|
@@ -352,17 +352,17 @@ var or = (e) => ue((t) => ({
|
|
|
352
352
|
findGeom: (u) => o.findGeom(u)
|
|
353
353
|
};
|
|
354
354
|
}), [w] = v(() => {
|
|
355
|
-
const o =
|
|
355
|
+
const o = Te(s ?? []), u = Te(a?.plugins ?? []);
|
|
356
356
|
return {
|
|
357
357
|
errors: [...u.errors, ...o.errors],
|
|
358
358
|
warnings: [...u.warnings, ...o.warnings]
|
|
359
359
|
};
|
|
360
|
-
}), k = ve(null), [b] = v(ar),
|
|
360
|
+
}), k = ve(null), [b] = v(ar), G = ve(null), L = f((o) => w.errors.length === 0 ? o : [...w.errors, ...o ?? []], [w]), $ = f((o) => {
|
|
361
361
|
if (!o.ok) return o.errors;
|
|
362
|
-
if (
|
|
362
|
+
if (G.current) G.current.getState().setScene(o.scene);
|
|
363
363
|
else {
|
|
364
364
|
const u = or(o.scene);
|
|
365
|
-
u.subscribe(b.notify),
|
|
365
|
+
u.subscribe(b.notify), G.current = u, b.notify();
|
|
366
366
|
}
|
|
367
367
|
return null;
|
|
368
368
|
}, [b]), [E, A] = v(() => {
|
|
@@ -373,7 +373,7 @@ var or = (e) => ue((t) => ({
|
|
|
373
373
|
hiddenGroups: n
|
|
374
374
|
});
|
|
375
375
|
return k.current = o, L($(o));
|
|
376
|
-
}),
|
|
376
|
+
}), I = f((o) => o.ok ? [
|
|
377
377
|
...o.warnings,
|
|
378
378
|
...Xt(o.scene, i),
|
|
379
379
|
...Qt(o.scene, i),
|
|
@@ -383,17 +383,17 @@ var or = (e) => ue((t) => ({
|
|
|
383
383
|
...rr(o.scene, i),
|
|
384
384
|
...er(o.scene, l)
|
|
385
385
|
] : o.warnings, [i, l]), P = f((o) => {
|
|
386
|
-
o.length !== 0 && (ae(o),
|
|
387
|
-
}, [
|
|
386
|
+
o.length !== 0 && (ae(o), N.current?.(o));
|
|
387
|
+
}, [N]);
|
|
388
388
|
q(() => {
|
|
389
389
|
const o = k.current;
|
|
390
|
-
o && (P([...w.errors, ...o.ok ? [] : o.errors]), h(
|
|
390
|
+
o && (P([...w.errors, ...o.ok ? [] : o.errors]), h(oe, [...w.warnings, ...I(o)]), o.ok && p.emit({ kind: "init" }));
|
|
391
391
|
}, [
|
|
392
392
|
p,
|
|
393
393
|
P,
|
|
394
394
|
h,
|
|
395
395
|
w,
|
|
396
|
-
|
|
396
|
+
I
|
|
397
397
|
]), q(() => {
|
|
398
398
|
const o = m.update({
|
|
399
399
|
spec: e,
|
|
@@ -402,9 +402,9 @@ var or = (e) => ue((t) => ({
|
|
|
402
402
|
hiddenGroups: n
|
|
403
403
|
});
|
|
404
404
|
if (!o) return;
|
|
405
|
-
o.committedSpec &&
|
|
405
|
+
o.committedSpec && T.current?.(o.committedSpec);
|
|
406
406
|
const u = $(o.result);
|
|
407
|
-
A(L(u)), u && P(u), h(
|
|
407
|
+
A(L(u)), u && P(u), h(oe, I(o.result)), u || p.emit({ kind: o.hasSpecChange ? "spec" : "data" });
|
|
408
408
|
}, [
|
|
409
409
|
e,
|
|
410
410
|
t,
|
|
@@ -416,24 +416,24 @@ var or = (e) => ue((t) => ({
|
|
|
416
416
|
P,
|
|
417
417
|
h,
|
|
418
418
|
L,
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
I,
|
|
420
|
+
T
|
|
421
421
|
]);
|
|
422
422
|
const O = f((o) => {
|
|
423
|
-
A((u) => u === null ? u : L(null)), h(
|
|
423
|
+
A((u) => u === null ? u : L(null)), h(oe, I(o));
|
|
424
424
|
}, [
|
|
425
425
|
L,
|
|
426
426
|
h,
|
|
427
|
-
|
|
427
|
+
I
|
|
428
428
|
]), D = f((o) => {
|
|
429
|
-
o.scene &&
|
|
429
|
+
o.scene && G.current?.getState().setScene(o.scene), o.result && O(o.result), o.command && p.emit({
|
|
430
430
|
kind: "command",
|
|
431
431
|
command: o.command
|
|
432
|
-
}), o.spec &&
|
|
432
|
+
}), o.spec && T.current?.(o.spec), o.errors && P([...o.errors]);
|
|
433
433
|
}, [
|
|
434
434
|
O,
|
|
435
435
|
p,
|
|
436
|
-
|
|
436
|
+
T,
|
|
437
437
|
P
|
|
438
438
|
]), R = f((o) => {
|
|
439
439
|
for (const u of o) D(u);
|
|
@@ -442,12 +442,12 @@ var or = (e) => ue((t) => ({
|
|
|
442
442
|
R(m.applyCommand(o, u));
|
|
443
443
|
}, [m, R]), Y = f(() => {
|
|
444
444
|
R(m.commit());
|
|
445
|
-
}, [m, R]), X = f(() => R(m.undo()), [m, R]), B = f(() => R(m.redo()), [m, R]),
|
|
445
|
+
}, [m, R]), X = f(() => R(m.undo()), [m, R]), B = f(() => R(m.redo()), [m, R]), F = f((o) => {
|
|
446
446
|
const u = m.preview(o).find((_) => _.scene)?.scene;
|
|
447
|
-
return u ? (
|
|
447
|
+
return u ? (G.current?.getState().setScene(u), !0) : !1;
|
|
448
448
|
}, [m]), H = f(() => {
|
|
449
449
|
const o = m.scene;
|
|
450
|
-
o &&
|
|
450
|
+
o && G.current?.getState().setScene(o);
|
|
451
451
|
}, [m]), M = x(() => ({
|
|
452
452
|
stack: m.history,
|
|
453
453
|
undo: X,
|
|
@@ -456,12 +456,12 @@ var or = (e) => ue((t) => ({
|
|
|
456
456
|
m,
|
|
457
457
|
X,
|
|
458
458
|
B
|
|
459
|
-
]), Q = f(() =>
|
|
459
|
+
]), Q = f(() => G.current?.getState().scene ?? null, []);
|
|
460
460
|
return {
|
|
461
|
-
store:
|
|
461
|
+
store: G.current,
|
|
462
462
|
dispatch: j,
|
|
463
463
|
commit: Y,
|
|
464
|
-
paintPreview:
|
|
464
|
+
paintPreview: F,
|
|
465
465
|
clearPreview: H,
|
|
466
466
|
history: M,
|
|
467
467
|
subscribe: b.subscribe,
|
|
@@ -479,23 +479,23 @@ var or = (e) => ue((t) => ({
|
|
|
479
479
|
}),
|
|
480
480
|
notify: () => e.forEach((t) => t())
|
|
481
481
|
};
|
|
482
|
-
}, cr = ["cartesian", "polar"], lr = ({ mode: e =
|
|
483
|
-
const r =
|
|
484
|
-
return /* @__PURE__ */ c(
|
|
482
|
+
}, cr = ["cartesian", "polar"], lr = ({ mode: e = Oe.readonly, ...t }) => {
|
|
483
|
+
const r = it(e);
|
|
484
|
+
return /* @__PURE__ */ c(Qe, {
|
|
485
485
|
mode: r,
|
|
486
486
|
children: /* @__PURE__ */ c(dr, {
|
|
487
487
|
...t,
|
|
488
488
|
mode: r
|
|
489
489
|
})
|
|
490
490
|
});
|
|
491
|
-
}, dr = ({ data: e, spec: t, plugins: r = [], theme: n, glyphs: s, formattingLocale: a, handleRef: i, onSpecChange: l, onError: d, onWarnings: g, colorScheme: S = "light", mode:
|
|
492
|
-
const [C] = v(() => n), [h] = v(() =>
|
|
491
|
+
}, dr = ({ data: e, spec: t, plugins: r = [], theme: n, glyphs: s, formattingLocale: a, handleRef: i, onSpecChange: l, onError: d, onWarnings: g, colorScheme: S = "light", mode: T, children: N }) => {
|
|
492
|
+
const [C] = v(() => n), [h] = v(() => Je(n?.glyphs, s)), m = C?.colorScheme ?? S, [p] = v(() => Be([...C?.plugins ?? [], ...r].filter(_e)));
|
|
493
493
|
mr(p, h);
|
|
494
|
-
const V =
|
|
494
|
+
const V = It(), [w] = v(() => gt(r)), [k] = v(() => ft(r)), [b] = v(() => Ft()), [G] = v(() => We()), L = x(() => De({ colorScheme: m }), [m]), $ = je(), { store: E, dispatch: A, commit: I, paintPreview: P, clearPreview: O, history: D, subscribe: R, getScene: j, compileBus: Y, compileErrors: X, findGeom: B, reportWarningSource: F } = ir({
|
|
495
495
|
spec: t,
|
|
496
496
|
data: e,
|
|
497
497
|
colorScheme: m,
|
|
498
|
-
hiddenGroups:
|
|
498
|
+
hiddenGroups: Ze(),
|
|
499
499
|
plugins: r,
|
|
500
500
|
theme: C,
|
|
501
501
|
resolveRenderer: p,
|
|
@@ -503,7 +503,7 @@ var or = (e) => ue((t) => ({
|
|
|
503
503
|
onSpecChange: l,
|
|
504
504
|
onError: d,
|
|
505
505
|
onWarnings: g
|
|
506
|
-
}), H = hr(a,
|
|
506
|
+
}), H = hr(a, F);
|
|
507
507
|
q(() => {
|
|
508
508
|
if (E)
|
|
509
509
|
return E.subscribe((o, u) => {
|
|
@@ -523,12 +523,12 @@ var or = (e) => ue((t) => ({
|
|
|
523
523
|
}, [E, $]);
|
|
524
524
|
const M = x(() => ({
|
|
525
525
|
dispatch: A,
|
|
526
|
-
commit:
|
|
526
|
+
commit: I,
|
|
527
527
|
paintPreview: P,
|
|
528
528
|
clearPreview: O
|
|
529
529
|
}), [
|
|
530
530
|
A,
|
|
531
|
-
|
|
531
|
+
I,
|
|
532
532
|
P,
|
|
533
533
|
O
|
|
534
534
|
]);
|
|
@@ -561,48 +561,48 @@ var or = (e) => ue((t) => ({
|
|
|
561
561
|
chartId: V,
|
|
562
562
|
store: E,
|
|
563
563
|
selectionStore: b,
|
|
564
|
-
targetBoundaryStore:
|
|
564
|
+
targetBoundaryStore: G,
|
|
565
565
|
commands: M,
|
|
566
566
|
history: D,
|
|
567
567
|
formattingLocale: H,
|
|
568
568
|
compileBus: Y,
|
|
569
569
|
colorScheme: m,
|
|
570
|
-
mode:
|
|
570
|
+
mode: T,
|
|
571
571
|
styleResolver: L,
|
|
572
572
|
anchorResolver: w,
|
|
573
573
|
findGeom: B,
|
|
574
|
-
reportLayoutWarnings:
|
|
574
|
+
reportLayoutWarnings: F
|
|
575
575
|
} : null, [
|
|
576
576
|
V,
|
|
577
577
|
E,
|
|
578
578
|
b,
|
|
579
|
-
|
|
579
|
+
G,
|
|
580
580
|
M,
|
|
581
581
|
D,
|
|
582
582
|
H,
|
|
583
583
|
Y,
|
|
584
584
|
m,
|
|
585
|
-
|
|
585
|
+
T,
|
|
586
586
|
L,
|
|
587
587
|
w,
|
|
588
588
|
B,
|
|
589
|
-
|
|
589
|
+
F
|
|
590
590
|
]);
|
|
591
591
|
return /* @__PURE__ */ c(xt, {
|
|
592
592
|
forcedErrors: X,
|
|
593
593
|
onError: d,
|
|
594
594
|
resetKeys: [t, e],
|
|
595
|
-
children: Q ? /* @__PURE__ */ c(
|
|
595
|
+
children: Q ? /* @__PURE__ */ c(xe.Provider, {
|
|
596
596
|
value: Q,
|
|
597
|
-
children: /* @__PURE__ */ c(
|
|
597
|
+
children: /* @__PURE__ */ c(He, {
|
|
598
598
|
value: p,
|
|
599
|
-
children: /* @__PURE__ */ c(
|
|
599
|
+
children: /* @__PURE__ */ c(Xe, {
|
|
600
600
|
value: k,
|
|
601
|
-
children: /* @__PURE__ */ c(
|
|
601
|
+
children: /* @__PURE__ */ c(W, {
|
|
602
602
|
shapes: C?.shapes,
|
|
603
|
-
children: /* @__PURE__ */ c(
|
|
603
|
+
children: /* @__PURE__ */ c(ze, {
|
|
604
604
|
glyphs: h,
|
|
605
|
-
children:
|
|
605
|
+
children: N
|
|
606
606
|
})
|
|
607
607
|
})
|
|
608
608
|
})
|
|
@@ -653,8 +653,8 @@ var U = (e, t) => {
|
|
|
653
653
|
height: d
|
|
654
654
|
};
|
|
655
655
|
}, gr = ({ animateTransitions: e, cx: t, cy: r, r: n, effects: s, ...a }) => {
|
|
656
|
-
const i =
|
|
657
|
-
return e ? /* @__PURE__ */ c(
|
|
656
|
+
const i = z(s);
|
|
657
|
+
return e ? /* @__PURE__ */ c(nt, {
|
|
658
658
|
animate: {
|
|
659
659
|
cx: t,
|
|
660
660
|
cy: r,
|
|
@@ -670,8 +670,8 @@ var U = (e, t) => {
|
|
|
670
670
|
...a
|
|
671
671
|
});
|
|
672
672
|
}, pr = ({ animateTransitions: e, x1: t, y1: r, x2: n, y2: s, effects: a, ...i }) => {
|
|
673
|
-
const l =
|
|
674
|
-
return e ? /* @__PURE__ */ c(
|
|
673
|
+
const l = z(a);
|
|
674
|
+
return e ? /* @__PURE__ */ c(at, {
|
|
675
675
|
animate: {
|
|
676
676
|
x1: t,
|
|
677
677
|
y1: r,
|
|
@@ -689,7 +689,7 @@ var U = (e, t) => {
|
|
|
689
689
|
...i
|
|
690
690
|
});
|
|
691
691
|
}, fr = ({ animateTransitions: e, x: t, y: r, width: n, height: s, rx: a, ry: i, effects: l, ...d }) => {
|
|
692
|
-
const g =
|
|
692
|
+
const g = z(l);
|
|
693
693
|
if (!e) return /* @__PURE__ */ c("rect", {
|
|
694
694
|
x: t,
|
|
695
695
|
y: r,
|
|
@@ -706,7 +706,7 @@ var U = (e, t) => {
|
|
|
706
706
|
width: n,
|
|
707
707
|
height: s
|
|
708
708
|
};
|
|
709
|
-
return /* @__PURE__ */ c(
|
|
709
|
+
return /* @__PURE__ */ c(ot, {
|
|
710
710
|
animate: a === void 0 || i === void 0 ? S : {
|
|
711
711
|
...S,
|
|
712
712
|
rx: a,
|
|
@@ -716,7 +716,7 @@ var U = (e, t) => {
|
|
|
716
716
|
...d
|
|
717
717
|
});
|
|
718
718
|
}, vr = ({ animateTransitions: e, d: t, source: r, effects: n, ...s }) => {
|
|
719
|
-
const a =
|
|
719
|
+
const a = z(n);
|
|
720
720
|
return e ? /* @__PURE__ */ c(yr, {
|
|
721
721
|
d: t,
|
|
722
722
|
source: r,
|
|
@@ -733,12 +733,12 @@ var U = (e, t) => {
|
|
|
733
733
|
animateTransitions: r
|
|
734
734
|
};
|
|
735
735
|
return n !== void 0 && n !== "circle" ? /* @__PURE__ */ c("g", {
|
|
736
|
-
style:
|
|
736
|
+
style: z(e.effects),
|
|
737
737
|
"data-testid": e["data-testid"],
|
|
738
|
-
children: /* @__PURE__ */ c(
|
|
738
|
+
children: /* @__PURE__ */ c(rt, {
|
|
739
739
|
symbol: n,
|
|
740
|
-
cx:
|
|
741
|
-
cy:
|
|
740
|
+
cx: Ge(e.cx),
|
|
741
|
+
cy: Ge(e.cy),
|
|
742
742
|
size: e.r * 2,
|
|
743
743
|
fill: e.fill ?? "currentColor",
|
|
744
744
|
fillOpacity: e.fillOpacity,
|
|
@@ -747,33 +747,33 @@ var U = (e, t) => {
|
|
|
747
747
|
strokeOpacity: e.strokeOpacity,
|
|
748
748
|
strokeWidth: e.strokeWidth,
|
|
749
749
|
motion: r ? {
|
|
750
|
-
transition:
|
|
750
|
+
transition: Pe,
|
|
751
751
|
intro: !1,
|
|
752
752
|
fadesIn: !1
|
|
753
753
|
} : null
|
|
754
754
|
})
|
|
755
|
-
}) : t === void 0 ? gr(a) : /* @__PURE__ */ c(
|
|
755
|
+
}) : t === void 0 ? gr(a) : /* @__PURE__ */ c(W, { children: /* @__PURE__ */ c(t, { ...a }) });
|
|
756
756
|
}, Qn = (e) => {
|
|
757
757
|
const { Line: t } = te(), { animateTransitions: r } = re(), n = {
|
|
758
758
|
...e,
|
|
759
759
|
animateTransitions: r
|
|
760
760
|
};
|
|
761
|
-
return t === void 0 ? pr(n) : /* @__PURE__ */ c(
|
|
761
|
+
return t === void 0 ? pr(n) : /* @__PURE__ */ c(W, { children: /* @__PURE__ */ c(t, { ...n }) });
|
|
762
762
|
}, Jn = ({ cornerRadius: e, ...t }) => {
|
|
763
|
-
const { Rect: r } = te(), n =
|
|
763
|
+
const { Rect: r } = te(), n = Ie()?.size ?? null, s = Ae(), { animateTransitions: a } = re(), i = {
|
|
764
764
|
...t,
|
|
765
765
|
animateTransitions: a,
|
|
766
766
|
...Sr(e, t, n, s)
|
|
767
767
|
};
|
|
768
|
-
return r === void 0 ? fr(i) : /* @__PURE__ */ c(
|
|
768
|
+
return r === void 0 ? fr(i) : /* @__PURE__ */ c(W, { children: /* @__PURE__ */ c(r, { ...i }) });
|
|
769
769
|
}, Zn = (e) => {
|
|
770
770
|
const { Path: t } = te(), { animateTransitions: r } = re(), n = {
|
|
771
771
|
...e,
|
|
772
772
|
animateTransitions: r
|
|
773
773
|
};
|
|
774
|
-
return t === void 0 ? vr(n) : /* @__PURE__ */ c(
|
|
775
|
-
},
|
|
776
|
-
d:
|
|
774
|
+
return t === void 0 ? vr(n) : /* @__PURE__ */ c(W, { children: /* @__PURE__ */ c(t, { ...n }) });
|
|
775
|
+
}, Ge = (e) => typeof e == "number" ? `${e}px` : e, yr = ({ d: e, source: t, ...r }) => /* @__PURE__ */ c(Fe, {
|
|
776
|
+
d: tt(e, Pe, t),
|
|
777
777
|
...r
|
|
778
778
|
}), Sr = (e, t, r, n) => {
|
|
779
779
|
if (e === void 0) return {};
|
|
@@ -805,7 +805,7 @@ var U = (e, t) => {
|
|
|
805
805
|
rx: e / t.x,
|
|
806
806
|
ry: e / t.y
|
|
807
807
|
}, es = ({ symbol: e, size: t, fill: r, fillOpacity: n, stroke: s, strokeOpacity: a, strokeWidth: i }) => {
|
|
808
|
-
const l =
|
|
808
|
+
const l = Ve(), d = Ye(), g = Me((N) => N.coordSystem.type), S = Tr(e, d("point", g)?.symbols ?? [], l), T = {
|
|
809
809
|
size: t,
|
|
810
810
|
fill: r,
|
|
811
811
|
fillOpacity: n,
|
|
@@ -821,13 +821,13 @@ var U = (e, t) => {
|
|
|
821
821
|
strokeOpacity: a,
|
|
822
822
|
strokeWidth: i,
|
|
823
823
|
strokeLinejoin: "round"
|
|
824
|
-
}) : /* @__PURE__ */ c(
|
|
824
|
+
}) : /* @__PURE__ */ c(Ke, {
|
|
825
825
|
symbol: S,
|
|
826
826
|
glyphs: l,
|
|
827
|
-
...
|
|
827
|
+
...T
|
|
828
828
|
});
|
|
829
|
-
},
|
|
830
|
-
const r =
|
|
829
|
+
}, Tr = (e, t, r) => Et(e) || t.includes(e) || !de(e) && r.has(e) ? e : t[0] ?? "circle", ts = ({ children: e, ...t }) => {
|
|
830
|
+
const r = Ie()?.size ?? null;
|
|
831
831
|
return /* @__PURE__ */ c("svg", {
|
|
832
832
|
viewBox: "0 0 1 1",
|
|
833
833
|
preserveAspectRatio: "none",
|
|
@@ -835,14 +835,14 @@ var U = (e, t) => {
|
|
|
835
835
|
height: "100%",
|
|
836
836
|
pointerEvents: "none",
|
|
837
837
|
...t,
|
|
838
|
-
children: /* @__PURE__ */ c(
|
|
838
|
+
children: /* @__PURE__ */ c(Ce, {
|
|
839
839
|
size: r,
|
|
840
840
|
space: "unit",
|
|
841
841
|
children: e
|
|
842
842
|
})
|
|
843
843
|
});
|
|
844
844
|
}, rs = ({ box: e, children: t }) => {
|
|
845
|
-
const r =
|
|
845
|
+
const r = Ue(), n = r === null ? null : r.width * (e.x1 - e.x0), s = r === null ? null : r.height * (e.y1 - e.y0), a = x(() => n === null || s === null ? null : {
|
|
846
846
|
width: n,
|
|
847
847
|
height: s
|
|
848
848
|
}, [n, s]);
|
|
@@ -853,17 +853,17 @@ var U = (e, t) => {
|
|
|
853
853
|
height: J(e.y1 - e.y0),
|
|
854
854
|
overflow: "hidden",
|
|
855
855
|
pointerEvents: "none",
|
|
856
|
-
children: /* @__PURE__ */ c(
|
|
856
|
+
children: /* @__PURE__ */ c(Ce, {
|
|
857
857
|
size: a,
|
|
858
858
|
children: t
|
|
859
859
|
})
|
|
860
860
|
});
|
|
861
|
-
},
|
|
861
|
+
}, Gr = "drqe3u0", Er = "drqe3u1", Rr = "drqe3u2", wr = "drqe3u3", K = "drqe3u4", Nr = "drqe3u5", Ir = "drqe3u6", Pr = "drqe3u7", Z = "drqe3u8", Cr = "drqe3u9", Lr = "drqe3ua";
|
|
862
862
|
var Dr = "drqe3uc", _r = "drqe3ud", qr = "drqe3ue", kr = "drqe3uf";
|
|
863
863
|
var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
864
864
|
enabled: "drqe3uk drqe3uj",
|
|
865
865
|
disabled: "drqe3ul drqe3uj"
|
|
866
|
-
},
|
|
866
|
+
}, Ne = {
|
|
867
867
|
ran: "drqe3un drqe3um",
|
|
868
868
|
dim: "drqe3uo drqe3um"
|
|
869
869
|
}, ke = {
|
|
@@ -871,12 +871,12 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
871
871
|
cached: "drqe3ur drqe3up",
|
|
872
872
|
untouched: "drqe3us drqe3up"
|
|
873
873
|
}, ns = ({ width: e = 440, style: t, className: r } = {}) => {
|
|
874
|
-
const { compileBus: n } = ce(), [s] = v(() => zt()), [a, i] = v(!1), [l, d] = v(
|
|
874
|
+
const { compileBus: n } = ce(), [s] = v(() => zt()), [a, i] = v(!1), [l, d] = v(Gt);
|
|
875
875
|
q(() => {
|
|
876
876
|
const { recordCompile: h } = s.getState(), m = n.getLastTrigger(), p = n.getLastCompile();
|
|
877
877
|
return m && p && h(m, p), n.subscribe(h);
|
|
878
878
|
}, [s, n]);
|
|
879
|
-
const g = ie(s, (h) => h.lastCompile), S = ie(s, (h) => h.history),
|
|
879
|
+
const g = ie(s, (h) => h.lastCompile), S = ie(s, (h) => h.history), T = n.getCacheStats(), N = g === null && S.length === 0, C = () => {
|
|
880
880
|
d((h) => {
|
|
881
881
|
const m = !h;
|
|
882
882
|
return wt(m), m;
|
|
@@ -890,13 +890,13 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
890
890
|
},
|
|
891
891
|
children: [
|
|
892
892
|
/* @__PURE__ */ y("div", {
|
|
893
|
-
className:
|
|
893
|
+
className: Gr,
|
|
894
894
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ c("div", {
|
|
895
895
|
className: Er,
|
|
896
896
|
children: "compile cache"
|
|
897
897
|
}), /* @__PURE__ */ c("div", {
|
|
898
898
|
className: qr,
|
|
899
|
-
children:
|
|
899
|
+
children: N ? "production: stats disabled" : g ? `last: ${g.label} · ${me(g.durationMs)}` : "awaiting first compile…"
|
|
900
900
|
})] }), /* @__PURE__ */ c("button", {
|
|
901
901
|
type: "button",
|
|
902
902
|
onClick: () => i((h) => !h),
|
|
@@ -917,10 +917,10 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
917
917
|
children: "next compile reflects this toggle"
|
|
918
918
|
})]
|
|
919
919
|
}),
|
|
920
|
-
!a && !
|
|
920
|
+
!a && !N && /* @__PURE__ */ y(Lt, { children: [/* @__PURE__ */ c(Mr, {
|
|
921
921
|
delta: g?.stages,
|
|
922
922
|
durations: g?.stageDurationsMs,
|
|
923
|
-
cumulative:
|
|
923
|
+
cumulative: T
|
|
924
924
|
}), /* @__PURE__ */ c(xr, { entries: S })] })
|
|
925
925
|
]
|
|
926
926
|
});
|
|
@@ -934,23 +934,23 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
934
934
|
children: "stage"
|
|
935
935
|
}),
|
|
936
936
|
/* @__PURE__ */ c("th", {
|
|
937
|
-
className:
|
|
937
|
+
className: K,
|
|
938
938
|
children: "time"
|
|
939
939
|
}),
|
|
940
940
|
/* @__PURE__ */ c("th", {
|
|
941
|
-
className:
|
|
941
|
+
className: K,
|
|
942
942
|
children: "Δ miss"
|
|
943
943
|
}),
|
|
944
944
|
/* @__PURE__ */ c("th", {
|
|
945
|
-
className:
|
|
945
|
+
className: K,
|
|
946
946
|
children: "Δ hit"
|
|
947
947
|
}),
|
|
948
948
|
/* @__PURE__ */ c("th", {
|
|
949
|
-
className:
|
|
949
|
+
className: K,
|
|
950
950
|
children: "total miss"
|
|
951
951
|
}),
|
|
952
952
|
/* @__PURE__ */ c("th", {
|
|
953
|
-
className:
|
|
953
|
+
className: K,
|
|
954
954
|
children: "total hit"
|
|
955
955
|
})
|
|
956
956
|
]
|
|
@@ -960,7 +960,7 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
960
960
|
className: Dr,
|
|
961
961
|
children: [
|
|
962
962
|
/* @__PURE__ */ y("td", {
|
|
963
|
-
className:
|
|
963
|
+
className: Nr,
|
|
964
964
|
children: [
|
|
965
965
|
/* @__PURE__ */ c("span", {
|
|
966
966
|
className: ke[a],
|
|
@@ -975,7 +975,7 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
975
975
|
children: t === void 0 || a === "untouched" ? "—" : me(t[n])
|
|
976
976
|
}),
|
|
977
977
|
/* @__PURE__ */ c("td", {
|
|
978
|
-
className: a === "ran" ?
|
|
978
|
+
className: a === "ran" ? Ne.ran : Ne.dim,
|
|
979
979
|
children: s?.misses ?? 0
|
|
980
980
|
}),
|
|
981
981
|
/* @__PURE__ */ c("td", {
|
|
@@ -1001,7 +1001,7 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
1001
1001
|
}), e.map((t) => {
|
|
1002
1002
|
const r = Or(t.stages, (a) => a.misses > 0), n = le.length;
|
|
1003
1003
|
return /* @__PURE__ */ y("div", {
|
|
1004
|
-
className:
|
|
1004
|
+
className: Ir,
|
|
1005
1005
|
children: [
|
|
1006
1006
|
/* @__PURE__ */ c("span", {
|
|
1007
1007
|
className: ke[r === 0 ? "cached" : "ran"],
|
|
@@ -1054,11 +1054,11 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
1054
1054
|
]), os = (e, t = {}) => {
|
|
1055
1055
|
const { target: r, enabled: n = !0 } = t;
|
|
1056
1056
|
q(() => {
|
|
1057
|
-
const s =
|
|
1057
|
+
const s = Fr(r);
|
|
1058
1058
|
if (!n || !s) return;
|
|
1059
1059
|
const a = (i) => {
|
|
1060
|
-
if (!
|
|
1061
|
-
const l =
|
|
1060
|
+
if (!Kr(i) || i.defaultPrevented || Ur(i.target)) return;
|
|
1061
|
+
const l = et(i);
|
|
1062
1062
|
if (!l) return;
|
|
1063
1063
|
const d = e.current;
|
|
1064
1064
|
d && (l === "undo" ? d.undo() : d.redo()) && i.preventDefault();
|
|
@@ -1069,84 +1069,84 @@ var $r = "drqe3uh", Hr = "drqe3ui", we = {
|
|
|
1069
1069
|
r,
|
|
1070
1070
|
n
|
|
1071
1071
|
]);
|
|
1072
|
-
},
|
|
1072
|
+
}, Fr = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, Kr = (e) => "key" in e, Ur = (e) => e instanceof HTMLInputElement ? !Br.has(e.type) : e instanceof HTMLElement ? e.isContentEditable || e.tagName === "TEXTAREA" : !1, is = () => {
|
|
1073
1073
|
const { targetBoundaryStore: e } = ce();
|
|
1074
1074
|
return ie(e, (t) => t.boundary);
|
|
1075
1075
|
};
|
|
1076
1076
|
export {
|
|
1077
|
-
|
|
1078
|
-
|
|
1077
|
+
sn as CanvasTextMeasurer,
|
|
1078
|
+
ln as DefaultFooter,
|
|
1079
1079
|
gr as DefaultGeomCircle,
|
|
1080
1080
|
pr as DefaultGeomLine,
|
|
1081
1081
|
vr as DefaultGeomPath,
|
|
1082
1082
|
fr as DefaultGeomRect,
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1083
|
+
Pn as DefaultGrid,
|
|
1084
|
+
vn as DefaultHeader,
|
|
1085
|
+
jr as DefaultSwatch,
|
|
1086
|
+
Zr as DefaultTooltip,
|
|
1087
1087
|
ns as DevToolsPanel,
|
|
1088
|
-
|
|
1088
|
+
Oe as GRAPH_MODES,
|
|
1089
1089
|
Xn as GeomCircle,
|
|
1090
1090
|
Qn as GeomLine,
|
|
1091
|
-
|
|
1092
|
-
|
|
1091
|
+
_n as GeomOverpaint,
|
|
1092
|
+
$n as GeomPanelSizeProvider,
|
|
1093
1093
|
Zn as GeomPath,
|
|
1094
1094
|
Jn as GeomRect,
|
|
1095
1095
|
xt as GraphErrorBoundary,
|
|
1096
1096
|
ye as GraphErrorPanel,
|
|
1097
1097
|
lr as GraphProvider,
|
|
1098
|
-
|
|
1098
|
+
bn as GraphRenderer,
|
|
1099
1099
|
zr as GraphyBadge,
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1100
|
+
Gn as HoverProvider,
|
|
1101
|
+
Sn as IntlProvider,
|
|
1102
|
+
un as IntroFade,
|
|
1103
|
+
en as IntroWipeClip,
|
|
1104
1104
|
es as SymbolFigure,
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
Vr as TextMeasurerProvider,
|
|
1106
|
+
pn as ThemeProvider,
|
|
1107
1107
|
rs as UnitBoxSvg,
|
|
1108
1108
|
ts as UnitSpaceSvg,
|
|
1109
|
-
|
|
1109
|
+
En as buildDotsEditOutlineShapes,
|
|
1110
1110
|
jn as createGraphyKit,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1111
|
+
tn as darkTheme,
|
|
1112
|
+
Bn as defineGeomRenderer,
|
|
1113
|
+
kn as defineGlyph,
|
|
1114
|
+
dn as getBuiltInEditOutlineShapes,
|
|
1115
|
+
Hn as lightTheme,
|
|
1116
|
+
rn as lightenCss,
|
|
1117
1117
|
Ot as pruneSelection,
|
|
1118
1118
|
U as readPositionPixels,
|
|
1119
1119
|
Yn as readRectPixels,
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1120
|
+
Rn as resolveGraphyBadgeVariant,
|
|
1121
|
+
qn as resolvePathStroke,
|
|
1122
|
+
Cn as scalePointToPanel,
|
|
1123
|
+
Jr as stampAxisEditTarget,
|
|
1124
|
+
hn as stampGridEditTarget,
|
|
1125
|
+
fn as stampLegendEditTarget,
|
|
1126
|
+
Dn as useElementScreenRect,
|
|
1127
|
+
cn as useFormattingLocale,
|
|
1128
|
+
xn as useGeomHitTest,
|
|
1129
|
+
Tn as useGeomHover,
|
|
1130
|
+
yn as useGeomPanelSize,
|
|
1131
|
+
On as useGeomReaderTree,
|
|
1132
|
+
mn as useGeomStyleReader,
|
|
1133
|
+
Ue as useGeomViewportSize,
|
|
1134
1134
|
re as useGraphAnimation,
|
|
1135
1135
|
Ln as useGraphCommands,
|
|
1136
1136
|
wn as useGraphHandle,
|
|
1137
1137
|
ss as useGraphHistory,
|
|
1138
1138
|
os as useGraphHistoryShortcuts,
|
|
1139
1139
|
Qr as useGraphLocale,
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1140
|
+
An as useGraphSelection,
|
|
1141
|
+
an as useGuidesTakePress,
|
|
1142
|
+
Mn as useHandleScene,
|
|
1143
|
+
nn as useHoverState,
|
|
1144
|
+
Nn as usePaintDefs,
|
|
1145
|
+
on as useResolvedStyle,
|
|
1146
|
+
Me as useSceneSelector,
|
|
1147
|
+
Xr as useStyleReaderTree,
|
|
1148
|
+
Yr as useStyleResolver,
|
|
1149
1149
|
is as useTargetBoundary,
|
|
1150
|
-
|
|
1151
|
-
|
|
1150
|
+
In as useTextMeasurer,
|
|
1151
|
+
gn as vars
|
|
1152
1152
|
};
|