@graphysdk/react-renderer 1.9.0-beta.1788892166977 → 1.9.0-beta.1788895348418
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.d.ts +0 -1
- package/dist/editable.mjs +315 -304
- package/dist/history-chords-Bnv8UZck.cjs +1 -0
- package/dist/{history-chords--ylRa7hp.js → history-chords-DhcO3NfJ.js} +2598 -2628
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +278 -275
- package/package.json +2 -2
- package/dist/history-chords-AXTcGXnl.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 _t, Ft as de, It as re, Lt as A, M as Dt, Mt as $t, Nt as xt, O as Ht, Pt as Mt, St as le, Tt as Pt, X as Lt, Y as Bt, _ as Kt, _t as ue, a as Ot, bt as me, ct as At, gt as K, i as jt, it as Ft, j as Ut, jt as Yt, k as Wt, lt as Vt, mt as Xt, n as Qt, pt as zt, r as Jt, rt as Zt, s as er, t as ge, tt as tr, vt as rr, wt as nr, xt as sr, yt as j } from "./history-chords-DhcO3NfJ.js";
|
|
2
|
+
import { d as ir, t as he } from "./dev.utils-DT-z_GBs.js";
|
|
3
|
+
import { COMPILER_STAGE_KEYS as F, Geom as pe, GraphCompilationSession as fe, areEditTargetsEqual as ve, buildDiagnostic as V, createAnchorResolver as ye, createCompiler as be, createGraphyBuilder as Se, createStyleResolver as Ee, findAnnotation as Ce, isCompilerCachingEnabled as Te, resolveDefinition as Ne, setCompilerCachingEnabled as Re, toPercent as P } from "@graphysdk/viz-engine";
|
|
4
|
+
import { Component as qe, useCallback as f, useEffect as x, useId as Ge, useImperativeHandle as we, useMemo as $, useRef as X, useState as C, useSyncExternalStore as ke } from "react";
|
|
5
|
+
import { Fragment as Ie, jsx as d, jsxs as v } from "react/jsx-runtime";
|
|
6
|
+
import { useStore as Q } from "zustand";
|
|
7
|
+
import { createStore as U } from "zustand/vanilla";
|
|
8
|
+
import _e from "clsx";
|
|
9
|
+
import './index.css';var De = "_1a5iqpb0", $e = "_1a5iqpb1";
|
|
10
|
+
var xe = "_1a5iqpb3", He = "_1a5iqpb4", Me = "_1a5iqpb5";
|
|
11
|
+
var z = ({ errors: e }) => {
|
|
12
12
|
const [t, ...r] = e;
|
|
13
13
|
return /* @__PURE__ */ v("div", {
|
|
14
14
|
role: "alert",
|
|
15
|
-
className:
|
|
15
|
+
className: De,
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ d("strong", {
|
|
18
|
-
className:
|
|
18
|
+
className: $e,
|
|
19
19
|
children: "This chart could not be rendered."
|
|
20
20
|
}),
|
|
21
|
-
t && /* @__PURE__ */ d(
|
|
21
|
+
t && /* @__PURE__ */ d(J, { 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(J, { diagnostic: n }) }, `${n.code}-${o}`))
|
|
25
25
|
})
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
|
-
},
|
|
29
|
-
className:
|
|
28
|
+
}, J = ({ diagnostic: e }) => /* @__PURE__ */ v("div", {
|
|
29
|
+
className: xe,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ d("span", {
|
|
32
|
-
className:
|
|
32
|
+
className: He,
|
|
33
33
|
children: e.code
|
|
34
34
|
}),
|
|
35
35
|
/* @__PURE__ */ d("p", {
|
|
36
|
-
className:
|
|
36
|
+
className: Me,
|
|
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 Le = class extends qe {
|
|
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(z, { 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(z, { errors: t }) : r;
|
|
67
67
|
}
|
|
68
|
-
},
|
|
69
|
-
const t =
|
|
68
|
+
}, ne = (e) => typeof e == "object" && "geom" in e && "render" in e, Be = (e) => {
|
|
69
|
+
const t = Ne(e);
|
|
70
70
|
return t instanceof pe ? t : null;
|
|
71
|
-
},
|
|
72
|
-
const r = e.filter((n) =>
|
|
71
|
+
}, Ke = (e, t) => {
|
|
72
|
+
const r = e.filter((n) => Oe(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
|
+
}, Oe = (e, t) => e.kind !== "annotation" ? !0 : Ce(t.annotations, e.id) !== null, Z = [], Ae = () => U((e) => ({
|
|
75
|
+
selection: Z,
|
|
76
|
+
setSelection: (t) => e((r) => je(r.selection, t) ? r : { selection: t }),
|
|
77
|
+
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: Z })
|
|
78
|
+
})), je = (e, t) => e === t ? !0 : e.length !== t.length ? !1 : e.every((r, n) => {
|
|
79
79
|
const o = t[n];
|
|
80
80
|
return o !== void 0 && ve(r, o);
|
|
81
|
-
}),
|
|
81
|
+
}), Fe = 5, Ue = (e) => {
|
|
82
82
|
if (!he) return {
|
|
83
83
|
emit: () => {
|
|
84
84
|
},
|
|
85
|
-
subscribe: () =>
|
|
85
|
+
subscribe: () => We,
|
|
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
|
+
}, Ye = () => 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: Ve(t),
|
|
117
117
|
stages: r.stages,
|
|
118
118
|
durationMs: r.durationMs
|
|
119
119
|
};
|
|
120
120
|
return {
|
|
121
121
|
lastCompile: o,
|
|
122
|
-
history:
|
|
122
|
+
history: Xe(n.history, o, Fe),
|
|
123
123
|
nextId: n.nextId + 1,
|
|
124
124
|
lastSnapshot: r
|
|
125
125
|
};
|
|
126
126
|
})
|
|
127
|
-
})),
|
|
128
|
-
},
|
|
127
|
+
})), We = () => {
|
|
128
|
+
}, Ve = (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
|
+
}, Xe = (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 Qe(e) {
|
|
144
|
+
const t = e.filter(ne), r = /* @__PURE__ */ new Set([...Object.keys(me), ...t.map((c) => c.geom)]), n = [], o = /* @__PURE__ */ new Set();
|
|
145
145
|
for (const c of e) {
|
|
146
|
-
const u =
|
|
146
|
+
const u = Be(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 ze(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 Je(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 Ze(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 et(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 tt(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 rt(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 nt = (e) => U((t) => ({
|
|
295
295
|
compiled: e,
|
|
296
296
|
setCompiled: (r) => t((n) => n.compiled === r ? n : { compiled: r })
|
|
297
|
-
})),
|
|
298
|
-
const T =
|
|
297
|
+
})), st = ({ 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), w = K(u), q = K(m), [{ session: g, compileBus: l }] = C(() => {
|
|
299
299
|
const s = be({ plugins: o });
|
|
300
300
|
return {
|
|
301
301
|
session: new fe(s),
|
|
302
|
-
compileBus:
|
|
302
|
+
compileBus: Ue(s)
|
|
303
303
|
};
|
|
304
|
-
}), [
|
|
304
|
+
}), [p] = C(() => Qe(o ?? [])), y = X(null), [k] = C(ot), N = X(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 h = nt(s.compiled);
|
|
309
|
+
h.subscribe(k.notify), N.current = h, k.notify();
|
|
310
310
|
}
|
|
311
311
|
return null;
|
|
312
|
-
}, [k]), [
|
|
313
|
-
const s =
|
|
312
|
+
}, [k]), [H, D] = C(() => {
|
|
313
|
+
const s = g.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
|
+
}), G = f((s) => s.ok ? [
|
|
321
321
|
...s.warnings,
|
|
322
|
-
...Qe(s.compiled, a),
|
|
323
322
|
...ze(s.compiled, a),
|
|
324
|
-
...Je(s.compiled),
|
|
325
|
-
...Ze(s.compiled
|
|
326
|
-
...
|
|
327
|
-
...
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
323
|
+
...Je(s.compiled, a),
|
|
324
|
+
...Ze(s.compiled),
|
|
325
|
+
...et(s.compiled, a),
|
|
326
|
+
...rt(s.compiled, a),
|
|
327
|
+
...tt(s.compiled, i)
|
|
328
|
+
] : s.warnings, [a, i]), S = f((s) => {
|
|
329
|
+
s.length !== 0 && (A(s), w.current?.(s));
|
|
330
|
+
}, [w]), 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, ...G(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
|
+
G
|
|
342
|
+
]), x(() => {
|
|
343
|
+
const s = g.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 h = _(s.result);
|
|
352
|
+
D(b(h)), h && S(h), R(G(s.result)), h || l.emit({ kind: s.inputChanged ? "input" : "data" });
|
|
353
353
|
}, [
|
|
354
354
|
e,
|
|
355
355
|
t,
|
|
356
356
|
r,
|
|
357
357
|
n,
|
|
358
|
-
|
|
358
|
+
g,
|
|
359
359
|
l,
|
|
360
|
-
|
|
361
|
-
N,
|
|
360
|
+
_,
|
|
362
361
|
S,
|
|
363
|
-
|
|
362
|
+
R,
|
|
364
363
|
b,
|
|
364
|
+
G,
|
|
365
365
|
T
|
|
366
366
|
]);
|
|
367
|
-
const
|
|
368
|
-
|
|
367
|
+
const I = f((s) => {
|
|
368
|
+
D((h) => h === null ? h : b(null)), R(G(s));
|
|
369
369
|
}, [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
]),
|
|
374
|
-
s.compiled &&
|
|
370
|
+
b,
|
|
371
|
+
R,
|
|
372
|
+
G
|
|
373
|
+
]), M = f((s) => {
|
|
374
|
+
s.compiled && N.current?.getState().setCompiled(s.compiled), s.result && I(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
|
+
I,
|
|
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 h of s) M(h);
|
|
385
|
+
return s.some((h) => !!h.compiled);
|
|
386
|
+
}, [M]), B = f((s, h) => {
|
|
387
|
+
E(g.applyCommand(s, h));
|
|
388
|
+
}, [g, E]), ie = f(() => {
|
|
389
|
+
E(g.seal());
|
|
390
|
+
}, [g, E]), Y = f(() => E(g.undo()), [g, E]), W = f(() => E(g.redo()), [g, E]), ae = $(() => ({
|
|
391
|
+
stack: g.history,
|
|
392
|
+
undo: Y,
|
|
393
|
+
redo: W
|
|
394
394
|
}), [
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
]), ce = f(() =>
|
|
395
|
+
g,
|
|
396
|
+
Y,
|
|
397
|
+
W
|
|
398
|
+
]), ce = f(() => N.current?.getState().compiled ?? null, []);
|
|
399
399
|
return {
|
|
400
|
-
store:
|
|
401
|
-
dispatch:
|
|
400
|
+
store: N.current,
|
|
401
|
+
dispatch: B,
|
|
402
402
|
seal: ie,
|
|
403
403
|
history: ae,
|
|
404
404
|
subscribe: k.subscribe,
|
|
405
405
|
getCompiled: ce,
|
|
406
406
|
compileBus: l,
|
|
407
|
-
compileErrors:
|
|
407
|
+
compileErrors: H
|
|
408
408
|
};
|
|
409
|
-
},
|
|
409
|
+
}, ot = () => {
|
|
410
410
|
const e = /* @__PURE__ */ new Set();
|
|
411
411
|
return {
|
|
412
412
|
subscribe: (t) => (e.add(t), () => {
|
|
@@ -414,74 +414,76 @@ var rt = (e) => F((t) => ({
|
|
|
414
414
|
}),
|
|
415
415
|
notify: () => e.forEach((t) => t())
|
|
416
416
|
};
|
|
417
|
-
},
|
|
418
|
-
const [w] = C(() => ue(r.filter(
|
|
417
|
+
}, it = ({ 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 [w] = C(() => ue(r.filter(ne))), q = Ge(), [g] = C(() => ye(r)), [l] = C(() => Ae()), p = $(() => Ee({ colorScheme: m }), [m]), { store: y, dispatch: k, seal: N, history: b, subscribe: _, getCompiled: H, compileBus: D, compileErrors: G } = st({
|
|
419
419
|
input: t,
|
|
420
420
|
data: e,
|
|
421
421
|
customPalettes: u,
|
|
422
|
-
colorScheme:
|
|
422
|
+
colorScheme: m,
|
|
423
423
|
plugins: r,
|
|
424
424
|
resolveRenderer: w,
|
|
425
|
-
anchorResolver:
|
|
425
|
+
anchorResolver: g,
|
|
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((I, M) => {
|
|
433
|
+
if (I.compiled.spec === M.compiled.spec) return;
|
|
434
|
+
const { selection: E, setSelection: B } = l.getState();
|
|
435
|
+
E.length !== 0 && B(Ke(E, I.compiled.spec));
|
|
436
436
|
});
|
|
437
|
-
}, [
|
|
438
|
-
const
|
|
439
|
-
dispatch:
|
|
440
|
-
seal:
|
|
441
|
-
}), [
|
|
442
|
-
|
|
443
|
-
commands:
|
|
444
|
-
undo:
|
|
445
|
-
redo:
|
|
446
|
-
subscribe:
|
|
447
|
-
getCompiled:
|
|
437
|
+
}, [y, l]);
|
|
438
|
+
const S = $(() => ({
|
|
439
|
+
dispatch: k,
|
|
440
|
+
seal: N
|
|
441
|
+
}), [k, N]);
|
|
442
|
+
we(o, () => ({
|
|
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: (I) => l.getState().setSelection(I),
|
|
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: g
|
|
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
|
+
g
|
|
478
480
|
]);
|
|
479
|
-
return /* @__PURE__ */ d(
|
|
480
|
-
forcedErrors:
|
|
481
|
+
return /* @__PURE__ */ d(Le, {
|
|
482
|
+
forcedErrors: G,
|
|
481
483
|
onError: i,
|
|
482
484
|
resetKeys: [t, e],
|
|
483
|
-
children:
|
|
484
|
-
value:
|
|
485
|
+
children: R ? /* @__PURE__ */ d(de.Provider, {
|
|
486
|
+
value: R,
|
|
485
487
|
children: /* @__PURE__ */ d(le, {
|
|
486
488
|
value: w,
|
|
487
489
|
children: T
|
|
@@ -489,17 +491,17 @@ var rt = (e) => F((t) => ({
|
|
|
489
491
|
}) : null
|
|
490
492
|
});
|
|
491
493
|
};
|
|
492
|
-
function
|
|
494
|
+
function gr(e) {
|
|
493
495
|
const t = Se(e);
|
|
494
496
|
return {
|
|
495
497
|
...t,
|
|
496
|
-
GraphProvider: (n) => /* @__PURE__ */ d(
|
|
498
|
+
GraphProvider: (n) => /* @__PURE__ */ d(it, {
|
|
497
499
|
...n,
|
|
498
500
|
plugins: t.plugins
|
|
499
501
|
})
|
|
500
502
|
};
|
|
501
503
|
}
|
|
502
|
-
var
|
|
504
|
+
var hr = ({ 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
|
+
}), pr = ({ box: e, children: t }) => /* @__PURE__ */ d("svg", {
|
|
513
|
+
x: P(e.x0),
|
|
514
|
+
y: P(e.y0),
|
|
515
|
+
width: P(e.x1 - e.x0),
|
|
516
|
+
height: P(e.y1 - e.y0),
|
|
515
517
|
overflow: "hidden",
|
|
516
518
|
pointerEvents: "none",
|
|
517
519
|
children: t
|
|
518
|
-
}),
|
|
519
|
-
var
|
|
520
|
-
var
|
|
520
|
+
}), at = "drqe3u0", ct = "drqe3u1", dt = "drqe3u2", lt = "drqe3u3", L = "drqe3u4", ut = "drqe3u5", mt = "drqe3u6", gt = "drqe3u7", O = "drqe3u8", ht = "drqe3u9", pt = "drqe3ua";
|
|
521
|
+
var ft = "drqe3uc", vt = "drqe3ud", yt = "drqe3ue", bt = "drqe3uf";
|
|
522
|
+
var St = "drqe3uh", Et = "drqe3ui", ee = {
|
|
521
523
|
enabled: "drqe3uk drqe3uj",
|
|
522
524
|
disabled: "drqe3ul drqe3uj"
|
|
523
|
-
},
|
|
525
|
+
}, te = {
|
|
524
526
|
ran: "drqe3un drqe3um",
|
|
525
527
|
dim: "drqe3uo drqe3um"
|
|
526
|
-
},
|
|
528
|
+
}, se = {
|
|
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
|
+
}, fr = ({ width: e = 380, style: t, className: r } = {}) => {
|
|
533
|
+
const { compileBus: n } = re(), [o] = C(() => Ye()), [a, i] = C(!1), [c, u] = C(Te);
|
|
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 = Q(o, (l) => l.lastCompile), T = Q(o, (l) => l.history), w = n.getCacheStats(), q = m === null && T.length === 0, g = () => {
|
|
537
539
|
u((l) => {
|
|
538
|
-
const
|
|
539
|
-
return
|
|
540
|
+
const p = !l;
|
|
541
|
+
return Re(p), p;
|
|
540
542
|
});
|
|
541
543
|
};
|
|
542
544
|
return /* @__PURE__ */ v("div", {
|
|
543
|
-
className:
|
|
545
|
+
className: _e(pt, 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: at,
|
|
551
553
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ d("div", {
|
|
552
|
-
className:
|
|
554
|
+
className: ct,
|
|
553
555
|
children: "compile cache"
|
|
554
556
|
}), /* @__PURE__ */ d("div", {
|
|
555
|
-
className:
|
|
556
|
-
children:
|
|
557
|
+
className: yt,
|
|
558
|
+
children: q ? "production: stats disabled" : m ? `last: ${m.label} · ${oe(m.durationMs)}` : "awaiting first compile…"
|
|
557
559
|
})] }), /* @__PURE__ */ d("button", {
|
|
558
560
|
type: "button",
|
|
559
561
|
onClick: () => i((l) => !l),
|
|
560
|
-
className:
|
|
562
|
+
className: bt,
|
|
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: g,
|
|
571
|
+
className: c ? ee.enabled : ee.disabled,
|
|
570
572
|
"aria-pressed": c,
|
|
571
573
|
children: ["cache ", c ? "enabled" : "disabled"]
|
|
572
574
|
}), /* @__PURE__ */ d("span", {
|
|
@@ -574,48 +576,48 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
574
576
|
children: "next compile reflects this toggle"
|
|
575
577
|
})]
|
|
576
578
|
}),
|
|
577
|
-
!a && !
|
|
578
|
-
delta:
|
|
579
|
+
!a && !q && /* @__PURE__ */ v(Ie, { children: [/* @__PURE__ */ d(Ct, {
|
|
580
|
+
delta: m?.stages,
|
|
579
581
|
cumulative: w
|
|
580
|
-
}), /* @__PURE__ */ d(
|
|
582
|
+
}), /* @__PURE__ */ d(Tt, { entries: T })] })
|
|
581
583
|
]
|
|
582
584
|
});
|
|
583
|
-
},
|
|
584
|
-
className:
|
|
585
|
+
}, Ct = ({ delta: e, cumulative: t }) => /* @__PURE__ */ v("table", {
|
|
586
|
+
className: dt,
|
|
585
587
|
children: [/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ v("tr", {
|
|
586
|
-
className:
|
|
588
|
+
className: St,
|
|
587
589
|
children: [
|
|
588
590
|
/* @__PURE__ */ d("th", {
|
|
589
|
-
className:
|
|
591
|
+
className: lt,
|
|
590
592
|
children: "stage"
|
|
591
593
|
}),
|
|
592
594
|
/* @__PURE__ */ d("th", {
|
|
593
|
-
className:
|
|
595
|
+
className: L,
|
|
594
596
|
children: "Δ miss"
|
|
595
597
|
}),
|
|
596
598
|
/* @__PURE__ */ d("th", {
|
|
597
|
-
className:
|
|
599
|
+
className: L,
|
|
598
600
|
children: "Δ hit"
|
|
599
601
|
}),
|
|
600
602
|
/* @__PURE__ */ d("th", {
|
|
601
|
-
className:
|
|
603
|
+
className: L,
|
|
602
604
|
children: "total miss"
|
|
603
605
|
}),
|
|
604
606
|
/* @__PURE__ */ d("th", {
|
|
605
|
-
className:
|
|
607
|
+
className: L,
|
|
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 = Nt(n);
|
|
611
613
|
return /* @__PURE__ */ v("tr", {
|
|
612
|
-
className:
|
|
614
|
+
className: ft,
|
|
613
615
|
children: [
|
|
614
616
|
/* @__PURE__ */ v("td", {
|
|
615
|
-
className:
|
|
617
|
+
className: ut,
|
|
616
618
|
children: [
|
|
617
619
|
/* @__PURE__ */ d("span", {
|
|
618
|
-
className:
|
|
620
|
+
className: se[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" ? te.ran : te.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
|
+
}), Tt = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ v("div", {
|
|
647
|
+
className: vt,
|
|
646
648
|
children: [/* @__PURE__ */ d("div", {
|
|
647
|
-
className:
|
|
649
|
+
className: Et,
|
|
648
650
|
children: "recent compiles"
|
|
649
651
|
}), e.map((t) => {
|
|
650
|
-
const r =
|
|
652
|
+
const r = Rt(t.stages, (a) => a.misses > 0), n = F.length;
|
|
651
653
|
return /* @__PURE__ */ v("div", {
|
|
652
|
-
className:
|
|
654
|
+
className: mt,
|
|
653
655
|
children: [
|
|
654
656
|
/* @__PURE__ */ d("span", {
|
|
655
|
-
className:
|
|
657
|
+
className: se[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: ht,
|
|
665
667
|
children: [
|
|
666
668
|
r,
|
|
667
669
|
"/",
|
|
668
670
|
n,
|
|
669
671
|
" ran · ",
|
|
670
|
-
|
|
672
|
+
oe(t.durationMs)
|
|
671
673
|
]
|
|
672
674
|
})
|
|
673
675
|
]
|
|
674
676
|
}, t.id);
|
|
675
677
|
})]
|
|
676
|
-
}),
|
|
678
|
+
}), Nt = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", Rt = (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
|
+
}, oe = (e) => e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, vr = () => {
|
|
683
|
+
const { history: e } = re(), { stack: t, undo: r, redo: n } = e, o = f((c) => t.subscribe(c), [t]), a = f(() => t.getSnapshot(), [t]), i = ke(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
|
+
}, qt = /* @__PURE__ */ new Set([
|
|
692
694
|
"button",
|
|
693
695
|
"checkbox",
|
|
694
696
|
"color",
|
|
@@ -699,13 +701,13 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
699
701
|
"range",
|
|
700
702
|
"reset",
|
|
701
703
|
"submit"
|
|
702
|
-
]),
|
|
704
|
+
]), yr = (e, t = {}) => {
|
|
703
705
|
const { target: r, enabled: n = !0 } = t;
|
|
704
|
-
|
|
705
|
-
const o =
|
|
706
|
+
x(() => {
|
|
707
|
+
const o = Gt(r);
|
|
706
708
|
if (!n || !o) return;
|
|
707
709
|
const a = (i) => {
|
|
708
|
-
if (!
|
|
710
|
+
if (!wt(i) || i.defaultPrevented || kt(i.target)) return;
|
|
709
711
|
const c = ge(i);
|
|
710
712
|
if (!c) return;
|
|
711
713
|
const u = e.current;
|
|
@@ -717,44 +719,45 @@ var bt = "drqe3uh", St = "drqe3ui", Z = {
|
|
|
717
719
|
r,
|
|
718
720
|
n
|
|
719
721
|
]);
|
|
720
|
-
},
|
|
722
|
+
}, Gt = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, wt = (e) => "key" in e, kt = (e) => e instanceof HTMLInputElement ? !qt.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
|
-
|
|
724
|
+
Ut as BrandMark,
|
|
725
|
+
Pt as CanvasTextMeasurer,
|
|
726
|
+
Wt as DefaultFooter,
|
|
727
|
+
er as DefaultGrid,
|
|
728
|
+
Ht as DefaultHeader,
|
|
729
|
+
sr as DefaultSwatch,
|
|
730
|
+
Bt as DefaultTooltip,
|
|
731
|
+
fr as DevToolsPanel,
|
|
732
|
+
Le as GraphErrorBoundary,
|
|
733
|
+
z as GraphErrorPanel,
|
|
734
|
+
it as GraphProvider,
|
|
735
|
+
Ot as GraphRenderer,
|
|
736
|
+
Xt as HoverProvider,
|
|
737
|
+
_t as TextMeasurerProvider,
|
|
738
|
+
tr as ThemeProvider,
|
|
739
|
+
pr as UnitBoxSvg,
|
|
740
|
+
hr as UnitSpaceSvg,
|
|
741
|
+
gr as createGraphyKit,
|
|
742
|
+
Zt as darkTheme,
|
|
743
|
+
rr as defineGeomRenderer,
|
|
744
|
+
Ft as lightTheme,
|
|
745
|
+
Yt as lightenCss,
|
|
746
|
+
Ke as pruneSelection,
|
|
747
|
+
Dt as resolveBrandMarkVisual,
|
|
748
|
+
Mt as useCompiledSelector,
|
|
749
|
+
Vt as useElementScreenRect,
|
|
750
|
+
zt as useGeomHitTest,
|
|
751
|
+
At as useGeomHover,
|
|
752
|
+
Qt as useGraphCommands,
|
|
753
|
+
jt as useGraphHandle,
|
|
754
|
+
vr as useGraphHistory,
|
|
755
|
+
yr as useGraphHistoryShortcuts,
|
|
756
|
+
Kt as useGraphSelection,
|
|
757
|
+
Jt as useHandleCompiled,
|
|
758
|
+
Lt as useHoverState,
|
|
759
|
+
$t as useStyleReaders,
|
|
760
|
+
xt as useStyleResolver,
|
|
761
|
+
nr as useTextMeasurer,
|
|
762
|
+
ir as vars
|
|
760
763
|
};
|