@graphysdk/react-renderer 1.9.0-beta.1794247167849 → 1.9.0-beta.1794301086730
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.css +1 -1
- package/dist/editable.mjs +378 -375
- package/dist/{history-chords-DyC4ZlGK.cjs → history-chords-BhvEUwjx.cjs} +1 -1
- package/dist/{history-chords-Dn9NUI2a.js → history-chords-CG4mOkgP.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Or, $n as Rr, A as Jn, An as kc, At as R, Bt as Re, C as Tc, Ct as bn, E as Ac, Et as Pc, F as Lc, Ft as Ic, G as Mc, Gn as ri, Gt as ue, Hn as Ec, I as Oc, J as Rc, K as Y, Kt as Nc, L as Dc, Ln as _c, Lt as ye, Mt as Fc, Nn as zc, Nt as Bc, O as Qn, Ot as Hc, Pt as Gc, Q as J, R as M, Rt as ai, S as $c, St as Vc, T as Wc, U as Uc, Vn as Kc, W as oi, Wt as nt, X as jc, Xn as Xc, Y as wa, Yn as F, Z as qc, Zn as W, _ as rt, _n as Nr, _t as xa, an as ii, at as Yc, b as li, bt as Ne, c as si, ct as yn, d as Zc, dn as ci, dt as Sn, et as Dr, f as Jc, fn as Qc, g as di, gn as ve, gt as ed, h as at, hn as ui, ht as hi, i as Et, it as td, j as Cn, jt as pi, k as gi, kn as nd, kt as mi, l as er, ln as rd, lt as ad, m as od, mn as vi, mt as id, n as Se, nn as ld, nt as sd, o as cd, ot as fi, p as bi, q as ae, qn as ee, qt as dd, r as Q, rt as ud, st as _r, t as hd, tn as ka, tt as pd, u as gd, un as md, ut as yi, v as vd, vn as ut, vt as fd, x as bd, xt as yd, y as Sd, yt as Pe, zt as tr } from "./history-chords-
|
|
1
|
+
import { $ as Or, $n as Rr, A as Jn, An as kc, At as R, Bt as Re, C as Tc, Ct as bn, E as Ac, Et as Pc, F as Lc, Ft as Ic, G as Mc, Gn as ri, Gt as ue, Hn as Ec, I as Oc, J as Rc, K as Y, Kt as Nc, L as Dc, Ln as _c, Lt as ye, Mt as Fc, Nn as zc, Nt as Bc, O as Qn, Ot as Hc, Pt as Gc, Q as J, R as M, Rt as ai, S as $c, St as Vc, T as Wc, U as Uc, Vn as Kc, W as oi, Wt as nt, X as jc, Xn as Xc, Y as wa, Yn as F, Z as qc, Zn as W, _ as rt, _n as Nr, _t as xa, an as ii, at as Yc, b as li, bt as Ne, c as si, ct as yn, d as Zc, dn as ci, dt as Sn, et as Dr, f as Jc, fn as Qc, g as di, gn as ve, gt as ed, h as at, hn as ui, ht as hi, i as Et, it as td, j as Cn, jt as pi, k as gi, kn as nd, kt as mi, l as er, ln as rd, lt as ad, m as od, mn as vi, mt as id, n as Se, nn as ld, nt as sd, o as cd, ot as fi, p as bi, q as ae, qn as ee, qt as dd, r as Q, rt as ud, st as _r, t as hd, tn as ka, tt as pd, u as gd, un as md, ut as yi, v as vd, vn as ut, vt as fd, x as bd, xt as yd, y as Sd, yt as Pe, zt as tr } from "./history-chords-CG4mOkgP.js";
|
|
2
2
|
import { ARROW_DEFAULTS as Si, ARROW_STICKER_DECLARATIONS as Cd, ARROW_STROKE_WIDTHS_PX as Bn, AddAnnotationCommand as we, AddHighlightCommand as wd, COMBO_TYPES as Ta, CONSTANT_VARIABLES as Fr, DASH_PRESETS as xd, DEFAULT_BAR_CORNER_RADII as kd, DEFAULT_GEOM_COLOR as Td, DEFAULT_POINT_SIZE_PX as Ci, DEFAULT_STROKE_WIDTH_PX as Ad, DIFFERENCE_ARROW_DEFAULTS as wi, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Aa, InternalError as Pd, MAX_BAR_WIDTH_FRACTION as Ld, MIN_BAR_WIDTH_FRACTION as Id, MoveAnnotationCommand as Md, PANEL_FRACTION_BOUNDS as xi, POSITION_VARIABLES as je, RESTING_HOVER_STATE as Ot, RemoveAnnotationCommand as ze, RemoveHighlightCommand as Ed, SHAPE_DEFAULTS as ki, SequenceCommand as ct, SetAxisLabelCommand as Ti, SetAxisPositionCommand as Ai, SetAxisTickModeCommand as Pi, SetAxisTicksVisibilityCommand as Od, SetAxisVisibilityCommand as nr, SetBarCornerRadiusCommand as Rd, SetBarWidthCommand as Li, SetContentCaptionCommand as Ii, SetContentSourceCommand as Nd, SetContentSubtitleCommand as Mi, SetContentTitleCommand as Ei, SetDataLabelsFormatCommand as Oi, SetDifferenceArrowStyleCommand as Dd, SetGraphTypeCommand as zr, SetGridLineStyleCommand as Ri, SetGridVisibilityCommand as rr, SetHeadlineCompareWithCommand as _d, SetHeadlinePositionCommand as Fd, SetHeadlineShowCommand as Pa, SetHeadlineSizeCommand as zd, SetHighlightDimStyleCommand as Bd, SetLayerYScaleTypeCommand as Hd, SetLegendAlignCommand as Gd, SetLegendDisplayCommand as $d, SetLegendPlacementCommand as Vd, SetLegendPositionCommand as ar, SetLineCurveCommand as Ni, SetLineMissingValuesCommand as Di, SetLineStyleCommand as Fe, SetMappingCommand as Wd, SetNumberFormatAbbreviationCommand as Ud, SetNumberFormatDecimalsCommand as La, SetObservationsColorCommand as Kd, SetPointSizeCommand as wn, SetPointSymbolCommand as Br, SetPolarInnerRadiusCommand as jd, SetPolarStartAngleCommand as Xd, SetRuleLabelCommand as qd, SetRuleValueCommand as Yd, SetScaleDomainCommand as Pt, SetScaleRangeCommand as _i, SetScaleTransformCommand as Fi, SetStatLineCommand as Zd, SetStyleRuleCommand as Xe, TEXT_ANNOTATION_DEFAULTS as zi, TEXT_ANNOTATION_FADE_ALPHA as Jd, ToggleCategoryLabelsCommand as Bi, ToggleContentVisibilityCommand as Qe, ToggleDataLabelsCommand as Hi, ToggleGoalLineCommand as Qd, ToggleLinePointsCommand as Hr, ToggleStackTotalsCommand as Gi, UpdateAnnotationCommand as fe, alignUnitFractions as eu, areAnchorsEqual as Gr, areEditTargetsEqual as $r, areEndpointsComparable as tu, buildColormapRange as nu, buildDivergingRange as Ia, buildLayerStyleAddress as gt, buildObservationPredicate as ru, buildObservationsTarget as $e, buildObservationsTargetAtValue as $i, buildPointSymbolInBox as au, canAnchorDirectLabels as ou, canBecomeCombo as iu, canBecomeHeatmap as lu, clampAnnotationTranslation as su, combineKindStyleDeclarations as Ma, computeArrow as Vi, createObservationAnchorBuilder as cu, createObservationAnchorParser as du, createStyleResolver as uu, createStyleRuleMatcher as hu, createValueFormatter as Vr, createXValueReader as pu, filterLayersByGeoms as or, findAnnotation as gu, findAverageLineLayer as mu, findAxisGuide as Wi, findCompanionLayers as Ui, findGoalLineLayer as vu, findHighlightsAtObservation as fu, findHostLayer as xn, findKindStyleDeclarations as rn, findLayerByGeom as Ki, findLayerById as q, findObservationAttachment as bu, findPointerRegion as yu, findStyleRule as qe, findTrendLineLayer as Su, formatDifferenceLabel as Cu, getBoundingRect as ir, getGroupVariables as Wr, getScaledAesthetic as wu, getXBand as xu, getYBand as ku, hasMainAxisBand as Tu, hasMultipleGroups as kn, inferDefaultDifferenceArrowEndpoints as Au, inferDifferenceArrowEndpoints as Pu, isComboGraphType as be, isCompanionLayer as ji, isGeomStyleRule as Lu, isGeometricSymbol as Tt, isImageSymbol as lr, isLayerSpecOf as bt, isObservationAttachmentKind as Iu, isSafeUrl as Mu, isZeroAnchoredAxis as Xi, measureObservationsBoxes as qi, polarToUnit as Eu, projectAnchorToPanel as sr, readBroadestObservationsScope as Ou, readColorChoices as Yi, readColorPart as Ru, readColormapColor as Nu, readComboLineLayerId as Du, readCompanionRowsAtScopeKey as _u, readConstantValue as Fu, readDivergingColor as Ea, readEditTargetKey as Rt, readGeomColor as zu, readGraphType as Tn, readHighlightDimStyle as Bu, readMainAxis as Hu, readMappableAesthetics as Gu, readMappedVariable as $u, readObservationIndex as yt, readObservationsColor as Vu, readObservationsColorPart as Wu, readObservationsColorRoute as An, readReachableLevels as Uu, readRowScopeKey as Ku, readRowsAtScopeKey as ju, readScopeXVariable as Xu, readStyleCoord as xe, readStyleRulesBeneath as qu, readVariableName as Oe, resolveArrowAnnotationStyle as Ur, resolveBarBandFraction as Zi, resolveComparisonBasis as Yu, resolveDifferenceArrowAnnotationStyle as Zu, resolveEditOutlineStyle as Ju, resolveLayerAxisValueFormat as Qu, resolveObservationPoint as Ji, resolveObservationsTarget as et, stepDifferenceArrowEndpoint as eh, toDashPreset as tt, toPaintColor as an, toPanelCursor as Nt, toStrokeDasharray as Qi } from "@graphysdk/viz-engine";
|
|
3
3
|
import { Fragment as el, createContext as Je, memo as tl, useCallback as ce, useContext as Ce, useEffect as B, useId as Be, useLayoutEffect as Ye, useMemo as _, useRef as X, useState as Z, useSyncExternalStore as th } from "react";
|
|
4
4
|
import { Fragment as K, jsx as a, jsxs as v } from "react/jsx-runtime";
|
|
@@ -2317,7 +2317,7 @@ var qg = ({ symbol: e, ...t }) => {
|
|
|
2317
2317
|
})
|
|
2318
2318
|
});
|
|
2319
2319
|
}, Yg = "_1yjsaqt0", Zg = "_1yjsaqt1", Jg = "_1yjsaqt2", Qg = "_1yjsaqt3";
|
|
2320
|
-
var
|
|
2320
|
+
var YS = 512 * 1024, em = (e) => new Promise((t) => {
|
|
2321
2321
|
if (e.size > 524288) {
|
|
2322
2322
|
t({ rejection: "oversized" });
|
|
2323
2323
|
return;
|
|
@@ -10637,8 +10637,8 @@ var wb = [
|
|
|
10637
10637
|
]
|
|
10638
10638
|
})] });
|
|
10639
10639
|
}, Xs = "var(--ydgo3h0)";
|
|
10640
|
-
var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, panelOrigin: t, panelRect: n, engine: r, layers: o, coordSystem: i, resolver: l, fixedAnchor: s, align: c }) => {
|
|
10641
|
-
const d =
|
|
10640
|
+
var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = "ydgo3h4", Ob = ({ clientPoint: e, panelOrigin: t, panelRect: n, engine: r, layers: o, coordSystem: i, resolver: l, fixedAnchor: s, align: c }) => {
|
|
10641
|
+
const d = Rb({
|
|
10642
10642
|
x: e.x - t.x,
|
|
10643
10643
|
y: e.y - t.y
|
|
10644
10644
|
}, n), { primary: u } = r.query(Nt(d, n));
|
|
@@ -10654,7 +10654,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10654
10654
|
align: c
|
|
10655
10655
|
});
|
|
10656
10656
|
return p === null || Gr(p.anchor, s) ? null : p;
|
|
10657
|
-
},
|
|
10657
|
+
}, Rb = (e, t) => ({
|
|
10658
10658
|
x: Math.max(0, Math.min(e.x, t.width)),
|
|
10659
10659
|
y: Math.max(0, Math.min(e.y, t.height))
|
|
10660
10660
|
}), qs = (e) => e === "start" ? "end" : "start", Ys = ({ dispatch: e, arrow: t, endpoint: n, anchor: r }) => {
|
|
@@ -10663,7 +10663,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10663
10663
|
id: t.id,
|
|
10664
10664
|
patch: { [n]: r }
|
|
10665
10665
|
}));
|
|
10666
|
-
},
|
|
10666
|
+
}, Nb = class extends Ht {
|
|
10667
10667
|
constructor(...e) {
|
|
10668
10668
|
super(...e), this.kind = "difference-arrow-endpoint-drag";
|
|
10669
10669
|
}
|
|
@@ -10672,7 +10672,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10672
10672
|
return fi(J(e, "difference-arrow-endpoint-drag"), n().arrow.id, t);
|
|
10673
10673
|
}
|
|
10674
10674
|
resolvePreview(e) {
|
|
10675
|
-
const { endpoint: t, readInputs: n, engine: r, anchorResolver: o } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: d } = n(), u =
|
|
10675
|
+
const { endpoint: t, readInputs: n, engine: r, anchorResolver: o } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: d } = n(), u = Ob({
|
|
10676
10676
|
clientPoint: e,
|
|
10677
10677
|
panelOrigin: l,
|
|
10678
10678
|
panelRect: s,
|
|
@@ -10699,7 +10699,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10699
10699
|
anchor: e.anchor
|
|
10700
10700
|
});
|
|
10701
10701
|
}
|
|
10702
|
-
},
|
|
10702
|
+
}, Db = ({ arrow: e, panelOrigin: t, panelRect: n, onClick: r }) => {
|
|
10703
10703
|
const { commands: o, anchorResolver: i } = W(), { engine: l } = nt(), s = ae(), c = ue({
|
|
10704
10704
|
arrow: e,
|
|
10705
10705
|
panelOrigin: t,
|
|
@@ -10716,7 +10716,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10716
10716
|
} catch {
|
|
10717
10717
|
return;
|
|
10718
10718
|
}
|
|
10719
|
-
p.currentTarget.focus({ preventScroll: !0 }), p.preventDefault(), u.current = new
|
|
10719
|
+
p.currentTarget.focus({ preventScroll: !0 }), p.preventDefault(), u.current = new Nb({
|
|
10720
10720
|
handle: p.currentTarget,
|
|
10721
10721
|
pointerId: p.pointerId,
|
|
10722
10722
|
press: {
|
|
@@ -10743,7 +10743,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10743
10743
|
i,
|
|
10744
10744
|
o
|
|
10745
10745
|
]);
|
|
10746
|
-
},
|
|
10746
|
+
}, _b = [" ", "Enter"], Fb = ({ arrow: e }) => {
|
|
10747
10747
|
const { commands: t, anchorResolver: n } = W(), r = ae(), { layers: o, coordSystem: i, mainAxis: l } = F(Le((c) => ({
|
|
10748
10748
|
layers: c.layers,
|
|
10749
10749
|
coordSystem: c.coordSystem,
|
|
@@ -10755,7 +10755,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10755
10755
|
}, [r, s]), ce((c) => ({ onKeyDown: (d) => {
|
|
10756
10756
|
if (d.altKey || d.ctrlKey || d.metaKey || d.shiftKey) return;
|
|
10757
10757
|
const u = r.getState(), h = fi(J(u, "difference-arrow-endpoint-drag"), e.id, c);
|
|
10758
|
-
if (
|
|
10758
|
+
if (_b.includes(d.key)) {
|
|
10759
10759
|
if (d.preventDefault(), d.repeat) return;
|
|
10760
10760
|
if (h === null) return u.claimInteraction({
|
|
10761
10761
|
kind: "difference-arrow-endpoint-drag",
|
|
@@ -10772,10 +10772,10 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10772
10772
|
return;
|
|
10773
10773
|
}
|
|
10774
10774
|
if (h === null) return;
|
|
10775
|
-
const p =
|
|
10775
|
+
const p = zb(d.key, l);
|
|
10776
10776
|
if (p === null) return;
|
|
10777
10777
|
d.preventDefault();
|
|
10778
|
-
const g =
|
|
10778
|
+
const g = Bb({
|
|
10779
10779
|
arrow: e,
|
|
10780
10780
|
endpoint: c,
|
|
10781
10781
|
from: h.point.anchor,
|
|
@@ -10799,13 +10799,13 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10799
10799
|
i,
|
|
10800
10800
|
l
|
|
10801
10801
|
]);
|
|
10802
|
-
},
|
|
10802
|
+
}, zb = (e, t) => {
|
|
10803
10803
|
const n = e === "ArrowUp" || e === "ArrowDown";
|
|
10804
10804
|
return !n && !(e === "ArrowLeft" || e === "ArrowRight") ? null : {
|
|
10805
10805
|
axis: t === "x" === n ? "cross" : "main",
|
|
10806
10806
|
step: e === "ArrowDown" || e === "ArrowRight" ? 1 : -1
|
|
10807
10807
|
};
|
|
10808
|
-
},
|
|
10808
|
+
}, Bb = ({ arrow: e, endpoint: t, from: n, move: r, layers: o, coordSystem: i, resolver: l }) => {
|
|
10809
10809
|
const s = o.find((u) => u.id === n.layerId);
|
|
10810
10810
|
if (s === void 0) return null;
|
|
10811
10811
|
const c = l.createLayerMeasurement(s);
|
|
@@ -10827,7 +10827,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10827
10827
|
measurement: c
|
|
10828
10828
|
})
|
|
10829
10829
|
})?.point ?? null;
|
|
10830
|
-
},
|
|
10830
|
+
}, Hb = (e) => {
|
|
10831
10831
|
const t = Ft(), n = oi(), r = ce((o) => {
|
|
10832
10832
|
const i = e.frameElement.querySelector('[data-testid="pointer-capture-layer"]');
|
|
10833
10833
|
i !== null && i.dispatchEvent(new PointerEvent("pointerdown", {
|
|
@@ -10840,20 +10840,23 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10840
10840
|
pointerType: "mouse"
|
|
10841
10841
|
}));
|
|
10842
10842
|
}, [e.frameElement]);
|
|
10843
|
-
return /* @__PURE__ */ v(
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10843
|
+
return /* @__PURE__ */ v("div", {
|
|
10844
|
+
className: Lb,
|
|
10845
|
+
children: [t !== null && /* @__PURE__ */ a(Gb, {
|
|
10846
|
+
annotationId: t,
|
|
10847
|
+
...e
|
|
10848
|
+
}), n.map((o) => o.id !== t && !o.dragging ? null : /* @__PURE__ */ a(Vb, {
|
|
10849
|
+
geometry: o,
|
|
10850
|
+
shown: o.id === t || o.dragging,
|
|
10851
|
+
keyboard: o.id === t,
|
|
10852
|
+
panelRect: e.panelRect,
|
|
10853
|
+
panelOrigin: e.panelOrigin,
|
|
10854
|
+
onClick: r
|
|
10855
|
+
}, o.id))]
|
|
10856
|
+
});
|
|
10857
|
+
}, Gb = ({ annotationId: e, panelOrigin: t, ...n }) => {
|
|
10855
10858
|
const r = oi(), o = _(() => r.find((i) => i.id === e), [r, e]);
|
|
10856
|
-
return o === void 0 ? null : /* @__PURE__ */ a(
|
|
10859
|
+
return o === void 0 ? null : /* @__PURE__ */ a($b, {
|
|
10857
10860
|
committedArrow: o.committedArrow,
|
|
10858
10861
|
color: o.color,
|
|
10859
10862
|
labelCornerRadius: o.style.label.cornerRadius,
|
|
@@ -10862,7 +10865,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10862
10865
|
dragging: o.dragging,
|
|
10863
10866
|
...n
|
|
10864
10867
|
});
|
|
10865
|
-
},
|
|
10868
|
+
}, $b = ({ committedArrow: e, color: t, labelCornerRadius: n, committedLabelBox: r, labelBox: o, panelRect: i, frameRect: l, frameElement: s, dragging: c }) => {
|
|
10866
10869
|
const d = ee().editOutline.selected().resolve().stroke;
|
|
10867
10870
|
return /* @__PURE__ */ v("div", {
|
|
10868
10871
|
"data-testid": "difference-arrow-selection",
|
|
@@ -10877,7 +10880,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10877
10880
|
frameElement: s
|
|
10878
10881
|
}), /* @__PURE__ */ a("div", {
|
|
10879
10882
|
"aria-hidden": "true",
|
|
10880
|
-
className:
|
|
10883
|
+
className: Eb,
|
|
10881
10884
|
"data-testid": "difference-arrow-selection-label",
|
|
10882
10885
|
style: {
|
|
10883
10886
|
left: i.x + o.x - 2,
|
|
@@ -10888,7 +10891,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10888
10891
|
}
|
|
10889
10892
|
})]
|
|
10890
10893
|
});
|
|
10891
|
-
},
|
|
10894
|
+
}, Vb = ({ geometry: e, shown: t, keyboard: n, panelRect: r, panelOrigin: o, onClick: i }) => {
|
|
10892
10895
|
const l = ae(), s = X(n), c = e.committedArrow.id;
|
|
10893
10896
|
B(() => {
|
|
10894
10897
|
if (s.current && !n) {
|
|
@@ -10901,12 +10904,12 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10901
10904
|
l,
|
|
10902
10905
|
c
|
|
10903
10906
|
]);
|
|
10904
|
-
const d =
|
|
10907
|
+
const d = Db({
|
|
10905
10908
|
arrow: e.committedArrow,
|
|
10906
10909
|
panelOrigin: o,
|
|
10907
10910
|
panelRect: r,
|
|
10908
10911
|
onClick: i
|
|
10909
|
-
}), u =
|
|
10912
|
+
}), u = Fb({ arrow: e.committedArrow }), h = ee().editOutline.selected().resolve().stroke;
|
|
10910
10913
|
return /* @__PURE__ */ v("div", {
|
|
10911
10914
|
style: De({ [Xs]: h }),
|
|
10912
10915
|
children: [/* @__PURE__ */ a(Lo, {
|
|
@@ -10928,7 +10931,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10928
10931
|
})]
|
|
10929
10932
|
});
|
|
10930
10933
|
}, Lo = ({ endpoint: e, point: t, panelRect: n, shown: r, keyboard: o, dragHandlers: i, keyboardHandlers: l }) => /* @__PURE__ */ a("div", {
|
|
10931
|
-
className:
|
|
10934
|
+
className: Ib,
|
|
10932
10935
|
"data-testid": "difference-arrow-selection-handle",
|
|
10933
10936
|
"data-endpoint": e,
|
|
10934
10937
|
"data-shown": r || void 0,
|
|
@@ -10942,7 +10945,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10942
10945
|
...o ? l : {},
|
|
10943
10946
|
children: /* @__PURE__ */ a("span", {
|
|
10944
10947
|
"aria-hidden": "true",
|
|
10945
|
-
className:
|
|
10948
|
+
className: Mb
|
|
10946
10949
|
})
|
|
10947
10950
|
}), Ar = ({ start: e, extent: t, moveStartEdge: n, delta: r, minExtent: o, bounds: i }) => {
|
|
10948
10951
|
if (!Number.isFinite(r)) return {
|
|
@@ -10962,7 +10965,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10962
10965
|
start: e,
|
|
10963
10966
|
extent: mt(c + r, u, h) - e
|
|
10964
10967
|
};
|
|
10965
|
-
},
|
|
10968
|
+
}, Wb = [
|
|
10966
10969
|
"top-left",
|
|
10967
10970
|
"top-right",
|
|
10968
10971
|
"bottom-right",
|
|
@@ -10971,7 +10974,7 @@ var Lb = "ydgo3h1", Ib = "ydgo3h2", Mb = "ydgo3h3", Eb = ({ clientPoint: e, pane
|
|
|
10971
10974
|
var Zs = ({ width: e, height: t }) => ({
|
|
10972
10975
|
x: Ae(16, e),
|
|
10973
10976
|
y: Ae(16, t)
|
|
10974
|
-
}),
|
|
10977
|
+
}), Ub = (e, t) => ({
|
|
10975
10978
|
x: ec(t) ? e.x : e.x + e.width,
|
|
10976
10979
|
y: tc(t) ? e.y : e.y + e.height
|
|
10977
10980
|
}), va = (e) => ({
|
|
@@ -11011,14 +11014,14 @@ var Zs = ({ width: e, height: t }) => ({
|
|
|
11011
11014
|
}, Qs = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, ec = (e) => e === "top-left" || e === "bottom-left", tc = (e) => e === "top-left" || e === "top-right", nc = (e, t, n, r) => {
|
|
11012
11015
|
const o = e.textAnnotations.find((i) => i.id === t);
|
|
11013
11016
|
return o === void 0 ? null : bd(gd(o, n), r);
|
|
11014
|
-
},
|
|
11015
|
-
var
|
|
11017
|
+
}, Kb = "var(--_1ee8fau0)";
|
|
11018
|
+
var jb = {
|
|
11016
11019
|
hovered: "_1ee8fau2 _1ee8fau1",
|
|
11017
11020
|
selected: "_1ee8fau3 _1ee8fau1"
|
|
11018
|
-
},
|
|
11021
|
+
}, Xb = {
|
|
11019
11022
|
hovered: "_1ee8fau5 _1ee8fau4",
|
|
11020
11023
|
selected: "_1ee8fau6 _1ee8fau4"
|
|
11021
|
-
},
|
|
11024
|
+
}, qb = ({ panelRect: e }) => {
|
|
11022
11025
|
const t = rt(e), n = yi(), r = ee(), o = Ft(), i = Y((f) => J(f, "move-drag")), l = Y((f) => J(f, "shape-resize-drag")), s = Y((f) => J(f, "arrow-endpoint-drag")), c = Y((f) => J(f, "text-resize-drag")), d = Y(Rc), u = _(() => ({
|
|
11023
11026
|
panel: {
|
|
11024
11027
|
width: e.width,
|
|
@@ -11068,7 +11071,7 @@ var Kb = {
|
|
|
11068
11071
|
geometry: r
|
|
11069
11072
|
};
|
|
11070
11073
|
}, Mo = ({ annotationId: e, geometry: t, state: n, origin: r }) => {
|
|
11071
|
-
const o = ee().editOutline.selected().resolve().stroke, i = De({ [
|
|
11074
|
+
const o = ee().editOutline.selected().resolve().stroke, i = De({ [Kb]: o });
|
|
11072
11075
|
return t.shape === "segment" ? /* @__PURE__ */ v("div", {
|
|
11073
11076
|
"aria-hidden": "true",
|
|
11074
11077
|
"data-testid": "annotation-chrome",
|
|
@@ -11086,7 +11089,7 @@ var Kb = {
|
|
|
11086
11089
|
})]
|
|
11087
11090
|
}) : /* @__PURE__ */ a("div", {
|
|
11088
11091
|
"aria-hidden": "true",
|
|
11089
|
-
className:
|
|
11092
|
+
className: jb[n],
|
|
11090
11093
|
"data-testid": "annotation-chrome",
|
|
11091
11094
|
"data-annotation-id": e,
|
|
11092
11095
|
"data-state": n,
|
|
@@ -11099,12 +11102,12 @@ var Kb = {
|
|
|
11099
11102
|
}
|
|
11100
11103
|
});
|
|
11101
11104
|
}, Eo = ({ point: e, state: t, origin: n }) => /* @__PURE__ */ a("span", {
|
|
11102
|
-
className:
|
|
11105
|
+
className: Xb[t],
|
|
11103
11106
|
style: {
|
|
11104
11107
|
left: n.x + e.x,
|
|
11105
11108
|
top: n.y + e.y
|
|
11106
11109
|
}
|
|
11107
|
-
}),
|
|
11110
|
+
}), Yb = ({ panelRect: e }) => {
|
|
11108
11111
|
const t = Y((o) => J(o, "move-drag")), n = rt(e);
|
|
11109
11112
|
if (t === null) return null;
|
|
11110
11113
|
const r = Ks(t.translation, e);
|
|
@@ -11119,9 +11122,9 @@ var Kb = {
|
|
|
11119
11122
|
},
|
|
11120
11123
|
"data-testid": "annotation-preview",
|
|
11121
11124
|
"data-annotation-id": t.annotationId,
|
|
11122
|
-
children:
|
|
11125
|
+
children: Qb(n, t.annotationId, e)
|
|
11123
11126
|
});
|
|
11124
|
-
},
|
|
11127
|
+
}, Zb = ({ annotation: e, panel: t }) => {
|
|
11125
11128
|
const n = ad(e.id);
|
|
11126
11129
|
return /* @__PURE__ */ a(Zc, {
|
|
11127
11130
|
annotation: e,
|
|
@@ -11132,30 +11135,30 @@ var Kb = {
|
|
|
11132
11135
|
}, Qt = (e, t, n) => {
|
|
11133
11136
|
const r = e.find((o) => o.id === t);
|
|
11134
11137
|
return r === void 0 ? null : n(r);
|
|
11135
|
-
},
|
|
11136
|
-
text: (e, t, n) => Qt(e.textAnnotations, t, (r) => /* @__PURE__ */ a(
|
|
11138
|
+
}, Jb = {
|
|
11139
|
+
text: (e, t, n) => Qt(e.textAnnotations, t, (r) => /* @__PURE__ */ a(Zb, {
|
|
11137
11140
|
annotation: r,
|
|
11138
11141
|
panel: n
|
|
11139
11142
|
})),
|
|
11140
|
-
shape: (e, t, n) => Qt(e.shapes, t, (r) => /* @__PURE__ */ a(
|
|
11143
|
+
shape: (e, t, n) => Qt(e.shapes, t, (r) => /* @__PURE__ */ a(t5, {
|
|
11141
11144
|
shape: r,
|
|
11142
11145
|
panelSize: n
|
|
11143
11146
|
})),
|
|
11144
|
-
image: (e, t, n) => Qt(e.images, t, (r) => /* @__PURE__ */ a(
|
|
11147
|
+
image: (e, t, n) => Qt(e.images, t, (r) => /* @__PURE__ */ a(n5, {
|
|
11145
11148
|
image: r,
|
|
11146
11149
|
panelSize: n
|
|
11147
11150
|
})),
|
|
11148
|
-
arrow: (e, t, n) => Qt(e.arrows, t, (r) => /* @__PURE__ */ a(
|
|
11151
|
+
arrow: (e, t, n) => Qt(e.arrows, t, (r) => /* @__PURE__ */ a(e5, {
|
|
11149
11152
|
arrow: r,
|
|
11150
11153
|
panelSize: n
|
|
11151
11154
|
}))
|
|
11152
|
-
},
|
|
11153
|
-
for (const r of Object.values(
|
|
11155
|
+
}, Qb = (e, t, n) => {
|
|
11156
|
+
for (const r of Object.values(Jb)) {
|
|
11154
11157
|
const o = r(e, t, n);
|
|
11155
11158
|
if (o !== null) return o;
|
|
11156
11159
|
}
|
|
11157
11160
|
return null;
|
|
11158
|
-
},
|
|
11161
|
+
}, e5 = ({ arrow: e, panelSize: t }) => {
|
|
11159
11162
|
const n = Ur(ee(), e.id), r = Vi({
|
|
11160
11163
|
arrow: e,
|
|
11161
11164
|
style: n,
|
|
@@ -11167,15 +11170,15 @@ var Kb = {
|
|
|
11167
11170
|
style: n,
|
|
11168
11171
|
addressable: !1
|
|
11169
11172
|
});
|
|
11170
|
-
},
|
|
11173
|
+
}, t5 = ({ shape: e, panelSize: t }) => /* @__PURE__ */ a(bi, {
|
|
11171
11174
|
shape: e,
|
|
11172
11175
|
style: ee().annotation.shape(e.id).resolve(),
|
|
11173
11176
|
panel: t
|
|
11174
|
-
}),
|
|
11177
|
+
}), n5 = ({ image: e, panelSize: t }) => /* @__PURE__ */ a(od, {
|
|
11175
11178
|
image: e,
|
|
11176
11179
|
panel: t,
|
|
11177
11180
|
style: ee().annotation.image(e.id).resolve()
|
|
11178
|
-
}),
|
|
11181
|
+
}), r5 = "s8eewu0", Oo = "s8eewu1", a5 = ({ frameElement: e, panelRect: t }) => {
|
|
11179
11182
|
const n = Y((d) => J(d, "arrow-draw")), r = Y((d) => J(d, "box-draw")), o = n?.start ?? r?.start ?? null, [i, l] = Z(null);
|
|
11180
11183
|
if (B(() => {
|
|
11181
11184
|
if (n === null && r === null) return;
|
|
@@ -11200,7 +11203,7 @@ var Kb = {
|
|
|
11200
11203
|
]), o === null || i === null) return null;
|
|
11201
11204
|
const s = t.x + o.x * t.width, c = t.y + o.y * t.height;
|
|
11202
11205
|
return /* @__PURE__ */ a("svg", {
|
|
11203
|
-
className:
|
|
11206
|
+
className: r5,
|
|
11204
11207
|
children: r === null ? /* @__PURE__ */ a("line", {
|
|
11205
11208
|
className: Oo,
|
|
11206
11209
|
x1: s,
|
|
@@ -11216,7 +11219,7 @@ var Kb = {
|
|
|
11216
11219
|
height: Math.abs(i.y - c)
|
|
11217
11220
|
})
|
|
11218
11221
|
});
|
|
11219
|
-
}, Ro = (e, t, n) => Math.min(Math.max(e, t), n),
|
|
11222
|
+
}, Ro = (e, t, n) => Math.min(Math.max(e, t), n), o5 = ({ panelRect: e }) => {
|
|
11220
11223
|
const t = Y((i) => J(i, "shape-resize-drag")), n = rt(e).shapes, r = ee();
|
|
11221
11224
|
if (t === null) return null;
|
|
11222
11225
|
const o = n.find((i) => i.id === t.annotationId);
|
|
@@ -11240,10 +11243,10 @@ var Kb = {
|
|
|
11240
11243
|
panel: e
|
|
11241
11244
|
})
|
|
11242
11245
|
});
|
|
11243
|
-
},
|
|
11246
|
+
}, i5 = "var(--o49ib40)", l5 = {
|
|
11244
11247
|
sm: "o49ib41",
|
|
11245
11248
|
md: "o49ib42"
|
|
11246
|
-
},
|
|
11249
|
+
}, s5 = {
|
|
11247
11250
|
horizontal: "o49ib43",
|
|
11248
11251
|
diagonalDown: "o49ib44",
|
|
11249
11252
|
diagonalUp: "o49ib45"
|
|
@@ -11251,12 +11254,12 @@ var Kb = {
|
|
|
11251
11254
|
const s = ee().editOutline.selected().resolve().stroke;
|
|
11252
11255
|
return /* @__PURE__ */ a("div", {
|
|
11253
11256
|
"aria-label": t,
|
|
11254
|
-
className:
|
|
11257
|
+
className: s5[n],
|
|
11255
11258
|
role: "button",
|
|
11256
11259
|
style: {
|
|
11257
11260
|
left: e.x,
|
|
11258
11261
|
top: e.y,
|
|
11259
|
-
...De({ [
|
|
11262
|
+
...De({ [i5]: s })
|
|
11260
11263
|
},
|
|
11261
11264
|
tabIndex: 0,
|
|
11262
11265
|
...o,
|
|
@@ -11264,7 +11267,7 @@ var Kb = {
|
|
|
11264
11267
|
...l,
|
|
11265
11268
|
children: /* @__PURE__ */ a("span", {
|
|
11266
11269
|
"aria-hidden": "true",
|
|
11267
|
-
className:
|
|
11270
|
+
className: l5[r]
|
|
11268
11271
|
})
|
|
11269
11272
|
});
|
|
11270
11273
|
}, Pr = [
|
|
@@ -11284,8 +11287,8 @@ var Kb = {
|
|
|
11284
11287
|
width: 16,
|
|
11285
11288
|
key: "graph.annotations.shapeToolbar.border.thick"
|
|
11286
11289
|
}
|
|
11287
|
-
],
|
|
11288
|
-
const l = R(), { commands: s } = W(), c = F((w) => w.spec.styles.overrides), d = F((w) => xe(w.spec)), u = Rn(), h = ee().annotation.shape(e.id).resolve(), p =
|
|
11290
|
+
], c5 = (e) => [...Pr].reverse().find((t) => t.width <= e) ?? Pr[0], d5 = ({ shape: e, shapeBox: t, panelRect: n, frameWidth: r, frameHeight: o, frameElement: i }) => {
|
|
11291
|
+
const l = R(), { commands: s } = W(), c = F((w) => w.spec.styles.overrides), d = F((w) => xe(w.spec)), u = Rn(), h = ee().annotation.shape(e.id).resolve(), p = c5(h.strokeWidth), g = _(() => ({
|
|
11289
11292
|
target: "annotation",
|
|
11290
11293
|
kind: "shape",
|
|
11291
11294
|
annotation: e.id
|
|
@@ -11376,7 +11379,7 @@ var Kb = {
|
|
|
11376
11379
|
}, vn = (e, t) => {
|
|
11377
11380
|
const n = e.shapes.find((r) => r.id === t);
|
|
11378
11381
|
return n === void 0 || n.region.anchorType !== "panel" ? null : n.region;
|
|
11379
|
-
},
|
|
11382
|
+
}, u5 = class extends Ht {
|
|
11380
11383
|
constructor(...e) {
|
|
11381
11384
|
super(...e), this.kind = "shape-resize-drag";
|
|
11382
11385
|
}
|
|
@@ -11405,13 +11408,13 @@ var Kb = {
|
|
|
11405
11408
|
patch: { region: e }
|
|
11406
11409
|
}));
|
|
11407
11410
|
}
|
|
11408
|
-
},
|
|
11411
|
+
}, h5 = ({ annotationId: e, panelRect: t, frameElement: n }) => {
|
|
11409
11412
|
const { commands: r } = W(), o = ae(), i = ue({
|
|
11410
11413
|
annotations: F((l) => l.spec.annotations),
|
|
11411
11414
|
panelRect: t,
|
|
11412
11415
|
frameElement: n
|
|
11413
11416
|
});
|
|
11414
|
-
return ac((l, s) => new
|
|
11417
|
+
return ac((l, s) => new u5({
|
|
11415
11418
|
...s,
|
|
11416
11419
|
annotationId: e,
|
|
11417
11420
|
corner: l,
|
|
@@ -11419,12 +11422,12 @@ var Kb = {
|
|
|
11419
11422
|
editorStore: o,
|
|
11420
11423
|
dispatch: r.dispatch
|
|
11421
11424
|
}));
|
|
11422
|
-
},
|
|
11425
|
+
}, p5 = [" ", "Enter"], oc = (e) => {
|
|
11423
11426
|
const t = ae(), n = ue(e);
|
|
11424
11427
|
return B(() => () => No(t, n.current), [t, n]), ce((r) => ({ onKeyDown: (o) => {
|
|
11425
11428
|
if (o.altKey || o.ctrlKey || o.metaKey || o.shiftKey) return;
|
|
11426
11429
|
const i = t.getState(), l = n.current.readHeld();
|
|
11427
|
-
if (
|
|
11430
|
+
if (p5.includes(o.key)) {
|
|
11428
11431
|
if (o.preventDefault(), o.repeat) return;
|
|
11429
11432
|
if (l !== null) {
|
|
11430
11433
|
No(t, n.current);
|
|
@@ -11442,7 +11445,7 @@ var Kb = {
|
|
|
11442
11445
|
}, No = (e, t) => {
|
|
11443
11446
|
const n = t.readHeld();
|
|
11444
11447
|
n !== null && (e.getState().releaseInteraction(n.kind), t.commit(n));
|
|
11445
|
-
}, Do = 4,
|
|
11448
|
+
}, Do = 4, g5 = ({ annotationId: e, panelRect: t, frameElement: n }) => {
|
|
11446
11449
|
const { commands: r } = W(), o = ae(), i = F((l) => l.spec.annotations);
|
|
11447
11450
|
return oc({
|
|
11448
11451
|
readHeld: () => Dr(J(o.getState(), "shape-resize-drag"), e),
|
|
@@ -11455,7 +11458,7 @@ var Kb = {
|
|
|
11455
11458
|
};
|
|
11456
11459
|
},
|
|
11457
11460
|
step: (l, s, c) => {
|
|
11458
|
-
const d =
|
|
11461
|
+
const d = m5(c, t);
|
|
11459
11462
|
return d === null ? null : {
|
|
11460
11463
|
kind: "shape-resize-drag",
|
|
11461
11464
|
annotationId: e,
|
|
@@ -11477,7 +11480,7 @@ var Kb = {
|
|
|
11477
11480
|
}));
|
|
11478
11481
|
}
|
|
11479
11482
|
});
|
|
11480
|
-
},
|
|
11483
|
+
}, m5 = (e, t) => {
|
|
11481
11484
|
const n = Ae(Do, t.width), r = Ae(Do, t.height);
|
|
11482
11485
|
switch (e) {
|
|
11483
11486
|
case "ArrowLeft":
|
|
@@ -11503,28 +11506,28 @@ var Kb = {
|
|
|
11503
11506
|
default:
|
|
11504
11507
|
return null;
|
|
11505
11508
|
}
|
|
11506
|
-
},
|
|
11509
|
+
}, v5 = {
|
|
11507
11510
|
"top-left": "diagonalDown",
|
|
11508
11511
|
"bottom-right": "diagonalDown",
|
|
11509
11512
|
"top-right": "diagonalUp",
|
|
11510
11513
|
"bottom-left": "diagonalUp"
|
|
11511
|
-
},
|
|
11512
|
-
const t = Ft(), n =
|
|
11514
|
+
}, f5 = (e) => {
|
|
11515
|
+
const t = Ft(), n = y5(t), r = S5(t);
|
|
11513
11516
|
if (n === null) return null;
|
|
11514
11517
|
const o = r.resizedRegion ?? (n.region.anchorType === "panel" ? n.region : null);
|
|
11515
|
-
return o === null ? null : /* @__PURE__ */ a(
|
|
11518
|
+
return o === null ? null : /* @__PURE__ */ a(b5, {
|
|
11516
11519
|
shape: n,
|
|
11517
11520
|
region: o,
|
|
11518
11521
|
settled: r.resizedRegion === null && !r.moving,
|
|
11519
11522
|
moving: r.moving,
|
|
11520
11523
|
...e
|
|
11521
11524
|
});
|
|
11522
|
-
},
|
|
11523
|
-
const s = R(), c =
|
|
11525
|
+
}, b5 = ({ shape: e, region: t, settled: n, moving: r, panelRect: o, frameRect: i, frameElement: l }) => {
|
|
11526
|
+
const s = R(), c = h5({
|
|
11524
11527
|
annotationId: e.id,
|
|
11525
11528
|
panelRect: o,
|
|
11526
11529
|
frameElement: l
|
|
11527
|
-
}), d =
|
|
11530
|
+
}), d = g5({
|
|
11528
11531
|
annotationId: e.id,
|
|
11529
11532
|
panelRect: o,
|
|
11530
11533
|
frameElement: l
|
|
@@ -11532,22 +11535,22 @@ var Kb = {
|
|
|
11532
11535
|
return /* @__PURE__ */ v("div", {
|
|
11533
11536
|
"data-testid": "shape-selection",
|
|
11534
11537
|
"data-annotation-id": e.id,
|
|
11535
|
-
children: [n && /* @__PURE__ */ a(
|
|
11538
|
+
children: [n && /* @__PURE__ */ a(d5, {
|
|
11536
11539
|
shape: e,
|
|
11537
11540
|
shapeBox: h,
|
|
11538
11541
|
panelRect: o,
|
|
11539
11542
|
frameWidth: i.width,
|
|
11540
11543
|
frameHeight: i.height,
|
|
11541
11544
|
frameElement: l
|
|
11542
|
-
}), !r &&
|
|
11543
|
-
const g =
|
|
11545
|
+
}), !r && Wb.map((p) => {
|
|
11546
|
+
const g = Ub(h, p);
|
|
11544
11547
|
return /* @__PURE__ */ a(rc, {
|
|
11545
11548
|
point: {
|
|
11546
11549
|
x: o.x + g.x,
|
|
11547
11550
|
y: o.y + g.y
|
|
11548
11551
|
},
|
|
11549
11552
|
label: s(`graph.annotations.shapeToolbar.resize.${p}`),
|
|
11550
|
-
pull:
|
|
11553
|
+
pull: v5[p],
|
|
11551
11554
|
size: "md",
|
|
11552
11555
|
attributes: {
|
|
11553
11556
|
"data-testid": "shape-resize-handle",
|
|
@@ -11558,16 +11561,16 @@ var Kb = {
|
|
|
11558
11561
|
}, p);
|
|
11559
11562
|
})]
|
|
11560
11563
|
});
|
|
11561
|
-
},
|
|
11564
|
+
}, y5 = (e) => {
|
|
11562
11565
|
const t = F((n) => n.spec.annotations.shapes);
|
|
11563
11566
|
return e === null ? null : t.find((n) => n.id === e) ?? null;
|
|
11564
|
-
},
|
|
11567
|
+
}, S5 = (e) => Y(Le((t) => e === null ? {
|
|
11565
11568
|
resizedRegion: null,
|
|
11566
11569
|
moving: !1
|
|
11567
11570
|
} : {
|
|
11568
11571
|
resizedRegion: Dr(J(t, "shape-resize-drag"), e)?.region ?? null,
|
|
11569
11572
|
moving: yn(J(t, "move-drag"), e) !== null
|
|
11570
|
-
})),
|
|
11573
|
+
})), C5 = ({ textColor: e, ...t }) => /* @__PURE__ */ v(M, {
|
|
11571
11574
|
...t,
|
|
11572
11575
|
children: [/* @__PURE__ */ v("g", {
|
|
11573
11576
|
stroke: "currentColor",
|
|
@@ -11610,7 +11613,7 @@ var ic = [
|
|
|
11610
11613
|
id: e,
|
|
11611
11614
|
key: t,
|
|
11612
11615
|
fontFamily: ed[e] ?? e
|
|
11613
|
-
})),
|
|
11616
|
+
})), w5 = (e) => ic.find((t) => t.id === (e ?? "modern")) ?? null;
|
|
11614
11617
|
var lc = [
|
|
11615
11618
|
{
|
|
11616
11619
|
size: 12,
|
|
@@ -11632,7 +11635,7 @@ var lc = [
|
|
|
11632
11635
|
size: 30,
|
|
11633
11636
|
key: "graph.annotations.textToolbar.fontSize.huge"
|
|
11634
11637
|
}
|
|
11635
|
-
],
|
|
11638
|
+
], x5 = (e) => lc.find((t) => t.size === (e ?? 15)) ?? null, k5 = (e) => `${e}px`, T5 = [
|
|
11636
11639
|
{
|
|
11637
11640
|
alignment: "left",
|
|
11638
11641
|
Icon: Ls
|
|
@@ -11645,8 +11648,8 @@ var lc = [
|
|
|
11645
11648
|
alignment: "right",
|
|
11646
11649
|
Icon: Ps
|
|
11647
11650
|
}
|
|
11648
|
-
],
|
|
11649
|
-
const l = R(), { commands: s } = W(), c = F((b) => b.spec.styles.overrides), d = F((b) => xe(b.spec)), u = ae(), h = Rn(), p = ee().annotation.text(e.id).resolve(), g = T2(e.content), m =
|
|
11651
|
+
], A5 = ({ annotation: e, textBox: t, panelRect: n, frameWidth: r, frameHeight: o, frameElement: i }) => {
|
|
11652
|
+
const l = R(), { commands: s } = W(), c = F((b) => b.spec.styles.overrides), d = F((b) => xe(b.spec)), u = ae(), h = Rn(), p = ee().annotation.text(e.id).resolve(), g = T2(e.content), m = w5(g.font), f = x5(g.fontSize), y = g.color ?? p.textColor, x = _(() => ({
|
|
11650
11653
|
target: "annotation",
|
|
11651
11654
|
kind: "text",
|
|
11652
11655
|
annotation: e.id
|
|
@@ -11677,7 +11680,7 @@ var lc = [
|
|
|
11677
11680
|
w({ content: A2(z, b) }, E);
|
|
11678
11681
|
}, I = () => {
|
|
11679
11682
|
s.dispatch(new ze({ id: e.id })), i.focus({ preventScroll: !0 });
|
|
11680
|
-
}, N = (b) => C(
|
|
11683
|
+
}, N = (b) => C(P5(b), { transient: !0 }), k = (b) => T({ color: b }, { transient: !0 }), O = (b) => () => {
|
|
11681
11684
|
T({ font: b }), h.close();
|
|
11682
11685
|
}, P = (b) => () => {
|
|
11683
11686
|
T({ fontSize: b }), h.close();
|
|
@@ -11703,7 +11706,7 @@ var lc = [
|
|
|
11703
11706
|
label: l("graph.annotations.textToolbar.color"),
|
|
11704
11707
|
onChange: k,
|
|
11705
11708
|
...h.bind("color"),
|
|
11706
|
-
children: /* @__PURE__ */ a(
|
|
11709
|
+
children: /* @__PURE__ */ a(C5, {
|
|
11707
11710
|
size: "sm",
|
|
11708
11711
|
textColor: y,
|
|
11709
11712
|
title: ""
|
|
@@ -11733,13 +11736,13 @@ var lc = [
|
|
|
11733
11736
|
selected: b.size === f?.size,
|
|
11734
11737
|
onClick: P(b.size),
|
|
11735
11738
|
children: /* @__PURE__ */ a("span", {
|
|
11736
|
-
style: { fontSize:
|
|
11739
|
+
style: { fontSize: k5(b.size) },
|
|
11737
11740
|
children: l(b.key)
|
|
11738
11741
|
})
|
|
11739
11742
|
}, b.size))
|
|
11740
11743
|
}),
|
|
11741
11744
|
/* @__PURE__ */ a(V.Separator, {}),
|
|
11742
|
-
/* @__PURE__ */ a(
|
|
11745
|
+
/* @__PURE__ */ a(L5, {
|
|
11743
11746
|
current: g.alignment ?? "center",
|
|
11744
11747
|
onPick: S
|
|
11745
11748
|
}),
|
|
@@ -11754,12 +11757,12 @@ var lc = [
|
|
|
11754
11757
|
})
|
|
11755
11758
|
]
|
|
11756
11759
|
});
|
|
11757
|
-
},
|
|
11760
|
+
}, P5 = (e) => e === "transparent" ? { fill: ml } : {
|
|
11758
11761
|
fill: e,
|
|
11759
11762
|
fillAlpha: nv(e) ? Jd : 1
|
|
11760
|
-
},
|
|
11763
|
+
}, L5 = ({ current: e, onPick: t }) => {
|
|
11761
11764
|
const n = R(), r = (o) => () => t(o);
|
|
11762
|
-
return /* @__PURE__ */ a(K, { children:
|
|
11765
|
+
return /* @__PURE__ */ a(K, { children: T5.map((o) => /* @__PURE__ */ a(V.ToggleButton, {
|
|
11763
11766
|
label: n(`graph.annotations.textToolbar.align.${o.alignment}`),
|
|
11764
11767
|
pressed: o.alignment === e,
|
|
11765
11768
|
onClick: r(o.alignment),
|
|
@@ -11768,8 +11771,8 @@ var lc = [
|
|
|
11768
11771
|
title: ""
|
|
11769
11772
|
})
|
|
11770
11773
|
}, o.alignment)) });
|
|
11771
|
-
},
|
|
11772
|
-
var sc = ({ width: e }) => Ae(60, e),
|
|
11774
|
+
}, I5 = ["left", "right"];
|
|
11775
|
+
var sc = ({ width: e }) => Ae(60, e), M5 = (e, t) => ({
|
|
11773
11776
|
x: t === "left" ? e.x : e.x + e.width,
|
|
11774
11777
|
y: e.y + e.height / 2
|
|
11775
11778
|
}), cc = ({ at: e, width: t, align: n, edge: r, delta: o, minWidth: i, panelWidth: l, bounds: s }) => {
|
|
@@ -11778,7 +11781,7 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11778
11781
|
width: t,
|
|
11779
11782
|
shift: 0
|
|
11780
11783
|
};
|
|
11781
|
-
const c = eu(n).x, d =
|
|
11784
|
+
const c = eu(n).x, d = E5(e.offset, l), u = Ar({
|
|
11782
11785
|
start: e.x + d - c * t,
|
|
11783
11786
|
extent: t,
|
|
11784
11787
|
moveStartEdge: r === "left",
|
|
@@ -11797,14 +11800,14 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11797
11800
|
width: u.extent,
|
|
11798
11801
|
shift: h - e.x
|
|
11799
11802
|
};
|
|
11800
|
-
}, dc = (e, t) => e.at.x === t.at.x && e.width === t.width,
|
|
11803
|
+
}, dc = (e, t) => e.at.x === t.at.x && e.width === t.width, E5 = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? Ae(e.x, t) : e.x, fn = (e, t) => {
|
|
11801
11804
|
const n = e.textAnnotations.find((r) => r.id === t);
|
|
11802
11805
|
return n === void 0 || n.at.anchorType !== "panel" ? null : {
|
|
11803
11806
|
at: n.at,
|
|
11804
11807
|
width: n.width,
|
|
11805
11808
|
align: n.align
|
|
11806
11809
|
};
|
|
11807
|
-
},
|
|
11810
|
+
}, O5 = class extends Ht {
|
|
11808
11811
|
constructor(...e) {
|
|
11809
11812
|
super(...e), this.kind = "text-resize-drag";
|
|
11810
11813
|
}
|
|
@@ -11840,13 +11843,13 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11840
11843
|
}
|
|
11841
11844
|
}));
|
|
11842
11845
|
}
|
|
11843
|
-
},
|
|
11846
|
+
}, R5 = ({ annotationId: e, panelRect: t, frameElement: n }) => {
|
|
11844
11847
|
const { commands: r } = W(), o = ae(), i = ue({
|
|
11845
11848
|
annotations: F((l) => l.spec.annotations),
|
|
11846
11849
|
panelRect: t,
|
|
11847
11850
|
frameElement: n
|
|
11848
11851
|
});
|
|
11849
|
-
return ac((l, s) => new
|
|
11852
|
+
return ac((l, s) => new O5({
|
|
11850
11853
|
...s,
|
|
11851
11854
|
annotationId: e,
|
|
11852
11855
|
edge: l,
|
|
@@ -11854,7 +11857,7 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11854
11857
|
editorStore: o,
|
|
11855
11858
|
dispatch: r.dispatch
|
|
11856
11859
|
}));
|
|
11857
|
-
},
|
|
11860
|
+
}, N5 = 4, D5 = ({ annotationId: e, panelRect: t, frameElement: n }) => {
|
|
11858
11861
|
const { commands: r } = W(), o = ae(), i = F((s) => s.spec.annotations), l = (s, c) => {
|
|
11859
11862
|
const d = fn(i, e);
|
|
11860
11863
|
return d === null ? null : {
|
|
@@ -11875,7 +11878,7 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11875
11878
|
readHeld: () => Or(J(o.getState(), "text-resize-drag"), e),
|
|
11876
11879
|
claim: (s) => l(s, 0),
|
|
11877
11880
|
step: (s, c, d) => {
|
|
11878
|
-
const u =
|
|
11881
|
+
const u = _5(d, t);
|
|
11879
11882
|
return u === null ? null : l(c, s.delta + u);
|
|
11880
11883
|
},
|
|
11881
11884
|
commit: (s) => {
|
|
@@ -11890,8 +11893,8 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11890
11893
|
}));
|
|
11891
11894
|
}
|
|
11892
11895
|
});
|
|
11893
|
-
},
|
|
11894
|
-
const n = Ae(
|
|
11896
|
+
}, _5 = (e, t) => {
|
|
11897
|
+
const n = Ae(N5, t.width);
|
|
11895
11898
|
switch (e) {
|
|
11896
11899
|
case "ArrowLeft":
|
|
11897
11900
|
return -n;
|
|
@@ -11900,9 +11903,9 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11900
11903
|
default:
|
|
11901
11904
|
return null;
|
|
11902
11905
|
}
|
|
11903
|
-
},
|
|
11904
|
-
const t = Ft(), n =
|
|
11905
|
-
return n === null || i === null ? null : /* @__PURE__ */ a(
|
|
11906
|
+
}, F5 = (e) => {
|
|
11907
|
+
const t = Ft(), n = B5(t), r = H5(t), o = Y((l) => l.caret?.annotationId === t), i = G5(e.panelRect, t, r.resized);
|
|
11908
|
+
return n === null || i === null ? null : /* @__PURE__ */ a(z5, {
|
|
11906
11909
|
annotation: n,
|
|
11907
11910
|
textBox: i,
|
|
11908
11911
|
settled: r.resized === null && !r.moving,
|
|
@@ -11911,12 +11914,12 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11911
11914
|
hasCaret: o,
|
|
11912
11915
|
...e
|
|
11913
11916
|
});
|
|
11914
|
-
},
|
|
11915
|
-
const d = R(), u =
|
|
11917
|
+
}, z5 = ({ annotation: e, textBox: t, settled: n, moving: r, resizable: o, hasCaret: i, panelRect: l, frameRect: s, frameElement: c }) => {
|
|
11918
|
+
const d = R(), u = R5({
|
|
11916
11919
|
annotationId: e.id,
|
|
11917
11920
|
panelRect: l,
|
|
11918
11921
|
frameElement: c
|
|
11919
|
-
}), h =
|
|
11922
|
+
}), h = D5({
|
|
11920
11923
|
annotationId: e.id,
|
|
11921
11924
|
panelRect: l,
|
|
11922
11925
|
frameElement: c
|
|
@@ -11924,15 +11927,15 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11924
11927
|
return /* @__PURE__ */ v("div", {
|
|
11925
11928
|
"data-testid": "text-selection",
|
|
11926
11929
|
"data-annotation-id": e.id,
|
|
11927
|
-
children: [n && /* @__PURE__ */ a(
|
|
11930
|
+
children: [n && /* @__PURE__ */ a(A5, {
|
|
11928
11931
|
annotation: e,
|
|
11929
11932
|
textBox: t,
|
|
11930
11933
|
panelRect: l,
|
|
11931
11934
|
frameWidth: s.width,
|
|
11932
11935
|
frameHeight: s.height,
|
|
11933
11936
|
frameElement: c
|
|
11934
|
-
}), o && !r && !i &&
|
|
11935
|
-
const g =
|
|
11937
|
+
}), o && !r && !i && I5.map((p) => {
|
|
11938
|
+
const g = M5(t, p);
|
|
11936
11939
|
return /* @__PURE__ */ a(rc, {
|
|
11937
11940
|
point: {
|
|
11938
11941
|
x: l.x + g.x,
|
|
@@ -11950,16 +11953,16 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11950
11953
|
}, p);
|
|
11951
11954
|
})]
|
|
11952
11955
|
});
|
|
11953
|
-
},
|
|
11956
|
+
}, B5 = (e) => {
|
|
11954
11957
|
const t = F((n) => n.spec.annotations.textAnnotations);
|
|
11955
11958
|
return e === null ? null : t.find((n) => n.id === e) ?? null;
|
|
11956
|
-
},
|
|
11959
|
+
}, H5 = (e) => Y(Le((t) => e === null ? {
|
|
11957
11960
|
resized: null,
|
|
11958
11961
|
moving: !1
|
|
11959
11962
|
} : {
|
|
11960
11963
|
resized: Or(J(t, "text-resize-drag"), e),
|
|
11961
11964
|
moving: yn(J(t, "move-drag"), e) !== null
|
|
11962
|
-
})),
|
|
11965
|
+
})), G5 = (e, t, n) => {
|
|
11963
11966
|
const r = rt(e), o = yi(), i = ee(), l = _(() => ({
|
|
11964
11967
|
panel: {
|
|
11965
11968
|
width: e.width,
|
|
@@ -11974,15 +11977,15 @@ var sc = ({ width: e }) => Ae(60, e), I5 = (e, t) => ({
|
|
|
11974
11977
|
i
|
|
11975
11978
|
]);
|
|
11976
11979
|
return t === null ? null : nc(r, t, n, l)?.rect ?? null;
|
|
11977
|
-
}, fa = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [],
|
|
11980
|
+
}, fa = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], $5 = (e, t, n) => Cn(fa(e, t), n), V5 = "_1rpuha50";
|
|
11978
11981
|
var _o = [
|
|
11979
11982
|
"pointerdown",
|
|
11980
11983
|
"mousedown",
|
|
11981
11984
|
"pointerup",
|
|
11982
11985
|
"mouseup",
|
|
11983
11986
|
"click"
|
|
11984
|
-
], uc = (e) => e instanceof Element && e.closest("[data-menu-shield]") !== null,
|
|
11985
|
-
const e = Y((s) => s.plotMenu !== null), t = Y((s) =>
|
|
11987
|
+
], uc = (e) => e instanceof Element && e.closest("[data-menu-shield]") !== null, W5 = () => {
|
|
11988
|
+
const e = Y((s) => s.plotMenu !== null), t = Y((s) => j5(s.standingInteraction?.kind)), n = at()[0]?.kind === "observations", r = Re[ye()].showMenuTriggerOnHover, { store: o } = nt(), i = r && !t && (e || n), l = X(null);
|
|
11986
11989
|
return B(() => {
|
|
11987
11990
|
if (!i) return;
|
|
11988
11991
|
const s = o.getState();
|
|
@@ -11992,8 +11995,8 @@ var _o = [
|
|
|
11992
11995
|
if (s === null) return;
|
|
11993
11996
|
const c = (d) => {
|
|
11994
11997
|
if (!(d instanceof MouseEvent) || d.button !== 0) return;
|
|
11995
|
-
const u =
|
|
11996
|
-
u !== null && (d.stopPropagation(), u.dispatchEvent(
|
|
11998
|
+
const u = U5(d.clientX, d.clientY);
|
|
11999
|
+
u !== null && (d.stopPropagation(), u.dispatchEvent(K5(d)));
|
|
11997
12000
|
};
|
|
11998
12001
|
for (const d of _o) s.addEventListener(d, c);
|
|
11999
12002
|
return () => {
|
|
@@ -12001,24 +12004,24 @@ var _o = [
|
|
|
12001
12004
|
};
|
|
12002
12005
|
}, [i]), i ? /* @__PURE__ */ a("div", {
|
|
12003
12006
|
ref: l,
|
|
12004
|
-
className:
|
|
12007
|
+
className: V5,
|
|
12005
12008
|
"data-menu-shield": "",
|
|
12006
12009
|
"data-testid": "menu-shield"
|
|
12007
12010
|
}) : null;
|
|
12008
|
-
},
|
|
12011
|
+
}, U5 = (e, t) => fa(e, t).find((n) => !uc(n)) ?? null, K5 = (e) => new MouseEvent(e.type, {
|
|
12009
12012
|
bubbles: !0,
|
|
12010
12013
|
cancelable: !0,
|
|
12011
12014
|
clientX: e.clientX,
|
|
12012
12015
|
clientY: e.clientY,
|
|
12013
12016
|
button: e.button,
|
|
12014
12017
|
buttons: e.buttons
|
|
12015
|
-
}),
|
|
12018
|
+
}), j5 = (e) => e === "arrow-draw" || e === "box-draw", X5 = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', q5 = (e, t) => {
|
|
12016
12019
|
const { chartId: n } = W(), r = ae();
|
|
12017
12020
|
B(() => {
|
|
12018
12021
|
if (t === null) return;
|
|
12019
12022
|
const o = (i) => {
|
|
12020
12023
|
if (i.key !== "Tab" || i.defaultPrevented || !ht(i.target, e, n) || ln(i.target) || r.getState().standingInteraction?.kind === "chrome-popup") return;
|
|
12021
|
-
const l = [...t.querySelectorAll(
|
|
12024
|
+
const l = [...t.querySelectorAll(X5)];
|
|
12022
12025
|
if (l.length === 0) return;
|
|
12023
12026
|
i.preventDefault();
|
|
12024
12027
|
const s = l.findIndex((c) => c === document.activeElement);
|
|
@@ -12031,13 +12034,13 @@ var _o = [
|
|
|
12031
12034
|
n,
|
|
12032
12035
|
r
|
|
12033
12036
|
]);
|
|
12034
|
-
},
|
|
12037
|
+
}, Y5 = (e) => {
|
|
12035
12038
|
const { selectionStore: t, chartId: n } = W(), r = ae();
|
|
12036
12039
|
B(() => {
|
|
12037
12040
|
let o = null;
|
|
12038
12041
|
const i = (c) => {
|
|
12039
12042
|
if (ft(c.target)) return;
|
|
12040
|
-
const { caret: d } = r.getState(), u = d === null ? null :
|
|
12043
|
+
const { caret: d } = r.getState(), u = d === null ? null : $5(c.clientX, c.clientY, e);
|
|
12041
12044
|
u?.kind === "annotation" && u.target.id === d?.annotationId || e.focus({ preventScroll: !0 });
|
|
12042
12045
|
}, l = (c) => {
|
|
12043
12046
|
const { selection: d, clearSelection: u } = t.getState();
|
|
@@ -12056,12 +12059,12 @@ var _o = [
|
|
|
12056
12059
|
e,
|
|
12057
12060
|
n
|
|
12058
12061
|
]);
|
|
12059
|
-
},
|
|
12062
|
+
}, Z5 = (e, t) => {
|
|
12060
12063
|
switch (e.kind) {
|
|
12061
12064
|
case "legend": {
|
|
12062
12065
|
const n = t.legends[e.part.legendIndex], r = n?.items[e.part.itemIndex];
|
|
12063
12066
|
if (n === void 0 || r === void 0) return null;
|
|
12064
|
-
const o =
|
|
12067
|
+
const o = J5(n, r.layerId, t.layers);
|
|
12065
12068
|
return o === null ? null : $i({
|
|
12066
12069
|
layer: o.layer,
|
|
12067
12070
|
scope: "group",
|
|
@@ -12076,29 +12079,29 @@ var _o = [
|
|
|
12076
12079
|
const r = t.formattedAxes.find((i) => i.scaledAesthetic === "x");
|
|
12077
12080
|
if (r === void 0 || r.bandwidth === void 0) return null;
|
|
12078
12081
|
const o = r.ticks[n.tickIndex];
|
|
12079
|
-
return o === void 0 ? null :
|
|
12082
|
+
return o === void 0 ? null : ty(t.layers, o.value, t.parsingLocale);
|
|
12080
12083
|
}
|
|
12081
12084
|
case "annotation":
|
|
12082
12085
|
case "grid":
|
|
12083
12086
|
return null;
|
|
12084
12087
|
}
|
|
12085
|
-
},
|
|
12088
|
+
}, J5 = (e, t, n) => {
|
|
12086
12089
|
const r = t === void 0 ? n : n.filter((o) => o.id === t);
|
|
12087
12090
|
for (const o of e.aesthetics) {
|
|
12088
|
-
const i =
|
|
12091
|
+
const i = Q5(r, o);
|
|
12089
12092
|
if (i !== null) return i;
|
|
12090
12093
|
}
|
|
12091
12094
|
return null;
|
|
12092
|
-
},
|
|
12095
|
+
}, Q5 = (e, t) => {
|
|
12093
12096
|
for (const n of e) {
|
|
12094
12097
|
const r = Oe(n.mapping[t]);
|
|
12095
|
-
if (r !== null &&
|
|
12098
|
+
if (r !== null && ey(n, r)) return {
|
|
12096
12099
|
layer: n,
|
|
12097
12100
|
variable: r
|
|
12098
12101
|
};
|
|
12099
12102
|
}
|
|
12100
12103
|
return null;
|
|
12101
|
-
},
|
|
12104
|
+
}, ey = (e, t) => e.data.hasVariable(t) && e.data.getType(t) === "categorical", ty = (e, t, n) => {
|
|
12102
12105
|
let r = null;
|
|
12103
12106
|
for (const o of e) {
|
|
12104
12107
|
if (!o.interactive) continue;
|
|
@@ -12117,7 +12120,7 @@ var _o = [
|
|
|
12117
12120
|
}
|
|
12118
12121
|
}
|
|
12119
12122
|
return r;
|
|
12120
|
-
},
|
|
12123
|
+
}, ny = ({ hover: e, layers: t, scales: n, parsingLocale: r }) => {
|
|
12121
12124
|
const { primary: o, intersection: i } = e;
|
|
12122
12125
|
if (o === null) return null;
|
|
12123
12126
|
const l = q(t, o.layerId);
|
|
@@ -12138,7 +12141,7 @@ var _o = [
|
|
|
12138
12141
|
};
|
|
12139
12142
|
}
|
|
12140
12143
|
return null;
|
|
12141
|
-
},
|
|
12144
|
+
}, ry = (e, t, n) => {
|
|
12142
12145
|
if (!e.onObservation || e.target.scope !== "group") return null;
|
|
12143
12146
|
const r = q(t, e.layerId);
|
|
12144
12147
|
return r === void 0 ? null : $e({
|
|
@@ -12160,7 +12163,7 @@ var _o = [
|
|
|
12160
12163
|
elements: m.elements
|
|
12161
12164
|
};
|
|
12162
12165
|
}
|
|
12163
|
-
const s = o !== null && n === o, c = s && i ?
|
|
12166
|
+
const s = o !== null && n === o, c = s && i ? ay(o) : null, d = c === null ? null : oy(e, c, t), u = d === null ? null : ny({
|
|
12164
12167
|
hover: d,
|
|
12165
12168
|
layers: l.layers,
|
|
12166
12169
|
scales: l.scales,
|
|
@@ -12174,7 +12177,7 @@ var _o = [
|
|
|
12174
12177
|
hover: g?.kind === "observations" ? d : null,
|
|
12175
12178
|
elements: p.elements
|
|
12176
12179
|
};
|
|
12177
|
-
},
|
|
12180
|
+
}, ay = (e) => {
|
|
12178
12181
|
const t = e.getBoundingClientRect();
|
|
12179
12182
|
return t.width > 0 && t.height > 0 ? t : null;
|
|
12180
12183
|
}, Fo = (e, t, n, { showAnnotations: r, selectGuidesOnPress: o, frameElement: i, scene: l, hasOverlayMenu: s }) => {
|
|
@@ -12190,7 +12193,7 @@ var _o = [
|
|
|
12190
12193
|
stamped: (d.kind === "annotation" ? r : o && s(d.target)) ? d : null,
|
|
12191
12194
|
elements: c
|
|
12192
12195
|
};
|
|
12193
|
-
},
|
|
12196
|
+
}, oy = (e, t, n) => {
|
|
12194
12197
|
const r = Nt({
|
|
12195
12198
|
x: e.clientX - t.left,
|
|
12196
12199
|
y: e.clientY - t.top
|
|
@@ -12200,7 +12203,7 @@ var _o = [
|
|
|
12200
12203
|
viewport: t,
|
|
12201
12204
|
includeAttached: !0
|
|
12202
12205
|
});
|
|
12203
|
-
},
|
|
12206
|
+
}, iy = class extends Ht {
|
|
12204
12207
|
constructor(...e) {
|
|
12205
12208
|
super(...e), this.kind = "move-drag";
|
|
12206
12209
|
}
|
|
@@ -12225,7 +12228,7 @@ var _o = [
|
|
|
12225
12228
|
bounds: Ge(o, i)
|
|
12226
12229
|
}));
|
|
12227
12230
|
}
|
|
12228
|
-
},
|
|
12231
|
+
}, ly = ({ client: e, capture: t, engine: n, layers: r, parsingLocale: o, hasMenu: i }) => {
|
|
12229
12232
|
if (t === null || t.width === 0 || t.height === 0 || e.x < t.left || e.x > t.right || e.y < t.top || e.y > t.bottom) return null;
|
|
12230
12233
|
const l = {
|
|
12231
12234
|
x: e.x - t.left,
|
|
@@ -12239,7 +12242,7 @@ var _o = [
|
|
|
12239
12242
|
});
|
|
12240
12243
|
if (s === null || c?.intersects !== !0) return null;
|
|
12241
12244
|
const d = r.find((p) => p.id === s.layerId);
|
|
12242
|
-
if (d === void 0 || _t(d, s.observation) || !
|
|
12245
|
+
if (d === void 0 || _t(d, s.observation) || !sy(d.spatialKind)) return null;
|
|
12243
12246
|
const u = yt(s), h = $e({
|
|
12244
12247
|
layer: d,
|
|
12245
12248
|
observationIndex: u,
|
|
@@ -12250,7 +12253,7 @@ var _o = [
|
|
|
12250
12253
|
target: h,
|
|
12251
12254
|
observationIndex: u
|
|
12252
12255
|
};
|
|
12253
|
-
},
|
|
12256
|
+
}, sy = (e) => {
|
|
12254
12257
|
switch (e) {
|
|
12255
12258
|
case "noop":
|
|
12256
12259
|
return !1;
|
|
@@ -12266,7 +12269,7 @@ var _o = [
|
|
|
12266
12269
|
default:
|
|
12267
12270
|
return e;
|
|
12268
12271
|
}
|
|
12269
|
-
}, zo = "data-annotation-id",
|
|
12272
|
+
}, zo = "data-annotation-id", cy = '[data-testid="pinnedNumber"], [data-testid="comment"], [data-testid="stickers"]', Bo = (e, t, n) => {
|
|
12270
12273
|
if (e.target instanceof Element) {
|
|
12271
12274
|
const r = Ho(e.target, t);
|
|
12272
12275
|
if (r !== null) return r;
|
|
@@ -12277,12 +12280,12 @@ var _o = [
|
|
|
12277
12280
|
if (o !== null) return o;
|
|
12278
12281
|
}
|
|
12279
12282
|
return null;
|
|
12280
|
-
},
|
|
12283
|
+
}, dy = (e, t) => {
|
|
12281
12284
|
const n = e.annotations.pinnedNumbers.find((i) => i.id === t) ?? e.annotations.comments.find((i) => i.id === t);
|
|
12282
12285
|
if (n !== void 0) return Go(e, n.at.anchor.layerId, n.at.observationIndex);
|
|
12283
12286
|
const r = e.annotations.stickers.find((i) => i.id === t), o = e.spec.annotations.stickers.find((i) => i.id === t);
|
|
12284
|
-
return r?.at.observationIndex === void 0 || o?.at.anchorType !== "observation" ? null : Go(e,
|
|
12285
|
-
},
|
|
12287
|
+
return r?.at.observationIndex === void 0 || o?.at.anchorType !== "observation" ? null : Go(e, hy(r.at) ?? o.at.layerId, r.at.observationIndex);
|
|
12288
|
+
}, uy = (e, t) => {
|
|
12286
12289
|
const n = e.spec.annotations.stickers.find((r) => r.id === t);
|
|
12287
12290
|
return n?.at.anchorType !== "panel" ? null : {
|
|
12288
12291
|
x: n.at.x,
|
|
@@ -12291,13 +12294,13 @@ var _o = [
|
|
|
12291
12294
|
};
|
|
12292
12295
|
}, Ho = (e, t) => {
|
|
12293
12296
|
if (!t.contains(e)) return null;
|
|
12294
|
-
const n = e.closest(
|
|
12297
|
+
const n = e.closest(cy);
|
|
12295
12298
|
if (n === null || !t.contains(n)) return null;
|
|
12296
12299
|
const r = e.closest(`[${zo}]`);
|
|
12297
12300
|
if (r === null || !n.contains(r)) return null;
|
|
12298
12301
|
const o = r.getAttribute(zo);
|
|
12299
12302
|
return o === null || o.length === 0 ? null : o;
|
|
12300
|
-
},
|
|
12303
|
+
}, hy = (e) => {
|
|
12301
12304
|
if (!("anchor" in e)) return;
|
|
12302
12305
|
const t = e.anchor;
|
|
12303
12306
|
if (!(typeof t != "object" || t === null || !("layerId" in t)))
|
|
@@ -12310,7 +12313,7 @@ var _o = [
|
|
|
12310
12313
|
scope: "observation",
|
|
12311
12314
|
parsingLocale: e.config.parsingLocale
|
|
12312
12315
|
});
|
|
12313
|
-
},
|
|
12316
|
+
}, py = {
|
|
12314
12317
|
on: {
|
|
12315
12318
|
edge: 0,
|
|
12316
12319
|
stroke: 6,
|
|
@@ -12320,7 +12323,7 @@ var _o = [
|
|
|
12320
12323
|
main: 0,
|
|
12321
12324
|
cross: 0
|
|
12322
12325
|
}
|
|
12323
|
-
},
|
|
12326
|
+
}, gy = ({ client: e, capture: t, frame: n, engine: r, layers: o }) => {
|
|
12324
12327
|
if (t === null || t.width === 0 || t.height === 0 || n === null || !Vo(n, e)) return null;
|
|
12325
12328
|
const i = {
|
|
12326
12329
|
x: e.x - t.left,
|
|
@@ -12328,7 +12331,7 @@ var _o = [
|
|
|
12328
12331
|
};
|
|
12329
12332
|
if (Vo(t, e)) {
|
|
12330
12333
|
const { primary: s, intersection: c } = r.query(Nt(i, t), {
|
|
12331
|
-
tolerance:
|
|
12334
|
+
tolerance: py,
|
|
12332
12335
|
viewport: {
|
|
12333
12336
|
width: t.width,
|
|
12334
12337
|
height: t.height
|
|
@@ -12346,7 +12349,7 @@ var _o = [
|
|
|
12346
12349
|
x: $o(i.x / t.width, l.minX, l.maxX),
|
|
12347
12350
|
y: $o(i.y / t.height, l.minY, l.maxY)
|
|
12348
12351
|
};
|
|
12349
|
-
}, $o = (e, t, n) => Math.min(Math.max(e, t), n), Vo = (e, t) => t.x >= e.left && t.x <= e.right && t.y >= e.top && t.y <= e.bottom,
|
|
12352
|
+
}, $o = (e, t, n) => Math.min(Math.max(e, t), n), Vo = (e, t) => t.x >= e.left && t.x <= e.right && t.y >= e.top && t.y <= e.bottom, my = (e, { canSelectGraph: t, withinFrame: n, caretAnnotationId: r }) => {
|
|
12350
12353
|
switch (e?.kind) {
|
|
12351
12354
|
case "annotation":
|
|
12352
12355
|
return e.target.id === r ? { kind: "keep-caret" } : {
|
|
@@ -12361,7 +12364,7 @@ var _o = [
|
|
|
12361
12364
|
target: e.target
|
|
12362
12365
|
};
|
|
12363
12366
|
case "observations":
|
|
12364
|
-
return
|
|
12367
|
+
return vy(e.observations);
|
|
12365
12368
|
case void 0:
|
|
12366
12369
|
break;
|
|
12367
12370
|
}
|
|
@@ -12369,14 +12372,14 @@ var _o = [
|
|
|
12369
12372
|
kind: "select-graph",
|
|
12370
12373
|
target: { kind: "graph" }
|
|
12371
12374
|
} : { kind: "clear" };
|
|
12372
|
-
},
|
|
12375
|
+
}, vy = ({ target: e, observationIndex: t, onObservation: n }) => e.scope === "xValue" ? {
|
|
12373
12376
|
kind: "select-band",
|
|
12374
12377
|
target: e
|
|
12375
12378
|
} : {
|
|
12376
12379
|
kind: "select-observations",
|
|
12377
12380
|
target: e,
|
|
12378
12381
|
observationIndex: n ? t : null
|
|
12379
|
-
},
|
|
12382
|
+
}, fy = `[${Wc}], [${Qn}="axis"], [${Qn}="legend"]`, by = (e, t, n, r) => {
|
|
12380
12383
|
const { commands: o, history: i, selectionStore: l, store: s } = W(), c = ae(), d = F((C) => C.spec.annotations), u = ye(), { selectGraphOnPress: h } = Re[u], p = ue(h), g = ue(u === tr.annotate), m = ue(u === tr.annotate), f = ue({
|
|
12381
12384
|
annotations: d,
|
|
12382
12385
|
panelRect: t,
|
|
@@ -12402,7 +12405,7 @@ var _o = [
|
|
|
12402
12405
|
return;
|
|
12403
12406
|
}
|
|
12404
12407
|
k.preventDefault();
|
|
12405
|
-
const P = new
|
|
12408
|
+
const P = new iy({
|
|
12406
12409
|
handle: e,
|
|
12407
12410
|
pointerId: k.pointerId,
|
|
12408
12411
|
annotationId: O.id,
|
|
@@ -12522,7 +12525,7 @@ var _o = [
|
|
|
12522
12525
|
clientY: k.clientY
|
|
12523
12526
|
}, U);
|
|
12524
12527
|
if (m.current) {
|
|
12525
|
-
const G = Bo(k, e, j.elements), ne = G === null ? null :
|
|
12528
|
+
const G = Bo(k, e, j.elements), ne = G === null ? null : dy(s.getState().scene, G);
|
|
12526
12529
|
if (ne?.observationIndex !== void 0) {
|
|
12527
12530
|
c.getState().setCaret(null), T(k, {
|
|
12528
12531
|
kind: "select-observations",
|
|
@@ -12531,13 +12534,13 @@ var _o = [
|
|
|
12531
12534
|
});
|
|
12532
12535
|
return;
|
|
12533
12536
|
}
|
|
12534
|
-
const re = G === null ? null :
|
|
12537
|
+
const re = G === null ? null : uy(s.getState().scene, G);
|
|
12535
12538
|
if (re !== null) {
|
|
12536
12539
|
c.getState().setCaret(null), l.getState().clearSelection(), c.getState().setPlotMenu(re);
|
|
12537
12540
|
return;
|
|
12538
12541
|
}
|
|
12539
12542
|
}
|
|
12540
|
-
const se = k.target instanceof Node && e.contains(k.target), ge =
|
|
12543
|
+
const se = k.target instanceof Node && e.contains(k.target), ge = my(j.targetAtPoint, {
|
|
12541
12544
|
canSelectGraph: p.current && !ft(k.target) && n().hasOverlayMenu({ kind: "graph" }),
|
|
12542
12545
|
withinFrame: se,
|
|
12543
12546
|
caretAnnotationId: c.getState().caret?.annotationId ?? null
|
|
@@ -12547,7 +12550,7 @@ var _o = [
|
|
|
12547
12550
|
if ((ge.kind === "clear" || de) && g.current) {
|
|
12548
12551
|
const G = n();
|
|
12549
12552
|
if (k.target === G.captureRect) {
|
|
12550
|
-
const ne =
|
|
12553
|
+
const ne = ly({
|
|
12551
12554
|
client: {
|
|
12552
12555
|
x: k.clientX,
|
|
12553
12556
|
y: k.clientY
|
|
@@ -12569,8 +12572,8 @@ var _o = [
|
|
|
12569
12572
|
}
|
|
12570
12573
|
}
|
|
12571
12574
|
const Ie = U.scene.coordSystem.type === "polar" && ge.kind === "select-observations";
|
|
12572
|
-
if (se && (ge.kind === "clear" || Ie) && m.current && Bo(k, e, j.elements) === null && !
|
|
12573
|
-
const G =
|
|
12575
|
+
if (se && (ge.kind === "clear" || Ie) && m.current && Bo(k, e, j.elements) === null && !yy(k.target, j.elements)) {
|
|
12576
|
+
const G = gy({
|
|
12574
12577
|
client: {
|
|
12575
12578
|
x: k.clientX,
|
|
12576
12579
|
y: k.clientY
|
|
@@ -12591,7 +12594,7 @@ var _o = [
|
|
|
12591
12594
|
const O = C(k), { layers: P, guides: S, config: b } = s.getState().scene, { hasOverlayMenu: E } = n(), z = l.getState(), U = c.getState();
|
|
12592
12595
|
switch (O?.kind) {
|
|
12593
12596
|
case "observations": {
|
|
12594
|
-
const { observations: j } = O, se =
|
|
12597
|
+
const { observations: j } = O, se = ry(j, P, b.parsingLocale);
|
|
12595
12598
|
if (se === null || !E(se)) return;
|
|
12596
12599
|
const { observationIndex: ge } = j;
|
|
12597
12600
|
U.setPressedObservation({
|
|
@@ -12603,7 +12606,7 @@ var _o = [
|
|
|
12603
12606
|
}
|
|
12604
12607
|
case "axis":
|
|
12605
12608
|
case "legend": {
|
|
12606
|
-
const j =
|
|
12609
|
+
const j = Z5(O, {
|
|
12607
12610
|
layers: P,
|
|
12608
12611
|
legends: S.legends.drawn,
|
|
12609
12612
|
formattedAxes: y.current,
|
|
@@ -12641,7 +12644,7 @@ var _o = [
|
|
|
12641
12644
|
m,
|
|
12642
12645
|
n
|
|
12643
12646
|
]);
|
|
12644
|
-
},
|
|
12647
|
+
}, yy = (e, t) => ft(e) || Wo(e) || t.some(Wo), Wo = (e) => e instanceof Element && e.closest(fy) !== null, Sy = (e) => {
|
|
12645
12648
|
const { store: t } = W(), { engine: n, overlayRef: r } = nt(), { showAnnotations: o, selectObservationsOnPress: i, selectGuidesOnPress: l, hoverTolerance: s } = Re[ye()], c = id(), d = St(), u = i && !c;
|
|
12646
12649
|
return ce(() => ({
|
|
12647
12650
|
frameElement: e,
|
|
@@ -12664,14 +12667,14 @@ var _o = [
|
|
|
12664
12667
|
s,
|
|
12665
12668
|
t
|
|
12666
12669
|
]);
|
|
12667
|
-
},
|
|
12670
|
+
}, Cy = { kind: "idle" }, wy = () => {
|
|
12668
12671
|
const e = Y((n) => n.standingInteraction), t = kf();
|
|
12669
|
-
return _(() => e !== null ? e : t === null ?
|
|
12672
|
+
return _(() => e !== null ? e : t === null ? Cy : {
|
|
12670
12673
|
kind: "trigger",
|
|
12671
12674
|
anchor: t,
|
|
12672
12675
|
isOpen: !0
|
|
12673
12676
|
}, [e, t]);
|
|
12674
|
-
},
|
|
12677
|
+
}, xy = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, ky = (e, t, n) => {
|
|
12675
12678
|
const { selectionStore: r } = W(), { store: o, engine: i } = nt(), l = ue(e), s = ue(t), c = ue(n);
|
|
12676
12679
|
B(() => {
|
|
12677
12680
|
const d = (g) => {
|
|
@@ -12679,7 +12682,7 @@ var _o = [
|
|
|
12679
12682
|
const m = c.current, f = s.current, y = {
|
|
12680
12683
|
x: g.clientX - f.x,
|
|
12681
12684
|
y: g.clientY - f.y
|
|
12682
|
-
}, x =
|
|
12685
|
+
}, x = xy(y, m) ? i.query(Nt(y, m)) : Ot;
|
|
12683
12686
|
o.getState().setHoverState(x);
|
|
12684
12687
|
};
|
|
12685
12688
|
let u = !1;
|
|
@@ -12700,7 +12703,7 @@ var _o = [
|
|
|
12700
12703
|
s,
|
|
12701
12704
|
c
|
|
12702
12705
|
]);
|
|
12703
|
-
},
|
|
12706
|
+
}, Ty = (e, t) => {
|
|
12704
12707
|
const n = ae(), { store: r } = W(), { store: o } = nt(), { selectObservationsOnPress: i } = Re[ye()];
|
|
12705
12708
|
B(() => (o.getState().setEditorOwnsQuery(i), () => o.getState().setEditorOwnsQuery(!1)), [o, i]), B(() => {
|
|
12706
12709
|
let l = null, s = null, c = !1;
|
|
@@ -12714,7 +12717,7 @@ var _o = [
|
|
|
12714
12717
|
if (en(C.standingInteraction)) return;
|
|
12715
12718
|
if (c && (c = !1, s = {
|
|
12716
12719
|
...s,
|
|
12717
|
-
target:
|
|
12720
|
+
target: Ay(s)
|
|
12718
12721
|
}), Jn(s.target, e)) {
|
|
12719
12722
|
C.setEditTargetUnderPointer(null);
|
|
12720
12723
|
return;
|
|
@@ -12751,7 +12754,7 @@ var _o = [
|
|
|
12751
12754
|
i,
|
|
12752
12755
|
t
|
|
12753
12756
|
]);
|
|
12754
|
-
},
|
|
12757
|
+
}, Ay = (e) => typeof document.elementFromPoint == "function" ? document.elementFromPoint(e.clientX, e.clientY) : e.target, en = (e) => {
|
|
12755
12758
|
if (e === null) return !1;
|
|
12756
12759
|
switch (e.kind) {
|
|
12757
12760
|
case "move-drag":
|
|
@@ -12765,9 +12768,9 @@ var _o = [
|
|
|
12765
12768
|
case "chrome-popup":
|
|
12766
12769
|
return !1;
|
|
12767
12770
|
}
|
|
12768
|
-
},
|
|
12769
|
-
const i =
|
|
12770
|
-
|
|
12771
|
+
}, Py = (e, t, n, r, o) => {
|
|
12772
|
+
const i = wy(), { store: l } = nt(), s = at().length > 0, { freezeHoverWhileSelected: c } = Re[ye()], d = Sy(e);
|
|
12773
|
+
Ty(e, d), by(e, n, d, o), ky(i, t, n), Y5(e), F2(e), q5(e, r);
|
|
12771
12774
|
const u = s && c;
|
|
12772
12775
|
B(() => (l.getState().setSuspendsHover(u), () => l.getState().setSuspendsHover(!1)), [l, u]), B(() => {
|
|
12773
12776
|
if (!s || !c) return;
|
|
@@ -12778,7 +12781,7 @@ var _o = [
|
|
|
12778
12781
|
s,
|
|
12779
12782
|
c
|
|
12780
12783
|
]);
|
|
12781
|
-
},
|
|
12784
|
+
}, Ly = ({ frameElement: e, panelRect: t, formattedAxes: n, animateTransitions: r }) => {
|
|
12782
12785
|
const { measureRef: o, screenRect: i } = Bc(), { selectionStore: l, commands: s, store: c, history: d } = W(), u = ae(), h = X(() => {
|
|
12783
12786
|
});
|
|
12784
12787
|
B(() => {
|
|
@@ -12820,17 +12823,17 @@ var _o = [
|
|
|
12820
12823
|
y,
|
|
12821
12824
|
u,
|
|
12822
12825
|
l
|
|
12823
|
-
]), i === null ? null : /* @__PURE__ */ v(Jh, { children: [f !== null && /* @__PURE__ */ a(
|
|
12826
|
+
]), i === null ? null : /* @__PURE__ */ v(Jh, { children: [f !== null && /* @__PURE__ */ a(Iy, {
|
|
12824
12827
|
annotationId: f,
|
|
12825
12828
|
panelRect: t
|
|
12826
|
-
}), /* @__PURE__ */ a(
|
|
12829
|
+
}), /* @__PURE__ */ a(My, {
|
|
12827
12830
|
frameElement: e,
|
|
12828
12831
|
frameRect: i,
|
|
12829
12832
|
panelRect: t,
|
|
12830
12833
|
formattedAxes: n,
|
|
12831
12834
|
animateTransitions: r
|
|
12832
12835
|
})] });
|
|
12833
|
-
},
|
|
12836
|
+
}, Iy = ({ annotationId: e, panelRect: t }) => {
|
|
12834
12837
|
const n = ae(), { textAnnotations: r } = rt(t);
|
|
12835
12838
|
return B(() => {
|
|
12836
12839
|
r.some(({ id: o }) => o === e) || n.getState().setCaret(null);
|
|
@@ -12839,7 +12842,7 @@ var _o = [
|
|
|
12839
12842
|
r,
|
|
12840
12843
|
n
|
|
12841
12844
|
]), null;
|
|
12842
|
-
},
|
|
12845
|
+
}, My = ({ frameElement: e, frameRect: t, panelRect: n, formattedAxes: r, animateTransitions: o }) => {
|
|
12843
12846
|
const i = _(() => ({
|
|
12844
12847
|
x: t.left + n.x,
|
|
12845
12848
|
y: t.top + n.y
|
|
@@ -12849,7 +12852,7 @@ var _o = [
|
|
|
12849
12852
|
n.x,
|
|
12850
12853
|
n.y
|
|
12851
12854
|
]), [l, s] = Z(null);
|
|
12852
|
-
return
|
|
12855
|
+
return Py(e, i, n, l, r), /* @__PURE__ */ a(Ey, {
|
|
12853
12856
|
frameElement: e,
|
|
12854
12857
|
frameRect: t,
|
|
12855
12858
|
panelOrigin: i,
|
|
@@ -12857,7 +12860,7 @@ var _o = [
|
|
|
12857
12860
|
boxRef: s,
|
|
12858
12861
|
animateTransitions: o
|
|
12859
12862
|
});
|
|
12860
|
-
},
|
|
12863
|
+
}, Ey = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: r, boxRef: o, animateTransitions: i }) => {
|
|
12861
12864
|
const l = Ln(), { showAnnotations: s } = Re[ye()];
|
|
12862
12865
|
return /* @__PURE__ */ v(K, { children: [
|
|
12863
12866
|
/* @__PURE__ */ a(Kf, {
|
|
@@ -12878,13 +12881,13 @@ var _o = [
|
|
|
12878
12881
|
boxRef: o,
|
|
12879
12882
|
children: /* @__PURE__ */ v(Ne, { children: [
|
|
12880
12883
|
s && /* @__PURE__ */ v(K, { children: [
|
|
12881
|
-
/* @__PURE__ */ a(
|
|
12884
|
+
/* @__PURE__ */ a(Hb, {
|
|
12882
12885
|
panelRect: r,
|
|
12883
12886
|
panelOrigin: n,
|
|
12884
12887
|
frameRect: t,
|
|
12885
12888
|
frameElement: e
|
|
12886
12889
|
}),
|
|
12887
|
-
/* @__PURE__ */ a(
|
|
12890
|
+
/* @__PURE__ */ a(f5, {
|
|
12888
12891
|
panelRect: r,
|
|
12889
12892
|
frameRect: t,
|
|
12890
12893
|
frameElement: e
|
|
@@ -12894,32 +12897,32 @@ var _o = [
|
|
|
12894
12897
|
frameRect: t,
|
|
12895
12898
|
frameElement: e
|
|
12896
12899
|
}),
|
|
12897
|
-
/* @__PURE__ */ a(
|
|
12900
|
+
/* @__PURE__ */ a(F5, {
|
|
12898
12901
|
panelRect: r,
|
|
12899
12902
|
frameRect: t,
|
|
12900
12903
|
frameElement: e
|
|
12901
12904
|
}),
|
|
12902
|
-
/* @__PURE__ */ a(
|
|
12903
|
-
/* @__PURE__ */ a(
|
|
12905
|
+
/* @__PURE__ */ a(Yb, { panelRect: r }),
|
|
12906
|
+
/* @__PURE__ */ a(a5, {
|
|
12904
12907
|
frameElement: e,
|
|
12905
12908
|
panelRect: r
|
|
12906
12909
|
}),
|
|
12907
|
-
/* @__PURE__ */ a(
|
|
12910
|
+
/* @__PURE__ */ a(o5, { panelRect: r }),
|
|
12908
12911
|
/* @__PURE__ */ a(R0, { panelRect: r }),
|
|
12909
|
-
/* @__PURE__ */ a(
|
|
12912
|
+
/* @__PURE__ */ a(qb, { panelRect: r })
|
|
12910
12913
|
] }),
|
|
12911
12914
|
/* @__PURE__ */ a(L0, { frameElement: e }),
|
|
12912
12915
|
s && /* @__PURE__ */ a(rf, {
|
|
12913
12916
|
frameElement: e,
|
|
12914
12917
|
panelRect: r
|
|
12915
12918
|
}),
|
|
12916
|
-
/* @__PURE__ */ a(
|
|
12919
|
+
/* @__PURE__ */ a(W5, {})
|
|
12917
12920
|
] })
|
|
12918
12921
|
})
|
|
12919
12922
|
] });
|
|
12920
|
-
},
|
|
12923
|
+
}, Oy = {}, ZS = ({ slots: e, mode: t, palettePresets: n = Oy, editMenus: r, ...o }) => {
|
|
12921
12924
|
const i = mi(Sn()), l = _(() => ({
|
|
12922
|
-
EditorSurface:
|
|
12925
|
+
EditorSurface: Ly,
|
|
12923
12926
|
...e
|
|
12924
12927
|
}), [e]);
|
|
12925
12928
|
return /* @__PURE__ */ a(bs, {
|
|
@@ -12939,32 +12942,32 @@ var _o = [
|
|
|
12939
12942
|
}) })
|
|
12940
12943
|
})
|
|
12941
12944
|
});
|
|
12942
|
-
},
|
|
12943
|
-
className: Oy,
|
|
12944
|
-
children: e
|
|
12945
|
-
}), Ry = "_139ohwv0", he = ({ children: e }) => /* @__PURE__ */ a("div", {
|
|
12945
|
+
}, Ry = "_12lhx9e0", hc = ({ children: e }) => /* @__PURE__ */ a("div", {
|
|
12946
12946
|
className: Ry,
|
|
12947
12947
|
children: e
|
|
12948
|
-
}),
|
|
12948
|
+
}), Ny = "_139ohwv0", he = ({ children: e }) => /* @__PURE__ */ a("div", {
|
|
12949
|
+
className: Ny,
|
|
12950
|
+
children: e
|
|
12951
|
+
}), pc = Je(null), Dy = pc.Provider, _y = () => {
|
|
12949
12952
|
const e = Ce(pc);
|
|
12950
12953
|
if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
|
|
12951
12954
|
return e;
|
|
12952
|
-
},
|
|
12955
|
+
}, Fy = "_1jlczkt0", zy = "data-graphy-editor-panel", By = {
|
|
12953
12956
|
List: he,
|
|
12954
12957
|
Grid: hc
|
|
12955
12958
|
};
|
|
12956
|
-
function
|
|
12959
|
+
function Hy(e) {
|
|
12957
12960
|
if (e === void 0) return !1;
|
|
12958
12961
|
const t = e.split(/\s+/);
|
|
12959
12962
|
return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
|
|
12960
12963
|
}
|
|
12961
|
-
var
|
|
12962
|
-
}, Gy = (e) => {
|
|
12963
|
-
const t = th(e?.subscribe ?? Hy, () => e?.getScene()?.config.parsingLocale);
|
|
12964
|
-
return e?.formattingLocale ?? t;
|
|
12964
|
+
var Gy = () => () => {
|
|
12965
12965
|
}, $y = (e) => {
|
|
12966
|
-
const t =
|
|
12967
|
-
|
|
12966
|
+
const t = th(e?.subscribe ?? Gy, () => e?.getScene()?.config.parsingLocale);
|
|
12967
|
+
return e?.formattingLocale ?? t;
|
|
12968
|
+
}, Vy = (e) => {
|
|
12969
|
+
const t = Ce(Xc), n = mi($y(Et(e.handle))), r = Vc();
|
|
12970
|
+
let o = /* @__PURE__ */ a(Wy, { ...e });
|
|
12968
12971
|
return !r && t && (o = /* @__PURE__ */ a(yd, {
|
|
12969
12972
|
colorScheme: t.colorScheme,
|
|
12970
12973
|
children: o
|
|
@@ -12973,9 +12976,9 @@ var Hy = () => () => {
|
|
|
12973
12976
|
children: o
|
|
12974
12977
|
});
|
|
12975
12978
|
}, gc = {
|
|
12976
|
-
Root:
|
|
12977
|
-
Controls:
|
|
12978
|
-
},
|
|
12979
|
+
Root: Vy,
|
|
12980
|
+
Controls: By
|
|
12981
|
+
}, Wy = ({ handle: e, children: t, controls: n, defaultExpandedSection: r = void 0, className: o }) => {
|
|
12979
12982
|
const i = Et(e), { themeClass: l, inlineVarsStyle: s } = bn(), [c, d] = Z(() => r ? [r] : []), u = _(() => ({
|
|
12980
12983
|
expandSection: (h) => d([h]),
|
|
12981
12984
|
collapseAllSections: () => d([])
|
|
@@ -12984,11 +12987,11 @@ var Hy = () => () => {
|
|
|
12984
12987
|
value: i,
|
|
12985
12988
|
children: /* @__PURE__ */ a(Yp, {
|
|
12986
12989
|
controls: n,
|
|
12987
|
-
children: /* @__PURE__ */ a(
|
|
12990
|
+
children: /* @__PURE__ */ a(Dy, {
|
|
12988
12991
|
value: u,
|
|
12989
12992
|
children: /* @__PURE__ */ a(At.Root, {
|
|
12990
|
-
[
|
|
12991
|
-
className: Ze(
|
|
12993
|
+
[zy]: "",
|
|
12994
|
+
className: Ze(Fy, o, { [l]: !Hy(o) }),
|
|
12992
12995
|
style: s,
|
|
12993
12996
|
value: c,
|
|
12994
12997
|
onValueChange: (h) => d(h),
|
|
@@ -12997,7 +13000,7 @@ var Hy = () => () => {
|
|
|
12997
13000
|
})
|
|
12998
13001
|
})
|
|
12999
13002
|
});
|
|
13000
|
-
},
|
|
13003
|
+
}, Uy = "_2m7wuq0", JS = () => /* @__PURE__ */ a(Ah, { className: Uy }), Ky = (e) => /* @__PURE__ */ a(M, {
|
|
13001
13004
|
...e,
|
|
13002
13005
|
children: /* @__PURE__ */ a("g", {
|
|
13003
13006
|
stroke: "currentColor",
|
|
@@ -13006,15 +13009,15 @@ var Hy = () => () => {
|
|
|
13006
13009
|
strokeLinejoin: "round",
|
|
13007
13010
|
children: /* @__PURE__ */ a("path", { d: "m9 6 6 6-6 6" })
|
|
13008
13011
|
})
|
|
13009
|
-
}), ba = "_40zvwv0", ya = "_40zvwv1",
|
|
13010
|
-
var
|
|
13011
|
-
var
|
|
13012
|
+
}), ba = "_40zvwv0", ya = "_40zvwv1", jy = "_40zvwv2", mc = "_40zvwv3", Xy = "_40zvwv4 _40zvwv3";
|
|
13013
|
+
var qy = "_40zvwv6";
|
|
13014
|
+
var Yy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessory: r, onOpenChange: o, children: i }) => t === "collapsible" ? /* @__PURE__ */ a(Jy, {
|
|
13012
13015
|
title: e,
|
|
13013
13016
|
preview: n,
|
|
13014
13017
|
accessory: r,
|
|
13015
13018
|
onOpenChange: o,
|
|
13016
13019
|
children: i
|
|
13017
|
-
}) : t === "inline" && n === void 0 ? /* @__PURE__ */ a(
|
|
13020
|
+
}) : t === "inline" && n === void 0 ? /* @__PURE__ */ a(Zy, {
|
|
13018
13021
|
title: e,
|
|
13019
13022
|
accessory: r,
|
|
13020
13023
|
children: i
|
|
@@ -13037,7 +13040,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13037
13040
|
})
|
|
13038
13041
|
]
|
|
13039
13042
|
}), /* @__PURE__ */ a("div", { children: i })]
|
|
13040
|
-
}),
|
|
13043
|
+
}), Zy = ({ title: e, accessory: t, children: n }) => {
|
|
13041
13044
|
const r = Be(), o = Be();
|
|
13042
13045
|
return /* @__PURE__ */ a("div", {
|
|
13043
13046
|
className: ba,
|
|
@@ -13047,11 +13050,11 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13047
13050
|
/* @__PURE__ */ a("label", {
|
|
13048
13051
|
id: r,
|
|
13049
13052
|
htmlFor: o,
|
|
13050
|
-
className:
|
|
13053
|
+
className: Xy,
|
|
13051
13054
|
children: e
|
|
13052
13055
|
}),
|
|
13053
13056
|
/* @__PURE__ */ a("span", {
|
|
13054
|
-
className:
|
|
13057
|
+
className: qy,
|
|
13055
13058
|
children: /* @__PURE__ */ a(dl, {
|
|
13056
13059
|
labelId: r,
|
|
13057
13060
|
controlId: o,
|
|
@@ -13065,7 +13068,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13065
13068
|
]
|
|
13066
13069
|
})
|
|
13067
13070
|
});
|
|
13068
|
-
},
|
|
13071
|
+
}, Jy = ({ title: e, preview: t, accessory: n, onOpenChange: r, children: o }) => {
|
|
13069
13072
|
const i = R();
|
|
13070
13073
|
return /* @__PURE__ */ v(At.Item, {
|
|
13071
13074
|
value: e,
|
|
@@ -13076,7 +13079,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13076
13079
|
render: /* @__PURE__ */ a("div", {}),
|
|
13077
13080
|
children: [
|
|
13078
13081
|
/* @__PURE__ */ a(At.Trigger, {
|
|
13079
|
-
className:
|
|
13082
|
+
className: jy,
|
|
13080
13083
|
"aria-label": i("editor.accessibility.toggleSection", { title: e })
|
|
13081
13084
|
}),
|
|
13082
13085
|
/* @__PURE__ */ a("span", {
|
|
@@ -13092,14 +13095,14 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13092
13095
|
children: n
|
|
13093
13096
|
}),
|
|
13094
13097
|
/* @__PURE__ */ a("span", {
|
|
13095
|
-
className:
|
|
13096
|
-
children: /* @__PURE__ */ a(
|
|
13098
|
+
className: Yy,
|
|
13099
|
+
children: /* @__PURE__ */ a(Ky, { size: "sm" })
|
|
13097
13100
|
})
|
|
13098
13101
|
]
|
|
13099
13102
|
}), /* @__PURE__ */ a(At.Panel, { children: /* @__PURE__ */ a("div", { children: o }) })]
|
|
13100
13103
|
});
|
|
13101
|
-
},
|
|
13102
|
-
const { expandSection: l, collapseAllSections: s } =
|
|
13104
|
+
}, Qy = ({ title: e, checked: t, onToggle: n, disabled: r, preview: o, children: i }) => {
|
|
13105
|
+
const { expandSection: l, collapseAllSections: s } = _y(), { Switch: c } = H();
|
|
13103
13106
|
return /* @__PURE__ */ a(oe, {
|
|
13104
13107
|
title: e,
|
|
13105
13108
|
layout: "collapsible",
|
|
@@ -13117,15 +13120,15 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13117
13120
|
}),
|
|
13118
13121
|
children: i
|
|
13119
13122
|
});
|
|
13120
|
-
},
|
|
13123
|
+
}, e3 = {
|
|
13121
13124
|
horizontal: ["bottom", "top"],
|
|
13122
13125
|
vertical: ["left", "right"]
|
|
13123
|
-
},
|
|
13126
|
+
}, t3 = {
|
|
13124
13127
|
left: "editor.axesPanel.position.left",
|
|
13125
13128
|
right: "editor.axesPanel.position.right",
|
|
13126
13129
|
top: "editor.axesPanel.position.top",
|
|
13127
13130
|
bottom: "editor.axesPanel.position.bottom"
|
|
13128
|
-
},
|
|
13131
|
+
}, n3 = {
|
|
13129
13132
|
x: "editor.axesPanel.mainAxisSection.xAxis",
|
|
13130
13133
|
y: "editor.axesPanel.mainAxisSection.yAxis"
|
|
13131
13134
|
}, Uo = ({ axis: e, title: t, layout: n = "collapsible", preview: r }) => {
|
|
@@ -13133,12 +13136,12 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13133
13136
|
if (!i) return null;
|
|
13134
13137
|
const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", p = i.config.axes[e], g = i.scales[e], m = g?.spec, f = m?.scaleType === "continuous" ? m : void 0;
|
|
13135
13138
|
if (h === "circular" || h === "radial" && f === void 0) return null;
|
|
13136
|
-
const y = m?.scaleType === "continuous" || m?.scaleType === "datetime", x = f !== void 0 && Xi(i, e), C = f?.transform === "log", w = f?.domainMax ?? null, A =
|
|
13139
|
+
const y = m?.scaleType === "continuous" || m?.scaleType === "datetime", x = f !== void 0 && Xi(i, e), C = f?.transform === "log", w = f?.domainMax ?? null, A = r3(f), T = (D, Me) => D.map(($t) => ({
|
|
13137
13140
|
value: $t,
|
|
13138
13141
|
label: Me($t)
|
|
13139
|
-
})), I = i.guides.axes.find((D) => D.scaledAesthetic === e), N = I?.position, k = i.guides.axes.filter((D) => D.scaledAesthetic === e || e === "y" && D.scaledAesthetic === "ySecondary"), O = k.some((D) => D.visible), P = k.some((D) => D.visible || D.showGrid), S = p.label ?? I?.label ?? "", b =
|
|
13142
|
+
})), I = i.guides.axes.find((D) => D.scaledAesthetic === e), N = I?.position, k = i.guides.axes.filter((D) => D.scaledAesthetic === e || e === "y" && D.scaledAesthetic === "ySecondary"), O = k.some((D) => D.visible), P = k.some((D) => D.visible || D.showGrid), S = p.label ?? I?.label ?? "", b = e3[N === "bottom" || N === "top" || N === void 0 && e === "x" ? "horizontal" : "vertical"], E = e === "y" ? Du(i.spec) : null, z = E === null ? void 0 : q(i.spec.layers, E), U = i.guides.legends.drawn.some((D) => b.some((Me) => Me === D.position)), j = b.map((D) => ({
|
|
13140
13143
|
value: D,
|
|
13141
|
-
label: l(
|
|
13144
|
+
label: l(t3[D])
|
|
13142
13145
|
})), se = T(["auto", "edges"], (D) => l(D === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), ge = T(["linear", "log"], (D) => l(D === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), de = T([
|
|
13143
13146
|
"auto",
|
|
13144
13147
|
"zero",
|
|
@@ -13202,7 +13205,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13202
13205
|
}));
|
|
13203
13206
|
};
|
|
13204
13207
|
return /* @__PURE__ */ a(oe, {
|
|
13205
|
-
title: t ?? l(
|
|
13208
|
+
title: t ?? l(n3[e]),
|
|
13206
13209
|
layout: n,
|
|
13207
13210
|
preview: r,
|
|
13208
13211
|
children: /* @__PURE__ */ v(he, { children: [
|
|
@@ -13295,7 +13298,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13295
13298
|
] })
|
|
13296
13299
|
] })
|
|
13297
13300
|
});
|
|
13298
|
-
},
|
|
13301
|
+
}, r3 = (e) => {
|
|
13299
13302
|
const t = e?.domainMin ?? null;
|
|
13300
13303
|
return t === null ? "auto" : t === 0 ? "zero" : "custom";
|
|
13301
13304
|
}, Ko = (e, t) => {
|
|
@@ -13312,7 +13315,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13312
13315
|
disabled: i
|
|
13313
13316
|
})
|
|
13314
13317
|
});
|
|
13315
|
-
},
|
|
13318
|
+
}, a3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13316
13319
|
const r = te(), o = Q(r), i = R(), { Switch: l } = H();
|
|
13317
13320
|
if (!o) return null;
|
|
13318
13321
|
const s = o.config.content, c = (u) => {
|
|
@@ -13338,7 +13341,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13338
13341
|
onChange: d
|
|
13339
13342
|
})] })
|
|
13340
13343
|
});
|
|
13341
|
-
}, jo = /^[a-z][a-z\d+.-]*:/i,
|
|
13344
|
+
}, jo = /^[a-z][a-z\d+.-]*:/i, o3 = {}, i3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13342
13345
|
const r = te(), o = Q(r), i = R(), { Switch: l } = H();
|
|
13343
13346
|
if (!o) return null;
|
|
13344
13347
|
const s = o.config.content, c = (d) => {
|
|
@@ -13357,9 +13360,9 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13357
13360
|
checked: s.showSource,
|
|
13358
13361
|
onChange: c
|
|
13359
13362
|
})
|
|
13360
|
-
}), /* @__PURE__ */ a(
|
|
13363
|
+
}), /* @__PURE__ */ a(l3, { source: s.source ?? o3 })] })
|
|
13361
13364
|
});
|
|
13362
|
-
},
|
|
13365
|
+
}, l3 = ({ source: e }) => {
|
|
13363
13366
|
const t = te(), n = R(), { TextField: r } = H(), o = (c) => {
|
|
13364
13367
|
const d = (c.label ?? "") !== "" || (c.url ?? "") !== "";
|
|
13365
13368
|
t.commands.dispatch(new Nd({ source: d ? c : null }), { transient: !0 });
|
|
@@ -13392,7 +13395,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13392
13395
|
onCommit: t.commands.commit
|
|
13393
13396
|
})
|
|
13394
13397
|
})] });
|
|
13395
|
-
},
|
|
13398
|
+
}, s3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13396
13399
|
const r = te(), o = Q(r), i = R(), { Switch: l } = H();
|
|
13397
13400
|
if (!o) return null;
|
|
13398
13401
|
const s = o.config.content, c = (u) => {
|
|
@@ -13444,7 +13447,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13444
13447
|
2.5,
|
|
13445
13448
|
3,
|
|
13446
13449
|
4
|
|
13447
|
-
],
|
|
13450
|
+
], c3 = Ir.length / 2, d3 = { select: { target: "graph" } }, u3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13448
13451
|
const r = te(), o = Q(r), i = R(), { RadioGrid: l } = H(), s = Gt(o);
|
|
13449
13452
|
if (!o || !s) return null;
|
|
13450
13453
|
const c = s.graph().get("textScale"), d = (p) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${p}` }), u = Ir.map((p) => ({
|
|
@@ -13453,7 +13456,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13453
13456
|
})), h = (p) => {
|
|
13454
13457
|
const g = Ir.find((f) => `${f}` === p);
|
|
13455
13458
|
if (g === void 0) return;
|
|
13456
|
-
const m = qe(o.spec.styles.overrides,
|
|
13459
|
+
const m = qe(o.spec.styles.overrides, d3, xe(o.spec))?.declarations ?? {};
|
|
13457
13460
|
r.commands.dispatch(new Xe({
|
|
13458
13461
|
list: "overrides",
|
|
13459
13462
|
rule: {
|
|
@@ -13472,12 +13475,12 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13472
13475
|
children: /* @__PURE__ */ a(l, {
|
|
13473
13476
|
value: `${c}`,
|
|
13474
13477
|
options: u,
|
|
13475
|
-
columns:
|
|
13478
|
+
columns: c3,
|
|
13476
13479
|
onChange: h,
|
|
13477
13480
|
ariaLabel: i("editor.elementsPanel.textSizeSection.title")
|
|
13478
13481
|
})
|
|
13479
13482
|
});
|
|
13480
|
-
},
|
|
13483
|
+
}, h3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13481
13484
|
const r = te(), o = Q(r), i = R(), { Switch: l } = H();
|
|
13482
13485
|
if (!o) return null;
|
|
13483
13486
|
const s = o.config.content, c = (u) => {
|
|
@@ -13503,26 +13506,26 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13503
13506
|
onChange: d
|
|
13504
13507
|
})] })
|
|
13505
13508
|
});
|
|
13506
|
-
},
|
|
13509
|
+
}, QS = ({ children: e, ...t }) => /* @__PURE__ */ a(gc.Root, {
|
|
13507
13510
|
...t,
|
|
13508
13511
|
children: e ?? /* @__PURE__ */ v(K, { children: [
|
|
13509
|
-
/* @__PURE__ */ a(
|
|
13510
|
-
/* @__PURE__ */ a(
|
|
13511
|
-
/* @__PURE__ */ a(
|
|
13512
|
-
/* @__PURE__ */ a(
|
|
13513
|
-
/* @__PURE__ */ a(
|
|
13512
|
+
/* @__PURE__ */ a(h3, {}),
|
|
13513
|
+
/* @__PURE__ */ a(s3, {}),
|
|
13514
|
+
/* @__PURE__ */ a(a3, {}),
|
|
13515
|
+
/* @__PURE__ */ a(i3, {}),
|
|
13516
|
+
/* @__PURE__ */ a(u3, {})
|
|
13514
13517
|
] })
|
|
13515
|
-
}),
|
|
13518
|
+
}), e6 = ({ children: e, ...t }) => /* @__PURE__ */ a(gc.Root, {
|
|
13516
13519
|
...t,
|
|
13517
13520
|
children: e ?? /* @__PURE__ */ v(K, { children: [/* @__PURE__ */ a(Uo, { axis: "x" }), /* @__PURE__ */ a(Uo, { axis: "y" })] })
|
|
13518
|
-
}), Dn = (e) => `${e}px`, vc = (e) => `${Math.round(e * 100)}%`,
|
|
13521
|
+
}), Dn = (e) => `${e}px`, vc = (e) => `${Math.round(e * 100)}%`, p3 = (e) => `${e}°`, g3 = 24, m3 = { select: { target: "graph" } }, Xo = ["dim", "desaturate"], t6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13519
13522
|
const r = te(), o = Q(r), i = R(), { Slider: l, ToggleGroup: s } = H(), c = Gt(o);
|
|
13520
13523
|
if (!o || !c) return null;
|
|
13521
13524
|
const d = c.graph().get("cornerRadius"), u = Bu(o.spec), h = Xo.map((m) => ({
|
|
13522
13525
|
value: m,
|
|
13523
13526
|
label: i(m === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.gray")
|
|
13524
13527
|
})), p = (m) => {
|
|
13525
|
-
const f = qe(o.spec.styles.overrides,
|
|
13528
|
+
const f = qe(o.spec.styles.overrides, m3, xe(o.spec))?.declarations ?? {};
|
|
13526
13529
|
r.commands.dispatch(new Xe({
|
|
13527
13530
|
list: "overrides",
|
|
13528
13531
|
rule: {
|
|
@@ -13546,7 +13549,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13546
13549
|
children: /* @__PURE__ */ a(l, {
|
|
13547
13550
|
value: d,
|
|
13548
13551
|
min: 0,
|
|
13549
|
-
max:
|
|
13552
|
+
max: g3,
|
|
13550
13553
|
step: 1,
|
|
13551
13554
|
formatValue: Dn,
|
|
13552
13555
|
onChange: p,
|
|
@@ -13561,11 +13564,11 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13561
13564
|
})
|
|
13562
13565
|
})] })
|
|
13563
13566
|
});
|
|
13564
|
-
},
|
|
13567
|
+
}, v3 = {
|
|
13565
13568
|
none: 0,
|
|
13566
13569
|
md: 3.5,
|
|
13567
13570
|
full: 6.5
|
|
13568
|
-
},
|
|
13571
|
+
}, f3 = ({ cornerRadius: e, ...t }) => /* @__PURE__ */ a(M, {
|
|
13569
13572
|
viewBox: "0 0 18 18",
|
|
13570
13573
|
...t,
|
|
13571
13574
|
children: /* @__PURE__ */ a("rect", {
|
|
@@ -13573,18 +13576,18 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13573
13576
|
y: 2.5,
|
|
13574
13577
|
width: 13,
|
|
13575
13578
|
height: 13,
|
|
13576
|
-
rx:
|
|
13579
|
+
rx: v3[e],
|
|
13577
13580
|
stroke: "currentColor",
|
|
13578
13581
|
strokeWidth: 1.5
|
|
13579
13582
|
})
|
|
13580
|
-
}),
|
|
13583
|
+
}), b3 = 0.05, qo = [
|
|
13581
13584
|
"none",
|
|
13582
13585
|
"md",
|
|
13583
13586
|
"full"
|
|
13584
13587
|
], fc = {
|
|
13585
13588
|
base: ["baseStart", "baseEnd"],
|
|
13586
13589
|
tip: ["tipStart", "tipEnd"]
|
|
13587
|
-
},
|
|
13590
|
+
}, n6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13588
13591
|
const r = te(), o = Q(r), i = R(), { Slider: l, ToggleGroup: s } = H(), c = o ? Ki(o.spec.layers, "bar") : void 0, d = Ca(o, c?.id ?? null, "bar");
|
|
13589
13592
|
if (!o || !c || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
|
|
13590
13593
|
const u = (f) => {
|
|
@@ -13607,7 +13610,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13607
13610
|
}, g = qo.map((f) => ({
|
|
13608
13611
|
value: f,
|
|
13609
13612
|
label: i(`editor.graphPanel.barSection.radiusOptions.${f}`),
|
|
13610
|
-
icon: /* @__PURE__ */ a(
|
|
13613
|
+
icon: /* @__PURE__ */ a(f3, { cornerRadius: f })
|
|
13611
13614
|
})), m = Zi(c.params, o.coordSystem.type);
|
|
13612
13615
|
return /* @__PURE__ */ a(oe, {
|
|
13613
13616
|
title: e ?? i("editor.graphPanel.barSection.title"),
|
|
@@ -13620,7 +13623,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13620
13623
|
value: m,
|
|
13621
13624
|
min: Id,
|
|
13622
13625
|
max: Ld,
|
|
13623
|
-
step:
|
|
13626
|
+
step: b3,
|
|
13624
13627
|
formatValue: vc,
|
|
13625
13628
|
onChange: u,
|
|
13626
13629
|
onCommit: r.commands.commit
|
|
@@ -13672,7 +13675,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13672
13675
|
floodOpacity: "0.16"
|
|
13673
13676
|
})]
|
|
13674
13677
|
}) })] });
|
|
13675
|
-
}, Fn = "qdaoth0",
|
|
13678
|
+
}, Fn = "qdaoth0", y3 = (e) => /* @__PURE__ */ v(M, {
|
|
13676
13679
|
viewBox: "0 0 31 33",
|
|
13677
13680
|
...e,
|
|
13678
13681
|
children: [/* @__PURE__ */ a(_n, { children: /* @__PURE__ */ a("path", {
|
|
@@ -13684,7 +13687,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13684
13687
|
fill: "currentColor",
|
|
13685
13688
|
d: "M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z"
|
|
13686
13689
|
})]
|
|
13687
|
-
}),
|
|
13690
|
+
}), S3 = (e) => /* @__PURE__ */ a(M, {
|
|
13688
13691
|
viewBox: "0 0 32 32",
|
|
13689
13692
|
...e,
|
|
13690
13693
|
children: /* @__PURE__ */ v(_n, { children: [/* @__PURE__ */ a("path", {
|
|
@@ -13694,7 +13697,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13694
13697
|
fill: "currentColor",
|
|
13695
13698
|
d: "M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z"
|
|
13696
13699
|
})] })
|
|
13697
|
-
}),
|
|
13700
|
+
}), C3 = (e) => /* @__PURE__ */ v(M, {
|
|
13698
13701
|
viewBox: "0 0 32 33",
|
|
13699
13702
|
...e,
|
|
13700
13703
|
children: [/* @__PURE__ */ a(_n, { children: /* @__PURE__ */ a("path", {
|
|
@@ -13708,7 +13711,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13708
13711
|
clipRule: "evenodd",
|
|
13709
13712
|
d: "M25.25 22C25.25 20.7574 24.2426 19.75 23 19.75C21.7574 19.75 20.75 20.7574 20.75 22C20.75 23.2426 21.7574 24.25 23 24.25C24.2426 24.25 25.25 23.2426 25.25 22ZM23 18.25C25.0711 18.25 26.75 19.9289 26.75 22C26.75 24.0711 25.0711 25.75 23 25.75C20.9289 25.75 19.25 24.0711 19.25 22C19.25 19.9289 20.9289 18.25 23 18.25ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9ZM9.75 12.675C11.4617 12.3275 12.75 10.8142 12.75 9C12.75 6.92893 11.0711 5.25 9 5.25C6.92893 5.25 5.25 6.92893 5.25 9C5.25 10.8142 6.53832 12.3275 8.25 12.675L8.25 24C8.25 24.4142 8.58579 24.75 9 24.75L16 24.75C16.4142 24.75 16.75 24.4142 16.75 24L16.75 7.75L22.25 7.75L22.25 14.1893L21.0303 12.9697C20.7374 12.6768 20.2626 12.6768 19.9697 12.9697C19.6768 13.2626 19.6768 13.7374 19.9697 14.0303L22.4697 16.5303C22.7626 16.8232 23.2374 16.8232 23.5303 16.5303L26.0303 14.0303C26.3232 13.7374 26.3232 13.2626 26.0303 12.9697C25.7374 12.6768 25.2626 12.6768 24.9697 12.9697L23.75 14.1893L23.75 7C23.75 6.58579 23.4142 6.25 23 6.25L16 6.25C15.5858 6.25 15.25 6.58579 15.25 7L15.25 23.25L9.75 23.25L9.75 12.675Z"
|
|
13710
13713
|
})]
|
|
13711
|
-
}),
|
|
13714
|
+
}), w3 = (e) => /* @__PURE__ */ v(M, {
|
|
13712
13715
|
viewBox: "0 0 32 33",
|
|
13713
13716
|
...e,
|
|
13714
13717
|
children: [/* @__PURE__ */ a(_n, { children: /* @__PURE__ */ a("path", {
|
|
@@ -13718,21 +13721,21 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13718
13721
|
fill: "currentColor",
|
|
13719
13722
|
d: "M8.41371 5H20.7271C21.1595 5 21.5325 5 21.8398 5.02507C22.1641 5.05157 22.4867 5.11007 22.7971 5.26822C23.2601 5.50416 23.6366 5.88064 23.8726 6.3437C24.0307 6.65409 24.0892 6.97666 24.1157 7.30097C24.1408 7.60823 24.1408 7.98127 24.1408 8.41369V9.10155C24.1408 9.55465 23.7735 9.92195 23.3205 9.92195C22.8674 9.92195 22.5001 9.55465 22.5001 9.10155V8.44533C22.5001 7.97237 22.4995 7.66699 22.4805 7.43457C22.4623 7.21172 22.4314 7.12909 22.4107 7.08853C22.3321 6.93418 22.2066 6.80869 22.0522 6.73004C22.0117 6.70938 21.9291 6.67847 21.7062 6.66026C21.4738 6.64127 21.1684 6.64063 20.6954 6.64063H15.3907V24.6877H20.0392C20.4922 24.6877 20.8595 25.0549 20.8595 25.508C20.8595 25.961 20.4922 26.3283 20.0392 26.3283H9.10159C8.64854 26.3283 8.28127 25.961 8.28127 25.508C8.28127 25.0549 8.64854 24.6877 9.10159 24.6877H13.7501V6.64063H8.44533C7.97238 6.64063 7.66699 6.64127 7.43457 6.66026C7.21172 6.67847 7.1291 6.70938 7.08854 6.73004C6.93418 6.80869 6.80869 6.93418 6.73004 7.08853C6.70938 7.12909 6.67847 7.21172 6.66026 7.43457C6.64127 7.66699 6.64063 7.97237 6.64063 8.44533V9.10155C6.64063 9.55465 6.27337 9.92195 5.82032 9.92195C5.36727 9.92195 5 9.55465 5 9.10155V8.41371C5 7.98128 5 7.60823 5.02508 7.30097C5.05157 6.97666 5.11007 6.65409 5.26823 6.3437C5.50417 5.88064 5.88064 5.50416 6.3437 5.26822C6.65409 5.11007 6.97666 5.05157 7.30097 5.02507C7.60824 5 7.98129 5 8.41371 5Z"
|
|
13720
13723
|
})]
|
|
13721
|
-
}),
|
|
13724
|
+
}), x3 = {
|
|
13722
13725
|
x: 0.5,
|
|
13723
13726
|
y: 0.5
|
|
13724
|
-
},
|
|
13727
|
+
}, k3 = 0.2, T3 = {
|
|
13725
13728
|
x: 0.375,
|
|
13726
13729
|
y: 0.25,
|
|
13727
13730
|
width: 0.25,
|
|
13728
13731
|
height: 0.5
|
|
13729
|
-
},
|
|
13732
|
+
}, A3 = { zOrder: "background" }, P3 = {
|
|
13730
13733
|
x: 0.4,
|
|
13731
13734
|
y: 0.6
|
|
13732
|
-
},
|
|
13735
|
+
}, L3 = {
|
|
13733
13736
|
x: 0.6,
|
|
13734
13737
|
y: 0.4
|
|
13735
|
-
},
|
|
13738
|
+
}, I3 = "relativeDifference", r6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13736
13739
|
const r = te(), o = Q(r), i = R(), { Button: l } = H();
|
|
13737
13740
|
if (!o) return null;
|
|
13738
13741
|
const s = () => {
|
|
@@ -13740,12 +13743,12 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13740
13743
|
kind: "text",
|
|
13741
13744
|
annotation: {
|
|
13742
13745
|
...zi,
|
|
13743
|
-
content:
|
|
13746
|
+
content: M3(i("editor.annotatePanel.callOutSection.text")),
|
|
13744
13747
|
at: {
|
|
13745
13748
|
anchorType: "panel",
|
|
13746
|
-
...
|
|
13749
|
+
...x3
|
|
13747
13750
|
},
|
|
13748
|
-
width:
|
|
13751
|
+
width: k3
|
|
13749
13752
|
}
|
|
13750
13753
|
}));
|
|
13751
13754
|
}, c = () => {
|
|
@@ -13755,11 +13758,11 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13755
13758
|
...Si,
|
|
13756
13759
|
start: {
|
|
13757
13760
|
anchorType: "panel",
|
|
13758
|
-
...
|
|
13761
|
+
...P3
|
|
13759
13762
|
},
|
|
13760
13763
|
end: {
|
|
13761
13764
|
anchorType: "panel",
|
|
13762
|
-
...
|
|
13765
|
+
...L3
|
|
13763
13766
|
}
|
|
13764
13767
|
}
|
|
13765
13768
|
}));
|
|
@@ -13768,10 +13771,10 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13768
13771
|
kind: "shape",
|
|
13769
13772
|
annotation: {
|
|
13770
13773
|
...ki,
|
|
13771
|
-
...
|
|
13774
|
+
...A3,
|
|
13772
13775
|
region: {
|
|
13773
13776
|
anchorType: "panel",
|
|
13774
|
-
...
|
|
13777
|
+
...T3
|
|
13775
13778
|
}
|
|
13776
13779
|
}
|
|
13777
13780
|
}));
|
|
@@ -13782,7 +13785,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13782
13785
|
annotation: {
|
|
13783
13786
|
...wi,
|
|
13784
13787
|
...p,
|
|
13785
|
-
label:
|
|
13788
|
+
label: I3
|
|
13786
13789
|
}
|
|
13787
13790
|
}));
|
|
13788
13791
|
}, h = o.coordSystem.type === "cartesian";
|
|
@@ -13793,31 +13796,31 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13793
13796
|
children: /* @__PURE__ */ v(hc, { children: [
|
|
13794
13797
|
/* @__PURE__ */ a(l, {
|
|
13795
13798
|
variant: "tile",
|
|
13796
|
-
icon: /* @__PURE__ */ a(
|
|
13799
|
+
icon: /* @__PURE__ */ a(w3, { size: "xl" }),
|
|
13797
13800
|
label: i("editor.annotatePanel.callOutSection.text"),
|
|
13798
13801
|
onClick: s
|
|
13799
13802
|
}),
|
|
13800
13803
|
/* @__PURE__ */ a(l, {
|
|
13801
13804
|
variant: "tile",
|
|
13802
|
-
icon: /* @__PURE__ */ a(
|
|
13805
|
+
icon: /* @__PURE__ */ a(y3, { size: "xl" }),
|
|
13803
13806
|
label: i("editor.annotatePanel.callOutSection.arrow"),
|
|
13804
13807
|
onClick: c
|
|
13805
13808
|
}),
|
|
13806
13809
|
/* @__PURE__ */ a(l, {
|
|
13807
13810
|
variant: "tile",
|
|
13808
|
-
icon: /* @__PURE__ */ a(
|
|
13811
|
+
icon: /* @__PURE__ */ a(S3, { size: "xl" }),
|
|
13809
13812
|
label: i("editor.annotatePanel.callOutSection.box"),
|
|
13810
13813
|
onClick: d
|
|
13811
13814
|
}),
|
|
13812
13815
|
h && /* @__PURE__ */ a(l, {
|
|
13813
13816
|
variant: "tile",
|
|
13814
|
-
icon: /* @__PURE__ */ a(
|
|
13817
|
+
icon: /* @__PURE__ */ a(C3, { size: "xl" }),
|
|
13815
13818
|
label: i("editor.annotatePanel.callOutSection.difference"),
|
|
13816
13819
|
onClick: u
|
|
13817
13820
|
})
|
|
13818
13821
|
] })
|
|
13819
13822
|
});
|
|
13820
|
-
},
|
|
13823
|
+
}, M3 = (e) => ({
|
|
13821
13824
|
type: "doc",
|
|
13822
13825
|
content: [{
|
|
13823
13826
|
type: "paragraph",
|
|
@@ -13826,7 +13829,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13826
13829
|
text: e
|
|
13827
13830
|
}]
|
|
13828
13831
|
}]
|
|
13829
|
-
}),
|
|
13832
|
+
}), a6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13830
13833
|
const r = te(), o = Q(r), i = R(), { ToggleGroup: l } = H();
|
|
13831
13834
|
if (!o) return null;
|
|
13832
13835
|
const s = Tn(o.spec);
|
|
@@ -13852,13 +13855,13 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13852
13855
|
ariaLabel: i("editor.graphPanel.comboSection.title")
|
|
13853
13856
|
})
|
|
13854
13857
|
});
|
|
13855
|
-
},
|
|
13858
|
+
}, E3 = 0.1, O3 = 20, o6 = ({ title: e, preview: t }) => {
|
|
13856
13859
|
const n = te(), r = Q(n), o = R(), { NumberField: i, TextField: l } = H();
|
|
13857
13860
|
if (!r || r.coordSystem.type === "polar") return null;
|
|
13858
13861
|
const s = vu(r.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), d = Fu(s?.mapping.y), u = typeof d == "number" ? d : null, h = (m) => {
|
|
13859
13862
|
const f = new Qd({
|
|
13860
13863
|
showGoalLine: m,
|
|
13861
|
-
value:
|
|
13864
|
+
value: R3(r),
|
|
13862
13865
|
...s !== void 0 && { layerId: s.id }
|
|
13863
13866
|
});
|
|
13864
13867
|
n.commands.dispatch(f);
|
|
@@ -13877,7 +13880,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13877
13880
|
});
|
|
13878
13881
|
n.commands.dispatch(f, { transient: !0 });
|
|
13879
13882
|
};
|
|
13880
|
-
return /* @__PURE__ */ a(
|
|
13883
|
+
return /* @__PURE__ */ a(Qy, {
|
|
13881
13884
|
title: c,
|
|
13882
13885
|
preview: t,
|
|
13883
13886
|
checked: s !== void 0,
|
|
@@ -13902,14 +13905,14 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13902
13905
|
})
|
|
13903
13906
|
})] })
|
|
13904
13907
|
});
|
|
13905
|
-
},
|
|
13908
|
+
}, R3 = (e) => {
|
|
13906
13909
|
const t = (e.scales.y?.domain ?? []).filter((l) => typeof l == "number");
|
|
13907
13910
|
if (t.length === 0) return 0;
|
|
13908
13911
|
const n = Math.max(...t), r = n - Math.min(...t), o = r > 0 ? r : Math.abs(n);
|
|
13909
13912
|
if (o === 0) return 0;
|
|
13910
|
-
const i = Math.min(
|
|
13911
|
-
return Number((n + o *
|
|
13912
|
-
},
|
|
13913
|
+
const i = Math.min(O3, Math.max(0, 1 - Math.floor(Math.log10(o))));
|
|
13914
|
+
return Number((n + o * E3).toFixed(i));
|
|
13915
|
+
}, i6 = ({ layerId: e, title: t, layout: n = "collapsible", preview: r }) => {
|
|
13913
13916
|
const o = te(), i = Q(o), l = R(), { Switch: s } = H();
|
|
13914
13917
|
if (!i) return null;
|
|
13915
13918
|
const c = e === void 0 ? i.layers[0] : q(i.layers, e);
|
|
@@ -13979,7 +13982,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13979
13982
|
})
|
|
13980
13983
|
] })
|
|
13981
13984
|
});
|
|
13982
|
-
},
|
|
13985
|
+
}, N3 = 3, l6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13983
13986
|
const r = te(), o = Q(r), i = R(), { RadioGrid: l } = H(), s = _(() => It.map(({ name: h, icon: p, summary: g }) => ({
|
|
13984
13987
|
value: h,
|
|
13985
13988
|
label: i(`editor.graphTypes.${h}`),
|
|
@@ -13998,12 +14001,12 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
13998
14001
|
children: /* @__PURE__ */ a(l, {
|
|
13999
14002
|
value: d?.name ?? "",
|
|
14000
14003
|
options: s,
|
|
14001
|
-
columns:
|
|
14004
|
+
columns: N3,
|
|
14002
14005
|
onChange: u,
|
|
14003
14006
|
ariaLabel: i("editor.graphPanel.graphTypeSection.title")
|
|
14004
14007
|
})
|
|
14005
14008
|
});
|
|
14006
|
-
},
|
|
14009
|
+
}, s6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14007
14010
|
const r = te(), o = Q(r), i = R(), { Slider: l, Switch: s, ToggleGroup: c } = H(), d = Gt(o), u = o !== null && d !== null ? Vl(o, d) : null;
|
|
14008
14011
|
if (u === null) return null;
|
|
14009
14012
|
const h = u.axes.filter((x) => x.supportsGrid);
|
|
@@ -14027,7 +14030,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
14027
14030
|
layout: t,
|
|
14028
14031
|
preview: n,
|
|
14029
14032
|
children: /* @__PURE__ */ v(he, { children: [h.map((x) => /* @__PURE__ */ a(L, {
|
|
14030
|
-
label: i(
|
|
14033
|
+
label: i(D3(x)),
|
|
14031
14034
|
children: /* @__PURE__ */ a(s, {
|
|
14032
14035
|
checked: x.showGrid,
|
|
14033
14036
|
onChange: m(x.scaledAesthetic)
|
|
@@ -14052,21 +14055,21 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
14052
14055
|
})
|
|
14053
14056
|
})] })] })
|
|
14054
14057
|
});
|
|
14055
|
-
},
|
|
14058
|
+
}, D3 = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaledAesthetic === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", _3 = "total", bc = [
|
|
14056
14059
|
"total",
|
|
14057
14060
|
"average",
|
|
14058
14061
|
"current"
|
|
14059
|
-
],
|
|
14062
|
+
], F3 = ["total"], Zo = ["previous", "first"], Jo = [
|
|
14060
14063
|
"auto",
|
|
14061
14064
|
"small",
|
|
14062
14065
|
"medium",
|
|
14063
14066
|
"large"
|
|
14064
|
-
],
|
|
14067
|
+
], c6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14065
14068
|
const r = te(), o = Q(r), i = R(), { Switch: l, ToggleGroup: s } = H();
|
|
14066
14069
|
if (!o) return null;
|
|
14067
14070
|
const c = o.config.headline, d = c.show !== "none", u = o.coordSystem, h = u.type === "polar", p = u.type === "polar" && u.innerRadius > 0, g = o.layers.some((P) => P.summary.grandTotal !== void 0);
|
|
14068
14071
|
if (h && !g) return null;
|
|
14069
|
-
const m = h ?
|
|
14072
|
+
const m = h ? F3 : bc, f = o.guides.headline, y = f?.kind === "perGroup" && f.items.some((P) => P.comparison !== null), x = m.map((P) => ({
|
|
14070
14073
|
value: P,
|
|
14071
14074
|
label: i(`editor.graphPanel.headlineNumberSection.metrics.${P}`)
|
|
14072
14075
|
})), C = Zo.map((P) => ({
|
|
@@ -14082,7 +14085,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
14082
14085
|
value: "center",
|
|
14083
14086
|
label: i("editor.graphPanel.headlineNumberSection.position.center")
|
|
14084
14087
|
}], T = (P) => {
|
|
14085
|
-
r.commands.dispatch(new Pa({ show: P ?
|
|
14088
|
+
r.commands.dispatch(new Pa({ show: P ? _3 : "none" }));
|
|
14086
14089
|
}, I = (P) => {
|
|
14087
14090
|
const S = m.find((b) => b === P);
|
|
14088
14091
|
S && r.commands.dispatch(new Pa({ show: S }));
|
|
@@ -14098,7 +14101,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
14098
14101
|
return /* @__PURE__ */ a(oe, {
|
|
14099
14102
|
title: e ?? i("editor.graphPanel.headlineNumberSection.title"),
|
|
14100
14103
|
layout: t,
|
|
14101
|
-
preview: n ??
|
|
14104
|
+
preview: n ?? z3(i, c.show),
|
|
14102
14105
|
children: /* @__PURE__ */ v(he, { children: [/* @__PURE__ */ a(L, {
|
|
14103
14106
|
label: i("editor.graphPanel.headlineNumberSection.toggle"),
|
|
14104
14107
|
children: /* @__PURE__ */ a(l, {
|
|
@@ -14142,7 +14145,7 @@ var qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
|
|
|
14142
14145
|
})
|
|
14143
14146
|
] })] })
|
|
14144
14147
|
});
|
|
14145
|
-
},
|
|
14148
|
+
}, z3 = (e, t) => {
|
|
14146
14149
|
const n = bc.find((r) => r === t);
|
|
14147
14150
|
return n && e(`editor.graphPanel.headlineNumberSection.metrics.${n}`);
|
|
14148
14151
|
};
|
|
@@ -14157,7 +14160,7 @@ var Zn = [
|
|
|
14157
14160
|
"start",
|
|
14158
14161
|
"center",
|
|
14159
14162
|
"end"
|
|
14160
|
-
],
|
|
14163
|
+
], B3 = {
|
|
14161
14164
|
row: {
|
|
14162
14165
|
start: "left",
|
|
14163
14166
|
end: "right"
|
|
@@ -14170,7 +14173,7 @@ var Zn = [
|
|
|
14170
14173
|
"auto",
|
|
14171
14174
|
"pill",
|
|
14172
14175
|
"direct"
|
|
14173
|
-
],
|
|
14176
|
+
], d6 = ({ positions: e, title: t, layout: n = "collapsible", preview: r }) => {
|
|
14174
14177
|
const o = te(), i = Q(o), l = R(), { ToggleGroup: s } = H(), c = pi();
|
|
14175
14178
|
if (!i) return null;
|
|
14176
14179
|
const d = i.config.legend.position, u = e ?? Zn, h = i.guides.legends.drawn[0], p = ou({
|
|
@@ -14191,7 +14194,7 @@ var Zn = [
|
|
|
14191
14194
|
}, A = (E) => {
|
|
14192
14195
|
const z = ei.find((U) => U === E);
|
|
14193
14196
|
z && o.commands.dispatch(new $d({ display: z }));
|
|
14194
|
-
}, T = h?.position === "left" || h?.position === "right" ? "column" : "row", I = T === "row" ? "ltr" : c, N = (E) => l(E === "start" || E === "end" ? `editor.graphPanel.legendSection.${
|
|
14197
|
+
}, T = h?.position === "left" || h?.position === "right" ? "column" : "row", I = T === "row" ? "ltr" : c, N = (E) => l(E === "start" || E === "end" ? `editor.graphPanel.legendSection.${B3[T][E]}` : `editor.graphPanel.legendSection.align.${E}`), k = Qo.map((E) => ({
|
|
14195
14198
|
value: E,
|
|
14196
14199
|
label: N(E)
|
|
14197
14200
|
})), O = ei.map((E) => ({
|
|
@@ -14239,15 +14242,15 @@ var Zn = [
|
|
|
14239
14242
|
})
|
|
14240
14243
|
] })
|
|
14241
14244
|
});
|
|
14242
|
-
},
|
|
14245
|
+
}, H3 = 1, G3 = 20, $3 = 0.5, yc = ({ layerId: e }) => {
|
|
14243
14246
|
const t = te(), n = Q(t), { Slider: r } = H(), o = Ca(n, e, "point");
|
|
14244
14247
|
if (!n) return null;
|
|
14245
14248
|
const i = q(n.layers, e)?.data?.findFirst((c) => (o?.get("size", c) ?? 0) > 0) ?? void 0, l = o?.get("size", i) ?? Ci;
|
|
14246
14249
|
return /* @__PURE__ */ a(r, {
|
|
14247
14250
|
value: l,
|
|
14248
|
-
min:
|
|
14249
|
-
max:
|
|
14250
|
-
step:
|
|
14251
|
+
min: H3,
|
|
14252
|
+
max: G3,
|
|
14253
|
+
step: $3,
|
|
14251
14254
|
formatValue: Dn,
|
|
14252
14255
|
onChange: (c) => {
|
|
14253
14256
|
const d = new wn({
|
|
@@ -14270,7 +14273,7 @@ var Zn = [
|
|
|
14270
14273
|
}));
|
|
14271
14274
|
}
|
|
14272
14275
|
}) : null;
|
|
14273
|
-
},
|
|
14276
|
+
}, u6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14274
14277
|
const r = te(), o = Q(r), i = R(), { Select: l, Slider: s, Switch: c, ToggleGroup: d } = H(), u = Gt(o), h = Ki(o?.spec.layers ?? [], "line", "area"), p = o && u && h ? Zr(o, u, h.id) : null;
|
|
14275
14278
|
if (!o || !p) return null;
|
|
14276
14279
|
const g = p.missingValueOptions.map((T) => ({
|
|
@@ -14377,26 +14380,26 @@ var Zn = [
|
|
|
14377
14380
|
})
|
|
14378
14381
|
] })
|
|
14379
14382
|
});
|
|
14380
|
-
}, Mr = "\0none",
|
|
14383
|
+
}, Mr = "\0none", V3 = [
|
|
14381
14384
|
"x",
|
|
14382
14385
|
"y",
|
|
14383
14386
|
"color",
|
|
14384
14387
|
"size",
|
|
14385
14388
|
"label"
|
|
14386
|
-
],
|
|
14389
|
+
], W3 = {
|
|
14387
14390
|
x: "editor.graphPanel.mappingSection.x",
|
|
14388
14391
|
y: "editor.graphPanel.mappingSection.y",
|
|
14389
14392
|
color: "editor.graphPanel.mappingSection.color",
|
|
14390
14393
|
size: "editor.graphPanel.mappingSection.size",
|
|
14391
14394
|
label: "editor.graphPanel.mappingSection.label"
|
|
14392
|
-
},
|
|
14393
|
-
const n = te(), r = Q(n), o = R(), { Select: i } = H(), l = o("editor.graphPanel.mappingSection.none"), s = r?.spec, c = _(() => s === void 0 ? [] : Gu(s,
|
|
14395
|
+
}, h6 = ({ title: e, layout: t = "collapsible" }) => {
|
|
14396
|
+
const n = te(), r = Q(n), o = R(), { Select: i } = H(), l = o("editor.graphPanel.mappingSection.none"), s = r?.spec, c = _(() => s === void 0 ? [] : Gu(s, V3).map(({ aesthetic: d, variables: u, required: h }) => {
|
|
14394
14397
|
const p = $u(s.mapping, d);
|
|
14395
14398
|
return {
|
|
14396
14399
|
aesthetic: d,
|
|
14397
|
-
label: o(
|
|
14400
|
+
label: o(W3[d]),
|
|
14398
14401
|
value: p ?? (h ? null : Mr),
|
|
14399
|
-
options:
|
|
14402
|
+
options: U3(u, p, h ? null : l),
|
|
14400
14403
|
chooseColumn: (g) => {
|
|
14401
14404
|
n.commands.dispatch(new Wd({
|
|
14402
14405
|
aesthetic: d,
|
|
@@ -14423,7 +14426,7 @@ var Zn = [
|
|
|
14423
14426
|
})
|
|
14424
14427
|
}, d)) })
|
|
14425
14428
|
}) : null;
|
|
14426
|
-
},
|
|
14429
|
+
}, U3 = (e, t, n) => {
|
|
14427
14430
|
const r = t !== null && !e.includes(t) ? [t, ...e] : e;
|
|
14428
14431
|
return [...n === null ? [] : [{
|
|
14429
14432
|
value: Mr,
|
|
@@ -14432,7 +14435,7 @@ var Zn = [
|
|
|
14432
14435
|
value: o,
|
|
14433
14436
|
label: o
|
|
14434
14437
|
}))];
|
|
14435
|
-
},
|
|
14438
|
+
}, K3 = "k", j3 = 2, X3 = 0, q3 = 5, Er = [
|
|
14436
14439
|
{
|
|
14437
14440
|
value: "k",
|
|
14438
14441
|
labelKey: "thousands"
|
|
@@ -14445,10 +14448,10 @@ var Zn = [
|
|
|
14445
14448
|
value: "b",
|
|
14446
14449
|
labelKey: "billions"
|
|
14447
14450
|
}
|
|
14448
|
-
],
|
|
14451
|
+
], Y3 = ["auto", "none"], p6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14449
14452
|
const r = te(), o = Q(r), i = R(), { NumberField: l, ToggleGroup: s } = H();
|
|
14450
14453
|
if (!o) return null;
|
|
14451
|
-
const { abbreviation: c, decimals: d } = o.config.numberFormat, u =
|
|
14454
|
+
const { abbreviation: c, decimals: d } = o.config.numberFormat, u = Z3(c) !== void 0, h = d !== "auto", p = (w) => w.map((A) => ({
|
|
14452
14455
|
value: A,
|
|
14453
14456
|
label: i(`editor.graphPanel.numberFormat.options.${A}`)
|
|
14454
14457
|
})), g = Er.map(({ value: w, labelKey: A }) => ({
|
|
@@ -14457,13 +14460,13 @@ var Zn = [
|
|
|
14457
14460
|
})), m = (w) => {
|
|
14458
14461
|
r.commands.dispatch(new Ud({ abbreviation: w }));
|
|
14459
14462
|
}, f = (w) => {
|
|
14460
|
-
const A =
|
|
14461
|
-
m(A ??
|
|
14463
|
+
const A = Y3.find((T) => T === w);
|
|
14464
|
+
m(A ?? K3);
|
|
14462
14465
|
}, y = (w) => {
|
|
14463
14466
|
const A = Er.find((T) => T.value === w);
|
|
14464
14467
|
A && m(A.value);
|
|
14465
14468
|
}, x = (w) => {
|
|
14466
|
-
r.commands.dispatch(new La({ decimals: w === "custom" ?
|
|
14469
|
+
r.commands.dispatch(new La({ decimals: w === "custom" ? j3 : "auto" }));
|
|
14467
14470
|
}, C = (w) => {
|
|
14468
14471
|
w !== null && r.commands.dispatch(new La({ decimals: w }), { transient: !0 });
|
|
14469
14472
|
};
|
|
@@ -14504,18 +14507,18 @@ var Zn = [
|
|
|
14504
14507
|
label: i("editor.graphPanel.numberFormat.valueLabel"),
|
|
14505
14508
|
children: /* @__PURE__ */ a(l, {
|
|
14506
14509
|
value: d,
|
|
14507
|
-
min:
|
|
14508
|
-
max:
|
|
14510
|
+
min: X3,
|
|
14511
|
+
max: q3,
|
|
14509
14512
|
onChange: C,
|
|
14510
14513
|
onCommit: r.commands.commit
|
|
14511
14514
|
})
|
|
14512
14515
|
})
|
|
14513
14516
|
] })
|
|
14514
14517
|
});
|
|
14515
|
-
},
|
|
14518
|
+
}, Z3 = (e) => Er.find((t) => t.value === e), g6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14516
14519
|
const r = Q(te()), o = R();
|
|
14517
14520
|
if (!r) return null;
|
|
14518
|
-
const i =
|
|
14521
|
+
const i = J3(r.spec.layers);
|
|
14519
14522
|
return i ? /* @__PURE__ */ a(oe, {
|
|
14520
14523
|
title: e ?? o("editor.graphPanel.pointSize.label"),
|
|
14521
14524
|
layout: t,
|
|
@@ -14525,10 +14528,10 @@ var Zn = [
|
|
|
14525
14528
|
children: /* @__PURE__ */ a(yc, { layerId: i.id })
|
|
14526
14529
|
}), /* @__PURE__ */ a(Sc, { layerId: i.id })] })
|
|
14527
14530
|
}) : null;
|
|
14528
|
-
},
|
|
14531
|
+
}, J3 = (e) => {
|
|
14529
14532
|
const t = or(e, "line", "area");
|
|
14530
14533
|
return or(e, "point").find((n) => !ji(n, t));
|
|
14531
|
-
},
|
|
14534
|
+
}, Q3 = 0.9, eS = 360, tS = 0.05, nS = 15, m6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14532
14535
|
const r = te(), o = Q(r), i = R(), { Slider: l } = H();
|
|
14533
14536
|
if (!o || o.spec.coords.coordType !== "polar") return null;
|
|
14534
14537
|
const { innerRadius: s, startAngle: c } = o.spec.coords.params, d = (h) => {
|
|
@@ -14545,8 +14548,8 @@ var Zn = [
|
|
|
14545
14548
|
children: /* @__PURE__ */ a(l, {
|
|
14546
14549
|
value: s,
|
|
14547
14550
|
min: 0,
|
|
14548
|
-
max:
|
|
14549
|
-
step:
|
|
14551
|
+
max: Q3,
|
|
14552
|
+
step: tS,
|
|
14550
14553
|
formatValue: vc,
|
|
14551
14554
|
onChange: d,
|
|
14552
14555
|
onCommit: r.commands.commit
|
|
@@ -14556,15 +14559,15 @@ var Zn = [
|
|
|
14556
14559
|
children: /* @__PURE__ */ a(l, {
|
|
14557
14560
|
value: c,
|
|
14558
14561
|
min: 0,
|
|
14559
|
-
max:
|
|
14560
|
-
step:
|
|
14561
|
-
formatValue:
|
|
14562
|
+
max: eS - 1,
|
|
14563
|
+
step: nS,
|
|
14564
|
+
formatValue: p3,
|
|
14562
14565
|
onChange: u,
|
|
14563
14566
|
onCommit: r.commands.commit
|
|
14564
14567
|
})
|
|
14565
14568
|
})] })
|
|
14566
14569
|
});
|
|
14567
|
-
},
|
|
14570
|
+
}, rS = (e) => /* @__PURE__ */ v(M, {
|
|
14568
14571
|
...e,
|
|
14569
14572
|
children: [
|
|
14570
14573
|
/* @__PURE__ */ a("path", {
|
|
@@ -14618,10 +14621,10 @@ var Zn = [
|
|
|
14618
14621
|
"logarithmic",
|
|
14619
14622
|
"power",
|
|
14620
14623
|
"loess"
|
|
14621
|
-
],
|
|
14624
|
+
], aS = "linear", v6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
14622
14625
|
const r = te(), o = Q(r), i = R(), { Select: l, Switch: s } = H(), { options: c, findValue: d } = En(o, r.formattingLocale);
|
|
14623
14626
|
if (!o || o.coordSystem.type === "polar") return null;
|
|
14624
|
-
const u = Su(o.spec.layers), h = mu(o.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method :
|
|
14627
|
+
const u = Su(o.spec.layers), h = mu(o.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : aS, g = oS(h), m = ni.map((A) => ({
|
|
14625
14628
|
value: A,
|
|
14626
14629
|
label: i(`editor.annotationsPanel.trendType.options.${A}`)
|
|
14627
14630
|
})), f = (A, T = {}) => {
|
|
@@ -14663,7 +14666,7 @@ var Zn = [
|
|
|
14663
14666
|
}),
|
|
14664
14667
|
/* @__PURE__ */ a(L, {
|
|
14665
14668
|
label: i("editor.annotationsPanel.trendsAndAveragesSection.average"),
|
|
14666
|
-
icon: /* @__PURE__ */ a(
|
|
14669
|
+
icon: /* @__PURE__ */ a(rS, { size: "lg" }),
|
|
14667
14670
|
children: /* @__PURE__ */ a(s, {
|
|
14668
14671
|
checked: h !== void 0,
|
|
14669
14672
|
onChange: x
|
|
@@ -14681,67 +14684,67 @@ var Zn = [
|
|
|
14681
14684
|
})
|
|
14682
14685
|
] })
|
|
14683
14686
|
});
|
|
14684
|
-
},
|
|
14687
|
+
}, oS = (e) => {
|
|
14685
14688
|
const t = e?.transforms.find((n) => n.transformType === "filter")?.options.value;
|
|
14686
14689
|
return t instanceof Date ? t.getTime() : t;
|
|
14687
14690
|
};
|
|
14688
14691
|
export {
|
|
14689
|
-
|
|
14690
|
-
|
|
14692
|
+
t6 as AppearanceSection,
|
|
14693
|
+
e6 as AxesPanel,
|
|
14691
14694
|
xl as AxisEditMenu,
|
|
14692
14695
|
Uo as AxisSection,
|
|
14693
14696
|
Al as BarEditMenu,
|
|
14694
|
-
|
|
14697
|
+
n6 as BarSection,
|
|
14695
14698
|
Hh as Button,
|
|
14696
|
-
|
|
14697
|
-
|
|
14699
|
+
r6 as CalloutsSection,
|
|
14700
|
+
a3 as CaptionSection,
|
|
14698
14701
|
Hl as ChartEditMenu,
|
|
14699
14702
|
He as ColorRow,
|
|
14700
14703
|
jh as ColorSwatches,
|
|
14701
|
-
|
|
14704
|
+
a6 as ComboSection,
|
|
14702
14705
|
Yp as ControlRegistryProvider,
|
|
14703
14706
|
vt as ControlTooltip,
|
|
14704
14707
|
sp as CustomColor,
|
|
14705
|
-
|
|
14708
|
+
ZS as EditableGraphRenderer,
|
|
14706
14709
|
bs as EditorIntlProvider,
|
|
14707
14710
|
gc as EditorPanel,
|
|
14708
|
-
|
|
14711
|
+
QS as ElementsPanel,
|
|
14709
14712
|
hp as FileInput,
|
|
14710
|
-
|
|
14711
|
-
|
|
14712
|
-
|
|
14713
|
+
o6 as GoalSection,
|
|
14714
|
+
i6 as GraphOptionsSection,
|
|
14715
|
+
l6 as GraphTypeSection,
|
|
14713
14716
|
Kl as GridEditMenu,
|
|
14714
|
-
|
|
14715
|
-
|
|
14717
|
+
s6 as GridSection,
|
|
14718
|
+
c6 as HeadlineSection,
|
|
14716
14719
|
wm as LegendEditMenu,
|
|
14717
|
-
|
|
14720
|
+
d6 as LegendSection,
|
|
14718
14721
|
mr as LineEditMenu,
|
|
14719
|
-
|
|
14720
|
-
|
|
14722
|
+
u6 as LineSection,
|
|
14723
|
+
h6 as MappingSection,
|
|
14721
14724
|
vp as NumberField,
|
|
14722
|
-
|
|
14723
|
-
|
|
14725
|
+
p6 as NumberFormatSection,
|
|
14726
|
+
zy as PANEL_ROOT_ATTRIBUTE,
|
|
14724
14727
|
cm as PaletteRow,
|
|
14725
14728
|
gs as PointEditMenu,
|
|
14726
|
-
|
|
14727
|
-
|
|
14729
|
+
g6 as PointSection,
|
|
14730
|
+
m6 as PolarSection,
|
|
14728
14731
|
Sp as RadioGrid,
|
|
14729
14732
|
L as Row,
|
|
14730
14733
|
oe as Section,
|
|
14731
14734
|
Ip as Select,
|
|
14732
|
-
|
|
14735
|
+
JS as Separator,
|
|
14733
14736
|
zp as Slider,
|
|
14734
|
-
|
|
14735
|
-
|
|
14737
|
+
i3 as SourceSection,
|
|
14738
|
+
s3 as SubtitleSection,
|
|
14736
14739
|
$p as Switch,
|
|
14737
14740
|
Up as TextField,
|
|
14738
|
-
|
|
14739
|
-
|
|
14741
|
+
u3 as TextSizeSection,
|
|
14742
|
+
h3 as TitleSection,
|
|
14740
14743
|
Cl as ToggleGroup,
|
|
14741
|
-
|
|
14742
|
-
|
|
14744
|
+
Qy as ToggledSection,
|
|
14745
|
+
v6 as TrendsAndAveragesSection,
|
|
14743
14746
|
Ph as useAnnotateAnchor,
|
|
14744
14747
|
H as useControls,
|
|
14745
|
-
|
|
14748
|
+
_y as usePanelExpansion,
|
|
14746
14749
|
te as usePanelGraph
|
|
14747
14750
|
};
|