@graphysdk/react-renderer 1.9.0-beta.1795453565720 → 1.9.0-beta.1795522569988

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