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