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