@graphysdk/react-renderer 1.9.0-beta.1793882432228 → 1.9.0-beta.1793904611666
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +176 -174
- package/dist/{history-chords-BorFTpAl.cjs → history-chords-Bt8VPQ8s.cjs} +1 -1
- package/dist/{history-chords-CimEnXtI.js → history-chords-BvBzoDDE.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 Yo, At as ge, C as ks, Ct as M, D as Jo, Dt as Ts, E as As, Et as Ps, F as Ls, G as X, Gn as Un, H as Is, Hn as Ms, I, It as rt, J as Es, Jt as Os, K as Rs, Ln as Qo, Lt as ee, Mt as Oe, N as Ns, Nn as Ds, O as Sn, Ot as _s, P as Fs, Pn as zs, Q as Kn, Rt as Bs, S as Hs, Sn as Gs, St as ea, T as Vs, Tn as $s, Tt as Ws, U as Us, Un as H, V as Ks, Vn as R, W as Q, X as q, Y as js, Z as jn, Zt as ta, _ as ze, b as na, c as ra, cn as de, ct as qs, d as Xs, dt as Zs, et as qn, f as Ys, ft as me, g as oa, gt as Ft, h as ot, ht as Js, i as at, in as Qs, it as Xn, jt as ec, k as zt, kn as tc, l as nc, ln as Zn, lt as rc, m as oc, mt as ac, n as se, nn as ic, nt as lc, o as sc, on as aa, p as ia, pt as Se, q as Mr, qt as Er, r as W, rn as la, rt as sa, sn as ca, st as cc, t as dc, tn as uc, tt as Bt, u as hc, un as He, ut as Or, v as pc, wt as da, x as gc, xn as mc, xt as vc, y as fc, yt as bc, zn as K, zt as yc } from "./history-chords-
|
|
1
|
+
import { $ as Yo, At as ge, C as ks, Ct as M, D as Jo, Dt as Ts, E as As, Et as Ps, F as Ls, G as X, Gn as Un, H as Is, Hn as Ms, I, It as rt, J as Es, Jt as Os, K as Rs, Ln as Qo, Lt as ee, Mt as Oe, N as Ns, Nn as Ds, O as Sn, Ot as _s, P as Fs, Pn as zs, Q as Kn, Rt as Bs, S as Hs, Sn as Gs, St as ea, T as Vs, Tn as $s, Tt as Ws, U as Us, Un as H, V as Ks, Vn as R, W as Q, X as q, Y as js, Z as jn, Zt as ta, _ as ze, b as na, c as ra, cn as de, ct as qs, d as Xs, dt as Zs, et as qn, f as Ys, ft as me, g as oa, gt as Ft, h as ot, ht as Js, i as at, in as Qs, it as Xn, jt as ec, k as zt, kn as tc, l as nc, ln as Zn, lt as rc, m as oc, mt as ac, n as se, nn as ic, nt as lc, o as sc, on as aa, p as ia, pt as Se, q as Mr, qt as Er, r as W, rn as la, rt as sa, sn as ca, st as cc, t as dc, tn as uc, tt as Bt, u as hc, un as He, ut as Or, v as pc, wt as da, x as gc, xn as mc, xt as vc, y as fc, yt as bc, zn as K, zt as yc } from "./history-chords-BvBzoDDE.js";
|
|
2
2
|
import { ARROW_DEFAULTS as Sc, ARROW_STICKER_DECLARATIONS as Cc, ARROW_STROKE_WIDTHS_PX as an, AddAnnotationCommand as Ie, AddHighlightCommand as wc, COMBO_TYPES as Rr, CONSTANT_VARIABLES as xc, DASH_PRESETS as kc, DEFAULT_BAR_CORNER_RADII as Tc, DEFAULT_GEOM_COLOR as Ac, DEFAULT_POINT_SIZE_PX as ua, DEFAULT_STROKE_WIDTH_PX as Pc, DIFFERENCE_ARROW_DEFAULTS as ha, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Nr, InternalError as Lc, MAX_BAR_WIDTH_FRACTION as Ic, MIN_BAR_WIDTH_FRACTION as Mc, MoveAnnotationCommand as Ec, RESTING_HOVER_STATE as Yn, RemoveAnnotationCommand as We, RemoveHighlightCommand as Oc, SHAPE_DEFAULTS as Rc, SequenceCommand as Ye, SetAxisLabelCommand as pa, SetAxisPositionCommand as ga, SetAxisTickModeCommand as ma, SetAxisTicksVisibilityCommand as Nc, SetAxisVisibilityCommand as Cn, SetBarCornerRadiusCommand as Dc, SetBarWidthCommand as va, SetContentCaptionCommand as fa, SetContentSourceCommand as _c, SetContentSubtitleCommand as ba, SetContentTitleCommand as ya, SetDataLabelsFormatCommand as Sa, SetDifferenceArrowStyleCommand as Fc, SetGraphTypeCommand as Jn, SetGridLineStyleCommand as Ca, SetGridVisibilityCommand as wn, SetHeadlineCompareWithCommand as zc, SetHeadlinePositionCommand as Bc, SetHeadlineShowCommand as Dr, SetHeadlineSizeCommand as Hc, SetHighlightDimStyleCommand as Gc, SetLayerYScaleTypeCommand as Vc, SetLegendAlignCommand as $c, SetLegendDisplayCommand as Wc, SetLegendPlacementCommand as Uc, SetLegendPositionCommand as xn, SetLineCurveCommand as wa, SetLineMissingValuesCommand as xa, SetLineStyleCommand as ke, SetMappingCommand as Kc, SetNumberFormatAbbreviationCommand as jc, SetNumberFormatDecimalsCommand as _r, SetObservationsColorCommand as qc, SetPointSizeCommand as Ht, SetPointSymbolCommand as Qn, SetPolarInnerRadiusCommand as Xc, SetPolarStartAngleCommand as Zc, SetRuleLabelCommand as Yc, SetRuleValueCommand as Jc, SetScaleDomainCommand as et, SetScaleRangeCommand as ka, SetScaleReverseCommand as Qc, SetScaleTransformCommand as Ta, SetStatLineCommand as ed, SetStyleRuleCommand as De, TEXT_ANNOTATION_DEFAULTS as td, TEXT_ANNOTATION_FADE_ALPHA as nd, ToggleCategoryLabelsCommand as Aa, ToggleContentVisibilityCommand as Ne, ToggleDataLabelsCommand as Pa, ToggleGoalLineCommand as rd, ToggleLinePointsCommand as er, ToggleStackTotalsCommand as La, UpdateAnnotationCommand as ve, alignUnitFractions as od, areAnchorsEqual as Ia, areEditTargetsEqual as tr, areEndpointsComparable as ad, buildColormapRange as id, buildDivergingRange as Fr, buildEditMenuTriggerRegion as ld, buildLayerStyleAddress as Ve, buildObservationPredicate as sd, buildObservationsTarget as Ue, buildObservationsTargetAtValue as Ma, buildPointSymbolInBox as cd, canAnchorDirectLabels as dd, canBecomeCombo as ud, canBecomeHeatmap as hd, clampAnnotationTranslation as pd, combineKindStyleDeclarations as zr, computeArrow as Ea, createObservationAnchorBuilder as gd, createObservationAnchorParser as md, createStyleResolver as vd, createStyleRuleMatcher as fd, createValueFormatter as Oa, createXValueReader as bd, filterLayersByGeoms as kn, findAnnotation as yd, findAverageLineLayer as Sd, findAxisGuide as Ra, findCompanionLayers as Na, findGoalLineLayer as Cd, findHighlightsAtObservation as wd, findHostLayer as Gt, findKindStyleDeclarations as kt, findLayerByGeom as Da, findLayerById as V, findObservationAttachment as xd, findStyleRule as Me, findTrendLineLayer as kd, formatDifferenceLabel as Td, getBoundingRect as Tn, getGroupVariables as _a, getXBand as Ad, getYBand as Pd, hasMainAxisBand as Ld, hasMultipleGroups as Vt, inferDefaultDifferenceArrowEndpoints as Id, inferDifferenceArrowEndpoints as Md, isComboGraphType as le, isCompanionLayer as Fa, isGeomStyleRule as Ed, isGeometricSymbol as Je, isImageSymbol as An, isLayerSpecOf as Ke, isObservationAttachmentKind as Od, isPointWithinEditMenuTrigger as nr, isSafeUrl as Rd, isZeroAnchoredAxis as za, measureObservationsBoxes as Ba, projectAnchorToPanel as Tt, readBroadestObservationsScope as Nd, readColorChoices as Ha, readColorPart as Dd, readColormapColor as _d, readComboLineLayerId as Fd, readCompanionRowsAtScopeKey as zd, readConstantValue as Bd, readDivergingColor as Br, readEditTargetKey as $t, readGeomColor as Hd, readGraphType as Wt, readHighlightDimStyle as Gd, readMainAxis as Vd, readMappableAesthetics as $d, readMappedVariable as Wd, readObservationIndex as rr, readObservationsColor as Ud, readObservationsColorPart as Kd, readObservationsColorRoute as Ut, readReachableLevels as jd, readRowScopeKey as qd, readRowsAtScopeKey as Xd, readScopeXVariable as Zd, readStyleCoord as ue, readStyleRulesBeneath as Yd, readVariableName as je, resolveArrowAnnotationStyle as or, resolveBarBandFraction as Ga, resolveComparisonBasis as Jd, resolveDifferenceArrowAnnotationStyle as Qd, resolveEditOutlineStyle as eu, resolveLayerAxisValueFormat as tu, resolveObservationPoint as Va, resolveObservationsTarget as _e, stepDifferenceArrowEndpoint as nu, toDashPreset as Fe, toPaintColor as At, toPanelCursor as Kt, toStrokeDasharray as $a } from "@graphysdk/viz-engine";
|
|
3
3
|
import { Fragment as Wa, createContext as Re, memo as Ua, useCallback as te, useContext as ce, useEffect as B, useId as Te, useLayoutEffect as Ee, useMemo as E, useRef as ne, useState as U, useSyncExternalStore as ru } from "react";
|
|
4
4
|
import { Fragment as $, jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
@@ -516,8 +516,8 @@ var bh = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, placeho
|
|
|
516
516
|
return /* @__PURE__ */ r(Hr.Root, {
|
|
517
517
|
className: mh,
|
|
518
518
|
value: e,
|
|
519
|
-
onValueChange: (
|
|
520
|
-
onValueCommitted: (
|
|
519
|
+
onValueChange: (C) => t(C),
|
|
520
|
+
onValueCommitted: (C, T) => {
|
|
521
521
|
f(T.reason === hi);
|
|
522
522
|
},
|
|
523
523
|
min: o,
|
|
@@ -560,14 +560,14 @@ var Ch = 6, wh = ({ options: e, value: t, onChange: n, onCommit: o, columns: a,
|
|
|
560
560
|
id: d,
|
|
561
561
|
ariaLabel: s,
|
|
562
562
|
ariaLabelledBy: c
|
|
563
|
-
}), h = i === "tile", p = i === "swatch", m = i === "icon", g = i === "track", f = i === "chip", { commitAfterChange: b, gestureHandlers:
|
|
563
|
+
}), h = i === "tile", p = i === "swatch", m = i === "icon", g = i === "track", f = i === "chip", { commitAfterChange: b, gestureHandlers: C } = Yt(o);
|
|
564
564
|
return /* @__PURE__ */ r(ja, {
|
|
565
565
|
className: ye(yh, xh(a ?? e.length), m && "_1b7s5f9", g && "_1b7s5fb", f && "_1b7s5fd"),
|
|
566
566
|
value: t,
|
|
567
567
|
onValueChange: (T) => {
|
|
568
568
|
n(T), b();
|
|
569
569
|
},
|
|
570
|
-
...
|
|
570
|
+
...C,
|
|
571
571
|
disabled: l,
|
|
572
572
|
...u,
|
|
573
573
|
children: e.map((T) => {
|
|
@@ -691,8 +691,8 @@ var Hh = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix:
|
|
|
691
691
|
className: Dh,
|
|
692
692
|
value: e,
|
|
693
693
|
onValueChange: (b) => t(b),
|
|
694
|
-
onValueCommitted: (b,
|
|
695
|
-
g(
|
|
694
|
+
onValueCommitted: (b, C) => {
|
|
695
|
+
g(C.reason === hi);
|
|
696
696
|
},
|
|
697
697
|
min: o,
|
|
698
698
|
max: a,
|
|
@@ -872,7 +872,7 @@ vi.hasRows = (e, { scene: t }) => t.coordSystem.type !== "polar";
|
|
|
872
872
|
var ep = ({ graph: e, axis: t }) => {
|
|
873
873
|
const n = W(e), o = M(), { NumberField: a, TextField: i, ToggleGroup: l } = _(), s = n?.guides.axes.find((L) => L.scaledAesthetic === t);
|
|
874
874
|
if (B(() => () => e.commands.commit(), [e.commands]), n === null || s?.geometry !== "linear") return null;
|
|
875
|
-
const c = !s.visible, d = n.scales[t]?.spec.scaleType, u = d === "continuous" || d === "datetime", h = n.guides.legends.drawn.some((L) => L.position === "left" || L.position === "right"), p = t !== "x" && d === "continuous" && (s.position === "left" || s.position === "right") && !h, m = t === "x" ? void 0 : n.scales[t]?.spec, g = m?.scaleType === "continuous" ? m : void 0, f = g !== void 0 && (s.position === "left" || s.position === "right") && !za(n, t), b = g?.transform === "log" ? "log" : "linear",
|
|
875
|
+
const c = !s.visible, d = n.scales[t]?.spec.scaleType, u = d === "continuous" || d === "datetime", h = n.guides.legends.drawn.some((L) => L.position === "left" || L.position === "right"), p = t !== "x" && d === "continuous" && (s.position === "left" || s.position === "right") && !h, m = t === "x" ? void 0 : n.scales[t]?.spec, g = m?.scaleType === "continuous" ? m : void 0, f = g !== void 0 && (s.position === "left" || s.position === "right") && !za(n, t), b = g?.transform === "log" ? "log" : "linear", C = f && g.transform !== "log", T = g?.domainMin ?? null, x = g !== void 0 && (s.position === "left" || s.position === "right") && g.transform !== "log", k = g?.domainMax ?? null, w = n.config.axes[t]?.label ?? s.label ?? "", A = (L) => {
|
|
876
876
|
const O = t === "ySecondary" ? {
|
|
877
877
|
axis: t,
|
|
878
878
|
label: L
|
|
@@ -886,7 +886,7 @@ var ep = ({ graph: e, axis: t }) => {
|
|
|
886
886
|
/* @__PURE__ */ r(P, {
|
|
887
887
|
label: o("editor.axesPanel.controls.title"),
|
|
888
888
|
children: /* @__PURE__ */ r(i, {
|
|
889
|
-
value:
|
|
889
|
+
value: w,
|
|
890
890
|
placeholder: o("editor.axesPanel.controls.titlePlaceholder"),
|
|
891
891
|
onChange: A,
|
|
892
892
|
onCommit: e.commands.commit,
|
|
@@ -963,7 +963,7 @@ var ep = ({ graph: e, axis: t }) => {
|
|
|
963
963
|
}
|
|
964
964
|
})
|
|
965
965
|
}),
|
|
966
|
-
|
|
966
|
+
C && /* @__PURE__ */ r(P, {
|
|
967
967
|
label: o("editor.axesPanel.controls.startFrom"),
|
|
968
968
|
children: /* @__PURE__ */ r(a, {
|
|
969
969
|
value: T,
|
|
@@ -2131,12 +2131,12 @@ var zp = "_1a90obs1", Bp = [
|
|
|
2131
2131
|
}, [l]);
|
|
2132
2132
|
const d = Wt(e);
|
|
2133
2133
|
if (d === null) return null;
|
|
2134
|
-
const u = jp(d), h = Mt(d), p = Lt(d), m = u ?? p, g = o(m === null ? "editor.overlayMenu.customChartType" : `editor.graphTypes.${m.name}`), f = (u === void 0 ? p : Xr(u, h))?.icon, b = u !== void 0 && u.arrangements.length > 1,
|
|
2134
|
+
const u = jp(d), h = Mt(d), p = Lt(d), m = u ?? p, g = o(m === null ? "editor.overlayMenu.customChartType" : `editor.graphTypes.${m.name}`), f = (u === void 0 ? p : Xr(u, h))?.icon, b = u !== void 0 && u.arrangements.length > 1, C = b && (t || u.name === "combo"), T = () => s(!l), x = ({ summary: A }) => {
|
|
2135
2135
|
n.dispatch(new Jn(ki(A, d)), { transient: !0 });
|
|
2136
2136
|
}, k = (A) => {
|
|
2137
2137
|
const L = qr.find((O) => O.name === A);
|
|
2138
2138
|
L !== void 0 && x(Xr(L, b ? h : null));
|
|
2139
|
-
},
|
|
2139
|
+
}, w = qr.map(({ name: A, arrangements: [L] }) => ({
|
|
2140
2140
|
value: A,
|
|
2141
2141
|
label: o(`editor.graphTypes.${A}`),
|
|
2142
2142
|
icon: /* @__PURE__ */ r(L.icon, { size: "md" }),
|
|
@@ -2163,7 +2163,7 @@ var zp = "_1a90obs1", Bp = [
|
|
|
2163
2163
|
ref: c,
|
|
2164
2164
|
className: "_1a90obs0",
|
|
2165
2165
|
children: /* @__PURE__ */ r(i, {
|
|
2166
|
-
options:
|
|
2166
|
+
options: w,
|
|
2167
2167
|
value: u?.name ?? "",
|
|
2168
2168
|
onChange: k,
|
|
2169
2169
|
onCommit: n.commit,
|
|
@@ -2173,7 +2173,7 @@ var zp = "_1a90obs1", Bp = [
|
|
|
2173
2173
|
})
|
|
2174
2174
|
})
|
|
2175
2175
|
}),
|
|
2176
|
-
|
|
2176
|
+
C && /* @__PURE__ */ r(Up, {
|
|
2177
2177
|
type: u,
|
|
2178
2178
|
arrangement: h,
|
|
2179
2179
|
onPick: x,
|
|
@@ -2399,11 +2399,11 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2399
2399
|
})
|
|
2400
2400
|
});
|
|
2401
2401
|
}, dr = ({ symbol: e, coordType: t, onChange: n }) => {
|
|
2402
|
-
const o = M(), { RadioGrid: a } = _(), [i, l] = U(null), s = ce(Zt), c = zs(), d = ta(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name:
|
|
2402
|
+
const o = M(), { RadioGrid: a } = _(), [i, l] = U(null), s = ce(Zt), c = zs(), d = ta(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name: w, definition: A }) => [w, A])) : c;
|
|
2403
2403
|
if (u === void 0 || u.length === 0) return null;
|
|
2404
|
-
const p = (
|
|
2404
|
+
const p = (w) => typeof w == "string" && u.includes(w), m = (w) => p(w) || An(w) || !Je(w) && h.has(w), g = (w) => !Je(w) || r1.some((A) => A === w), f = [...h.keys()].filter((w) => !Je(w) && !p(w)), b = [...u.filter(g), ...f], C = e === null ? "" : ht(e), T = e === null || b.some((w) => ht(w) === C) || !m(e) ? b : [...b, e], x = (w) => Je(w) ? o(`editor.graphPanel.pointSymbol.symbols.${w}`) : An(w) ? o("editor.graphPanel.pointSymbol.custom") : w, k = (w) => {
|
|
2405
2405
|
l(null);
|
|
2406
|
-
const A = T.find((L) => ht(L) ===
|
|
2406
|
+
const A = T.find((L) => ht(L) === w);
|
|
2407
2407
|
A !== void 0 && n(A);
|
|
2408
2408
|
};
|
|
2409
2409
|
return /* @__PURE__ */ r(P, {
|
|
@@ -2415,12 +2415,12 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2415
2415
|
className: Qp,
|
|
2416
2416
|
children: [/* @__PURE__ */ r(a, {
|
|
2417
2417
|
itemLayout: "chip",
|
|
2418
|
-
value:
|
|
2419
|
-
options: T.map((
|
|
2420
|
-
value: ht(
|
|
2421
|
-
label: x(
|
|
2418
|
+
value: C,
|
|
2419
|
+
options: T.map((w) => ({
|
|
2420
|
+
value: ht(w),
|
|
2421
|
+
label: x(w),
|
|
2422
2422
|
icon: /* @__PURE__ */ r(a1, {
|
|
2423
|
-
symbol:
|
|
2423
|
+
symbol: w,
|
|
2424
2424
|
glyphs: h
|
|
2425
2425
|
})
|
|
2426
2426
|
})),
|
|
@@ -2432,8 +2432,8 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2432
2432
|
"aria-hidden": "true"
|
|
2433
2433
|
}), /* @__PURE__ */ r(o1, {
|
|
2434
2434
|
label: o("editor.graphPanel.pointSymbol.custom"),
|
|
2435
|
-
onChange: (
|
|
2436
|
-
l(null), n(
|
|
2435
|
+
onChange: (w) => {
|
|
2436
|
+
l(null), n(w);
|
|
2437
2437
|
},
|
|
2438
2438
|
onReject: l
|
|
2439
2439
|
})]
|
|
@@ -2566,7 +2566,7 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2566
2566
|
layerId: D.layerId,
|
|
2567
2567
|
curve: y
|
|
2568
2568
|
})) }));
|
|
2569
|
-
},
|
|
2569
|
+
}, C = (S) => {
|
|
2570
2570
|
const y = Mn.find((G) => G === S);
|
|
2571
2571
|
if (y === void 0) return;
|
|
2572
2572
|
const D = h.filter((G) => G.missingValueOptions.includes(y)).map((G) => new xa({
|
|
@@ -2574,7 +2574,7 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2574
2574
|
missingValues: y
|
|
2575
2575
|
}));
|
|
2576
2576
|
D.length !== 0 && o.dispatch(new Ye({ commands: D }));
|
|
2577
|
-
}, T = d.filter((S) => S.showFill !== null), x = d.filter((S) => S.showPoints), k = g1(e, t, d),
|
|
2577
|
+
}, T = d.filter((S) => S.showFill !== null), x = d.filter((S) => S.showPoints), k = g1(e, t, d), w = T.some((S) => m1(e, S)), A = (S) => {
|
|
2578
2578
|
S.length > 0 && o.dispatch(new Ye({ commands: S }));
|
|
2579
2579
|
}, L = (S) => {
|
|
2580
2580
|
A(d.map((y) => new ke({
|
|
@@ -2687,7 +2687,7 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2687
2687
|
label: Ci(a, S),
|
|
2688
2688
|
icon: /* @__PURE__ */ r(sp, { missingValues: S })
|
|
2689
2689
|
})),
|
|
2690
|
-
onChange:
|
|
2690
|
+
onChange: C
|
|
2691
2691
|
})
|
|
2692
2692
|
}),
|
|
2693
2693
|
d.length > 0 && /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(Mi, {
|
|
@@ -2700,7 +2700,7 @@ var cy = 512 * 1024, n1 = (e) => new Promise((t) => {
|
|
|
2700
2700
|
T.length > 0 && /* @__PURE__ */ r(P, {
|
|
2701
2701
|
label: a("editor.graphPanel.graphOptions.lineFill"),
|
|
2702
2702
|
children: /* @__PURE__ */ r(i, {
|
|
2703
|
-
checked:
|
|
2703
|
+
checked: w,
|
|
2704
2704
|
onChange: ie
|
|
2705
2705
|
})
|
|
2706
2706
|
}),
|
|
@@ -2844,16 +2844,16 @@ var Di = (e) => e.scaledAesthetic === "x" || e.scaledAesthetic === "y", _i = (e,
|
|
|
2844
2844
|
value: b,
|
|
2845
2845
|
label: a(`editor.graphPanel.gridSection.lineStyles.${b}`),
|
|
2846
2846
|
icon: /* @__PURE__ */ r(Li, { lineStyle: b })
|
|
2847
|
-
})), p = un.map(({ name: b, widthPx:
|
|
2847
|
+
})), p = un.map(({ name: b, widthPx: C }) => ({
|
|
2848
2848
|
value: b,
|
|
2849
2849
|
label: a(`editor.graphPanel.gridSection.lineWidths.${b}`),
|
|
2850
|
-
icon: /* @__PURE__ */ r(Ii, { lineWidth:
|
|
2850
|
+
icon: /* @__PURE__ */ r(Ii, { lineWidth: C })
|
|
2851
2851
|
})), m = un.find(({ widthPx: b }) => b === c.strokeWidth)?.name ?? "", g = (b) => {
|
|
2852
|
-
const
|
|
2853
|
-
|
|
2852
|
+
const C = Et.find((T) => T === b);
|
|
2853
|
+
C !== void 0 && i.dispatch(Fi(C, e.axis));
|
|
2854
2854
|
}, f = (b) => {
|
|
2855
|
-
const
|
|
2856
|
-
|
|
2855
|
+
const C = un.find(({ name: T }) => T === b);
|
|
2856
|
+
C !== void 0 && i.dispatch(zi(C.widthPx, e.axis));
|
|
2857
2857
|
};
|
|
2858
2858
|
return /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(P, {
|
|
2859
2859
|
label: a("editor.graphPanel.gridSection.gridStyle"),
|
|
@@ -2994,7 +2994,7 @@ Rn.hasRows = (e, { scene: t }) => e.scope === "group" && $i(t, e.layerId) !== nu
|
|
|
2994
2994
|
var A1 = ({ graph: e, target: t }) => {
|
|
2995
2995
|
const n = W(e), o = K(), a = M(), { Switch: i } = _(), l = n === null ? null : $i(n, t.layerId), s = n === null || l === null ? null : cr(n, o, l.id);
|
|
2996
2996
|
if (n === null || l === null || s === null) return null;
|
|
2997
|
-
const c = M1(n, t), d = c === void 0 ? {} : { where: c }, u = c === void 0 || l.geom !== "line" ? void 0 : I1(n, s.layerId, c), h = u === void 0 ? s.showFill : u > 0, p = c === void 0 ? null : P1(n, l.geom, s.layerId, c), m = c === void 0 ? s.strokeWidth : p ?? L1(n, o, t) ?? s.strokeWidth, g = s.pointLayerId === null ? null : Hi(n, o, s.pointLayerId, c), f = s.pointLayerId === null ? null : Gi(n, o, s.pointLayerId, c), b = g !== null && g > 0,
|
|
2997
|
+
const c = M1(n, t), d = c === void 0 ? {} : { where: c }, u = c === void 0 || l.geom !== "line" ? void 0 : I1(n, s.layerId, c), h = u === void 0 ? s.showFill : u > 0, p = c === void 0 ? null : P1(n, l.geom, s.layerId, c), m = c === void 0 ? s.strokeWidth : p ?? L1(n, o, t) ?? s.strokeWidth, g = s.pointLayerId === null ? null : Hi(n, o, s.pointLayerId, c), f = s.pointLayerId === null ? null : Gi(n, o, s.pointLayerId, c), b = g !== null && g > 0, C = (O) => {
|
|
2998
2998
|
e.commands.dispatch(new er({
|
|
2999
2999
|
layerId: s.layerId,
|
|
3000
3000
|
showPoints: O,
|
|
@@ -3019,7 +3019,7 @@ var A1 = ({ graph: e, target: t }) => {
|
|
|
3019
3019
|
size: O,
|
|
3020
3020
|
...d
|
|
3021
3021
|
}));
|
|
3022
|
-
},
|
|
3022
|
+
}, w = (O) => {
|
|
3023
3023
|
s.pointLayerId !== null && e.commands.dispatch(new Qn({
|
|
3024
3024
|
layerId: s.pointLayerId,
|
|
3025
3025
|
symbol: O,
|
|
@@ -3053,7 +3053,7 @@ var A1 = ({ graph: e, target: t }) => {
|
|
|
3053
3053
|
label: a("editor.graphPanel.graphOptions.showPoints"),
|
|
3054
3054
|
children: /* @__PURE__ */ r(i, {
|
|
3055
3055
|
checked: b,
|
|
3056
|
-
onChange:
|
|
3056
|
+
onChange: C
|
|
3057
3057
|
})
|
|
3058
3058
|
}),
|
|
3059
3059
|
b && /* @__PURE__ */ r(ur, {
|
|
@@ -3063,7 +3063,7 @@ var A1 = ({ graph: e, target: t }) => {
|
|
|
3063
3063
|
b && /* @__PURE__ */ r(dr, {
|
|
3064
3064
|
symbol: f,
|
|
3065
3065
|
coordType: n.coordSystem.type,
|
|
3066
|
-
onChange:
|
|
3066
|
+
onChange: w
|
|
3067
3067
|
})
|
|
3068
3068
|
] });
|
|
3069
3069
|
}, P1 = (e, t, n, o) => {
|
|
@@ -3673,16 +3673,16 @@ var z1 = (e) => {
|
|
|
3673
3673
|
};
|
|
3674
3674
|
return t.hasRows = (n, { scene: o }) => Ja(n, o) !== null, t;
|
|
3675
3675
|
}, xt = hr((e, t) => F1(t, e)), ao = hr(qi), ig = hr(Xi), lg = ({ anchor: e, readHighlightOptions: t }) => {
|
|
3676
|
-
const { layer: n, observation: o, at: a } = e, i = M(), { dispatch: l } = se(), { selectionStore: s } = H(), { Button: c } = _(), [d, u] = U(null), h = R((
|
|
3676
|
+
const { layer: n, observation: o, at: a } = e, i = M(), { dispatch: l } = se(), { selectionStore: s } = H(), { Button: c } = _(), [d, u] = U(null), h = R((w) => w.spec.annotations), p = R((w) => w.config.parsingLocale), m = xd(h, a, E(() => md(n, p), [n, p])), g = m !== null && q1(m) ? m : null, f = K1(n, o), b = f.at(-1), C = R((w) => w.coordSystem), T = E(() => Md({
|
|
3677
3677
|
layer: n,
|
|
3678
3678
|
at: a,
|
|
3679
|
-
coordSystem:
|
|
3679
|
+
coordSystem: C
|
|
3680
3680
|
}), [
|
|
3681
3681
|
n,
|
|
3682
3682
|
a,
|
|
3683
|
-
|
|
3684
|
-
]), x = (
|
|
3685
|
-
l(
|
|
3683
|
+
C
|
|
3684
|
+
]), x = (w) => {
|
|
3685
|
+
l(w), s.getState().clearSelection();
|
|
3686
3686
|
}, k = () => u(null);
|
|
3687
3687
|
return d === "comment" ? /* @__PURE__ */ r(pn, {
|
|
3688
3688
|
title: i("graph.annotations.textMenu.title"),
|
|
@@ -3705,7 +3705,7 @@ var z1 = (e) => {
|
|
|
3705
3705
|
layer: n,
|
|
3706
3706
|
observation: o,
|
|
3707
3707
|
highlights: f,
|
|
3708
|
-
options: t(n,
|
|
3708
|
+
options: t(n, C),
|
|
3709
3709
|
expanded: !0,
|
|
3710
3710
|
onOpen: k,
|
|
3711
3711
|
onRun: x
|
|
@@ -3750,7 +3750,7 @@ var z1 = (e) => {
|
|
|
3750
3750
|
layer: n,
|
|
3751
3751
|
observation: o,
|
|
3752
3752
|
highlights: f,
|
|
3753
|
-
options: t(n,
|
|
3753
|
+
options: t(n, C),
|
|
3754
3754
|
expanded: !1,
|
|
3755
3755
|
onOpen: () => u("highlight"),
|
|
3756
3756
|
onRun: x
|
|
@@ -7075,7 +7075,7 @@ var Hg = "d0bl03", Gg = "d0bl04", Vg = 0.01, Nn = ca.map((e) => de[e]), $g = Obj
|
|
|
7075
7075
|
}, [e, c]), B(() => {
|
|
7076
7076
|
if (!e) return;
|
|
7077
7077
|
const m = () => o(!0), g = ({ event: f }) => {
|
|
7078
|
-
const { relatedTarget: b, currentTarget:
|
|
7078
|
+
const { relatedTarget: b, currentTarget: C } = f, T = b instanceof Node && u.current?.contains(b), x = b instanceof Node && C instanceof Node && C.contains(b);
|
|
7079
7079
|
!T && !x && o(!1);
|
|
7080
7080
|
};
|
|
7081
7081
|
return e.on("focus", m), e.on("blur", g), () => {
|
|
@@ -7544,10 +7544,10 @@ var d2 = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
7544
7544
|
const h = s.current, p = /* @__PURE__ */ new Map(), g = i2(d, {
|
|
7545
7545
|
panelRect: n,
|
|
7546
7546
|
look: o,
|
|
7547
|
-
readGridLineWidth: (
|
|
7548
|
-
measurePathBox: (
|
|
7549
|
-
const T = h.get(
|
|
7550
|
-
return p.set(
|
|
7547
|
+
readGridLineWidth: (C) => ra(i, C).strokeWidth,
|
|
7548
|
+
measurePathBox: (C) => {
|
|
7549
|
+
const T = h.get(C) ?? o2(t.ownerDocument, C);
|
|
7550
|
+
return p.set(C, T), T;
|
|
7551
7551
|
}
|
|
7552
7552
|
});
|
|
7553
7553
|
if (s.current = p, g === null) {
|
|
@@ -8340,7 +8340,7 @@ var bo = (e, t) => {
|
|
|
8340
8340
|
Ee(() => () => {
|
|
8341
8341
|
c?.contains(document.activeElement) && e.focus({ preventScroll: !0 });
|
|
8342
8342
|
}, [c, e]);
|
|
8343
|
-
const { x: m, y: g, width: f, height: b } = t,
|
|
8343
|
+
const { x: m, y: g, width: f, height: b } = t, C = E(() => ({
|
|
8344
8344
|
box: {
|
|
8345
8345
|
x: m,
|
|
8346
8346
|
y: g,
|
|
@@ -8354,8 +8354,8 @@ var bo = (e, t) => {
|
|
|
8354
8354
|
f,
|
|
8355
8355
|
b,
|
|
8356
8356
|
n
|
|
8357
|
-
]), T = E(() => o0(e,
|
|
8358
|
-
k || (
|
|
8357
|
+
]), T = E(() => o0(e, C.box), [e, C]), x = (k, w) => {
|
|
8358
|
+
k || (w.cancel(), w.reason === "escape-key" && a());
|
|
8359
8359
|
};
|
|
8360
8360
|
return /* @__PURE__ */ r(J.Root, {
|
|
8361
8361
|
open: s,
|
|
@@ -8370,11 +8370,11 @@ var bo = (e, t) => {
|
|
|
8370
8370
|
side: "right",
|
|
8371
8371
|
align: "start",
|
|
8372
8372
|
sideOffset: ({ side: k }) => k === "top" || k === "bottom" ? o.y : o.x,
|
|
8373
|
-
alignOffset: ({ side: k, anchor:
|
|
8373
|
+
alignOffset: ({ side: k, anchor: w }) => a0({
|
|
8374
8374
|
side: k,
|
|
8375
|
-
boundary:
|
|
8376
|
-
spans:
|
|
8377
|
-
anchor:
|
|
8375
|
+
boundary: C.box,
|
|
8376
|
+
spans: C.spans,
|
|
8377
|
+
anchor: w,
|
|
8378
8378
|
rightToLeft: u0(p.current)
|
|
8379
8379
|
}),
|
|
8380
8380
|
collisionAvoidance: c0,
|
|
@@ -8504,17 +8504,17 @@ var bo = (e, t) => {
|
|
|
8504
8504
|
]);
|
|
8505
8505
|
if (c === null) return null;
|
|
8506
8506
|
const { layer: d, levels: u, names: h } = c, { observationIndex: p, selectedFor: m } = c.pressed, g = u.map((b) => {
|
|
8507
|
-
const
|
|
8507
|
+
const C = S0[b];
|
|
8508
8508
|
return {
|
|
8509
8509
|
value: b,
|
|
8510
8510
|
label: h[b],
|
|
8511
|
-
icon: /* @__PURE__ */ r(
|
|
8511
|
+
icon: /* @__PURE__ */ r(C, {})
|
|
8512
8512
|
};
|
|
8513
8513
|
}), f = (b) => {
|
|
8514
|
-
const
|
|
8514
|
+
const C = u.find((k) => k === b), { parsingLocale: T } = a.config, x = C === void 0 ? null : Ue({
|
|
8515
8515
|
layer: d,
|
|
8516
8516
|
observationIndex: p,
|
|
8517
|
-
scope:
|
|
8517
|
+
scope: C,
|
|
8518
8518
|
parsingLocale: T
|
|
8519
8519
|
});
|
|
8520
8520
|
x !== null && (t.getState().setPressedObservation({
|
|
@@ -9081,7 +9081,7 @@ var hv = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: o, frameHeight: a,
|
|
|
9081
9081
|
}
|
|
9082
9082
|
}
|
|
9083
9083
|
}), y);
|
|
9084
|
-
},
|
|
9084
|
+
}, C = (S) => {
|
|
9085
9085
|
const y = Me(c, { select: f }, d)?.declarations ?? {};
|
|
9086
9086
|
s.dispatch(new De({
|
|
9087
9087
|
list: "overrides",
|
|
@@ -9103,7 +9103,7 @@ var hv = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: o, frameHeight: a,
|
|
|
9103
9103
|
})), u.close();
|
|
9104
9104
|
}, k = () => {
|
|
9105
9105
|
s.dispatch(new We({ id: e.id })), i.focus({ preventScroll: !0 });
|
|
9106
|
-
},
|
|
9106
|
+
}, w = (S) => b({ stroke: S }, { transient: !0 }), A = (S) => T({ strokeWidth: S }), L = (S) => x({ startArrowheadStyle: S }), O = (S) => T({ dashArray: kc.arrow[S] }), ie = (S) => x({ endArrowheadStyle: S }), F = () => C(m ? {
|
|
9107
9107
|
strokeWidth: 0,
|
|
9108
9108
|
shadow: "none"
|
|
9109
9109
|
} : Cc);
|
|
@@ -9118,7 +9118,7 @@ var hv = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: o, frameHeight: a,
|
|
|
9118
9118
|
/* @__PURE__ */ r(z.ColorPicker, {
|
|
9119
9119
|
color: h.stroke,
|
|
9120
9120
|
label: l("graph.annotations.arrowToolbar.color"),
|
|
9121
|
-
onChange:
|
|
9121
|
+
onChange: w,
|
|
9122
9122
|
...u.bind("color"),
|
|
9123
9123
|
children: /* @__PURE__ */ r(z.Swatch, { color: h.stroke })
|
|
9124
9124
|
}),
|
|
@@ -9553,7 +9553,7 @@ var Ev = [
|
|
|
9553
9553
|
}), [e.id]), f = E(() => ({
|
|
9554
9554
|
...g,
|
|
9555
9555
|
part: "label"
|
|
9556
|
-
}), [g]), b = p.find((y) => y.kind === e.label),
|
|
9556
|
+
}), [g]), b = p.find((y) => y.kind === e.label), C = p.some((y) => y.pickable && y.kind !== e.label), T = Io.find((y) => Nr[y.id].arrow.strokeWidth === m.strokeWidth), x = (y, D) => {
|
|
9557
9557
|
c.dispatch(new ve({
|
|
9558
9558
|
kind: "differenceArrow",
|
|
9559
9559
|
id: e.id,
|
|
@@ -9562,7 +9562,7 @@ var Ev = [
|
|
|
9562
9562
|
}, k = (y) => ({
|
|
9563
9563
|
...Me(d, { select: g }, u)?.declarations,
|
|
9564
9564
|
...y
|
|
9565
|
-
}),
|
|
9565
|
+
}), w = (y) => ({
|
|
9566
9566
|
...Me(d, { select: f }, u)?.declarations,
|
|
9567
9567
|
...y
|
|
9568
9568
|
}), A = (y) => {
|
|
@@ -9583,7 +9583,7 @@ var Ev = [
|
|
|
9583
9583
|
c.dispatch(new Fc({
|
|
9584
9584
|
annotationId: e.id,
|
|
9585
9585
|
arrow: k(D.arrow),
|
|
9586
|
-
label:
|
|
9586
|
+
label: w(D.label)
|
|
9587
9587
|
})), h.close();
|
|
9588
9588
|
};
|
|
9589
9589
|
return /* @__PURE__ */ v(z.Root, {
|
|
@@ -9597,7 +9597,7 @@ var Ev = [
|
|
|
9597
9597
|
/* @__PURE__ */ r(z.Dropdown, {
|
|
9598
9598
|
label: s("graph.annotations.differenceArrowToolbar.labelKind.ariaLabel"),
|
|
9599
9599
|
trigger: /* @__PURE__ */ r(_v, { option: b }),
|
|
9600
|
-
disabled: !
|
|
9600
|
+
disabled: !C,
|
|
9601
9601
|
...h.bind("labelKind"),
|
|
9602
9602
|
children: p.map((y) => /* @__PURE__ */ v(z.MenuItem, {
|
|
9603
9603
|
selected: y.kind === e.label,
|
|
@@ -10023,11 +10023,11 @@ var tf = {
|
|
|
10023
10023
|
o
|
|
10024
10024
|
]), h = Eo(t, a, u), p = Eo(t, d === a ? null : d, u), m = (f) => {
|
|
10025
10025
|
if (l?.annotationId === f.id) {
|
|
10026
|
-
const b = t.shapes.find((
|
|
10026
|
+
const b = t.shapes.find((C) => C.id === f.id);
|
|
10027
10027
|
return b === void 0 ? f.geometry : na(Cr(l.region), o.annotation.shape(b.id).get("strokeWidth"), u.panel);
|
|
10028
10028
|
}
|
|
10029
10029
|
if (s?.annotationId === f.id) {
|
|
10030
|
-
const b = t.arrows.find((
|
|
10030
|
+
const b = t.arrows.find((C) => C.id === f.id);
|
|
10031
10031
|
return b === void 0 ? f.geometry : fc(Sr(b, s), u.panel) ?? f.geometry;
|
|
10032
10032
|
}
|
|
10033
10033
|
return c?.annotationId === f.id ? Fl(t, f.id, c, u) ?? f.geometry : f.geometry;
|
|
@@ -10239,20 +10239,20 @@ var tf = {
|
|
|
10239
10239
|
kind: "shape",
|
|
10240
10240
|
annotation: e.id
|
|
10241
10241
|
}), [e.id]), g = (x, k) => {
|
|
10242
|
-
const
|
|
10242
|
+
const w = Me(c, { select: m }, d)?.declarations ?? {};
|
|
10243
10243
|
s.dispatch(new De({
|
|
10244
10244
|
list: "overrides",
|
|
10245
10245
|
rule: {
|
|
10246
10246
|
select: m,
|
|
10247
10247
|
declarations: {
|
|
10248
|
-
...
|
|
10248
|
+
...w,
|
|
10249
10249
|
...x
|
|
10250
10250
|
}
|
|
10251
10251
|
}
|
|
10252
10252
|
}), k);
|
|
10253
10253
|
}, f = () => {
|
|
10254
10254
|
s.dispatch(new We({ id: e.id })), i.focus({ preventScroll: !0 });
|
|
10255
|
-
}, b = (x) => g({ fill: x }, { transient: !0 }),
|
|
10255
|
+
}, b = (x) => g({ fill: x }, { transient: !0 }), C = (x) => g({ fillAlpha: x }, { transient: !0 }), T = (x) => () => {
|
|
10256
10256
|
g({ strokeWidth: x }), u.close();
|
|
10257
10257
|
};
|
|
10258
10258
|
return /* @__PURE__ */ v(z.Root, {
|
|
@@ -10268,7 +10268,7 @@ var tf = {
|
|
|
10268
10268
|
label: l("graph.annotations.shapeToolbar.color"),
|
|
10269
10269
|
onChange: b,
|
|
10270
10270
|
opacity: h.fillAlpha,
|
|
10271
|
-
onOpacityChange:
|
|
10271
|
+
onOpacityChange: C,
|
|
10272
10272
|
...u.bind("color"),
|
|
10273
10273
|
children: /* @__PURE__ */ r(z.Swatch, {
|
|
10274
10274
|
color: At(h.fill),
|
|
@@ -10619,16 +10619,16 @@ var Wl = [
|
|
|
10619
10619
|
Icon: gl
|
|
10620
10620
|
}
|
|
10621
10621
|
], $f = ({ annotation: e, textBox: t, panelRect: n, frameWidth: o, frameHeight: a, frameElement: i }) => {
|
|
10622
|
-
const l = M(), { commands: s } = H(), c = R((y) => y.spec.styles.overrides), d = R((y) => ue(y.spec)), u = X(), h = Qt(), p = K().annotation.text(e.id).resolve(), m = If(e.content), g = Bf(m.font), f = Hf(m.fontSize), b = m.color ?? p.textColor,
|
|
10622
|
+
const l = M(), { commands: s } = H(), c = R((y) => y.spec.styles.overrides), d = R((y) => ue(y.spec)), u = X(), h = Qt(), p = K().annotation.text(e.id).resolve(), m = If(e.content), g = Bf(m.font), f = Hf(m.fontSize), b = m.color ?? p.textColor, C = E(() => ({
|
|
10623
10623
|
target: "annotation",
|
|
10624
10624
|
kind: "text",
|
|
10625
10625
|
annotation: e.id
|
|
10626
10626
|
}), [e.id]), T = (y, D) => {
|
|
10627
|
-
const G = Me(c, { select:
|
|
10627
|
+
const G = Me(c, { select: C }, d)?.declarations ?? {};
|
|
10628
10628
|
s.dispatch(new De({
|
|
10629
10629
|
list: "overrides",
|
|
10630
10630
|
rule: {
|
|
10631
|
-
select:
|
|
10631
|
+
select: C,
|
|
10632
10632
|
declarations: {
|
|
10633
10633
|
...G,
|
|
10634
10634
|
...y
|
|
@@ -10641,7 +10641,7 @@ var Wl = [
|
|
|
10641
10641
|
id: e.id,
|
|
10642
10642
|
patch: y
|
|
10643
10643
|
}), D);
|
|
10644
|
-
}, k = () => u.getState().caret?.editor?.getJSON() ?? e.content,
|
|
10644
|
+
}, k = () => u.getState().caret?.editor?.getJSON() ?? e.content, w = (y, D) => {
|
|
10645
10645
|
const G = k(), oe = u.getState().caret?.editor ?? null;
|
|
10646
10646
|
if (oe !== null && !Ef(G)) {
|
|
10647
10647
|
oe.chain().focus().setMark(Dt, y).run();
|
|
@@ -10650,10 +10650,10 @@ var Wl = [
|
|
|
10650
10650
|
x({ content: Mf(G, y) }, D);
|
|
10651
10651
|
}, A = () => {
|
|
10652
10652
|
s.dispatch(new We({ id: e.id })), i.focus({ preventScroll: !0 });
|
|
10653
|
-
}, L = (y) => T(Wf(y), { transient: !0 }), O = (y) =>
|
|
10654
|
-
|
|
10653
|
+
}, L = (y) => T(Wf(y), { transient: !0 }), O = (y) => w({ color: y }, { transient: !0 }), ie = (y) => () => {
|
|
10654
|
+
w({ font: y }), h.close();
|
|
10655
10655
|
}, F = (y) => () => {
|
|
10656
|
-
|
|
10656
|
+
w({ fontSize: y }), h.close();
|
|
10657
10657
|
}, S = (y) => x({ content: Of(k(), y) });
|
|
10658
10658
|
return /* @__PURE__ */ v(z.Root, {
|
|
10659
10659
|
anchorBox: t,
|
|
@@ -11211,14 +11211,14 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11211
11211
|
layers: u.layers,
|
|
11212
11212
|
scales: u.scales,
|
|
11213
11213
|
parsingLocale: u.config.parsingLocale
|
|
11214
|
-
}), b = f !== null && t.hasOverlayMenu(f.target) ? f : null,
|
|
11214
|
+
}), b = f !== null && t.hasOverlayMenu(f.target) ? f : null, C = Mr({
|
|
11215
11215
|
overMenuTrigger: h,
|
|
11216
11216
|
stamped: _o(p, b !== null, e, t),
|
|
11217
11217
|
observations: b
|
|
11218
11218
|
});
|
|
11219
11219
|
return {
|
|
11220
|
-
targetAtPoint:
|
|
11221
|
-
hover:
|
|
11220
|
+
targetAtPoint: C,
|
|
11221
|
+
hover: C?.kind === "observations" ? g : null
|
|
11222
11222
|
};
|
|
11223
11223
|
}, P5 = (e) => {
|
|
11224
11224
|
const t = e.getBoundingClientRect();
|
|
@@ -11298,14 +11298,14 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11298
11298
|
panelRect: n
|
|
11299
11299
|
}), m = ee(t), g = ee(a), f = ne(null);
|
|
11300
11300
|
B(() => () => f.current?.finish(!1), []), B(() => l.subscribe(({ selection: b }) => {
|
|
11301
|
-
const
|
|
11302
|
-
|
|
11301
|
+
const C = c.getState().pressedObservation, [T, ...x] = b, k = T !== void 0 && x.length === 0 && C !== null && tr(T, C.selectedFor);
|
|
11302
|
+
C !== null && !k && c.getState().setPressedObservation(null);
|
|
11303
11303
|
}), [c, l]), B(() => {
|
|
11304
11304
|
const b = (A) => Xl({
|
|
11305
11305
|
target: A.target,
|
|
11306
11306
|
clientX: A.clientX,
|
|
11307
11307
|
clientY: A.clientY
|
|
11308
|
-
}, o()).targetAtPoint,
|
|
11308
|
+
}, o()).targetAtPoint, C = (A) => {
|
|
11309
11309
|
if (!(A.target instanceof Element)) return !1;
|
|
11310
11310
|
const L = A.target.closest(Jo);
|
|
11311
11311
|
return L !== null && e.contains(L) && zt([A.target], e) === null;
|
|
@@ -11352,15 +11352,15 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11352
11352
|
throw new Lc({ message: `No press outcome for: ${JSON.stringify(L)}` });
|
|
11353
11353
|
}
|
|
11354
11354
|
}, k = (A) => {
|
|
11355
|
-
if (A.button !== 0 || Pn(A.target) || li(A, m.current, c.getState().menuTrigger) ||
|
|
11355
|
+
if (A.button !== 0 || Pn(A.target) || li(A, m.current, c.getState().menuTrigger) || C(A) || Sn(A.target, e)) return;
|
|
11356
11356
|
const L = E5(b(A), {
|
|
11357
11357
|
canSelectGraph: h.current && !kr(A.target) && o().hasOverlayMenu({ kind: "graph" }),
|
|
11358
11358
|
withinFrame: A.target instanceof Node && e.contains(A.target),
|
|
11359
11359
|
caretAnnotationId: c.getState().caret?.annotationId ?? null
|
|
11360
11360
|
});
|
|
11361
11361
|
L.kind !== "keep-caret" && (c.getState().setCaret(null), x(A, L));
|
|
11362
|
-
},
|
|
11363
|
-
if (Pn(A.target) ||
|
|
11362
|
+
}, w = (A) => {
|
|
11363
|
+
if (Pn(A.target) || C(A) || Sn(A.target, e)) return;
|
|
11364
11364
|
const L = b(A), { layers: O, guides: ie, config: F } = s.getState().scene, { hasOverlayMenu: S } = o(), y = l.getState(), D = c.getState();
|
|
11365
11365
|
switch (L?.kind) {
|
|
11366
11366
|
case "observations": {
|
|
@@ -11398,8 +11398,8 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11398
11398
|
return;
|
|
11399
11399
|
}
|
|
11400
11400
|
};
|
|
11401
|
-
return document.addEventListener("pointerdown", k), document.addEventListener("dblclick",
|
|
11402
|
-
document.removeEventListener("pointerdown", k), document.removeEventListener("dblclick",
|
|
11401
|
+
return document.addEventListener("pointerdown", k), document.addEventListener("dblclick", w), () => {
|
|
11402
|
+
document.removeEventListener("pointerdown", k), document.removeEventListener("dblclick", w);
|
|
11403
11403
|
};
|
|
11404
11404
|
}, [
|
|
11405
11405
|
e,
|
|
@@ -11545,10 +11545,10 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11545
11545
|
B(() => {
|
|
11546
11546
|
const u = (b) => li(b, c.current, o.getState().menuTrigger), h = (b) => {
|
|
11547
11547
|
if (u(b) || a.getState().selection.length > 0) return;
|
|
11548
|
-
const
|
|
11548
|
+
const C = d.current, T = c.current, x = {
|
|
11549
11549
|
x: b.clientX - T.x,
|
|
11550
11550
|
y: b.clientY - T.y
|
|
11551
|
-
}, k = z5(x,
|
|
11551
|
+
}, k = z5(x, C) ? l.query(Kt(x, C)) : Yn;
|
|
11552
11552
|
i.getState().setHoverState(k);
|
|
11553
11553
|
};
|
|
11554
11554
|
let p = !1;
|
|
@@ -11560,12 +11560,12 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11560
11560
|
b !== void 0 && i.getState().setHoverState(l.query(b));
|
|
11561
11561
|
}, f = (b) => {
|
|
11562
11562
|
if (Pn(b.target)) return;
|
|
11563
|
-
const
|
|
11564
|
-
if (
|
|
11563
|
+
const C = u(b), T = s.current;
|
|
11564
|
+
if (C && !p && T.kind === "trigger") {
|
|
11565
11565
|
a.getState().setSelection([T.anchor.target]);
|
|
11566
11566
|
return;
|
|
11567
11567
|
}
|
|
11568
|
-
if (
|
|
11568
|
+
if (C && p) {
|
|
11569
11569
|
a.getState().clearSelection(), g();
|
|
11570
11570
|
return;
|
|
11571
11571
|
}
|
|
@@ -11589,8 +11589,8 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11589
11589
|
let c = null, d = null, u = !1;
|
|
11590
11590
|
const h = (k) => {
|
|
11591
11591
|
if (!s) return;
|
|
11592
|
-
const
|
|
11593
|
-
|
|
11592
|
+
const w = i.getState();
|
|
11593
|
+
w.suspendsHover || k === null && w.hover.primary === null || w.setHoverState(k ?? Yn);
|
|
11594
11594
|
}, p = () => {
|
|
11595
11595
|
if (c = null, d === null) return;
|
|
11596
11596
|
const k = o.getState();
|
|
@@ -11609,8 +11609,8 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11609
11609
|
k.setEditTargetUnderPointer(null);
|
|
11610
11610
|
return;
|
|
11611
11611
|
}
|
|
11612
|
-
const { targetAtPoint:
|
|
11613
|
-
k.setEditTargetUnderPointer(
|
|
11612
|
+
const { targetAtPoint: w, hover: A } = Xl(d, n());
|
|
11613
|
+
k.setEditTargetUnderPointer(w), h(A);
|
|
11614
11614
|
}, m = () => {
|
|
11615
11615
|
c === null && (c = requestAnimationFrame(p));
|
|
11616
11616
|
}, g = () => {
|
|
@@ -11623,15 +11623,15 @@ var c5 = "_1tyillx2", d5 = {
|
|
|
11623
11623
|
clientX: k.clientX,
|
|
11624
11624
|
clientY: k.clientY
|
|
11625
11625
|
}, u = !1, m();
|
|
11626
|
-
},
|
|
11626
|
+
}, C = () => {
|
|
11627
11627
|
d = null, c !== null && (cancelAnimationFrame(c), c = null), f();
|
|
11628
|
-
}, T = o.subscribe((k,
|
|
11629
|
-
Ct(
|
|
11630
|
-
}), x = a.subscribe((k,
|
|
11631
|
-
k.scene !==
|
|
11628
|
+
}, T = o.subscribe((k, w) => {
|
|
11629
|
+
Ct(w.standingInteraction) && !Ct(k.standingInteraction) && g();
|
|
11630
|
+
}), x = a.subscribe((k, w) => {
|
|
11631
|
+
k.scene !== w.scene && (Ct(o.getState().standingInteraction) || g());
|
|
11632
11632
|
});
|
|
11633
|
-
return e.addEventListener("pointermove", b), e.addEventListener("pointerleave",
|
|
11634
|
-
c !== null && cancelAnimationFrame(c), T(), x(), e.removeEventListener("pointermove", b), e.removeEventListener("pointerleave",
|
|
11633
|
+
return e.addEventListener("pointermove", b), e.addEventListener("pointerleave", C), () => {
|
|
11634
|
+
c !== null && cancelAnimationFrame(c), T(), x(), e.removeEventListener("pointermove", b), e.removeEventListener("pointerleave", C), f();
|
|
11635
11635
|
};
|
|
11636
11636
|
}, [
|
|
11637
11637
|
e,
|
|
@@ -11989,7 +11989,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11989
11989
|
if (!i) return null;
|
|
11990
11990
|
const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", p = i.config.axes[e], m = i.scales[e], g = m?.spec, f = g?.scaleType === "continuous" ? g : void 0;
|
|
11991
11991
|
if (h === "circular" || h === "radial" && f === void 0) return null;
|
|
11992
|
-
const b = g !== void 0 && "reverse" in g ? g : void 0,
|
|
11992
|
+
const b = g !== void 0 && "reverse" in g ? g : void 0, C = g?.scaleType === "continuous" || g?.scaleType === "datetime", T = f !== void 0 && za(i, e), x = f?.transform === "log", k = f?.domainMax ?? null, w = fb(f), A = (N, fe) => N.map((ut) => ({
|
|
11993
11993
|
value: ut,
|
|
11994
11994
|
label: fe(ut)
|
|
11995
11995
|
})), L = i.guides.axes.find((N) => N.scaledAesthetic === e), O = L?.position, ie = p.label ?? L?.label ?? "", F = gb[O === "bottom" || O === "top" || O === void 0 && e === "x" ? "horizontal" : "vertical"], S = e === "y" ? Fd(i.spec) : null, y = S === null ? void 0 : V(i.spec.layers, S), D = i.guides.legends.drawn.some((N) => F.some((fe) => fe === N.position)), G = F.map((N) => ({
|
|
@@ -12097,7 +12097,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12097
12097
|
onChange: gs
|
|
12098
12098
|
})
|
|
12099
12099
|
})] }),
|
|
12100
|
-
|
|
12100
|
+
C && /* @__PURE__ */ r(P, {
|
|
12101
12101
|
label: l("editor.axesPanel.controls.labels"),
|
|
12102
12102
|
children: /* @__PURE__ */ r(u, {
|
|
12103
12103
|
value: p.ticks.mode,
|
|
@@ -12133,11 +12133,11 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12133
12133
|
!T && /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(P, {
|
|
12134
12134
|
label: l("editor.axesPanel.controls.startFrom"),
|
|
12135
12135
|
children: /* @__PURE__ */ r(u, {
|
|
12136
|
-
value:
|
|
12136
|
+
value: w,
|
|
12137
12137
|
options: ss,
|
|
12138
12138
|
onChange: Ss
|
|
12139
12139
|
})
|
|
12140
|
-
}),
|
|
12140
|
+
}), w !== "auto" && /* @__PURE__ */ r(P, {
|
|
12141
12141
|
label: l("editor.axesPanel.controls.value"),
|
|
12142
12142
|
children: /* @__PURE__ */ r(s, {
|
|
12143
12143
|
value: f.domainMin ?? null,
|
|
@@ -12462,15 +12462,15 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12462
12462
|
width: f
|
|
12463
12463
|
}), { transient: !0 });
|
|
12464
12464
|
}, h = d?.get("cornerRadius") ?? Tc, p = (f, b) => {
|
|
12465
|
-
const
|
|
12466
|
-
if (!
|
|
12465
|
+
const C = $o.find((k) => k === b);
|
|
12466
|
+
if (!C) return;
|
|
12467
12467
|
const [T, x] = os[f];
|
|
12468
12468
|
o.commands.dispatch(new Dc({
|
|
12469
12469
|
layerId: c.id,
|
|
12470
12470
|
corners: {
|
|
12471
12471
|
...h,
|
|
12472
|
-
[T]:
|
|
12473
|
-
[x]:
|
|
12472
|
+
[T]: C,
|
|
12473
|
+
[x]: C
|
|
12474
12474
|
}
|
|
12475
12475
|
}));
|
|
12476
12476
|
}, m = $o.map((f) => ({
|
|
@@ -12806,7 +12806,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12806
12806
|
showStackTotals: T
|
|
12807
12807
|
});
|
|
12808
12808
|
a.commands.dispatch(x);
|
|
12809
|
-
},
|
|
12809
|
+
}, C = (T) => {
|
|
12810
12810
|
const x = new Aa({
|
|
12811
12811
|
layerId: c.id,
|
|
12812
12812
|
showCategoryLabels: T
|
|
@@ -12843,7 +12843,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12843
12843
|
label: l("editor.graphPanel.graphOptions.categoryLabels"),
|
|
12844
12844
|
children: /* @__PURE__ */ r(s, {
|
|
12845
12845
|
checked: p,
|
|
12846
|
-
onChange:
|
|
12846
|
+
onChange: C
|
|
12847
12847
|
})
|
|
12848
12848
|
})
|
|
12849
12849
|
] })
|
|
@@ -12875,36 +12875,38 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12875
12875
|
}, Sy = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12876
12876
|
const o = j(), a = W(o), i = M(), { Slider: l, Switch: s, ToggleGroup: c } = _(), d = dt(a), u = a !== null && d !== null ? _i(a, d) : null;
|
|
12877
12877
|
if (u === null) return null;
|
|
12878
|
-
const h = u.axes.
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12878
|
+
const h = u.axes.filter((C) => C.supportsGrid);
|
|
12879
|
+
if (h.length === 0) return null;
|
|
12880
|
+
const p = u.axes.some((C) => C.showGrid), m = Et.map((C) => ({
|
|
12881
|
+
value: C,
|
|
12882
|
+
label: i(`editor.graphPanel.gridSection.lineStyles.${C}`)
|
|
12883
|
+
})), g = (C) => (T) => {
|
|
12882
12884
|
o.commands.dispatch(new wn({
|
|
12883
|
-
axis:
|
|
12884
|
-
visible:
|
|
12885
|
+
axis: C,
|
|
12886
|
+
visible: T
|
|
12885
12887
|
}));
|
|
12886
|
-
},
|
|
12887
|
-
const
|
|
12888
|
-
|
|
12889
|
-
},
|
|
12890
|
-
o.commands.dispatch(zi(
|
|
12888
|
+
}, f = (C) => {
|
|
12889
|
+
const T = Et.find((x) => x === C);
|
|
12890
|
+
T !== void 0 && o.commands.dispatch(Fi(T));
|
|
12891
|
+
}, b = (C) => {
|
|
12892
|
+
o.commands.dispatch(zi(C), { transient: !0 });
|
|
12891
12893
|
};
|
|
12892
12894
|
return /* @__PURE__ */ r(Z, {
|
|
12893
12895
|
title: e ?? i("editor.graphPanel.gridSection.title"),
|
|
12894
12896
|
layout: t,
|
|
12895
12897
|
preview: n,
|
|
12896
|
-
children: /* @__PURE__ */ v(re, { children: [
|
|
12897
|
-
label: i(Xb(
|
|
12898
|
+
children: /* @__PURE__ */ v(re, { children: [h.map((C) => /* @__PURE__ */ r(P, {
|
|
12899
|
+
label: i(Xb(C)),
|
|
12898
12900
|
children: /* @__PURE__ */ r(s, {
|
|
12899
|
-
checked:
|
|
12900
|
-
onChange:
|
|
12901
|
+
checked: C.showGrid,
|
|
12902
|
+
onChange: g(C.scaledAesthetic)
|
|
12901
12903
|
})
|
|
12902
|
-
},
|
|
12904
|
+
}, C.scaledAesthetic)), u.stylable && p && /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(P, {
|
|
12903
12905
|
label: i("editor.graphPanel.gridSection.gridStyle"),
|
|
12904
12906
|
children: /* @__PURE__ */ r(c, {
|
|
12905
12907
|
value: u.lineStyle,
|
|
12906
|
-
options:
|
|
12907
|
-
onChange:
|
|
12908
|
+
options: m,
|
|
12909
|
+
onChange: f
|
|
12908
12910
|
})
|
|
12909
12911
|
}), /* @__PURE__ */ r(P, {
|
|
12910
12912
|
label: i("editor.graphPanel.gridSection.gridThickness"),
|
|
@@ -12914,7 +12916,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12914
12916
|
max: 8,
|
|
12915
12917
|
step: 0.5,
|
|
12916
12918
|
formatValue: tn,
|
|
12917
|
-
onChange:
|
|
12919
|
+
onChange: b,
|
|
12918
12920
|
onCommit: o.commands.commit
|
|
12919
12921
|
})
|
|
12920
12922
|
})] })] })
|
|
@@ -12933,7 +12935,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12933
12935
|
if (!a) return null;
|
|
12934
12936
|
const c = a.config.headline, d = c.show !== "none", u = a.coordSystem, h = u.type === "polar", p = u.type === "polar" && u.innerRadius > 0, m = a.layers.some((F) => F.summary.grandTotal !== void 0);
|
|
12935
12937
|
if (h && !m) return null;
|
|
12936
|
-
const g = h ? Yb : as, f = a.guides.headline, b = f?.kind === "perGroup" && f.items.some((F) => F.comparison !== null),
|
|
12938
|
+
const g = h ? Yb : as, f = a.guides.headline, b = f?.kind === "perGroup" && f.items.some((F) => F.comparison !== null), C = g.map((F) => ({
|
|
12937
12939
|
value: F,
|
|
12938
12940
|
label: i(`editor.graphPanel.headlineNumberSection.metrics.${F}`)
|
|
12939
12941
|
})), T = Uo.map((F) => ({
|
|
@@ -12948,7 +12950,7 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12948
12950
|
}, {
|
|
12949
12951
|
value: "center",
|
|
12950
12952
|
label: i("editor.graphPanel.headlineNumberSection.position.center")
|
|
12951
|
-
}],
|
|
12953
|
+
}], w = (F) => {
|
|
12952
12954
|
o.commands.dispatch(new Dr({ show: F ? Zb : "none" }));
|
|
12953
12955
|
}, A = (F) => {
|
|
12954
12956
|
const S = g.find((y) => y === F);
|
|
@@ -12970,15 +12972,15 @@ var db = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12970
12972
|
label: i("editor.graphPanel.headlineNumberSection.toggle"),
|
|
12971
12973
|
children: /* @__PURE__ */ r(l, {
|
|
12972
12974
|
checked: d,
|
|
12973
|
-
onChange:
|
|
12975
|
+
onChange: w
|
|
12974
12976
|
})
|
|
12975
12977
|
}), d && /* @__PURE__ */ v($, { children: [
|
|
12976
|
-
|
|
12978
|
+
C.length > 1 && /* @__PURE__ */ r(P, {
|
|
12977
12979
|
label: i("editor.graphPanel.headlineNumberSection.metricLabel"),
|
|
12978
12980
|
layout: "stack",
|
|
12979
12981
|
children: /* @__PURE__ */ r(s, {
|
|
12980
12982
|
value: c.show,
|
|
12981
|
-
options:
|
|
12983
|
+
options: C,
|
|
12982
12984
|
onChange: A
|
|
12983
12985
|
})
|
|
12984
12986
|
}),
|
|
@@ -13046,7 +13048,7 @@ var yn = [
|
|
|
13046
13048
|
layers: i.layers
|
|
13047
13049
|
}), m = i.guides.headline?.kind === "perGroup", g = i.guides.colorGroups.length > 0;
|
|
13048
13050
|
if (d === "auto" && h === void 0 && !p && (m || !g)) return null;
|
|
13049
|
-
const f = h?.position ?? "none", b = d === "auto" ? f : d,
|
|
13051
|
+
const f = h?.position ?? "none", b = d === "auto" ? f : d, C = yn.filter((D) => D === b || u.includes(D)).map((D) => ({
|
|
13050
13052
|
value: D,
|
|
13051
13053
|
label: l(`editor.graphPanel.legendSection.${D}`)
|
|
13052
13054
|
})), T = (D) => {
|
|
@@ -13058,13 +13060,13 @@ var yn = [
|
|
|
13058
13060
|
}, k = (D) => {
|
|
13059
13061
|
const G = qo.find((oe) => oe === D);
|
|
13060
13062
|
G && a.commands.dispatch(new Wc({ display: G }));
|
|
13061
|
-
},
|
|
13063
|
+
}, w = h?.position === "left" || h?.position === "right" ? "column" : "row", A = w === "row" ? "ltr" : c, L = (D) => l(D === "start" || D === "end" ? `editor.graphPanel.legendSection.${Qb[w][D]}` : `editor.graphPanel.legendSection.align.${D}`), O = jo.map((D) => ({
|
|
13062
13064
|
value: D,
|
|
13063
13065
|
label: L(D)
|
|
13064
13066
|
})), ie = qo.map((D) => ({
|
|
13065
13067
|
value: D,
|
|
13066
13068
|
label: l(`editor.graphPanel.legendSection.display.${D}`)
|
|
13067
|
-
})), F = t ?? l("editor.graphPanel.legendSection.title"), S =
|
|
13069
|
+
})), F = t ?? l("editor.graphPanel.legendSection.title"), S = C.find((D) => D.value === b)?.label, y = h !== void 0;
|
|
13068
13070
|
return /* @__PURE__ */ r(Z, {
|
|
13069
13071
|
title: F,
|
|
13070
13072
|
layout: n,
|
|
@@ -13075,7 +13077,7 @@ var yn = [
|
|
|
13075
13077
|
layout: "stack",
|
|
13076
13078
|
children: /* @__PURE__ */ r(s, {
|
|
13077
13079
|
value: b,
|
|
13078
|
-
options:
|
|
13080
|
+
options: C,
|
|
13079
13081
|
onChange: T
|
|
13080
13082
|
})
|
|
13081
13083
|
}),
|
|
@@ -13140,9 +13142,9 @@ var yn = [
|
|
|
13140
13142
|
}, xy = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13141
13143
|
const o = j(), a = W(o), i = M(), { Select: l, Slider: s, Switch: c, ToggleGroup: d } = _(), u = dt(a), h = Da(a?.spec.layers ?? [], "line", "area"), p = a && u && h ? cr(a, u, h.id) : null;
|
|
13142
13144
|
if (!a || !p) return null;
|
|
13143
|
-
const m = p.missingValueOptions.map((
|
|
13144
|
-
value:
|
|
13145
|
-
label: Ci(i,
|
|
13145
|
+
const m = p.missingValueOptions.map((w) => ({
|
|
13146
|
+
value: w,
|
|
13147
|
+
label: Ci(i, w)
|
|
13146
13148
|
})), g = [{
|
|
13147
13149
|
value: "auto",
|
|
13148
13150
|
label: i("editor.graphPanel.numberFormat.options.auto"),
|
|
@@ -13150,34 +13152,34 @@ var yn = [
|
|
|
13150
13152
|
}, {
|
|
13151
13153
|
value: "custom",
|
|
13152
13154
|
label: i("editor.graphPanel.numberFormat.options.custom")
|
|
13153
|
-
}], f = (
|
|
13155
|
+
}], f = (w) => {
|
|
13154
13156
|
o.commands.dispatch(new er({
|
|
13155
13157
|
layerId: p.layerId,
|
|
13156
|
-
showPoints:
|
|
13158
|
+
showPoints: w
|
|
13157
13159
|
}));
|
|
13158
|
-
}, b = (
|
|
13160
|
+
}, b = (w) => {
|
|
13159
13161
|
o.commands.dispatch(new ke({
|
|
13160
13162
|
layerId: p.layerId,
|
|
13161
|
-
showFill:
|
|
13163
|
+
showFill: w,
|
|
13162
13164
|
drawnFillAlpha: p.drawnFillAlpha
|
|
13163
13165
|
}));
|
|
13164
|
-
},
|
|
13166
|
+
}, C = (w) => {
|
|
13165
13167
|
o.commands.dispatch(new wa({
|
|
13166
13168
|
layerId: p.layerId,
|
|
13167
|
-
curve:
|
|
13169
|
+
curve: w ? "smooth" : "linear"
|
|
13168
13170
|
}));
|
|
13169
|
-
}, T = (
|
|
13171
|
+
}, T = (w) => {
|
|
13170
13172
|
o.commands.dispatch(new ke({
|
|
13171
13173
|
layerId: p.layerId,
|
|
13172
|
-
strokeWidth:
|
|
13174
|
+
strokeWidth: w === "custom" ? p.strokeWidth : null
|
|
13173
13175
|
}));
|
|
13174
|
-
}, x = (
|
|
13176
|
+
}, x = (w) => {
|
|
13175
13177
|
o.commands.dispatch(new ke({
|
|
13176
13178
|
layerId: p.layerId,
|
|
13177
|
-
strokeWidth:
|
|
13179
|
+
strokeWidth: w
|
|
13178
13180
|
}), { transient: !0 });
|
|
13179
|
-
}, k = (
|
|
13180
|
-
const A = Mn.find((L) => L ===
|
|
13181
|
+
}, k = (w) => {
|
|
13182
|
+
const A = Mn.find((L) => L === w);
|
|
13181
13183
|
A && o.commands.dispatch(new xa({
|
|
13182
13184
|
layerId: p.layerId,
|
|
13183
13185
|
missingValues: A
|
|
@@ -13211,7 +13213,7 @@ var yn = [
|
|
|
13211
13213
|
label: i("editor.graphPanel.graphOptions.smoothLines"),
|
|
13212
13214
|
children: /* @__PURE__ */ r(c, {
|
|
13213
13215
|
checked: p.smooth,
|
|
13214
|
-
onChange:
|
|
13216
|
+
onChange: C
|
|
13215
13217
|
})
|
|
13216
13218
|
}),
|
|
13217
13219
|
/* @__PURE__ */ r(P, {
|
|
@@ -13324,12 +13326,12 @@ var yn = [
|
|
|
13324
13326
|
})), g = (x) => {
|
|
13325
13327
|
o.commands.dispatch(new jc({ abbreviation: x }));
|
|
13326
13328
|
}, f = (x) => {
|
|
13327
|
-
const k = d3.find((
|
|
13329
|
+
const k = d3.find((w) => w === x);
|
|
13328
13330
|
g(k ?? i3);
|
|
13329
13331
|
}, b = (x) => {
|
|
13330
|
-
const k = Wn.find((
|
|
13332
|
+
const k = Wn.find((w) => w.value === x);
|
|
13331
13333
|
k && g(k.value);
|
|
13332
|
-
},
|
|
13334
|
+
}, C = (x) => {
|
|
13333
13335
|
o.commands.dispatch(new _r({ decimals: x === "custom" ? l3 : "auto" }));
|
|
13334
13336
|
}, T = (x) => {
|
|
13335
13337
|
x !== null && o.commands.dispatch(new _r({ decimals: x }), { transient: !0 });
|
|
@@ -13364,7 +13366,7 @@ var yn = [
|
|
|
13364
13366
|
children: /* @__PURE__ */ r(s, {
|
|
13365
13367
|
value: h ? "custom" : "auto",
|
|
13366
13368
|
options: p(["auto", "custom"]),
|
|
13367
|
-
onChange:
|
|
13369
|
+
onChange: C
|
|
13368
13370
|
})
|
|
13369
13371
|
}),
|
|
13370
13372
|
h && /* @__PURE__ */ r(P, {
|
|
@@ -13491,20 +13493,20 @@ var yn = [
|
|
|
13491
13493
|
const u = kd(a.spec.layers), h = Sd(a.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : b3, m = y3(h), g = Zo.map((k) => ({
|
|
13492
13494
|
value: k,
|
|
13493
13495
|
label: i(`editor.annotationsPanel.trendType.options.${k}`)
|
|
13494
|
-
})), f = (k,
|
|
13496
|
+
})), f = (k, w = {}) => {
|
|
13495
13497
|
const A = u ?? h, L = new ed({
|
|
13496
13498
|
line: k,
|
|
13497
|
-
...
|
|
13499
|
+
...w,
|
|
13498
13500
|
...A !== void 0 && { layerId: A.id },
|
|
13499
13501
|
label: i("editor.annotationsPanel.trendsAndAveragesSection.average")
|
|
13500
13502
|
});
|
|
13501
13503
|
o.commands.dispatch(L);
|
|
13502
|
-
}, b = (k) => f(k ? "trend" : "none", { method: p }),
|
|
13503
|
-
const
|
|
13504
|
-
|
|
13504
|
+
}, b = (k) => f(k ? "trend" : "none", { method: p }), C = (k) => f(k ? "average" : "none", { group: m ?? d(c[0]?.value ?? "") }), T = (k) => {
|
|
13505
|
+
const w = Zo.find((A) => A === k);
|
|
13506
|
+
w !== void 0 && f("trend", { method: w });
|
|
13505
13507
|
}, x = (k) => {
|
|
13506
|
-
const
|
|
13507
|
-
|
|
13508
|
+
const w = k === null ? void 0 : d(k);
|
|
13509
|
+
w !== void 0 && f("average", { group: w });
|
|
13508
13510
|
};
|
|
13509
13511
|
return /* @__PURE__ */ r(Z, {
|
|
13510
13512
|
title: e ?? i("editor.annotationsPanel.trendsAndAveragesSection.title"),
|
|
@@ -13533,7 +13535,7 @@ var yn = [
|
|
|
13533
13535
|
icon: /* @__PURE__ */ r(f3, { size: "lg" }),
|
|
13534
13536
|
children: /* @__PURE__ */ r(s, {
|
|
13535
13537
|
checked: h !== void 0,
|
|
13536
|
-
onChange:
|
|
13538
|
+
onChange: C
|
|
13537
13539
|
})
|
|
13538
13540
|
}),
|
|
13539
13541
|
h !== void 0 && c.length > 0 && /* @__PURE__ */ r(P, {
|