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