@graphysdk/react-renderer 1.9.0-beta.1794586691328 → 1.9.0-beta.1794827419339

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