@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/index.mjs CHANGED
@@ -1,39 +1,39 @@
1
- import { $t as fr, A as pr, An as vr, B as yr, Bn as Ie, Bt as Ce, Cn as F, Dn as Sr, En as br, Et as Er, Fn as Tr, Ft as Rr, Gt as we, Hn as Pe, Ht as Gr, In as Nr, Kt as Ir, L as Cr, Ln as wr, Lt as Y, M as Pr, Nn as Le, Nt as Lr, On as De, Pn as Dr, Pt as qr, Qt as kr, R as _r, Rn as Hr, Sn as K, Ut as $r, Vn as ne, Vt as qe, Wn as X, Wt as Q, Xt as ke, Yt as xr, _n as J, _t as Mr, a as Ar, an as Br, at as Or, bn as Fr, bt as Kr, cn as zr, ct as Wr, dn as jr, en as Ur, fn as Vr, gn as _e, h as Yr, hn as Xr, i as Qr, it as Jr, j as Zr, jn as He, jt as en, kn as $e, kt as tn, mn as be, mt as rn, n as nn, ot as sn, pn as z, r as on, s as an, t as xe, tn as cn, vn as Ee, vt as ln, w as dn, wn as un, xn as Me, yn as Ae, z as mn, zn as hn } from "./history-chords-BPORQs1S.js";
2
- import { COMPILER_STAGE_KEYS as se, DEFAULT_LOCALE as Be, Geom as Oe, GraphCompilationSession as Fe, areEditTargetsEqual as Ke, buildDiagnostic as ae, canonicalizeLocale as ze, createAnchorResolver as We, createCompiler as je, createDataLabelPlacementResolver as Ue, createSpecBuilder as Ve, createStyleResolver as Te, findAnnotation as Ye, findIntlLocale as Xe, findLayerById as ce, foldGeomCornerRadii as Qe, isCompilerCachingEnabled as Je, resolveDefinition as Ze, resolveGeomCornerRadiusPx as le, setCompilerCachingEnabled as et, toPercent as U } from "@graphysdk/viz-engine";
3
- import { Component as tt, useCallback as f, useEffect as H, useId as rt, useImperativeHandle as nt, useMemo as _, useRef as de, useState as y, useSyncExternalStore as st } from "react";
4
- import { Fragment as ot, jsx as c, jsxs as p } from "react/jsx-runtime";
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 Z } from "motion/react";
7
- import { createStore as oe } from "zustand/vanilla";
8
- import it from "clsx";
9
- import './index.css';var at = "_1a5iqpb0", ct = "_1a5iqpb1";
10
- var lt = "_1a5iqpb3", dt = "_1a5iqpb4", ut = "_1a5iqpb5";
11
- var ue = ({ errors: e }) => {
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__ */ p("div", {
13
+ return /* @__PURE__ */ v("div", {
14
14
  role: "alert",
15
- className: at,
15
+ className: gt,
16
16
  children: [
17
17
  /* @__PURE__ */ c("strong", {
18
- className: ct,
18
+ className: ft,
19
19
  children: "This chart could not be rendered."
20
20
  }),
21
- t && /* @__PURE__ */ c(me, { diagnostic: t }),
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(me, { diagnostic: n }) }, `${n.code}-${s}`))
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
- }, me = ({ diagnostic: e }) => /* @__PURE__ */ p("div", {
29
- className: lt,
28
+ }, he = ({ diagnostic: e }) => /* @__PURE__ */ v("div", {
29
+ className: pt,
30
30
  children: [
31
31
  /* @__PURE__ */ c("span", {
32
- className: dt,
32
+ className: vt,
33
33
  children: e.code
34
34
  }),
35
35
  /* @__PURE__ */ c("p", {
36
- className: ut,
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 mt(e = [], t = []) {
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 ht = class extends tt {
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: ae(e) };
53
+ return { caughtDiagnostic: ce(e) };
54
54
  }
55
55
  componentDidCatch(e, t) {
56
- const r = ae(e);
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 && !mt(e.resetKeys, this.props.resetKeys) && this.setState({ caughtDiagnostic: null });
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(ue, { errors: [e] });
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(ue, { errors: t }) : r;
66
+ return t && t.length > 0 ? /* @__PURE__ */ c(me, { errors: t }) : r;
67
67
  }
68
- }, Re = (e) => typeof e == "object" && "geom" in e && "render" in e, Ge = (e) => {
69
- const t = Ze(e);
70
- return t instanceof Oe ? t : null;
71
- }, gt = (e, t) => {
72
- const r = e.filter((n) => ft(n, t));
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
- }, ft = (e, t) => e.kind === "annotation" ? Ye(t.annotations, e.id) !== null : e.kind === "observations" ? ce(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? ce(t.layers, e.layerId) !== void 0 : !0, he = [], pt = () => oe((e) => ({
75
- selection: he,
76
- setSelection: (t) => e((r) => vt(r.selection, t) ? r : { selection: t }),
77
- clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: he })
78
- })), vt = (e, t) => e === t ? !0 : e.length !== t.length ? !1 : e.every((r, n) => {
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 && Ke(r, s);
81
- }), yt = 5, St = (e) => {
82
- if (!Le) return {
80
+ return s !== void 0 && Ve(r, s);
81
+ }), It = 5, Nt = (e) => {
82
+ if (!Te) return {
83
83
  emit: () => {
84
84
  },
85
- subscribe: () => Et,
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 i of t) i(n, s);
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
- }, bt = () => oe((e) => ({
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: Tt(t),
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: Rt(n.history, s, yt),
123
+ history: Lt(n.history, s, It),
124
124
  nextId: n.nextId + 1,
125
125
  lastSnapshot: r
126
126
  };
127
127
  })
128
- })), Et = () => {
129
- }, Tt = (e) => {
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
- }, Rt = (e, t, r) => {
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 ge(e) {
145
- const t = e.filter(Re), r = /* @__PURE__ */ new Set([...Object.keys(we), ...t.map((l) => l.geom)]), n = [], s = /* @__PURE__ */ new Set();
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 = Ge(l);
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 i = /* @__PURE__ */ new Map();
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 = i.get(d);
164
- h ? h.count += 1 : i.set(d, {
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 a = [];
171
- for (const { geom: l, coord: d, count: h } of i.values())
172
- h < 2 || a.push({
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 a.push(...qt(e)), {
183
+ return i.push(...At(e)), {
184
184
  errors: n,
185
- warnings: a
185
+ warnings: i
186
186
  };
187
187
  }
188
- function Gt(e, t) {
189
- const { coordSystem: r, layers: n } = e, s = /* @__PURE__ */ new Set(), i = [];
190
- for (const a of n)
191
- t(a.geom, r.type) !== null || s.has(a.geom) || (s.add(a.geom), i.push({
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 '${a.geom}' under ${r.type} coords; the layer is not painted.`,
195
+ message: `No renderer for geom '${i.geom}' under ${r.type} coords; the layer is not painted.`,
196
196
  context: {
197
- requested: a.geom,
197
+ requested: i.geom,
198
198
  kind: "geom-renderer"
199
199
  },
200
- suggestion: `Register a renderer for ('${a.geom}', '${r.type}') via \`defineGeomRenderer\`.`
200
+ suggestion: `Register a renderer for ('${i.geom}', '${r.type}') via \`defineGeomRenderer\`.`
201
201
  }));
202
- return i;
202
+ return o;
203
203
  }
204
- function Nt(e, t) {
205
- const { coordSystem: r, layers: n } = e, s = /* @__PURE__ */ new Set(), i = [];
206
- for (const a of n) {
207
- if (a.interactive === !1 || a.spatialKind !== "renderHitTest" || s.has(a.geom)) continue;
208
- const l = t(a.geom, r.type);
209
- l === null || l.hitTest || Q(l) || (s.add(a.geom), i.push({
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 '${a.geom}' declares spatialKind 'renderHitTest' but its renderer provides no hit-test; the layer has no hover.`,
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: a.geom,
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 ('${a.geom}', '${r.type}').`
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 i;
221
+ return o;
222
222
  }
223
- function It(e) {
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 Ct(e, t) {
242
- const { coordSystem: r, layers: n } = e, s = /* @__PURE__ */ new Set(), i = [];
243
- for (const a of n) {
244
- if (a.interactive === !1 || a.spatialKind !== "renderHitTest" || s.has(a.geom)) continue;
245
- const l = t(a.geom, r.type);
246
- l === null || !l.hitTest || !Q(l) || (s.add(a.geom), i.push({
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 '${a.geom}' declares both a \`hitTest\` factory and a live render; these are alternatives, so only the live render is used.`,
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: a.geom,
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 i;
258
+ return o;
259
259
  }
260
- function wt(e, t) {
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 Pt(e, t) {
277
- const { coordSystem: r, layers: n } = e, s = /* @__PURE__ */ new Set(), i = [];
278
- for (const a of n) {
279
- if (a.interactive === !1 || a.spatialKind === "renderHitTest" || s.has(a.geom)) continue;
280
- const l = t(a.geom, r.type);
281
- l === null || !Q(l) || (s.add(a.geom), i.push({
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 '${a.geom}' declares a live render but its layer's spatialKind is '${a.spatialKind}', not 'renderHitTest'; its push-path hover resolves to nothing.`,
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: a.geom,
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 i;
293
+ return o;
294
294
  }
295
- function Lt(e, t) {
295
+ function xt(e, t) {
296
296
  let r;
297
- return e.layers.flatMap((n, s) => Q(t(n.geom, e.coordSystem.type)) ? Dt(n) ? (r ??= Te().readers(e), (r.geom(n).get("overpaint", void 0, "hovered")?.length ?? 0) === 0 ? [] : [{
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 Dt = (e) => [e.styles.defaults, e.styles.overrides].some((t) => t.some((r) => r.state === "hovered" && (r.declarations.overpaint?.length ?? 0) > 0));
311
- function qt(e) {
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 = Ge(n);
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 kt = (e) => oe((t) => ({
329
+ var Ot = (e) => ie((t) => ({
330
330
  scene: e,
331
331
  setScene: (r) => t((n) => n.scene === r ? n : { scene: r })
332
- })), _t = ({ spec: e, data: t, colorScheme: r, plugins: n, theme: s, resolveRenderer: i, anchorResolver: a, onSpecChange: l, onError: d, onWarnings: h }) => {
333
- const N = Y(l), D = Y(d), G = Y(h), [{ session: g, compileBus: m, findGeom: S }] = y(() => {
334
- const o = je({
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 Fe(o),
340
- compileBus: St(o),
341
- findGeom: (u) => o.findGeom(u)
339
+ session: new We(a),
340
+ compileBus: Nt(a),
341
+ findGeom: (m) => a.findGeom(m)
342
342
  };
343
- }), [b] = y(() => {
344
- const o = ge(n ?? []), u = ge(s?.plugins ?? []);
343
+ }), [f] = S(() => {
344
+ const a = fe(n ?? []), m = fe(s?.plugins ?? []);
345
345
  return {
346
- errors: [...u.errors, ...o.errors],
347
- warnings: [...u.warnings, ...o.warnings]
346
+ errors: [...m.errors, ...a.errors],
347
+ warnings: [...m.warnings, ...a.warnings]
348
348
  };
349
- }), $ = de(null), [P] = y(Ht), T = de(null), v = f((o) => b.errors.length === 0 ? o : [...b.errors, ...o ?? []], [b]), q = f((o) => {
350
- if (!o.ok) return o.errors;
351
- if (T.current) T.current.getState().setScene(o.scene);
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 u = kt(o.scene);
354
- u.subscribe(P.notify), T.current = u, P.notify();
353
+ const m = Ot(a.scene);
354
+ m.subscribe(L.notify), G.current = m, L.notify();
355
355
  }
356
356
  return null;
357
- }, [P]), [W, I] = y(() => {
358
- const o = g.compile({
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 $.current = o, v(q(o));
364
- }), C = f((o) => o.ok ? [
365
- ...o.warnings,
366
- ...Gt(o.scene, i),
367
- ...Nt(o.scene, i),
368
- ...It(o.scene),
369
- ...Ct(o.scene, i),
370
- ...Pt(o.scene, i),
371
- ...Lt(o.scene, i),
372
- ...wt(o.scene, a)
373
- ] : o.warnings, [i, a]), w = f((o) => {
374
- o.length !== 0 && (X(o), D.current?.(o));
375
- }, [D]), E = f((o) => {
376
- o.length !== 0 && (X(o), G.current?.(o));
377
- }, [G]);
378
- H(() => {
379
- const o = $.current;
380
- o && (w([...b.errors, ...o.ok ? [] : o.errors]), E([...b.warnings, ...C(o)]), o.ok && m.emit({ kind: "init" }));
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
- m,
382
+ u,
383
383
  w,
384
- E,
385
- b,
384
+ R,
385
+ f,
386
386
  C
387
- ]), H(() => {
388
- const o = g.update({
387
+ ]), _(() => {
388
+ const a = g.update({
389
389
  spec: e,
390
390
  data: t,
391
391
  colorScheme: r
392
392
  });
393
- if (!o) return;
394
- o.committedSpec && N.current?.(o.committedSpec);
395
- const u = q(o.result);
396
- I(v(u)), u && w(u), E(C(o.result)), u || m.emit({ kind: o.hasSpecChange ? "spec" : "data" });
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
- m,
403
- q,
402
+ u,
403
+ k,
404
404
  w,
405
- E,
406
- v,
405
+ R,
406
+ y,
407
407
  C,
408
- N
408
+ b
409
409
  ]);
410
- const x = f((o) => {
411
- I((u) => u === null ? u : v(null)), E(C(o));
410
+ const x = p((a) => {
411
+ N((m) => m === null ? m : y(null)), R(C(a));
412
412
  }, [
413
- v,
414
- E,
413
+ y,
414
+ R,
415
415
  C
416
- ]), M = f((o) => {
417
- o.scene && T.current?.getState().setScene(o.scene), o.result && x(o.result), o.command && m.emit({
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: o.command
420
- }), o.spec && N.current?.(o.spec), o.errors && w([...o.errors]);
419
+ command: a.command
420
+ }), a.spec && b.current?.(a.spec), a.errors && w([...a.errors]);
421
421
  }, [
422
422
  x,
423
- m,
424
- N,
423
+ u,
424
+ b,
425
425
  w
426
- ]), R = f((o) => {
427
- for (const u of o) M(u);
428
- return o.some((u) => !!u.scene);
429
- }, [M]), ee = f((o, u) => {
430
- R(g.applyCommand(o, u));
431
- }, [g, R]), j = f(() => {
432
- R(g.commit());
433
- }, [g, R]), L = f(() => R(g.undo()), [g, R]), A = f(() => R(g.redo()), [g, R]), k = _(() => ({
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: L,
435
+ undo: q,
436
436
  redo: A
437
437
  }), [
438
438
  g,
439
- L,
439
+ q,
440
440
  A
441
- ]), te = f(() => T.current?.getState().scene ?? null, []);
441
+ ]), te = p(() => G.current?.getState().scene ?? null, []);
442
442
  return {
443
- store: T.current,
443
+ store: G.current,
444
444
  dispatch: ee,
445
445
  commit: j,
446
- history: k,
447
- subscribe: P.subscribe,
446
+ history: D,
447
+ subscribe: L.subscribe,
448
448
  getScene: te,
449
- compileBus: m,
450
- compileErrors: W,
451
- findGeom: S
449
+ compileBus: u,
450
+ compileErrors: U,
451
+ findGeom: T
452
452
  };
453
- }, Ht = () => {
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
- }, $t = ({ data: e, spec: t, plugins: r = [], theme: n, glyphs: s, formattingLocale: i, handleRef: a, onSpecChange: l, onError: d, onWarnings: h, colorScheme: N = "light", children: D }) => {
462
- const G = xt(i, h), [g] = y(() => n), [m] = y(() => He(n?.glyphs, s)), S = g?.colorScheme ?? N, [b] = y(() => qe([...g?.plugins ?? [], ...r].filter(Re))), $ = rt(), [P] = y(() => We(r)), [T] = y(() => Ue(r)), [v] = y(() => pt()), [q] = y(() => Ce()), W = _(() => Te({ colorScheme: S }), [S]), { store: I, dispatch: C, commit: w, history: E, subscribe: x, getScene: M, compileBus: R, compileErrors: ee, findGeom: j } = _t({
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: S,
467
+ colorScheme: T,
466
468
  plugins: r,
467
469
  theme: g,
468
- resolveRenderer: b,
469
- anchorResolver: P,
470
+ resolveRenderer: f,
471
+ anchorResolver: L,
470
472
  onSpecChange: l,
471
473
  onError: d,
472
474
  onWarnings: h
473
475
  });
474
- H(() => {
475
- if (I)
476
- return I.subscribe((k, te) => {
477
- if (k.scene.spec === te.scene.spec) return;
478
- const { selection: o, setSelection: u } = v.getState();
479
- o.length !== 0 && u(gt(o, k.scene.spec));
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
- }, [I, v]);
482
- const L = _(() => ({
483
+ }, [N, y]);
484
+ const q = $(() => ({
483
485
  dispatch: C,
484
486
  commit: w
485
487
  }), [C, w]);
486
- nt(a, () => ({
487
- commands: L,
488
- undo: E.undo,
489
- redo: E.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: G,
493
- getSelection: () => v.getState().selection,
494
- setSelection: (k) => v.getState().setSelection(k),
495
- subscribeSelection: v.subscribe,
496
- canPlaceDataLabels: T.hasCapability,
497
- canFormatDataLabelsAsPercentages: T.hasPercentageFormat,
498
- getGlyphs: () => m
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
- L,
501
- E,
503
+ q,
504
+ R,
502
505
  x,
503
506
  M,
507
+ E,
508
+ y,
504
509
  G,
505
- v,
506
- T,
507
- m
510
+ u,
511
+ f
508
512
  ]);
509
- const A = _(() => I ? {
510
- chartId: $,
511
- store: I,
512
- selectionStore: v,
513
- targetBoundaryStore: q,
514
- commands: L,
515
- history: E,
516
- formattingLocale: G,
517
- compileBus: R,
518
- colorScheme: S,
519
- styleResolver: W,
520
- anchorResolver: P,
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
- I,
525
- v,
527
+ H,
528
+ N,
529
+ y,
530
+ k,
526
531
  q,
527
- L,
528
- E,
529
- G,
530
532
  R,
531
- S,
532
- W,
533
- P,
533
+ E,
534
+ I,
535
+ T,
536
+ U,
537
+ L,
534
538
  j
535
539
  ]);
536
- return /* @__PURE__ */ c(ht, {
540
+ return /* @__PURE__ */ c(bt, {
537
541
  forcedErrors: ee,
538
542
  onError: d,
539
543
  resetKeys: [t, e],
540
- children: A ? /* @__PURE__ */ c(Ie.Provider, {
544
+ children: A ? /* @__PURE__ */ c(De.Provider, {
541
545
  value: A,
542
- children: /* @__PURE__ */ c(ke, {
543
- value: b,
544
- children: /* @__PURE__ */ c(Pe, {
545
- value: T,
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($e, {
549
- glyphs: m,
550
- children: D
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
- }, xt = (e, t) => {
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 H(() => {
560
- if (e === void 0 || Xe(e) !== void 0) return;
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 ${Be}.`
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 : ze(e);
578
+ }, [e, r]), e === void 0 ? void 0 : Xe(e);
569
579
  };
570
- function En({ theme: e, glyphs: t, ...r } = {}) {
571
- const n = Ve(r);
580
+ function Dn({ theme: e, glyphs: t, ...r } = {}) {
581
+ const n = et(r);
572
582
  return {
573
583
  ...n,
574
- GraphProvider: (i) => /* @__PURE__ */ c($t, {
575
- ...i,
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 O = (e, t) => {
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
- }, Tn = ({ x: e, y: t, width: r, height: n }, s) => {
588
- const i = O(e, s.width), a = O(t, s.height), l = O(r, s.width), d = O(n, s.height);
589
- return i === null || a === null || l === null || d === null ? null : {
590
- x: i,
591
- y: a,
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
- }, Mt = ({ animateTransitions: e, cx: t, cy: r, r: n, effects: s, ...i }) => {
596
- const a = F(s);
597
- return e ? /* @__PURE__ */ c(Z.circle, {
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: a,
606
- ...i
615
+ style: i,
616
+ ...o
607
617
  }) : /* @__PURE__ */ c("circle", {
608
618
  cx: t,
609
619
  cy: r,
610
620
  r: n,
611
- style: a,
612
- ...i
621
+ style: i,
622
+ ...o
613
623
  });
614
- }, At = ({ animateTransitions: e, x1: t, y1: r, x2: n, y2: s, effects: i, ...a }) => {
615
- const l = F(i);
616
- return e ? /* @__PURE__ */ c(Z.line, {
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
- ...a
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
- ...a
643
+ ...i
634
644
  });
635
- }, Bt = ({ animateTransitions: e, x: t, y: r, width: n, height: s, rx: i, ry: a, effects: l, ...d }) => {
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(Z.rect, {
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
- ...i !== void 0 && a !== void 0 ? {
645
- rx: i,
646
- ry: a
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: i,
658
- ry: a,
667
+ rx: o,
668
+ ry: i,
659
669
  style: h,
660
670
  ...d
661
671
  });
662
- }, Ot = ({ animateTransitions: e, d: t, source: r, effects: n, ...s }) => {
663
- const i = F(n);
664
- return e ? /* @__PURE__ */ c(Ft, {
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: i,
677
+ style: o,
668
678
  ...s
669
679
  }) : /* @__PURE__ */ c("path", {
670
680
  d: t,
671
- style: i,
681
+ style: o,
672
682
  ...s
673
683
  });
674
- }, Rn = (e) => {
675
- const { Circle: t } = J(), { symbol: r, ...n } = e;
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(De, {
689
+ children: /* @__PURE__ */ c(_e, {
680
690
  symbol: r,
681
- cx: fe(e.cx),
682
- cy: fe(e.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 ? Mt(n) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(t, { ...n }) });
697
- }, Gn = (e) => {
698
- const { Line: t } = J();
699
- return t === void 0 ? At(e) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(t, { ...e }) });
700
- }, Nn = ({ cornerRadius: e, ...t }) => {
701
- const { Rect: r } = J(), n = Ee()?.size ?? null, s = _e(), i = {
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
- ...Kt(e, t, n, s)
713
+ ...Jt(e, t, n, s)
704
714
  };
705
- return r === void 0 ? Bt(i) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(r, { ...i }) });
706
- }, In = (e) => {
707
- const { Path: t } = J();
708
- return t === void 0 ? Ot(e) : /* @__PURE__ */ c(z, { children: /* @__PURE__ */ c(t, { ...e }) });
709
- }, fe = (e) => typeof e == "number" ? `${e}px` : e, Ft = ({ d: e, source: t, ...r }) => {
710
- const n = Me(e, K, t);
711
- return /* @__PURE__ */ c(Z.path, {
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
- }, Kt = (e, t, r, n) => {
725
+ }, Jt = (e, t, r, n) => {
716
726
  if (e === void 0) return {};
717
- const s = Qe(e);
727
+ const s = nt(e);
718
728
  if (s === void 0) return {};
719
- const i = zt(t, r, n);
720
- if (i === null)
721
- return s === "full" ? {} : ve(le({ cornerRadius: s }), n);
722
- const a = Math.min(le({
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: i
725
- }), Math.min(i.width, i.height) / 2);
726
- return ve(a, n);
727
- }, zt = (e, t, r) => {
728
- const n = pe(e.width, t?.width, r.x), s = pe(e.height, t?.height, r.y);
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
- }, pe = (e, t, r) => {
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 = O(e, t);
746
+ const n = B(e, t);
737
747
  return n === null ? null : Math.abs(n);
738
- }, ve = (e, t) => t.x <= 0 || t.y <= 0 ? {
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
- }, Cn = ({ children: e, ...t }) => {
745
- const r = Ee()?.size ?? null;
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(be, {
785
+ children: /* @__PURE__ */ c(Ee, {
754
786
  size: r,
755
787
  space: "unit",
756
788
  children: e
757
789
  })
758
790
  });
759
- }, wn = ({ box: e, children: t }) => {
760
- const r = Ae(), n = r === null ? null : r.width * (e.x1 - e.x0), s = r === null ? null : r.height * (e.y1 - e.y0), i = _(() => n === null || s === null ? null : {
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: U(e.x0),
766
- y: U(e.y0),
767
- width: U(e.x1 - e.x0),
768
- height: U(e.y1 - e.y0),
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(be, {
772
- size: i,
803
+ children: /* @__PURE__ */ c(Ee, {
804
+ size: o,
773
805
  children: t
774
806
  })
775
807
  });
776
- }, Wt = "drqe3u0", jt = "drqe3u1", Ut = "drqe3u2", Vt = "drqe3u3", B = "drqe3u4", Yt = "drqe3u5", Xt = "drqe3u6", Qt = "drqe3u7", V = "drqe3u8", Jt = "drqe3u9", Zt = "drqe3ua";
777
- var er = "drqe3uc", tr = "drqe3ud", rr = "drqe3ue", nr = "drqe3uf";
778
- var sr = "drqe3uh", or = "drqe3ui", ye = {
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
- }, Se = {
813
+ }, be = {
782
814
  ran: "drqe3un drqe3um",
783
815
  dim: "drqe3uo drqe3um"
784
- }, Ne = {
816
+ }, Ce = {
785
817
  ran: "drqe3uq drqe3up",
786
818
  cached: "drqe3ur drqe3up",
787
819
  untouched: "drqe3us drqe3up"
788
- }, Pn = ({ width: e = 440, style: t, className: r } = {}) => {
789
- const { compileBus: n } = ne(), [s] = y(() => bt()), [i, a] = y(!1), [l, d] = y(Je);
790
- H(() => {
791
- const { recordCompile: m } = s.getState(), S = n.getLastTrigger(), b = n.getLastCompile();
792
- return S && b && m(S, b), n.subscribe(m);
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, (m) => m.lastCompile), N = re(s, (m) => m.history), D = n.getCacheStats(), G = h === null && N.length === 0, g = () => {
795
- d((m) => {
796
- const S = !m;
797
- return et(S), S;
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__ */ p("div", {
801
- className: it(Zt, r),
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__ */ p("div", {
808
- className: Wt,
809
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ c("div", {
810
- className: jt,
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: rr,
814
- children: G ? "production: stats disabled" : h ? `last: ${h.label} · ${ie(h.durationMs)}` : "awaiting first compile…"
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: () => a((m) => !m),
818
- className: nr,
819
- children: i ? "▾" : "▴"
849
+ onClick: () => i((u) => !u),
850
+ className: gr,
851
+ children: o ? "▾" : "▴"
820
852
  })]
821
853
  }),
822
- !i && /* @__PURE__ */ p("div", {
854
+ !o && /* @__PURE__ */ v("div", {
823
855
  className: "drqe3ub",
824
- children: [/* @__PURE__ */ p("button", {
856
+ children: [/* @__PURE__ */ v("button", {
825
857
  type: "button",
826
858
  onClick: g,
827
- className: l ? ye.enabled : ye.disabled,
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
- !i && !G && /* @__PURE__ */ p(ot, { children: [/* @__PURE__ */ c(ir, {
867
+ !o && !E && /* @__PURE__ */ v(mt, { children: [/* @__PURE__ */ c(vr, {
836
868
  delta: h?.stages,
837
869
  durations: h?.stageDurationsMs,
838
- cumulative: D
839
- }), /* @__PURE__ */ c(ar, { entries: N })] })
870
+ cumulative: P
871
+ }), /* @__PURE__ */ c(yr, { entries: b })] })
840
872
  ]
841
873
  });
842
- }, ir = ({ delta: e, durations: t, cumulative: r }) => /* @__PURE__ */ p("table", {
843
- className: Ut,
844
- children: [/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ p("tr", {
845
- className: sr,
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: Vt,
880
+ className: or,
849
881
  children: "stage"
850
882
  }),
851
883
  /* @__PURE__ */ c("th", {
852
- className: B,
884
+ className: O,
853
885
  children: "time"
854
886
  }),
855
887
  /* @__PURE__ */ c("th", {
856
- className: B,
888
+ className: O,
857
889
  children: "Δ miss"
858
890
  }),
859
891
  /* @__PURE__ */ c("th", {
860
- className: B,
892
+ className: O,
861
893
  children: "Δ hit"
862
894
  }),
863
895
  /* @__PURE__ */ c("th", {
864
- className: B,
896
+ className: O,
865
897
  children: "total miss"
866
898
  }),
867
899
  /* @__PURE__ */ c("th", {
868
- className: B,
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], i = cr(s);
874
- return /* @__PURE__ */ p("tr", {
875
- className: er,
905
+ const s = e?.[n], o = Sr(s);
906
+ return /* @__PURE__ */ v("tr", {
907
+ className: ur,
876
908
  children: [
877
- /* @__PURE__ */ p("td", {
878
- className: Yt,
909
+ /* @__PURE__ */ v("td", {
910
+ className: ir,
879
911
  children: [
880
912
  /* @__PURE__ */ c("span", {
881
- className: Ne[i],
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 || i === "untouched" ? "—" : ie(t[n])
922
+ children: t === void 0 || o === "untouched" ? "—" : ae(t[n])
891
923
  }),
892
924
  /* @__PURE__ */ c("td", {
893
- className: i === "ran" ? Se.ran : Se.dim,
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
- }), ar = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ p("div", {
912
- className: tr,
943
+ }), yr = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ v("div", {
944
+ className: mr,
913
945
  children: [/* @__PURE__ */ c("div", {
914
- className: or,
946
+ className: pr,
915
947
  children: "recent compiles"
916
948
  }), e.map((t) => {
917
- const r = lr(t.stages, (i) => i.misses > 0), n = se.length;
918
- return /* @__PURE__ */ p("div", {
919
- className: Xt,
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: Ne[r === 0 ? "cached" : "ran"],
954
+ className: Ce[r === 0 ? "cached" : "ran"],
923
955
  "aria-hidden": !0
924
956
  }),
925
957
  /* @__PURE__ */ c("span", {
926
- className: Qt,
958
+ className: cr,
927
959
  title: t.label,
928
960
  children: t.label
929
961
  }),
930
- /* @__PURE__ */ p("span", {
931
- className: Jt,
962
+ /* @__PURE__ */ v("span", {
963
+ className: lr,
932
964
  children: [
933
965
  r,
934
966
  "/",
935
967
  n,
936
968
  " ran · ",
937
- ie(t.durationMs)
969
+ ae(t.durationMs)
938
970
  ]
939
971
  })
940
972
  ]
941
973
  }, t.id);
942
974
  })]
943
- }), cr = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", lr = (e, t) => {
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
- }, ie = (e) => e < 0.1 ? "<0.1ms" : e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, Ln = () => {
948
- const { history: e } = ne(), { stack: t, undo: r, redo: n } = e, s = f((l) => t.subscribe(l), [t]), i = f(() => t.getSnapshot(), [t]), a = st(s, i, i);
949
- return _(() => ({
950
- ...a,
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
- a,
986
+ i,
955
987
  r,
956
988
  n
957
989
  ]);
958
- }, dr = /* @__PURE__ */ new Set([
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
- ]), Dn = (e, t = {}) => {
1001
+ ]), Fn = (e, t = {}) => {
970
1002
  const { target: r, enabled: n = !0 } = t;
971
- H(() => {
972
- const s = ur(r);
1003
+ _(() => {
1004
+ const s = Er(r);
973
1005
  if (!n || !s) return;
974
- const i = (a) => {
975
- if (!mr(a) || a.defaultPrevented || hr(a.target)) return;
976
- const l = xe(a);
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()) && a.preventDefault();
1011
+ d && (l === "undo" ? d.undo() : d.redo()) && i.preventDefault();
980
1012
  };
981
- return s.addEventListener("keydown", i), () => s.removeEventListener("keydown", i);
1013
+ return s.addEventListener("keydown", o), () => s.removeEventListener("keydown", o);
982
1014
  }, [
983
1015
  e,
984
1016
  r,
985
1017
  n
986
1018
  ]);
987
- }, ur = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, mr = (e) => "key" in e, hr = (e) => e instanceof HTMLInputElement ? !dr.has(e.type) : e instanceof HTMLElement ? e.isContentEditable || e.tagName === "TEXTAREA" : !1, qn = () => {
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
- Ur as CanvasTextMeasurer,
993
- _r as DefaultFooter,
994
- Mt as DefaultGeomCircle,
995
- At as DefaultGeomLine,
996
- Ot as DefaultGeomPath,
997
- Bt as DefaultGeomRect,
998
- an as DefaultGrid,
999
- Cr as DefaultHeader,
1000
- xr as DefaultSwatch,
1001
- sn as DefaultTooltip,
1002
- Pn as DevToolsPanel,
1003
- en as GRAPH_MODES,
1004
- Rn as GeomCircle,
1005
- Gn as GeomLine,
1006
- Lr as GeomOverpaint,
1007
- Vr as GeomPanelSizeProvider,
1008
- In as GeomPath,
1009
- Nn as GeomRect,
1010
- ht as GraphErrorBoundary,
1011
- ue as GraphErrorPanel,
1012
- $t as GraphProvider,
1013
- Ar as GraphRenderer,
1014
- mn as GraphyBadge,
1015
- Rr as HoverProvider,
1016
- Kr as IntlProvider,
1017
- Ir as IntroFade,
1018
- Fr as IntroWipeClip,
1019
- kr as TextMeasurerProvider,
1020
- rn as ThemeProvider,
1021
- wn as UnitBoxSvg,
1022
- Cn as UnitSpaceSvg,
1023
- br as buildDotsEditOutlineShapes,
1024
- En as createGraphyKit,
1025
- Mr as darkTheme,
1026
- Gr as defineGeomRenderer,
1027
- vr as defineGlyph,
1028
- $r as getBuiltInEditOutlineShapes,
1029
- ln as lightTheme,
1030
- Br as lightenCss,
1031
- Dr as projectPointCartesian,
1032
- gt as pruneSelection,
1033
- O as readPositionPixels,
1034
- Tn as readRectPixels,
1035
- yr as resolveGraphyBadgeVariant,
1036
- un as resolvePathStroke,
1037
- Sr as scalePointToPanel,
1038
- pr as stampAxisEditTarget,
1039
- Zr as stampGridEditTarget,
1040
- Pr as stampLegendEditTarget,
1041
- Er as useElementScreenRect,
1042
- Jr as useFormattingLocale,
1043
- qr as useGeomHitTest,
1044
- tn as useGeomHover,
1045
- Xr as useGeomPanelSize,
1046
- Tr as useGeomReaderTree,
1047
- Nr as useGeomStyleReader,
1048
- Ae as useGeomViewportSize,
1049
- nn as useGraphCommands,
1050
- Qr as useGraphHandle,
1051
- Ln as useGraphHistory,
1052
- Dn as useGraphHistoryShortcuts,
1053
- Or as useGraphLocale,
1054
- Yr as useGraphSelection,
1055
- dn as useGuidesTakePress,
1056
- on as useHandleScene,
1057
- Wr as useHoverState,
1058
- jr as usePaintDefs,
1059
- cn as useResolvedStyle,
1060
- hn as useSceneSelector,
1061
- wr as useStyleReaderTree,
1062
- Hr as useStyleResolver,
1063
- qn as useTargetBoundary,
1064
- fr as useTextMeasurer,
1065
- zr as vars
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
  };