@graphysdk/react-renderer 1.9.0-beta.1795524651682 → 1.9.0-beta.1795525230177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +25 -25
- package/dist/history-chords-CET3xtCe.cjs +2 -0
- package/dist/{history-chords-oyGjKaN7.js → history-chords-Ch8BcBMH.js} +1647 -1641
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +554 -549
- package/package.json +4 -4
- package/dist/history-chords-ZSpvXOeV.cjs +0 -2
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,
|
|
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-Ch8BcBMH.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 &&
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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,
|
|
@@ -7914,12 +7914,12 @@ var Zt = "textStyle", Jc = /* @__PURE__ */ new Set(["paragraph", "heading"]), Qc
|
|
|
7914
7914
|
editor: i,
|
|
7915
7915
|
style: {
|
|
7916
7916
|
...l === null ? {} : { fontSize: `calc(${l}px * ${Pe.textScale})` },
|
|
7917
|
-
...s === null ? {} : { fontFamily:
|
|
7917
|
+
...s === null ? {} : { fontFamily: Ca(s) }
|
|
7918
7918
|
},
|
|
7919
7919
|
"data-testid": "text-annotation-editor"
|
|
7920
7920
|
});
|
|
7921
7921
|
}, hi = (e) => {
|
|
7922
|
-
const t =
|
|
7922
|
+
const t = Ca(e);
|
|
7923
7923
|
return t === void 0 ? {} : { style: `font-family: ${t}` };
|
|
7924
7924
|
}, x0 = ys.create({
|
|
7925
7925
|
name: "annotationTextStyleAttributes",
|
|
@@ -8081,7 +8081,7 @@ var Zt = "textStyle", Jc = /* @__PURE__ */ new Set(["paragraph", "heading"]), Qc
|
|
|
8081
8081
|
const e = _(), t = Q(), n = Al();
|
|
8082
8082
|
return ({ annotationId: r, anchorX: a, align: i, panelWidth: l, minWidth: s, paddingInline: c, pickedFontSize: d = null, pickedFont: u = null }) => {
|
|
8083
8083
|
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 =
|
|
8084
|
+
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
8085
|
...h,
|
|
8086
8086
|
fontSize: g,
|
|
8087
8087
|
fontFamily: m
|
|
@@ -9488,7 +9488,7 @@ var wi = (e, t) => {
|
|
|
9488
9488
|
};
|
|
9489
9489
|
}
|
|
9490
9490
|
}, Yb = ["x", "y"], Zb = vs(function({ frameElement: t, frameSize: n, panelRect: r }) {
|
|
9491
|
-
const a =
|
|
9491
|
+
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
9492
|
if (i === null && p === null) return null;
|
|
9493
9493
|
const g = {
|
|
9494
9494
|
frameElement: t,
|
|
@@ -9614,7 +9614,7 @@ var wi = (e, t) => {
|
|
|
9614
9614
|
return n * Math.max(1, Math.round(2 * Math.PI * e / t)) * t;
|
|
9615
9615
|
}, ny = (e, t, n) => {
|
|
9616
9616
|
const r = n.offset + un(n);
|
|
9617
|
-
return
|
|
9617
|
+
return xa(pt({
|
|
9618
9618
|
x: 0,
|
|
9619
9619
|
y: 0,
|
|
9620
9620
|
...e
|
|
@@ -9691,7 +9691,7 @@ var wi = (e, t) => {
|
|
|
9691
9691
|
}, i);
|
|
9692
9692
|
}
|
|
9693
9693
|
}), oy = ({ boxes: e, borderRadius: t }) => {
|
|
9694
|
-
const n = e.map((r) =>
|
|
9694
|
+
const n = e.map((r) => xa(r, t)).join("");
|
|
9695
9695
|
return n === "" ? null : /* @__PURE__ */ o("path", {
|
|
9696
9696
|
d: n,
|
|
9697
9697
|
"data-testid": "edit-outline-boxes"
|
|
@@ -9709,7 +9709,7 @@ var wi = (e, t) => {
|
|
|
9709
9709
|
...s
|
|
9710
9710
|
}, h))] }, l);
|
|
9711
9711
|
});
|
|
9712
|
-
const i = t.map((l) => l.kind === "box" ?
|
|
9712
|
+
const i = t.map((l) => l.kind === "box" ? xa(l.rect, n) : "").join("");
|
|
9713
9713
|
return i === "" ? null : /* @__PURE__ */ o("path", { d: i });
|
|
9714
9714
|
}, 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
9715
|
const n = `${e.x},${e.y - t}`;
|
|
@@ -10205,7 +10205,7 @@ var wi = (e, t) => {
|
|
|
10205
10205
|
};
|
|
10206
10206
|
}, 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
10207
|
const a = e.textAnnotations.find((i) => i.id === t);
|
|
10208
|
-
return a === void 0 ? null : Au(
|
|
10208
|
+
return a === void 0 ? null : Au(th(a, n), r);
|
|
10209
10209
|
}, zy = "var(--_1am0al60)";
|
|
10210
10210
|
var Hy = "_1am0al61", Gy = "_1am0al62", lo = (e, t, n) => ({
|
|
10211
10211
|
x: Y(t.x - e.x, n.width),
|
|
@@ -10214,7 +10214,7 @@ var Hy = "_1am0al61", Gy = "_1am0al62", lo = (e, t, n) => ({
|
|
|
10214
10214
|
x: e.x * t.width,
|
|
10215
10215
|
y: e.y * t.height
|
|
10216
10216
|
}), $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(
|
|
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(nh), u = {
|
|
10218
10218
|
panel: {
|
|
10219
10219
|
width: e.width,
|
|
10220
10220
|
height: e.height
|
|
@@ -10315,7 +10315,7 @@ var Hy = "_1am0al61", Gy = "_1am0al62", lo = (e, t, n) => ({
|
|
|
10315
10315
|
children: Ky(i, t.annotationId, e)
|
|
10316
10316
|
});
|
|
10317
10317
|
}, Wy = ({ annotation: e, panelSize: t }) => {
|
|
10318
|
-
const n =
|
|
10318
|
+
const n = lh(e.id);
|
|
10319
10319
|
return /* @__PURE__ */ o(Zu, {
|
|
10320
10320
|
annotation: e,
|
|
10321
10321
|
panel: t,
|
|
@@ -12781,7 +12781,7 @@ var _d = ({ width: e, height: t }) => ({
|
|
|
12781
12781
|
super(...e), this.kind = "shape-resize-drag";
|
|
12782
12782
|
}
|
|
12783
12783
|
readOwn(e) {
|
|
12784
|
-
return
|
|
12784
|
+
return ka(J(e, "shape-resize-drag"), this.params.annotationId);
|
|
12785
12785
|
}
|
|
12786
12786
|
resolvePreview(e, t) {
|
|
12787
12787
|
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 +12884,7 @@ var _d = ({ width: e, height: t }) => ({
|
|
|
12884
12884
|
}, Ui = 4, US = ({ annotationId: e, panelRect: t, frameElement: n }) => {
|
|
12885
12885
|
const { commands: r } = q(), a = ue(), i = G((l) => l.spec.annotations);
|
|
12886
12886
|
return Gd({
|
|
12887
|
-
readHeld: () =>
|
|
12887
|
+
readHeld: () => ka(J(a.getState(), "shape-resize-drag"), e),
|
|
12888
12888
|
claim: () => {
|
|
12889
12889
|
const l = Vi(i, e);
|
|
12890
12890
|
return l === null ? null : {
|
|
@@ -13038,7 +13038,7 @@ var _d = ({ width: e, height: t }) => ({
|
|
|
13038
13038
|
resizedRegion: null,
|
|
13039
13039
|
moving: !1
|
|
13040
13040
|
} : {
|
|
13041
|
-
resizedRegion:
|
|
13041
|
+
resizedRegion: ka(J(t, "shape-resize-drag"), e)?.region ?? null,
|
|
13042
13042
|
moving: en(J(t, "move-drag"), e) !== null
|
|
13043
13043
|
}));
|
|
13044
13044
|
var QS = (e, t, n) => {
|
|
@@ -14211,7 +14211,7 @@ var ji = [
|
|
|
14211
14211
|
});
|
|
14212
14212
|
C.current = P, P.start();
|
|
14213
14213
|
}, 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 ?
|
|
14214
|
+
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
14215
|
if (u.getState().setPressedObservation(V), m.current && (E.kind === "select-observations" || E.kind === "select-band")) {
|
|
14216
14216
|
const M = oe(L, E.target.layerId);
|
|
14217
14217
|
if (M !== void 0 && wy(M.geom, N.type)) {
|
|
@@ -14279,7 +14279,7 @@ var ji = [
|
|
|
14279
14279
|
kind: "arrow",
|
|
14280
14280
|
annotation: {
|
|
14281
14281
|
...Nl,
|
|
14282
|
-
...
|
|
14282
|
+
...Ju(w.heads),
|
|
14283
14283
|
start: {
|
|
14284
14284
|
anchorType: "panel",
|
|
14285
14285
|
x: w.start.x,
|
|
@@ -14680,7 +14680,7 @@ var ji = [
|
|
|
14680
14680
|
/* @__PURE__ */ o(Dy, { frameRect: t }),
|
|
14681
14681
|
/* @__PURE__ */ o(P0, {
|
|
14682
14682
|
rect: t,
|
|
14683
|
-
zIndex:
|
|
14683
|
+
zIndex: sh.editorOverlay,
|
|
14684
14684
|
container: i,
|
|
14685
14685
|
"data-testid": "editor-overlay",
|
|
14686
14686
|
boxRef: a,
|
|
@@ -14745,9 +14745,9 @@ var ji = [
|
|
|
14745
14745
|
editMenus: n,
|
|
14746
14746
|
children: /* @__PURE__ */ o(Xu, { children: /* @__PURE__ */ o(u1, {
|
|
14747
14747
|
value: t,
|
|
14748
|
-
children: /* @__PURE__ */ o(
|
|
14748
|
+
children: /* @__PURE__ */ o(Qu, {
|
|
14749
14749
|
editors: A0(i),
|
|
14750
|
-
children: /* @__PURE__ */ o(
|
|
14750
|
+
children: /* @__PURE__ */ o(eh, {
|
|
14751
14751
|
slots: l,
|
|
14752
14752
|
...r
|
|
14753
14753
|
})
|
|
@@ -14779,7 +14779,7 @@ var Tw = () => () => {
|
|
|
14779
14779
|
const t = qp(e?.subscribe ?? Tw, () => e?.getScene()?.config.parsingLocale);
|
|
14780
14780
|
return e?.formattingLocale ?? t;
|
|
14781
14781
|
}, Lw = (e) => {
|
|
14782
|
-
const t = Ae(
|
|
14782
|
+
const t = Ae(ch), n = gl(Pw(Qt(e.handle))), r = ku();
|
|
14783
14783
|
let a = /* @__PURE__ */ o(Iw, { ...e });
|
|
14784
14784
|
return !r && t && (a = /* @__PURE__ */ o(Cu, {
|
|
14785
14785
|
colorScheme: t.colorScheme,
|