@graphysdk/react-renderer 1.9.0-beta.1795524651682 → 1.9.0-beta.1795532892391

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/editable.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $t as iu, A as lu, An as pt, At as Ne, B as jn, Bn as su, Bt as gl, C as ml, Cn as cu, Ct as qn, D as vl, Dn as du, Dt as uu, E as hu, En as pu, Et as fl, F as gu, G as bl, Gt as mu, Hn as vu, Ht as yl, J as fu, K as bu, Kn as yu, Kt as Su, L as Fr, Lt as wu, M as xu, Mt as Cu, Nt as ku, O as Au, On as Pe, Ot as yo, P as Tu, Pt as Yn, Q as Pu, Qt as Lu, R as Sl, S as Ce, St as Zn, T as Iu, Tn as Mu, Ut as Ou, Vn as wl, Vt as _, W as Eu, Wt as Ru, X as Nu, Xn as Du, Z as _u, Zt as De, _ as Fu, _t as xl, ar as Bu, at as ee, b as Cl, bn as zu, bt as kl, c as Hu, cr as Gu, ct as So, d as $u, dn as Vu, dr as Q, dt as J, er as Wu, f as ya, ft as Sa, g as Uu, gn as Al, gr as ke, gt as wo, h as Ku, hr as q, ht as xo, i as Qt, it as Xu, j as ju, jt as ze, k as qu, kn as wa, kt as xa, lr as Tl, lt as Yu, m as Zu, mn as Pl, mr as Ju, mt as Qu, n as Oe, nn as Br, nt as eh, o as th, ot as ue, p as nh, pr as G, pt as Ca, q as D, r as ce, rn as _e, rt as Ll, s as Co, sr as ye, st as rh, t as Il, tn as Ml, tr as ah, u as Ol, ut as oh, v as El, vn as ih, vr as ka, vt as Aa, w as yt, wn as Jn, x as Ta, xn as lh, xt as sh, y as Rl, yn as ch, yt as en, z as zr, zt as dh } from "./history-chords-oyGjKaN7.js";
1
+ import { $t as iu, A as lu, An as pt, At as Ne, B as jn, Bn as su, Bt as gl, C as ml, Cn as cu, Ct as qn, D as vl, Dn as du, Dt as uu, E as hu, En as pu, Et as fl, F as gu, G as bl, Gt as mu, Hn as vu, Ht as yl, J as fu, K as bu, Kn as yu, Kt as Su, L as Fr, Lt as wu, M as xu, Mt as Cu, Nt as ku, O as Au, On as Pe, Ot as yo, P as Tu, Pt as Yn, Q as Pu, Qt as Lu, R as Sl, S as Ce, St as Zn, T as Iu, Tn as Mu, Ut as Ou, Vn as wl, Vt as _, W as Eu, Wt as Ru, X as Nu, Xn as Du, Z as _u, Zt as De, _ as Fu, _t as xl, ar as Bu, at as ee, b as Cl, bn as zu, br as q, bt as kl, c as Hu, cr as Gu, ct as So, d as $u, dn as Vu, dr as Q, dt as J, er as Wu, f as ya, ft as Sa, g as Uu, gn as Al, gt as wo, h as Ku, hr as wa, ht as xo, i as Qt, it as Xu, j as ju, jt as ze, k as qu, kn as xa, kt as Ca, lr as Tl, lt as Yu, m as Zu, mn as Pl, mt as Ju, n as Oe, nn as Br, nt as Qu, o as eh, ot as ue, p as th, pr as G, pt as ka, q as D, r as ce, rn as _e, rt as Ll, s as Co, sr as ye, st as nh, t as Il, tn as Ml, tr as rh, u as Ol, ut as ah, v as El, vn as oh, vt as Aa, w as yt, wn as Jn, x as Ta, xn as ih, xr as ke, xt as lh, y as Rl, yn as sh, yr as ch, yt as en, z as zr, zt as dh } from "./history-chords-CWO3RcQe.js";
2
2
  import { ARROW_DEFAULTS as Nl, ARROW_STICKER_DECLARATIONS as uh, ARROW_STROKE_WIDTHS_PX as wr, ARROW_TARGET_GAP_PX as Pa, AUTO_COLOR as Et, AddAnnotationCommand as Le, AddHighlightCommand as hh, COMBO_TYPES as ko, CONSTANT_VARIABLES as La, DASH_PRESETS as ph, DEFAULT_BAR_CORNER_RADII as gh, DEFAULT_GEOM_COLOR as mh, DEFAULT_POINT_SIZE_PX as Dl, DEFAULT_STROKE_WIDTH_PX as vh, DIFFERENCE_ARROW_DEFAULTS as _l, DIFFERENCE_ARROW_SIZE_DECLARATIONS as In, InternalError as fh, MAX_BAR_WIDTH_FRACTION as bh, MIN_BAR_WIDTH_FRACTION as yh, MoveAnnotationCommand as Fl, PANEL_FRACTION_BOUNDS as Ia, POSITION_VARIABLES as it, RESTING_HOVER_STATE as tn, RemoveAnnotationCommand as Qn, RemoveHighlightCommand as Ao, SELECTION_PADDING_DEFAULT as Sh, SHAPE_DEFAULTS as Bl, SequenceCommand as ot, SetAxisLabelCommand as zl, SetAxisPositionCommand as Hl, SetAxisTickModeCommand as Hr, SetAxisTicksVisibilityCommand as To, SetAxisVisibilityCommand as Nn, SetBarCornerRadiusCommand as wh, SetBarWidthCommand as Gl, SetContentCaptionCommand as $l, SetContentSourceCommand as xh, SetContentSubtitleCommand as Vl, SetContentTitleCommand as Wl, SetDataLabelsCommand as Ul, SetDataLabelsFormatCommand as Kl, SetDifferenceArrowStyleCommand as Ch, SetGraphTypeCommand as Ma, SetGridLineStyleCommand as Xl, SetGridVisibilityCommand as Gr, SetHeadlineCompareWithCommand as kh, SetHeadlinePositionCommand as Ah, SetHeadlineShowCommand as Po, SetHeadlineSizeCommand as Th, SetHighlightDimStyleCommand as Ph, SetLayerYScaleTypeCommand as Lh, SetLegendAlignCommand as Ih, SetLegendDisplayCommand as Mh, SetLegendPlacementCommand as Oh, SetLegendPositionCommand as $r, SetLineCurveCommand as jl, SetLineMissingValuesCommand as ql, SetLineStyleCommand as qe, SetMappingCommand as Eh, SetNumberFormatAbbreviationCommand as Rh, SetNumberFormatDecimalsCommand as Lo, SetObservationsColorCommand as Nh, SetPointSizeCommand as er, SetPointSymbolCommand as Oa, SetPolarInnerRadiusCommand as Dh, SetPolarStartAngleCommand as _h, SetRuleLabelCommand as Fh, SetRuleValueCommand as Bh, SetScaleDomainCommand as at, SetScaleRangeCommand as Yl, SetScaleTransformCommand as Zl, SetStatLineCommand as zh, SetStyleRuleCommand as st, TEXT_ANNOTATION_DEFAULTS as Vr, TEXT_ANNOTATION_FADE_ALPHA as Hh, ToggleCategoryLabelsCommand as Jl, ToggleContentVisibilityCommand as gt, ToggleDataLabelsCommand as Ql, ToggleGoalLineCommand as Gh, ToggleLinePointsCommand as Ea, ToggleStackTotalsCommand as es, UpdateAnnotationCommand as ve, alignUnitFractions as tr, areAnchorsEqual as nr, areEditTargetsEqual as Ra, areEndpointsComparable as $h, areSameStackEndpoints as Vh, buildColormapRange as Wh, buildDivergingRange as Io, buildLayerStyleAddress as Rt, buildObservationPredicate as ts, buildObservationsTarget as tt, buildObservationsTargetAtValue as ns, buildPointSymbolInBox as Uh, canAnchorDirectLabels as Kh, canBecomeCombo as Xh, canBecomeHeatmap as jh, clampAnnotationTranslation as rs, collectDependentAnnotationIds as Na, combineKindStyleDeclarations as Mo, computeArrow as as, createObservationAnchorBuilder as qh, createObservationAnchorLander as Yh, createObservationAnchorParser as Zh, createStyleResolver as Jh, createStyleRuleMatcher as Qh, createValueFormatter as Da, createXValueReader as ep, filterLayersByGeoms as Wr, findAnnotation as Ur, findAverageLineLayer as tp, findAxisGuide as os, findCompanionLayers as is, findGoalLineLayer as np, findHighlightsAtObservation as rp, findHostLayer as rr, findKindStyleDeclarations as Dn, findLayerByGeom as ls, findLayerById as oe, findObservationAttachment as ap, findOverflowedPanelEdges as op, findPointerRegion as ip, findStyleRule as ct, findTrendLineLayer as lp, formatDifferenceLabel as sp, getBoundingRect as Kr, getGroupVariables as _a, getScaledAesthetic as cp, getXBand as dp, getYBand as up, hasMainAxisBand as hp, hasMultipleGroups as ar, indexSceneAnnotations as ss, inferDefaultDifferenceArrowEndpoints as pp, inferDifferenceArrowEndpoints as gp, isComboGraphType as Ie, isCompanionLayer as cs, isGeomStyleRule as mp, isGeometricSymbol as Wt, isImageSymbol as Xr, isLayerSpecOf as _t, isObservationAttachmentKind as vp, isPlacedRegionAnchor as jr, isSafeUrl as fp, isZeroAnchoredAxis as ds, measureObservationsBoxes as us, omitLegacyDifferenceArrowLabelPlate as bp, polarToUnit as yp, projectAnchorToPanel as Me, projectBoxToPanel as _n, projectRegionToPanel as Fa, readAnnotationBox as Ba, readBroadestObservationsScope as Sp, readColorChoices as hs, readColorPart as wp, readColormapColor as xp, readComboLineLayerId as Cp, readCompanionRowsAtScopeKey as kp, readConstantValue as Ap, readDivergingColor as Oo, readEditTargetKey as nn, readFacingAlign as Tp, readGeomColor as Pp, readGraphType as or, readHighlightDimStyle as Lp, readMainAxis as Ip, readMappableAesthetics as Mp, readMappedVariable as Op, readObservationIndex as rn, readObservationsColor as Ep, readObservationsColorPart as Rp, readObservationsColorRoute as ir, readOutwardGapOffset as Np, readReachableLevels as Dp, readRectPoint as mt, readRowScopeKey as _p, readRowsAtScopeKey as Fp, readScopeXVariable as Bp, readStyleCoord as Re, readStyleRulesBeneath as zp, readVariableName as Ve, resolveArrowAnnotationStyle as za, resolveBarBandFraction as ps, resolveComparisonBasis as Hp, resolveDifferenceArrowAnnotationStyle as Gp, resolveEditOutlineStyle as $p, resolveLayerAxisValueFormat as Vp, resolveObservationPoint as Wp, resolveObservationsTarget as vt, resolvePointPlacement as lr, resolveRegionPlacement as Up, resolveTextAnnotationStyle as gs, stepDifferenceArrowEndpoint as Kp, toDashPreset as ft, toFontSpec as Xp, toPaintColor as dt, toPanelCursor as Ft, toPlacedRegionPoint as jp, toStrokeDasharray as sr } from "@graphysdk/viz-engine";
3
3
  import { Fragment as ms, createContext as nt, memo as vs, useCallback as me, useContext as Ae, useEffect as W, useId as Ze, useLayoutEffect as Je, useMemo as $, useRef as ae, useState as te, useSyncExternalStore as qp } from "react";
4
4
  import { Fragment as ne, jsx as o, jsxs as b } from "react/jsx-runtime";
@@ -379,7 +379,7 @@ var Ls = "_14ty2ng0", Ro = "_14ty2ng1", Dg = "_14ty2ng2", _g = "_14ty2ng3", Is =
379
379
  }, em = ({ value: e, onChange: t, onCommit: n, popupAttributes: r, variant: a = "default" }) => {
380
380
  const i = _(), l = cr(), [s, c] = te(!1), d = (p) => {
381
381
  c(p), p || n?.();
382
- }, u = e !== null && lh(e) ? e : "#000000", h = zu(u) ? u.toUpperCase() : "#000000";
382
+ }, u = e !== null && ih(e) ? e : "#000000", h = zu(u) ? u.toUpperCase() : "#000000";
383
383
  return /* @__PURE__ */ b(de.Root, {
384
384
  open: s,
385
385
  onOpenChange: d,
@@ -2586,7 +2586,7 @@ var D6 = 512 * 1024, i1 = (e) => new Promise((t) => {
2586
2586
  })
2587
2587
  });
2588
2588
  }, Ka = ({ symbol: e, coordType: t, onChange: n }) => {
2589
- const r = _(), { RadioGrid: a } = j(), [i, l] = te(null), s = Ae(dr), c = ah(), d = Pl(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name: x, definition: I }) => [x, I])) : c;
2589
+ const r = _(), { RadioGrid: a } = j(), [i, l] = te(null), s = Ae(dr), c = rh(), d = Pl(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name: x, definition: I }) => [x, I])) : c;
2590
2590
  if (u === void 0 || u.length === 0) return null;
2591
2591
  const p = (x) => typeof x == "string" && u.includes(x), g = (x) => p(x) || Xr(x) || !Wt(x) && h.has(x), m = (x) => !Wt(x) || l1.some((I) => I === x), v = [...h.keys()].filter((x) => !Wt(x) && !p(x)), y = [...u.filter(m), ...v], f = e === null ? "" : fn(e), k = e === null || y.some((x) => fn(x) === f) || !g(e) ? y : [...y, e], C = (x) => Wt(x) ? r(`editor.graphPanel.pointSymbol.symbols.${x}`) : Xr(x) ? r("editor.graphPanel.pointSymbol.custom") : x, S = (x) => {
2592
2592
  l(null);
@@ -2746,7 +2746,7 @@ var D6 = 512 * 1024, i1 = (e) => new Promise((t) => {
2746
2746
  "inside",
2747
2747
  "outside"
2748
2748
  ], Qs = () => {
2749
- const e = G((w) => w), t = Q(), n = ka(), r = Oe(), a = _(), { Switch: i, ToggleGroup: l } = j(), s = ec(e.layers, e.coordSystem.type, n), c = (w) => s.filter(({ support: N }) => w(N)).map(({ layer: N }) => N), d = f1(e, t), u = d.filter((w) => w.smooth !== null), h = d.filter((w) => w.missingValues !== null && w.missingValueOptions.length > 1), p = Jr.filter((w) => h.some((N) => N.missingValueOptions.includes(w))), g = w1(u), m = x1(h), v = (w) => {
2749
+ const e = G((w) => w), t = Q(), n = wa(), r = Oe(), a = _(), { Switch: i, ToggleGroup: l } = j(), s = ec(e.layers, e.coordSystem.type, n), c = (w) => s.filter(({ support: N }) => w(N)).map(({ layer: N }) => N), d = f1(e, t), u = d.filter((w) => w.smooth !== null), h = d.filter((w) => w.missingValues !== null && w.missingValueOptions.length > 1), p = Jr.filter((w) => h.some((N) => N.missingValueOptions.includes(w))), g = w1(u), m = x1(h), v = (w) => {
2750
2750
  r.dispatch(new ot({ commands: d.map((N) => new Ea({
2751
2751
  layerId: N.layerId,
2752
2752
  showPoints: w
@@ -4320,7 +4320,7 @@ var Nf = ({ graph: e, target: t }) => {
4320
4320
  children: t
4321
4321
  });
4322
4322
  }, _f = (e) => {
4323
- const t = Ae(qa), n = G((l) => l), { findGeom: r } = q(), a = ka(), i = Dc(ke());
4323
+ const t = Ae(qa), n = G((l) => l), { findGeom: r } = q(), a = wa(), i = Dc(ke());
4324
4324
  return $(() => e === null ? null : _c(e, t, {
4325
4325
  scene: n,
4326
4326
  dataLabelPlacement: a,
@@ -4334,7 +4334,7 @@ var Nf = ({ graph: e, target: t }) => {
4334
4334
  i
4335
4335
  ]);
4336
4336
  }, Ff = () => {
4337
- const e = Ae(qa), { store: t, findGeom: n } = q(), r = ka(), a = Dc(ke());
4337
+ const e = Ae(qa), { store: t, findGeom: n } = q(), r = wa(), a = Dc(ke());
4338
4338
  return me((i) => _c(i, e, {
4339
4339
  scene: t.getState().scene,
4340
4340
  dataLabelPlacement: r,
@@ -7103,15 +7103,7 @@ var Nf = ({ graph: e, target: t }) => {
7103
7103
  }), [e]);
7104
7104
  }, Hc = () => {
7105
7105
  const e = G((t) => t.scales.color);
7106
- return $(() => {
7107
- if (!e || e.kind !== "visual") return [];
7108
- const t = /* @__PURE__ */ new Set();
7109
- for (const n of e.domain) {
7110
- const r = e.map(n);
7111
- typeof r == "string" && t.add(r);
7112
- }
7113
- return [...t];
7114
- }, [e]);
7106
+ return $(() => !e || e.kind !== "visual" ? [] : [...new Set(e.palette)], [e]);
7115
7107
  }, i2 = (e) => e !== "canvasDefault" && e !== "canvasInverse", Gc = [
7116
7108
  {
7117
7109
  color: "#000000",
@@ -7914,12 +7906,12 @@ var Zt = "textStyle", Jc = /* @__PURE__ */ new Set(["paragraph", "heading"]), Qc
7914
7906
  editor: i,
7915
7907
  style: {
7916
7908
  ...l === null ? {} : { fontSize: `calc(${l}px * ${Pe.textScale})` },
7917
- ...s === null ? {} : { fontFamily: xa(s) }
7909
+ ...s === null ? {} : { fontFamily: Ca(s) }
7918
7910
  },
7919
7911
  "data-testid": "text-annotation-editor"
7920
7912
  });
7921
7913
  }, hi = (e) => {
7922
- const t = xa(e);
7914
+ const t = Ca(e);
7923
7915
  return t === void 0 ? {} : { style: `font-family: ${t}` };
7924
7916
  }, x0 = ys.create({
7925
7917
  name: "annotationTextStyleAttributes",
@@ -8081,7 +8073,7 @@ var Zt = "textStyle", Jc = /* @__PURE__ */ new Set(["paragraph", "heading"]), Qc
8081
8073
  const e = _(), t = Q(), n = Al();
8082
8074
  return ({ annotationId: r, anchorX: a, align: i, panelWidth: l, minWidth: s, paddingInline: c, pickedFontSize: d = null, pickedFont: u = null }) => {
8083
8075
  if (l <= 0) return s;
8084
- const h = t.annotation.text(r).resolve(), p = t.graph().get("textScale"), g = d === null ? h.fontSize : d * p, m = xa(u) ?? h.fontFamily, v = (n.measureText(e("graph.annotations.text.placeholder"), Xp({
8076
+ const h = t.annotation.text(r).resolve(), p = t.graph().get("textScale"), g = d === null ? h.fontSize : d * p, m = Ca(u) ?? h.fontFamily, v = (n.measureText(e("graph.annotations.text.placeholder"), Xp({
8085
8077
  ...h,
8086
8078
  fontSize: g,
8087
8079
  fontFamily: m
@@ -9488,7 +9480,7 @@ var wi = (e, t) => {
9488
9480
  };
9489
9481
  }
9490
9482
  }, Yb = ["x", "y"], Zb = vs(function({ frameElement: t, frameSize: n, panelRect: r }) {
9491
- const a = ih($p, Q()), i = Ob(), l = _b(i?.outlined ?? null), { selectObservationsOnPress: s, selectGraphOnPress: c, selectGuidesOnPress: d } = _e[ke()], u = Rb(), h = s || c || d, p = h ? l : u;
9483
+ const a = oh($p, Q()), i = Ob(), l = _b(i?.outlined ?? null), { selectObservationsOnPress: s, selectGraphOnPress: c, selectGuidesOnPress: d } = _e[ke()], u = Rb(), h = s || c || d, p = h ? l : u;
9492
9484
  if (i === null && p === null) return null;
9493
9485
  const g = {
9494
9486
  frameElement: t,
@@ -9614,7 +9606,7 @@ var wi = (e, t) => {
9614
9606
  return n * Math.max(1, Math.round(2 * Math.PI * e / t)) * t;
9615
9607
  }, ny = (e, t, n) => {
9616
9608
  const r = n.offset + un(n);
9617
- return wa(pt({
9609
+ return xa(pt({
9618
9610
  x: 0,
9619
9611
  y: 0,
9620
9612
  ...e
@@ -9691,7 +9683,7 @@ var wi = (e, t) => {
9691
9683
  }, i);
9692
9684
  }
9693
9685
  }), oy = ({ boxes: e, borderRadius: t }) => {
9694
- const n = e.map((r) => wa(r, t)).join("");
9686
+ const n = e.map((r) => xa(r, t)).join("");
9695
9687
  return n === "" ? null : /* @__PURE__ */ o("path", {
9696
9688
  d: n,
9697
9689
  "data-testid": "edit-outline-boxes"
@@ -9709,7 +9701,7 @@ var wi = (e, t) => {
9709
9701
  ...s
9710
9702
  }, h))] }, l);
9711
9703
  });
9712
- const i = t.map((l) => l.kind === "box" ? wa(l.rect, n) : "").join("");
9704
+ const i = t.map((l) => l.kind === "box" ? xa(l.rect, n) : "").join("");
9713
9705
  return i === "" ? null : /* @__PURE__ */ o("path", { d: i });
9714
9706
  }, ly = (e, t) => e.kind === "line" && e.axis === t ? `M${e.from.x},${e.from.y}L${e.to.x},${e.to.y}` : "", sy = ({ center: e, radius: t }) => {
9715
9707
  const n = `${e.x},${e.y - t}`;
@@ -10205,7 +10197,7 @@ var wi = (e, t) => {
10205
10197
  };
10206
10198
  }, Ai = (e, t, n, r) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : ut(t, Math.min(n - e, 0), Math.max(r - e, 0)), gr = ({ stroke: e, strokeAlpha: t }) => `color-mix(in srgb, ${e} ${t * 100}%, transparent)`, md = (e, t, n, r) => {
10207
10199
  const a = e.textAnnotations.find((i) => i.id === t);
10208
- return a === void 0 ? null : Au(nh(a, n), r);
10200
+ return a === void 0 ? null : Au(th(a, n), r);
10209
10201
  }, zy = "var(--_1am0al60)";
10210
10202
  var Hy = "_1am0al61", Gy = "_1am0al62", lo = (e, t, n) => ({
10211
10203
  x: Y(t.x - e.x, n.width),
@@ -10214,7 +10206,7 @@ var Hy = "_1am0al61", Gy = "_1am0al62", lo = (e, t, n) => ({
10214
10206
  x: e.x * t.width,
10215
10207
  y: e.y * t.height
10216
10208
  }), $y = ({ panelRect: e }) => {
10217
- const t = Ce(e), n = Zn(), r = Q(), a = zt(), i = ee((f) => J(f, "move-drag")), l = ee((f) => J(f, "shape-resize-drag")), s = ee((f) => J(f, "arrow-endpoint-drag")), c = ee((f) => J(f, "text-resize-drag")), d = ee(rh), u = {
10209
+ const t = Ce(e), n = Zn(), r = Q(), a = zt(), i = ee((f) => J(f, "move-drag")), l = ee((f) => J(f, "shape-resize-drag")), s = ee((f) => J(f, "arrow-endpoint-drag")), c = ee((f) => J(f, "text-resize-drag")), d = ee(nh), u = {
10218
10210
  panel: {
10219
10211
  width: e.width,
10220
10212
  height: e.height
@@ -10315,7 +10307,7 @@ var Hy = "_1am0al61", Gy = "_1am0al62", lo = (e, t, n) => ({
10315
10307
  children: Ky(i, t.annotationId, e)
10316
10308
  });
10317
10309
  }, Wy = ({ annotation: e, panelSize: t }) => {
10318
- const n = sh(e.id);
10310
+ const n = lh(e.id);
10319
10311
  return /* @__PURE__ */ o(Zu, {
10320
10312
  annotation: e,
10321
10313
  panel: t,
@@ -12781,7 +12773,7 @@ var _d = ({ width: e, height: t }) => ({
12781
12773
  super(...e), this.kind = "shape-resize-drag";
12782
12774
  }
12783
12775
  readOwn(e) {
12784
- return Ca(J(e, "shape-resize-drag"), this.params.annotationId);
12776
+ return ka(J(e, "shape-resize-drag"), this.params.annotationId);
12785
12777
  }
12786
12778
  resolvePreview(e, t) {
12787
12779
  const { annotationId: n, corner: r, press: a, readInputs: i, editorStore: l } = this.params, { spec: s, scene: c, panelRect: d, frameElement: u, layers: h, readObservationBox: p } = i(), g = ga(s, n);
@@ -12884,7 +12876,7 @@ var _d = ({ width: e, height: t }) => ({
12884
12876
  }, Ui = 4, US = ({ annotationId: e, panelRect: t, frameElement: n }) => {
12885
12877
  const { commands: r } = q(), a = ue(), i = G((l) => l.spec.annotations);
12886
12878
  return Gd({
12887
- readHeld: () => Ca(J(a.getState(), "shape-resize-drag"), e),
12879
+ readHeld: () => ka(J(a.getState(), "shape-resize-drag"), e),
12888
12880
  claim: () => {
12889
12881
  const l = Vi(i, e);
12890
12882
  return l === null ? null : {
@@ -13038,7 +13030,7 @@ var _d = ({ width: e, height: t }) => ({
13038
13030
  resizedRegion: null,
13039
13031
  moving: !1
13040
13032
  } : {
13041
- resizedRegion: Ca(J(t, "shape-resize-drag"), e)?.region ?? null,
13033
+ resizedRegion: ka(J(t, "shape-resize-drag"), e)?.region ?? null,
13042
13034
  moving: en(J(t, "move-drag"), e) !== null
13043
13035
  }));
13044
13036
  var QS = (e, t, n) => {
@@ -14211,7 +14203,7 @@ var ji = [
14211
14203
  });
14212
14204
  C.current = P, P.start();
14213
14205
  }, O = (A, E) => {
14214
- const P = l.getState(), { layers: L, config: w, coordSystem: N } = s.getState().scene, V = E.kind === "select-observations" && E.observationIndex !== null ? oh(E.observationIndex, L, E.target, w.parsingLocale) : null;
14206
+ const P = l.getState(), { layers: L, config: w, coordSystem: N } = s.getState().scene, V = E.kind === "select-observations" && E.observationIndex !== null ? ah(E.observationIndex, L, E.target, w.parsingLocale) : null;
14215
14207
  if (u.getState().setPressedObservation(V), m.current && (E.kind === "select-observations" || E.kind === "select-band")) {
14216
14208
  const M = oe(L, E.target.layerId);
14217
14209
  if (M !== void 0 && wy(M.geom, N.type)) {
@@ -14279,7 +14271,7 @@ var ji = [
14279
14271
  kind: "arrow",
14280
14272
  annotation: {
14281
14273
  ...Nl,
14282
- ...Qu(w.heads),
14274
+ ...Ju(w.heads),
14283
14275
  start: {
14284
14276
  anchorType: "panel",
14285
14277
  x: w.start.x,
@@ -14680,7 +14672,7 @@ var ji = [
14680
14672
  /* @__PURE__ */ o(Dy, { frameRect: t }),
14681
14673
  /* @__PURE__ */ o(P0, {
14682
14674
  rect: t,
14683
- zIndex: ch.editorOverlay,
14675
+ zIndex: sh.editorOverlay,
14684
14676
  container: i,
14685
14677
  "data-testid": "editor-overlay",
14686
14678
  boxRef: a,
@@ -14745,9 +14737,9 @@ var ji = [
14745
14737
  editMenus: n,
14746
14738
  children: /* @__PURE__ */ o(Xu, { children: /* @__PURE__ */ o(u1, {
14747
14739
  value: t,
14748
- children: /* @__PURE__ */ o(eh, {
14740
+ children: /* @__PURE__ */ o(Qu, {
14749
14741
  editors: A0(i),
14750
- children: /* @__PURE__ */ o(th, {
14742
+ children: /* @__PURE__ */ o(eh, {
14751
14743
  slots: l,
14752
14744
  ...r
14753
14745
  })
@@ -14779,7 +14771,7 @@ var Tw = () => () => {
14779
14771
  const t = qp(e?.subscribe ?? Tw, () => e?.getScene()?.config.parsingLocale);
14780
14772
  return e?.formattingLocale ?? t;
14781
14773
  }, Lw = (e) => {
14782
- const t = Ae(Ju), n = gl(Pw(Qt(e.handle))), r = ku();
14774
+ const t = Ae(ch), n = gl(Pw(Qt(e.handle))), r = ku();
14783
14775
  let a = /* @__PURE__ */ o(Iw, { ...e });
14784
14776
  return !r && t && (a = /* @__PURE__ */ o(Cu, {
14785
14777
  colorScheme: t.colorScheme,