@graphysdk/react-renderer 1.9.0-beta.1788895125792 → 1.9.0-beta.1789025801428
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.mjs +992 -992
- package/dist/history-chords-BRb9sBcM.cjs +1 -0
- package/dist/{history-chords-DmCZaCLl.js → history-chords-BtNvrHbM.js} +1273 -1286
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +285 -282
- package/package.json +2 -2
- package/dist/history-chords-CslLOFH4.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Ct as
|
|
2
|
-
import { d as
|
|
3
|
-
import { COMPILER_STAGE_KEYS as
|
|
4
|
-
import { Component as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { useStore as
|
|
7
|
-
import { createStore as
|
|
8
|
-
import
|
|
9
|
-
import './index.css';var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
1
|
+
import { Ct as Dt, Ft as le, It as ne, Lt as A, M as $t, Mt as xt, Nt as Ht, O as Mt, Pt as Lt, St as ue, Tt as Pt, X as Bt, Y as Kt, _ as Ot, _t as me, a as At, bt as he, ct as jt, gt as K, i as Ft, it as Ut, j as Yt, jt as Wt, k as Vt, lt as Xt, mt as Qt, n as zt, pt as Jt, r as Zt, rt as er, s as tr, t as ge, tt as rr, vt as nr, wt as sr, xt as or, yt as j } from "./history-chords-BtNvrHbM.js";
|
|
2
|
+
import { d as ar, t as pe } from "./dev.utils-DT-z_GBs.js";
|
|
3
|
+
import { COMPILER_STAGE_KEYS as F, Geom as fe, GraphCompilationSession as ve, areEditTargetsEqual as ye, buildDiagnostic as V, createAnchorResolver as be, createCompiler as Se, createGraphyBuilder as Ee, createStyleResolver as Ce, findAnnotation as Te, findLayerById as X, isCompilerCachingEnabled as Ne, resolveDefinition as Re, setCompilerCachingEnabled as qe, toPercent as L } from "@graphysdk/viz-engine";
|
|
4
|
+
import { Component as Ie, useCallback as f, useEffect as x, useId as ke, useImperativeHandle as Ge, useMemo as $, useRef as Q, useState as C, useSyncExternalStore as we } from "react";
|
|
5
|
+
import { Fragment as _e, jsx as d, jsxs as v } from "react/jsx-runtime";
|
|
6
|
+
import { useStore as z } from "zustand";
|
|
7
|
+
import { createStore as U } from "zustand/vanilla";
|
|
8
|
+
import De from "clsx";
|
|
9
|
+
import './index.css';var $e = "_1a5iqpb0", xe = "_1a5iqpb1";
|
|
10
|
+
var He = "_1a5iqpb3", Me = "_1a5iqpb4", Le = "_1a5iqpb5";
|
|
11
|
+
var J = ({ errors: e }) => {
|
|
12
12
|
const [t, ...r] = e;
|
|
13
13
|
return /* @__PURE__ */ v("div", {
|
|
14
14
|
role: "alert",
|
|
15
|
-
className:
|
|
15
|
+
className: $e,
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ d("strong", {
|
|
18
|
-
className:
|
|
18
|
+
className: xe,
|
|
19
19
|
children: "This chart could not be rendered."
|
|
20
20
|
}),
|
|
21
|
-
t && /* @__PURE__ */ d(
|
|
21
|
+
t && /* @__PURE__ */ d(Z, { diagnostic: t }),
|
|
22
22
|
r.length > 0 && /* @__PURE__ */ d("ul", {
|
|
23
23
|
className: "_1a5iqpb2",
|
|
24
|
-
children: r.map((n, o) => /* @__PURE__ */ d("li", { children: /* @__PURE__ */ d(
|
|
24
|
+
children: r.map((n, o) => /* @__PURE__ */ d("li", { children: /* @__PURE__ */ d(Z, { diagnostic: n }) }, `${n.code}-${o}`))
|
|
25
25
|
})
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
|
-
},
|
|
29
|
-
className:
|
|
28
|
+
}, Z = ({ diagnostic: e }) => /* @__PURE__ */ v("div", {
|
|
29
|
+
className: He,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ d("span", {
|
|
32
|
-
className:
|
|
32
|
+
className: Me,
|
|
33
33
|
children: e.code
|
|
34
34
|
}),
|
|
35
35
|
/* @__PURE__ */ d("p", {
|
|
36
|
-
className:
|
|
36
|
+
className: Le,
|
|
37
37
|
children: e.message
|
|
38
38
|
}),
|
|
39
39
|
e.suggestion && /* @__PURE__ */ d("p", {
|
|
@@ -42,47 +42,47 @@ var Q = ({ errors: e }) => {
|
|
|
42
42
|
})
|
|
43
43
|
]
|
|
44
44
|
});
|
|
45
|
-
function
|
|
45
|
+
function Pe(e = [], t = []) {
|
|
46
46
|
return e.length === t.length && e.every((r, n) => Object.is(r, t[n]));
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var Be = class extends Ie {
|
|
49
49
|
constructor(...e) {
|
|
50
50
|
super(...e), this.state = { caughtDiagnostic: null };
|
|
51
51
|
}
|
|
52
52
|
static getDerivedStateFromError(e) {
|
|
53
|
-
return { caughtDiagnostic:
|
|
53
|
+
return { caughtDiagnostic: V(e) };
|
|
54
54
|
}
|
|
55
55
|
componentDidCatch(e, t) {
|
|
56
|
-
const r =
|
|
57
|
-
|
|
56
|
+
const r = V(e);
|
|
57
|
+
A([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 && !Pe(e.resetKeys, this.props.resetKeys) && this.setState({ caughtDiagnostic: null });
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
63
|
const { caughtDiagnostic: e } = this.state;
|
|
64
|
-
if (e) return /* @__PURE__ */ d(
|
|
64
|
+
if (e) return /* @__PURE__ */ d(J, { errors: [e] });
|
|
65
65
|
const { forcedErrors: t, children: r } = this.props;
|
|
66
|
-
return t && t.length > 0 ? /* @__PURE__ */ d(
|
|
66
|
+
return t && t.length > 0 ? /* @__PURE__ */ d(J, { errors: t }) : r;
|
|
67
67
|
}
|
|
68
|
-
},
|
|
69
|
-
const t =
|
|
70
|
-
return t instanceof
|
|
71
|
-
},
|
|
72
|
-
const r = e.filter((n) =>
|
|
68
|
+
}, se = (e) => typeof e == "object" && "geom" in e && "render" in e, Ke = (e) => {
|
|
69
|
+
const t = Re(e);
|
|
70
|
+
return t instanceof fe ? t : null;
|
|
71
|
+
}, Oe = (e, t) => {
|
|
72
|
+
const r = e.filter((n) => Ae(n, t));
|
|
73
73
|
return r.length === e.length ? e : r;
|
|
74
|
-
},
|
|
75
|
-
selection:
|
|
76
|
-
setSelection: (t) => e((r) =>
|
|
77
|
-
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection:
|
|
78
|
-
})),
|
|
74
|
+
}, Ae = (e, t) => e.kind === "annotation" ? Te(t.annotations, e.id) !== null : e.kind === "observations" ? X(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? X(t.layers, e.layerId) !== void 0 : !0, ee = [], je = () => U((e) => ({
|
|
75
|
+
selection: ee,
|
|
76
|
+
setSelection: (t) => e((r) => Fe(r.selection, t) ? r : { selection: t }),
|
|
77
|
+
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: ee })
|
|
78
|
+
})), Fe = (e, t) => e === t ? !0 : e.length !== t.length ? !1 : e.every((r, n) => {
|
|
79
79
|
const o = t[n];
|
|
80
|
-
return o !== void 0 &&
|
|
81
|
-
}),
|
|
82
|
-
if (!
|
|
80
|
+
return o !== void 0 && ye(r, o);
|
|
81
|
+
}), Ue = 5, Ye = (e) => {
|
|
82
|
+
if (!pe) return {
|
|
83
83
|
emit: () => {
|
|
84
84
|
},
|
|
85
|
-
subscribe: () =>
|
|
85
|
+
subscribe: () => Ve,
|
|
86
86
|
getLastTrigger: () => null,
|
|
87
87
|
getLastCompile: () => null,
|
|
88
88
|
getCacheStats: () => e.getCacheStats()
|
|
@@ -104,7 +104,7 @@ var Pe = class extends Re {
|
|
|
104
104
|
getLastCompile: () => e.getLastCompile(),
|
|
105
105
|
getCacheStats: () => e.getCacheStats()
|
|
106
106
|
};
|
|
107
|
-
},
|
|
107
|
+
}, We = () => U((e) => ({
|
|
108
108
|
lastCompile: null,
|
|
109
109
|
history: [],
|
|
110
110
|
nextId: 1,
|
|
@@ -113,19 +113,19 @@ var Pe = class extends Re {
|
|
|
113
113
|
if (n.lastSnapshot === r) return n;
|
|
114
114
|
const o = {
|
|
115
115
|
id: n.nextId,
|
|
116
|
-
label:
|
|
116
|
+
label: Xe(t),
|
|
117
117
|
stages: r.stages,
|
|
118
118
|
durationMs: r.durationMs
|
|
119
119
|
};
|
|
120
120
|
return {
|
|
121
121
|
lastCompile: o,
|
|
122
|
-
history:
|
|
122
|
+
history: Qe(n.history, o, Ue),
|
|
123
123
|
nextId: n.nextId + 1,
|
|
124
124
|
lastSnapshot: r
|
|
125
125
|
};
|
|
126
126
|
})
|
|
127
|
-
})),
|
|
128
|
-
},
|
|
127
|
+
})), Ve = () => {
|
|
128
|
+
}, Xe = (e) => {
|
|
129
129
|
switch (e.kind) {
|
|
130
130
|
case "init":
|
|
131
131
|
return "init";
|
|
@@ -136,14 +136,14 @@ var Pe = class extends Re {
|
|
|
136
136
|
case "command":
|
|
137
137
|
return e.command.metadata.description;
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, Qe = (e, t, r) => {
|
|
140
140
|
const n = e.length >= r ? e.length - (r - 1) : 0;
|
|
141
141
|
return [...e.slice(n), t];
|
|
142
142
|
};
|
|
143
|
-
function
|
|
144
|
-
const t = e.filter(
|
|
143
|
+
function ze(e) {
|
|
144
|
+
const t = e.filter(se), r = /* @__PURE__ */ new Set([...Object.keys(he), ...t.map((c) => c.geom)]), n = [], o = /* @__PURE__ */ new Set();
|
|
145
145
|
for (const c of e) {
|
|
146
|
-
const u =
|
|
146
|
+
const u = Ke(c);
|
|
147
147
|
u === null || r.has(u.type) || o.has(u.type) || (o.add(u.type), n.push({
|
|
148
148
|
kind: "user-input",
|
|
149
149
|
severity: "error",
|
|
@@ -159,20 +159,20 @@ function Xe(e) {
|
|
|
159
159
|
const a = /* @__PURE__ */ new Map();
|
|
160
160
|
for (const c of t) {
|
|
161
161
|
if ("definition" in c) continue;
|
|
162
|
-
const u = `${c.geom}|${c.coord}`,
|
|
163
|
-
|
|
162
|
+
const u = `${c.geom}|${c.coord}`, m = a.get(u);
|
|
163
|
+
m ? m.count += 1 : a.set(u, {
|
|
164
164
|
geom: c.geom,
|
|
165
165
|
coord: c.coord,
|
|
166
166
|
count: 1
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
const i = [];
|
|
170
|
-
for (const { geom: c, coord: u, count:
|
|
171
|
-
|
|
170
|
+
for (const { geom: c, coord: u, count: m } of a.values())
|
|
171
|
+
m < 2 || i.push({
|
|
172
172
|
kind: "user-input",
|
|
173
173
|
severity: "warning",
|
|
174
174
|
code: "DUPLICATE_REGISTERED_TYPE",
|
|
175
|
-
message: `Multiple render-only overrides register ('${c}', '${u}') (${
|
|
175
|
+
message: `Multiple render-only overrides register ('${c}', '${u}') (${m} entries); the last in the array wins.`,
|
|
176
176
|
context: {
|
|
177
177
|
requested: `${c}@${u}`,
|
|
178
178
|
kind: "geom-renderer"
|
|
@@ -184,7 +184,7 @@ function Xe(e) {
|
|
|
184
184
|
warnings: i
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Je(e, t) {
|
|
188
188
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), a = [];
|
|
189
189
|
for (const i of n)
|
|
190
190
|
t(i.geom, r.type) !== null || o.has(i.geom) || (o.add(i.geom), a.push({
|
|
@@ -200,12 +200,12 @@ function Qe(e, t) {
|
|
|
200
200
|
}));
|
|
201
201
|
return a;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ze(e, t) {
|
|
204
204
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), a = [];
|
|
205
205
|
for (const i of n) {
|
|
206
206
|
if (i.interactive === !1 || i.spatialKind !== "render-hit-test" || o.has(i.geom)) continue;
|
|
207
207
|
const c = t(i.geom, r.type);
|
|
208
|
-
c === null || c.hitTest ||
|
|
208
|
+
c === null || c.hitTest || j(c) || (o.add(i.geom), a.push({
|
|
209
209
|
kind: "user-input",
|
|
210
210
|
severity: "warning",
|
|
211
211
|
code: "MISSING_RENDER_HIT_TEST",
|
|
@@ -219,7 +219,7 @@ function ze(e, t) {
|
|
|
219
219
|
}
|
|
220
220
|
return a;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function et(e) {
|
|
223
223
|
const t = /* @__PURE__ */ new Set(), r = [];
|
|
224
224
|
for (const n of e.layers) {
|
|
225
225
|
const o = n.identityKey;
|
|
@@ -237,12 +237,12 @@ function Je(e) {
|
|
|
237
237
|
}
|
|
238
238
|
return r;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function tt(e, t) {
|
|
241
241
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), a = [];
|
|
242
242
|
for (const i of n) {
|
|
243
243
|
if (i.interactive === !1 || i.spatialKind !== "render-hit-test" || o.has(i.geom)) continue;
|
|
244
244
|
const c = t(i.geom, r.type);
|
|
245
|
-
c === null || !c.hitTest || !
|
|
245
|
+
c === null || !c.hitTest || !j(c) || (o.add(i.geom), a.push({
|
|
246
246
|
kind: "user-input",
|
|
247
247
|
severity: "warning",
|
|
248
248
|
code: "CONFLICTING_RENDER_HIT_TEST",
|
|
@@ -256,7 +256,7 @@ function Ze(e, t) {
|
|
|
256
256
|
}
|
|
257
257
|
return a;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function rt(e, t) {
|
|
260
260
|
const r = /* @__PURE__ */ new Set(), n = [];
|
|
261
261
|
for (const o of e.layers)
|
|
262
262
|
o.interactive !== !1 && (o.spatialKind !== "render-hit-test" || r.has(o.geom) || t.hasCapability(o.geom) || (r.add(o.geom), n.push({
|
|
@@ -272,12 +272,12 @@ function et(e, t) {
|
|
|
272
272
|
})));
|
|
273
273
|
return n;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function nt(e, t) {
|
|
276
276
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), a = [];
|
|
277
277
|
for (const i of n) {
|
|
278
278
|
if (i.interactive === !1 || i.spatialKind === "render-hit-test" || o.has(i.geom)) continue;
|
|
279
279
|
const c = t(i.geom, r.type);
|
|
280
|
-
c === null || !
|
|
280
|
+
c === null || !j(c) || (o.add(i.geom), a.push({
|
|
281
281
|
kind: "user-input",
|
|
282
282
|
severity: "warning",
|
|
283
283
|
code: "OVERLAY_REQUIRES_RENDER_HIT_TEST",
|
|
@@ -291,56 +291,56 @@ function tt(e, t) {
|
|
|
291
291
|
}
|
|
292
292
|
return a;
|
|
293
293
|
}
|
|
294
|
-
var
|
|
294
|
+
var st = (e) => U((t) => ({
|
|
295
295
|
compiled: e,
|
|
296
296
|
setCompiled: (r) => t((n) => n.compiled === r ? n : { compiled: r })
|
|
297
|
-
})),
|
|
298
|
-
const T =
|
|
299
|
-
const s =
|
|
297
|
+
})), ot = ({ input: e, data: t, customPalettes: r, colorScheme: n, plugins: o, resolveRenderer: a, anchorResolver: i, onChange: c, onError: u, onWarnings: m }) => {
|
|
298
|
+
const T = K(c), k = K(u), q = K(m), [{ session: h, compileBus: l }] = C(() => {
|
|
299
|
+
const s = Se({ plugins: o });
|
|
300
300
|
return {
|
|
301
|
-
session: new
|
|
302
|
-
compileBus:
|
|
301
|
+
session: new ve(s),
|
|
302
|
+
compileBus: Ye(s)
|
|
303
303
|
};
|
|
304
|
-
}), [
|
|
304
|
+
}), [p] = C(() => ze(o ?? [])), y = Q(null), [G] = C(it), N = Q(null), b = f((s) => p.errors.length === 0 ? s : [...p.errors, ...s ?? []], [p]), _ = f((s) => {
|
|
305
305
|
if (!s.ok) return s.errors;
|
|
306
|
-
if (
|
|
306
|
+
if (N.current) N.current.getState().setCompiled(s.compiled);
|
|
307
307
|
else {
|
|
308
|
-
const
|
|
309
|
-
|
|
308
|
+
const g = st(s.compiled);
|
|
309
|
+
g.subscribe(G.notify), N.current = g, G.notify();
|
|
310
310
|
}
|
|
311
311
|
return null;
|
|
312
|
-
}, [
|
|
313
|
-
const s =
|
|
312
|
+
}, [G]), [H, D] = C(() => {
|
|
313
|
+
const s = h.compile({
|
|
314
314
|
input: e,
|
|
315
315
|
data: t,
|
|
316
316
|
customPalettes: r,
|
|
317
317
|
colorScheme: n
|
|
318
318
|
});
|
|
319
|
-
return
|
|
320
|
-
}),
|
|
319
|
+
return y.current = s, b(_(s));
|
|
320
|
+
}), I = f((s) => s.ok ? [
|
|
321
321
|
...s.warnings,
|
|
322
|
-
...
|
|
323
|
-
...ze(s.compiled, a),
|
|
324
|
-
...Je(s.compiled),
|
|
322
|
+
...Je(s.compiled, a),
|
|
325
323
|
...Ze(s.compiled, a),
|
|
324
|
+
...et(s.compiled),
|
|
326
325
|
...tt(s.compiled, a),
|
|
327
|
-
...
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
326
|
+
...nt(s.compiled, a),
|
|
327
|
+
...rt(s.compiled, i)
|
|
328
|
+
] : s.warnings, [a, i]), S = f((s) => {
|
|
329
|
+
s.length !== 0 && (A(s), k.current?.(s));
|
|
330
|
+
}, [k]), R = f((s) => {
|
|
331
|
+
s.length !== 0 && (A(s), q.current?.(s));
|
|
332
|
+
}, [q]);
|
|
333
|
+
x(() => {
|
|
334
|
+
const s = y.current;
|
|
335
|
+
s && (S([...p.errors, ...s.ok ? [] : s.errors]), R([...p.warnings, ...I(s)]), s.ok && l.emit({ kind: "init" }));
|
|
336
336
|
}, [
|
|
337
337
|
l,
|
|
338
|
-
N,
|
|
339
338
|
S,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
339
|
+
R,
|
|
340
|
+
p,
|
|
341
|
+
I
|
|
342
|
+
]), x(() => {
|
|
343
|
+
const s = h.update({
|
|
344
344
|
input: e,
|
|
345
345
|
data: t,
|
|
346
346
|
customPalettes: r,
|
|
@@ -348,65 +348,65 @@ var rt = (e) => F((t) => ({
|
|
|
348
348
|
});
|
|
349
349
|
if (!s) return;
|
|
350
350
|
s.sealedInput && T.current?.(s.sealedInput);
|
|
351
|
-
const
|
|
352
|
-
|
|
351
|
+
const g = _(s.result);
|
|
352
|
+
D(b(g)), g && S(g), R(I(s.result)), g || l.emit({ kind: s.inputChanged ? "input" : "data" });
|
|
353
353
|
}, [
|
|
354
354
|
e,
|
|
355
355
|
t,
|
|
356
356
|
r,
|
|
357
357
|
n,
|
|
358
|
-
|
|
358
|
+
h,
|
|
359
359
|
l,
|
|
360
|
-
|
|
361
|
-
N,
|
|
360
|
+
_,
|
|
362
361
|
S,
|
|
363
|
-
|
|
362
|
+
R,
|
|
364
363
|
b,
|
|
364
|
+
I,
|
|
365
365
|
T
|
|
366
366
|
]);
|
|
367
|
-
const
|
|
368
|
-
|
|
367
|
+
const w = f((s) => {
|
|
368
|
+
D((g) => g === null ? g : b(null)), R(I(s));
|
|
369
369
|
}, [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
]),
|
|
374
|
-
s.compiled &&
|
|
370
|
+
b,
|
|
371
|
+
R,
|
|
372
|
+
I
|
|
373
|
+
]), M = f((s) => {
|
|
374
|
+
s.compiled && N.current?.getState().setCompiled(s.compiled), s.result && w(s.result), s.command && l.emit({
|
|
375
375
|
kind: "command",
|
|
376
376
|
command: s.command
|
|
377
|
-
}), s.input && T.current?.(s.input), s.errors &&
|
|
377
|
+
}), s.input && T.current?.(s.input), s.errors && S([...s.errors]);
|
|
378
378
|
}, [
|
|
379
|
-
|
|
379
|
+
w,
|
|
380
380
|
l,
|
|
381
381
|
T,
|
|
382
|
-
|
|
382
|
+
S
|
|
383
383
|
]), E = f((s) => {
|
|
384
|
-
for (const
|
|
385
|
-
return s.some((
|
|
386
|
-
}, [
|
|
387
|
-
E(
|
|
388
|
-
}, [
|
|
389
|
-
E(
|
|
390
|
-
}, [
|
|
391
|
-
stack:
|
|
392
|
-
undo:
|
|
393
|
-
redo:
|
|
384
|
+
for (const g of s) M(g);
|
|
385
|
+
return s.some((g) => !!g.compiled);
|
|
386
|
+
}, [M]), B = f((s, g) => {
|
|
387
|
+
E(h.applyCommand(s, g));
|
|
388
|
+
}, [h, E]), ae = f(() => {
|
|
389
|
+
E(h.seal());
|
|
390
|
+
}, [h, E]), Y = f(() => E(h.undo()), [h, E]), W = f(() => E(h.redo()), [h, E]), ce = $(() => ({
|
|
391
|
+
stack: h.history,
|
|
392
|
+
undo: Y,
|
|
393
|
+
redo: W
|
|
394
394
|
}), [
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
]),
|
|
395
|
+
h,
|
|
396
|
+
Y,
|
|
397
|
+
W
|
|
398
|
+
]), de = f(() => N.current?.getState().compiled ?? null, []);
|
|
399
399
|
return {
|
|
400
|
-
store:
|
|
401
|
-
dispatch:
|
|
402
|
-
seal:
|
|
403
|
-
history:
|
|
404
|
-
subscribe:
|
|
405
|
-
getCompiled:
|
|
400
|
+
store: N.current,
|
|
401
|
+
dispatch: B,
|
|
402
|
+
seal: ae,
|
|
403
|
+
history: ce,
|
|
404
|
+
subscribe: G.subscribe,
|
|
405
|
+
getCompiled: de,
|
|
406
406
|
compileBus: l,
|
|
407
|
-
compileErrors:
|
|
407
|
+
compileErrors: H
|
|
408
408
|
};
|
|
409
|
-
},
|
|
409
|
+
}, it = () => {
|
|
410
410
|
const e = /* @__PURE__ */ new Set();
|
|
411
411
|
return {
|
|
412
412
|
subscribe: (t) => (e.add(t), () => {
|
|
@@ -414,92 +414,94 @@ var rt = (e) => F((t) => ({
|
|
|
414
414
|
}),
|
|
415
415
|
notify: () => e.forEach((t) => t())
|
|
416
416
|
};
|
|
417
|
-
},
|
|
418
|
-
const [
|
|
417
|
+
}, at = ({ data: e, input: t, plugins: r = [], formattingLocale: n, handleRef: o, onChange: a, onError: i, onWarnings: c, customPalettes: u, colorScheme: m = "light", children: T }) => {
|
|
418
|
+
const [k] = C(() => me(r.filter(se))), q = ke(), [h] = C(() => be(r)), [l] = C(() => je()), p = $(() => Ce({ colorScheme: m }), [m]), { store: y, dispatch: G, seal: N, history: b, subscribe: _, getCompiled: H, compileBus: D, compileErrors: I } = ot({
|
|
419
419
|
input: t,
|
|
420
420
|
data: e,
|
|
421
421
|
customPalettes: u,
|
|
422
|
-
colorScheme:
|
|
422
|
+
colorScheme: m,
|
|
423
423
|
plugins: r,
|
|
424
|
-
resolveRenderer:
|
|
425
|
-
anchorResolver:
|
|
424
|
+
resolveRenderer: k,
|
|
425
|
+
anchorResolver: h,
|
|
426
426
|
onChange: a,
|
|
427
427
|
onError: i,
|
|
428
428
|
onWarnings: c
|
|
429
429
|
});
|
|
430
|
-
|
|
431
|
-
if (
|
|
432
|
-
return
|
|
433
|
-
if (
|
|
434
|
-
const { selection:
|
|
435
|
-
|
|
430
|
+
x(() => {
|
|
431
|
+
if (y)
|
|
432
|
+
return y.subscribe((w, M) => {
|
|
433
|
+
if (w.compiled.spec === M.compiled.spec) return;
|
|
434
|
+
const { selection: E, setSelection: B } = l.getState();
|
|
435
|
+
E.length !== 0 && B(Oe(E, w.compiled.spec));
|
|
436
436
|
});
|
|
437
|
-
}, [
|
|
438
|
-
const
|
|
439
|
-
dispatch:
|
|
440
|
-
seal:
|
|
441
|
-
}), [
|
|
437
|
+
}, [y, l]);
|
|
438
|
+
const S = $(() => ({
|
|
439
|
+
dispatch: G,
|
|
440
|
+
seal: N
|
|
441
|
+
}), [G, N]);
|
|
442
442
|
Ge(o, () => ({
|
|
443
|
-
commands:
|
|
444
|
-
undo:
|
|
445
|
-
redo:
|
|
446
|
-
subscribe:
|
|
447
|
-
getCompiled:
|
|
443
|
+
commands: S,
|
|
444
|
+
undo: b.undo,
|
|
445
|
+
redo: b.redo,
|
|
446
|
+
subscribe: _,
|
|
447
|
+
getCompiled: H,
|
|
448
448
|
getSelection: () => l.getState().selection,
|
|
449
|
-
setSelection: (
|
|
449
|
+
setSelection: (w) => l.getState().setSelection(w),
|
|
450
450
|
subscribeSelection: l.subscribe
|
|
451
451
|
}), [
|
|
452
|
+
S,
|
|
452
453
|
b,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
I,
|
|
454
|
+
_,
|
|
455
|
+
H,
|
|
456
456
|
l
|
|
457
457
|
]);
|
|
458
|
-
const
|
|
459
|
-
chartId:
|
|
460
|
-
store:
|
|
458
|
+
const R = $(() => y ? {
|
|
459
|
+
chartId: q,
|
|
460
|
+
store: y,
|
|
461
461
|
selectionStore: l,
|
|
462
|
-
commands:
|
|
463
|
-
history:
|
|
462
|
+
commands: S,
|
|
463
|
+
history: b,
|
|
464
464
|
formattingLocale: n,
|
|
465
|
-
compileBus:
|
|
466
|
-
colorScheme:
|
|
467
|
-
|
|
465
|
+
compileBus: D,
|
|
466
|
+
colorScheme: m,
|
|
467
|
+
styleResolver: p,
|
|
468
|
+
anchorResolver: h
|
|
468
469
|
} : null, [
|
|
469
|
-
|
|
470
|
-
|
|
470
|
+
q,
|
|
471
|
+
y,
|
|
471
472
|
l,
|
|
473
|
+
S,
|
|
472
474
|
b,
|
|
473
|
-
y,
|
|
474
475
|
n,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
D,
|
|
477
|
+
m,
|
|
478
|
+
p,
|
|
479
|
+
h
|
|
478
480
|
]);
|
|
479
|
-
return /* @__PURE__ */ d(
|
|
480
|
-
forcedErrors:
|
|
481
|
+
return /* @__PURE__ */ d(Be, {
|
|
482
|
+
forcedErrors: I,
|
|
481
483
|
onError: i,
|
|
482
484
|
resetKeys: [t, e],
|
|
483
|
-
children:
|
|
484
|
-
value:
|
|
485
|
-
children: /* @__PURE__ */ d(
|
|
486
|
-
value:
|
|
485
|
+
children: R ? /* @__PURE__ */ d(le.Provider, {
|
|
486
|
+
value: R,
|
|
487
|
+
children: /* @__PURE__ */ d(ue, {
|
|
488
|
+
value: k,
|
|
487
489
|
children: T
|
|
488
490
|
})
|
|
489
491
|
}) : null
|
|
490
492
|
});
|
|
491
493
|
};
|
|
492
|
-
function
|
|
493
|
-
const t =
|
|
494
|
+
function gr(e) {
|
|
495
|
+
const t = Ee(e);
|
|
494
496
|
return {
|
|
495
497
|
...t,
|
|
496
|
-
GraphProvider: (n) => /* @__PURE__ */ d(
|
|
498
|
+
GraphProvider: (n) => /* @__PURE__ */ d(at, {
|
|
497
499
|
...n,
|
|
498
500
|
plugins: t.plugins
|
|
499
501
|
})
|
|
500
502
|
};
|
|
501
503
|
}
|
|
502
|
-
var
|
|
504
|
+
var pr = ({ children: e, ...t }) => /* @__PURE__ */ d("svg", {
|
|
503
505
|
viewBox: "0 0 1 1",
|
|
504
506
|
preserveAspectRatio: "none",
|
|
505
507
|
width: "100%",
|
|
@@ -507,57 +509,57 @@ var mr = ({ children: e, ...t }) => /* @__PURE__ */ d("svg", {
|
|
|
507
509
|
pointerEvents: "none",
|
|
508
510
|
...t,
|
|
509
511
|
children: e
|
|
510
|
-
}),
|
|
511
|
-
x:
|
|
512
|
-
y:
|
|
513
|
-
width:
|
|
514
|
-
height:
|
|
512
|
+
}), fr = ({ box: e, children: t }) => /* @__PURE__ */ d("svg", {
|
|
513
|
+
x: L(e.x0),
|
|
514
|
+
y: L(e.y0),
|
|
515
|
+
width: L(e.x1 - e.x0),
|
|
516
|
+
height: L(e.y1 - e.y0),
|
|
515
517
|
overflow: "hidden",
|
|
516
518
|
pointerEvents: "none",
|
|
517
519
|
children: t
|
|
518
|
-
}),
|
|
519
|
-
var
|
|
520
|
-
var
|
|
520
|
+
}), ct = "drqe3u0", dt = "drqe3u1", lt = "drqe3u2", ut = "drqe3u3", P = "drqe3u4", mt = "drqe3u5", ht = "drqe3u6", gt = "drqe3u7", O = "drqe3u8", pt = "drqe3u9", ft = "drqe3ua";
|
|
521
|
+
var vt = "drqe3uc", yt = "drqe3ud", bt = "drqe3ue", St = "drqe3uf";
|
|
522
|
+
var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
521
523
|
enabled: "drqe3uk drqe3uj",
|
|
522
524
|
disabled: "drqe3ul drqe3uj"
|
|
523
|
-
},
|
|
525
|
+
}, re = {
|
|
524
526
|
ran: "drqe3un drqe3um",
|
|
525
527
|
dim: "drqe3uo drqe3um"
|
|
526
|
-
},
|
|
528
|
+
}, oe = {
|
|
527
529
|
ran: "drqe3uq drqe3up",
|
|
528
530
|
cached: "drqe3ur drqe3up",
|
|
529
531
|
untouched: "drqe3us drqe3up"
|
|
530
|
-
},
|
|
531
|
-
const { compileBus: n } =
|
|
532
|
-
|
|
533
|
-
const { recordCompile: l } = o.getState(),
|
|
534
|
-
return
|
|
532
|
+
}, vr = ({ width: e = 380, style: t, className: r } = {}) => {
|
|
533
|
+
const { compileBus: n } = ne(), [o] = C(() => We()), [a, i] = C(!1), [c, u] = C(Ne);
|
|
534
|
+
x(() => {
|
|
535
|
+
const { recordCompile: l } = o.getState(), p = n.getLastTrigger(), y = n.getLastCompile();
|
|
536
|
+
return p && y && l(p, y), n.subscribe(l);
|
|
535
537
|
}, [o, n]);
|
|
536
|
-
const
|
|
538
|
+
const m = z(o, (l) => l.lastCompile), T = z(o, (l) => l.history), k = n.getCacheStats(), q = m === null && T.length === 0, h = () => {
|
|
537
539
|
u((l) => {
|
|
538
|
-
const
|
|
539
|
-
return
|
|
540
|
+
const p = !l;
|
|
541
|
+
return qe(p), p;
|
|
540
542
|
});
|
|
541
543
|
};
|
|
542
544
|
return /* @__PURE__ */ v("div", {
|
|
543
|
-
className:
|
|
545
|
+
className: De(ft, r),
|
|
544
546
|
style: {
|
|
545
547
|
width: e,
|
|
546
548
|
...t
|
|
547
549
|
},
|
|
548
550
|
children: [
|
|
549
551
|
/* @__PURE__ */ v("div", {
|
|
550
|
-
className:
|
|
552
|
+
className: ct,
|
|
551
553
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ d("div", {
|
|
552
|
-
className:
|
|
554
|
+
className: dt,
|
|
553
555
|
children: "compile cache"
|
|
554
556
|
}), /* @__PURE__ */ d("div", {
|
|
555
|
-
className:
|
|
556
|
-
children:
|
|
557
|
+
className: bt,
|
|
558
|
+
children: q ? "production: stats disabled" : m ? `last: ${m.label} · ${ie(m.durationMs)}` : "awaiting first compile…"
|
|
557
559
|
})] }), /* @__PURE__ */ d("button", {
|
|
558
560
|
type: "button",
|
|
559
561
|
onClick: () => i((l) => !l),
|
|
560
|
-
className:
|
|
562
|
+
className: St,
|
|
561
563
|
children: a ? "▾" : "▴"
|
|
562
564
|
})]
|
|
563
565
|
}),
|
|
@@ -565,8 +567,8 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
565
567
|
className: "drqe3ub",
|
|
566
568
|
children: [/* @__PURE__ */ v("button", {
|
|
567
569
|
type: "button",
|
|
568
|
-
onClick:
|
|
569
|
-
className: c ?
|
|
570
|
+
onClick: h,
|
|
571
|
+
className: c ? te.enabled : te.disabled,
|
|
570
572
|
"aria-pressed": c,
|
|
571
573
|
children: ["cache ", c ? "enabled" : "disabled"]
|
|
572
574
|
}), /* @__PURE__ */ d("span", {
|
|
@@ -574,19 +576,19 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
574
576
|
children: "next compile reflects this toggle"
|
|
575
577
|
})]
|
|
576
578
|
}),
|
|
577
|
-
!a && !
|
|
578
|
-
delta:
|
|
579
|
-
cumulative:
|
|
580
|
-
}), /* @__PURE__ */ d(
|
|
579
|
+
!a && !q && /* @__PURE__ */ v(_e, { children: [/* @__PURE__ */ d(Tt, {
|
|
580
|
+
delta: m?.stages,
|
|
581
|
+
cumulative: k
|
|
582
|
+
}), /* @__PURE__ */ d(Nt, { entries: T })] })
|
|
581
583
|
]
|
|
582
584
|
});
|
|
583
|
-
},
|
|
584
|
-
className:
|
|
585
|
+
}, Tt = ({ delta: e, cumulative: t }) => /* @__PURE__ */ v("table", {
|
|
586
|
+
className: lt,
|
|
585
587
|
children: [/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ v("tr", {
|
|
586
|
-
className:
|
|
588
|
+
className: Et,
|
|
587
589
|
children: [
|
|
588
590
|
/* @__PURE__ */ d("th", {
|
|
589
|
-
className:
|
|
591
|
+
className: ut,
|
|
590
592
|
children: "stage"
|
|
591
593
|
}),
|
|
592
594
|
/* @__PURE__ */ d("th", {
|
|
@@ -606,16 +608,16 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
606
608
|
children: "total hit"
|
|
607
609
|
})
|
|
608
610
|
]
|
|
609
|
-
}) }), /* @__PURE__ */ d("tbody", { children:
|
|
610
|
-
const n = e?.[r], o =
|
|
611
|
+
}) }), /* @__PURE__ */ d("tbody", { children: F.map((r) => {
|
|
612
|
+
const n = e?.[r], o = Rt(n);
|
|
611
613
|
return /* @__PURE__ */ v("tr", {
|
|
612
|
-
className:
|
|
614
|
+
className: vt,
|
|
613
615
|
children: [
|
|
614
616
|
/* @__PURE__ */ v("td", {
|
|
615
|
-
className:
|
|
617
|
+
className: mt,
|
|
616
618
|
children: [
|
|
617
619
|
/* @__PURE__ */ d("span", {
|
|
618
|
-
className:
|
|
620
|
+
className: oe[o],
|
|
619
621
|
"aria-hidden": !0
|
|
620
622
|
}),
|
|
621
623
|
" ",
|
|
@@ -623,63 +625,63 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
623
625
|
]
|
|
624
626
|
}),
|
|
625
627
|
/* @__PURE__ */ d("td", {
|
|
626
|
-
className: o === "ran" ?
|
|
628
|
+
className: o === "ran" ? re.ran : re.dim,
|
|
627
629
|
children: n?.misses ?? 0
|
|
628
630
|
}),
|
|
629
631
|
/* @__PURE__ */ d("td", {
|
|
630
|
-
className:
|
|
632
|
+
className: O,
|
|
631
633
|
children: n?.hits ?? 0
|
|
632
634
|
}),
|
|
633
635
|
/* @__PURE__ */ d("td", {
|
|
634
|
-
className:
|
|
636
|
+
className: O,
|
|
635
637
|
children: t[r].misses
|
|
636
638
|
}),
|
|
637
639
|
/* @__PURE__ */ d("td", {
|
|
638
|
-
className:
|
|
640
|
+
className: O,
|
|
639
641
|
children: t[r].hits
|
|
640
642
|
})
|
|
641
643
|
]
|
|
642
644
|
}, r);
|
|
643
645
|
}) })]
|
|
644
|
-
}),
|
|
645
|
-
className:
|
|
646
|
+
}), Nt = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ v("div", {
|
|
647
|
+
className: yt,
|
|
646
648
|
children: [/* @__PURE__ */ d("div", {
|
|
647
|
-
className:
|
|
649
|
+
className: Ct,
|
|
648
650
|
children: "recent compiles"
|
|
649
651
|
}), e.map((t) => {
|
|
650
|
-
const r =
|
|
652
|
+
const r = qt(t.stages, (a) => a.misses > 0), n = F.length;
|
|
651
653
|
return /* @__PURE__ */ v("div", {
|
|
652
|
-
className:
|
|
654
|
+
className: ht,
|
|
653
655
|
children: [
|
|
654
656
|
/* @__PURE__ */ d("span", {
|
|
655
|
-
className:
|
|
657
|
+
className: oe[r === 0 ? "cached" : "ran"],
|
|
656
658
|
"aria-hidden": !0
|
|
657
659
|
}),
|
|
658
660
|
/* @__PURE__ */ d("span", {
|
|
659
|
-
className:
|
|
661
|
+
className: gt,
|
|
660
662
|
title: t.label,
|
|
661
663
|
children: t.label
|
|
662
664
|
}),
|
|
663
665
|
/* @__PURE__ */ v("span", {
|
|
664
|
-
className:
|
|
666
|
+
className: pt,
|
|
665
667
|
children: [
|
|
666
668
|
r,
|
|
667
669
|
"/",
|
|
668
670
|
n,
|
|
669
671
|
" ran · ",
|
|
670
|
-
|
|
672
|
+
ie(t.durationMs)
|
|
671
673
|
]
|
|
672
674
|
})
|
|
673
675
|
]
|
|
674
676
|
}, t.id);
|
|
675
677
|
})]
|
|
676
|
-
}),
|
|
678
|
+
}), Rt = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", qt = (e, t) => {
|
|
677
679
|
let r = 0;
|
|
678
|
-
for (const n of
|
|
680
|
+
for (const n of F) t(e[n]) && (r += 1);
|
|
679
681
|
return r;
|
|
680
|
-
},
|
|
681
|
-
const { history: e } =
|
|
682
|
-
return
|
|
682
|
+
}, ie = (e) => e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, yr = () => {
|
|
683
|
+
const { history: e } = ne(), { stack: t, undo: r, redo: n } = e, o = f((c) => t.subscribe(c), [t]), a = f(() => t.getSnapshot(), [t]), i = we(o, a, a);
|
|
684
|
+
return $(() => ({
|
|
683
685
|
...i,
|
|
684
686
|
undo: r,
|
|
685
687
|
redo: n
|
|
@@ -688,7 +690,7 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
688
690
|
r,
|
|
689
691
|
n
|
|
690
692
|
]);
|
|
691
|
-
},
|
|
693
|
+
}, It = /* @__PURE__ */ new Set([
|
|
692
694
|
"button",
|
|
693
695
|
"checkbox",
|
|
694
696
|
"color",
|
|
@@ -699,10 +701,10 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
699
701
|
"range",
|
|
700
702
|
"reset",
|
|
701
703
|
"submit"
|
|
702
|
-
]),
|
|
704
|
+
]), br = (e, t = {}) => {
|
|
703
705
|
const { target: r, enabled: n = !0 } = t;
|
|
704
|
-
|
|
705
|
-
const o =
|
|
706
|
+
x(() => {
|
|
707
|
+
const o = kt(r);
|
|
706
708
|
if (!n || !o) return;
|
|
707
709
|
const a = (i) => {
|
|
708
710
|
if (!Gt(i) || i.defaultPrevented || wt(i.target)) return;
|
|
@@ -717,44 +719,45 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
717
719
|
r,
|
|
718
720
|
n
|
|
719
721
|
]);
|
|
720
|
-
},
|
|
722
|
+
}, kt = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, Gt = (e) => "key" in e, wt = (e) => e instanceof HTMLInputElement ? !It.has(e.type) : e instanceof HTMLElement ? e.isContentEditable || e.tagName === "TEXTAREA" : !1;
|
|
721
723
|
export {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
sr as
|
|
724
|
+
Yt as BrandMark,
|
|
725
|
+
Pt as CanvasTextMeasurer,
|
|
726
|
+
Vt as DefaultFooter,
|
|
727
|
+
tr as DefaultGrid,
|
|
728
|
+
Mt as DefaultHeader,
|
|
729
|
+
or as DefaultSwatch,
|
|
730
|
+
Kt as DefaultTooltip,
|
|
731
|
+
vr as DevToolsPanel,
|
|
732
|
+
Be as GraphErrorBoundary,
|
|
733
|
+
J as GraphErrorPanel,
|
|
734
|
+
at as GraphProvider,
|
|
735
|
+
At as GraphRenderer,
|
|
736
|
+
Qt as HoverProvider,
|
|
737
|
+
Dt as TextMeasurerProvider,
|
|
738
|
+
rr as ThemeProvider,
|
|
739
|
+
fr as UnitBoxSvg,
|
|
740
|
+
pr as UnitSpaceSvg,
|
|
741
|
+
gr as createGraphyKit,
|
|
742
|
+
er as darkTheme,
|
|
743
|
+
nr as defineGeomRenderer,
|
|
744
|
+
Ut as lightTheme,
|
|
745
|
+
Wt as lightenCss,
|
|
746
|
+
Oe as pruneSelection,
|
|
747
|
+
$t as resolveBrandMarkVisual,
|
|
748
|
+
Lt as useCompiledSelector,
|
|
749
|
+
Xt as useElementScreenRect,
|
|
750
|
+
Jt as useGeomHitTest,
|
|
751
|
+
jt as useGeomHover,
|
|
752
|
+
zt as useGraphCommands,
|
|
753
|
+
Ft as useGraphHandle,
|
|
754
|
+
yr as useGraphHistory,
|
|
755
|
+
br as useGraphHistoryShortcuts,
|
|
756
|
+
Ot as useGraphSelection,
|
|
757
|
+
Zt as useHandleCompiled,
|
|
758
|
+
Bt as useHoverState,
|
|
759
|
+
xt as useStyleReaders,
|
|
760
|
+
Ht as useStyleResolver,
|
|
761
|
+
sr as useTextMeasurer,
|
|
762
|
+
ar as vars
|
|
760
763
|
};
|