@graphysdk/react-renderer 1.9.0-beta.1793705178615 → 1.9.0-beta.1793705972988
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.d.ts +7 -7
- package/dist/editable.mjs +245 -245
- package/dist/{history-chords-DFaoLzYd.js → history-chords-8Qa2vuLW.js} +2199 -2163
- package/dist/history-chords-CrTzRf6N.cjs +2 -0
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +72 -72
- package/package.json +4 -4
- package/dist/history-chords-D0TR7SJV.cjs +0 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { ARROW_DEFAULTS as ec, ARROW_STICKER_DECLARATIONS as tc, ARROW_STROKE_WIDTHS_PX as Qt, AddAnnotationCommand as
|
|
3
|
-
import { Fragment as Ea, createContext as Oe, memo as Ma, useCallback as te, useContext as
|
|
1
|
+
import { $ as Ho, At as ge, C as is, Cn as ls, Ct as E, D as Go, Dn as Vo, Dt as ss, E as cs, Et as ds, F as us, Fn as zn, G as X, H as hs, I, It as et, J as ps, Jt as gs, K as ms, Lt as ee, Mn as vs, Mt as Me, N as fs, Nn as H, O as gn, Ot as bs, P as ys, Q as Bn, Rt as Ss, S as Cs, St as $o, T as xs, Tt as ws, U as ks, V as Ts, W as Q, X as K, Y as As, Z as Hn, Zt as Ps, _ as Fe, b as Wo, bn as Ls, c as Uo, cn as se, ct as Is, d as Es, dt as Ms, et as Gn, f as Os, ft as me, g as Ko, gt as Ot, h as tt, ht as Rs, i as Rt, in as Ns, it as Vn, jn as R, jt as Ds, k as Nt, kn as $, l as _s, ln as $n, lt as Fs, m as zs, mt as Bs, n as de, nn as Hs, nt as Gs, o as Vs, on as qo, p as jo, pt as Se, q as wr, qt as kr, r as W, rn as Xo, rt as Zo, sn as Yo, st as $s, t as Ws, tn as Us, tt as Dt, u as Ks, un as Be, ut as Tr, v as qs, wt as Jo, x as js, xt as Xs, y as Zs, yn as Ys, yt as Js, zt as Qs } from "./history-chords-8Qa2vuLW.js";
|
|
2
|
+
import { ARROW_DEFAULTS as ec, ARROW_STICKER_DECLARATIONS as tc, ARROW_STROKE_WIDTHS_PX as Qt, AddAnnotationCommand as Pe, AddHighlightCommand as nc, COMBO_TYPES as Ar, CONSTANT_VARIABLES as rc, DASH_PRESETS as oc, DEFAULT_BAR_CORNER_RADII as ac, DEFAULT_GEOM_COLOR as ic, DEFAULT_POINT_SIZE_PX as Qo, DEFAULT_STROKE_WIDTH_PX as lc, DIFFERENCE_ARROW_DEFAULTS as ea, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Pr, InternalError as sc, MAX_BAR_WIDTH_FRACTION as cc, MIN_BAR_WIDTH_FRACTION as dc, MoveAnnotationCommand as uc, RESTING_HOVER_STATE as Wn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as hc, SHAPE_DEFAULTS as pc, SequenceCommand as Xe, SetAxisLabelCommand as ta, SetAxisPositionCommand as na, SetAxisTickModeCommand as ra, SetAxisTicksVisibilityCommand as gc, SetAxisVisibilityCommand as mn, SetBarCornerRadiusCommand as mc, SetBarWidthCommand as oa, SetContentCaptionCommand as aa, SetContentSourceCommand as vc, SetContentSubtitleCommand as ia, SetContentTitleCommand as la, SetDataLabelsFormatCommand as sa, SetDifferenceArrowStyleCommand as fc, SetGraphTypeCommand as Un, SetGridLineStyleCommand as ca, SetGridVisibilityCommand as vn, SetHeadlineCompareWithCommand as bc, SetHeadlinePositionCommand as yc, SetHeadlineShowCommand as Lr, SetHeadlineSizeCommand as Sc, SetHighlightDimStyleCommand as Cc, SetLayerYScaleTypeCommand as xc, SetLegendAlignCommand as wc, SetLegendDisplayCommand as kc, SetLegendPlacementCommand as Tc, SetLegendPositionCommand as fn, SetLineCurveCommand as da, SetLineMissingValuesCommand as ua, SetLineStyleCommand as ke, SetMappingCommand as Ac, SetNumberFormatAbbreviationCommand as Pc, SetNumberFormatDecimalsCommand as Ir, SetObservationsColorCommand as Lc, SetPointSizeCommand as Kn, SetPolarInnerRadiusCommand as Ic, SetPolarStartAngleCommand as Ec, SetRuleLabelCommand as Mc, SetRuleValueCommand as Oc, SetScaleDomainCommand as Ye, SetScaleRangeCommand as Rc, SetScaleReverseCommand as Nc, SetScaleTransformCommand as ha, SetStatLineCommand as Dc, SetStyleRuleCommand as Ne, TEXT_ANNOTATION_DEFAULTS as _c, TEXT_ANNOTATION_FADE_ALPHA as Fc, ToggleCategoryLabelsCommand as pa, ToggleContentVisibilityCommand as Re, ToggleDataLabelsCommand as ga, ToggleGoalLineCommand as zc, ToggleLinePointsCommand as qn, ToggleStackTotalsCommand as ma, UpdateAnnotationCommand as ve, alignUnitFractions as Bc, areAnchorsEqual as va, areEditTargetsEqual as jn, areEndpointsComparable as Hc, buildEditMenuTriggerRegion as Gc, buildLayerStyleAddress as Ge, buildObservationPredicate as Vc, buildObservationsTarget as We, buildObservationsTargetAtValue as fa, canAnchorDirectLabels as $c, canBecomeCombo as Wc, canBecomeHeatmap as Uc, clampAnnotationTranslation as Kc, combineKindStyleDeclarations as Er, computeArrow as ba, createObservationAnchorBuilder as qc, createObservationAnchorParser as jc, createStyleResolver as Xc, createStyleRuleMatcher as Zc, createValueFormatter as ya, createXValueReader as Yc, filterLayersByGeoms as bn, findAnnotation as Jc, findAverageLineLayer as Qc, findAxisGuide as Sa, findCompanionLayers as Ca, findGoalLineLayer as ed, findHighlightsAtObservation as td, findHostLayer as _t, findKindStyleDeclarations as yt, findLayerByGeom as xa, findLayerById as j, findObservationAttachment as nd, findStyleRule as Le, findTrendLineLayer as rd, formatDifferenceLabel as od, getBoundingRect as yn, getGroupVariables as wa, getXBand as ad, getYBand as id, hasMainAxisBand as ld, hasMultipleGroups as Ft, inferDefaultDifferenceArrowEndpoints as sd, inferDifferenceArrowEndpoints as cd, isComboGraphType as le, isCompanionLayer as ka, isGeomStyleRule as dd, isLayerSpecOf as zt, isObservationAttachmentKind as ud, isPointWithinEditMenuTrigger as Xn, isSafeUrl as hd, isZeroAnchoredAxis as Ta, measureObservationsBoxes as Aa, projectAnchorToPanel as St, readBroadestObservationsScope as pd, readColorChoices as gd, readComboLineLayerId as md, readCompanionRowsAtScopeKey as vd, readConstantValue as fd, readEditTargetKey as Bt, readGeomColor as bd, readGraphType as Ht, readHighlightDimStyle as yd, readMainAxis as Sd, readMappableAesthetics as Cd, readMappedVariable as xd, readObservationIndex as Zn, readObservationsColor as wd, readObservationsColorRoute as Yn, readReachableLevels as kd, readRowScopeKey as Td, readRowsAtScopeKey as Ad, readScopeXVariable as Pd, readStyleCoord as ce, readStyleRulesBeneath as Ld, readVariableName as Gt, resolveArrowAnnotationStyle as Jn, resolveBarBandFraction as Pa, resolveComparisonBasis as Id, resolveDifferenceArrowAnnotationStyle as Ed, resolveEditOutlineStyle as Md, resolveLayerAxisValueFormat as Od, resolveObservationPoint as La, resolveObservationsTarget as De, stepDifferenceArrowEndpoint as Rd, toDashPreset as _e, toPaintColor as Ct, toPanelCursor as Vt, toStrokeDasharray as Ia } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as Ea, createContext as Oe, memo as Ma, useCallback as te, useContext as ue, useEffect as z, useId as Ie, useLayoutEffect as Ee, useMemo as M, useRef as ne, useState as q, useSyncExternalStore as Nd } from "react";
|
|
4
4
|
import { Fragment as V, jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
5
5
|
import { motion as Dd } from "motion/react";
|
|
6
6
|
import { useShallow as Ce } from "zustand/react/shallow";
|
|
@@ -14,7 +14,7 @@ import { HexColorInput as Vd, HexColorPicker as $d } from "react-colorful";
|
|
|
14
14
|
import { NumberField as Mr } from "@base-ui/react/number-field";
|
|
15
15
|
import { Radio as Oa } from "@base-ui/react/radio";
|
|
16
16
|
import { RadioGroup as Ra } from "@base-ui/react/radio-group";
|
|
17
|
-
import { Tooltip as
|
|
17
|
+
import { Tooltip as he } from "@base-ui/react/tooltip";
|
|
18
18
|
import { Select as be } from "@base-ui/react/select";
|
|
19
19
|
import { Slider as qe } from "@base-ui/react/slider";
|
|
20
20
|
import { Switch as Or } from "@base-ui/react/switch";
|
|
@@ -35,7 +35,7 @@ import { Underline as tu } from "@tiptap/extension-underline";
|
|
|
35
35
|
import { Placeholder as tr, UndoRedo as nu } from "@tiptap/extensions";
|
|
36
36
|
import { Paragraph as _a } from "@tiptap/extension-paragraph";
|
|
37
37
|
import { EditorContent as Fa, useEditor as ru, useEditorState as ou } from "@tiptap/react";
|
|
38
|
-
import { Toolbar as
|
|
38
|
+
import { Toolbar as Te } from "@base-ui/react/toolbar";
|
|
39
39
|
import { Menu as ae } from "@base-ui/react/menu";
|
|
40
40
|
import { Toggle as au } from "@base-ui/react/toggle";
|
|
41
41
|
import { Accordion as Ze } from "@base-ui/react/accordion";
|
|
@@ -137,8 +137,8 @@ import './editable.css';var za = (e, t) => {
|
|
|
137
137
|
value: o,
|
|
138
138
|
children: n
|
|
139
139
|
});
|
|
140
|
-
},
|
|
141
|
-
const a =
|
|
140
|
+
}, Ae = ({ id: e, ariaLabel: t, ariaLabelledBy: n }, o = !0) => {
|
|
141
|
+
const a = ue(Ba), i = Ie(), [l] = q(() => o ? a?.claimControlId(i) ?? !1 : !1), s = e ?? (l ? a?.controlId : void 0), c = n ?? (t === void 0 ? a?.labelId : void 0);
|
|
142
142
|
return {
|
|
143
143
|
...s !== void 0 && { id: s },
|
|
144
144
|
...t !== void 0 && { "aria-label": t },
|
|
@@ -150,7 +150,7 @@ var pu = {
|
|
|
150
150
|
tile: "woi4bh7 woi4bh5",
|
|
151
151
|
icon: "woi4bh8 woi4bh5"
|
|
152
152
|
}, gu = ({ label: e, icon: t, onClick: n, variant: o = "default", expanded: a, disabled: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
|
|
153
|
-
const d =
|
|
153
|
+
const d = Ae({
|
|
154
154
|
id: c,
|
|
155
155
|
ariaLabel: l,
|
|
156
156
|
ariaLabelledBy: s
|
|
@@ -200,7 +200,7 @@ var $a = "transparent", Wa = (e) => e === "transparent" ? {
|
|
|
200
200
|
background: e,
|
|
201
201
|
border: `1px solid ${mu.border}`
|
|
202
202
|
}, yu = ({ title: e, colors: t, value: n, onChange: o, trailing: a, clearable: i = !1, disabled: l, id: s, ariaLabel: c, ariaLabelledBy: d }) => {
|
|
203
|
-
const u = E(), h =
|
|
203
|
+
const u = E(), h = Ae({
|
|
204
204
|
id: s,
|
|
205
205
|
ariaLabel: c,
|
|
206
206
|
ariaLabelledBy: d
|
|
@@ -251,14 +251,14 @@ var $a = "transparent", Wa = (e) => e === "transparent" ? {
|
|
|
251
251
|
value: o,
|
|
252
252
|
children: e
|
|
253
253
|
})] });
|
|
254
|
-
}, Wt = () =>
|
|
254
|
+
}, Wt = () => ue(ja), Tu = "_178jeit0", Au = "_178jeit1 _14ty2ng3", Pu = "_178jeit2 _14ty2ng4", Lu = "_178jeit3", Iu = "_178jeit4", Eu = "_178jeit5", Mu = "_178jeit6", Ou = "_178jeit7", Ru = {
|
|
255
255
|
side: "flip",
|
|
256
256
|
align: "shift",
|
|
257
257
|
fallbackAxisSide: "end"
|
|
258
258
|
}, Nu = ({ value: e, onChange: t, onCommit: n, popupAttributes: o, variant: a = "default" }) => {
|
|
259
259
|
const i = E(), l = Wt(), [s, c] = q(!1), d = (p) => {
|
|
260
260
|
c(p), p || n?.();
|
|
261
|
-
}, u = e !== null &&
|
|
261
|
+
}, u = e !== null && Ns(e) ? e : "#000000", h = Xo(u) ? u.toUpperCase() : "#000000";
|
|
262
262
|
return /* @__PURE__ */ v(J.Root, {
|
|
263
263
|
open: s,
|
|
264
264
|
onOpenChange: d,
|
|
@@ -322,15 +322,15 @@ var $a = "transparent", Wa = (e) => e === "transparent" ? {
|
|
|
322
322
|
})]
|
|
323
323
|
});
|
|
324
324
|
}, nr = Oe(null), U = () => {
|
|
325
|
-
const e =
|
|
325
|
+
const e = ue(nr);
|
|
326
326
|
if (!e) throw new Error("An editing section must sit inside an <EditorPanel.Root> bound to a graph — pass it a `handle`, or render the panel inside a <GraphProvider>.");
|
|
327
327
|
return e;
|
|
328
328
|
}, Xa = ({ children: e, onKeyDown: t, ...n }) => {
|
|
329
|
-
const o =
|
|
329
|
+
const o = ue(nr);
|
|
330
330
|
return /* @__PURE__ */ r("div", {
|
|
331
331
|
onKeyDown: (i) => {
|
|
332
332
|
if (t?.(i), !o || i.defaultPrevented) return;
|
|
333
|
-
const l =
|
|
333
|
+
const l = Ws(i.nativeEvent);
|
|
334
334
|
l && (i.preventDefault(), l === "undo" ? o.undo() : o.redo());
|
|
335
335
|
},
|
|
336
336
|
...n,
|
|
@@ -367,7 +367,7 @@ var $a = "transparent", Wa = (e) => e === "transparent" ? {
|
|
|
367
367
|
};
|
|
368
368
|
}, Du = "eh8dvc0", _u = "eh8dvc1 uz3g760", Fu = "eh8dvc2 uz3g761";
|
|
369
369
|
var zu = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, placeholder: l, prefix: s, suffix: c, disabled: d, hasError: u, ariaLabel: h, ariaLabelledBy: p, id: m }) => {
|
|
370
|
-
const g =
|
|
370
|
+
const g = Ae({
|
|
371
371
|
id: m,
|
|
372
372
|
ariaLabel: h,
|
|
373
373
|
ariaLabelledBy: p
|
|
@@ -407,7 +407,7 @@ var zu = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, placeho
|
|
|
407
407
|
})
|
|
408
408
|
});
|
|
409
409
|
}, rr = ({ children: e }) => {
|
|
410
|
-
const { themeValues: t } =
|
|
410
|
+
const { themeValues: t } = Ot();
|
|
411
411
|
return /* @__PURE__ */ r(Se, {
|
|
412
412
|
style: M(() => xe({
|
|
413
413
|
[se.fontFamily]: t.fontFamily,
|
|
@@ -469,31 +469,31 @@ var Ya = "srewh00", Bu = "srewh01", Hu = {
|
|
|
469
469
|
})
|
|
470
470
|
});
|
|
471
471
|
}, or = ({ label: e, checked: t = !1, children: n }) => {
|
|
472
|
-
const { hovered: o, dismissed: a, reachedTooltipId: i, reach: l, release: s, dismiss: c } =
|
|
472
|
+
const { hovered: o, dismissed: a, reachedTooltipId: i, reach: l, release: s, dismiss: c } = ue(Ja), d = Ie(), [u, h] = q(!1), p = o ? !a && (i === d || t && i === null) : u;
|
|
473
473
|
z(() => () => {
|
|
474
474
|
s(d, "pointer"), s(d, "focus");
|
|
475
475
|
}, [d, s]);
|
|
476
476
|
const m = (g, f) => {
|
|
477
477
|
f.reason === "escape-key" && (c(), f.allowPropagation()), h(g);
|
|
478
478
|
};
|
|
479
|
-
return /* @__PURE__ */ v(
|
|
479
|
+
return /* @__PURE__ */ v(he.Root, {
|
|
480
480
|
open: p,
|
|
481
481
|
onOpenChange: m,
|
|
482
482
|
disableHoverablePopup: !0,
|
|
483
|
-
children: [/* @__PURE__ */ r(
|
|
483
|
+
children: [/* @__PURE__ */ r(he.Trigger, {
|
|
484
484
|
render: n,
|
|
485
485
|
"aria-label": e,
|
|
486
486
|
onPointerEnter: (g) => g.pointerType !== "touch" && l(d, "pointer"),
|
|
487
487
|
onPointerLeave: () => s(d, "pointer"),
|
|
488
488
|
onFocus: () => l(d, "focus"),
|
|
489
489
|
onBlur: () => s(d, "focus")
|
|
490
|
-
}), /* @__PURE__ */ r(
|
|
490
|
+
}), /* @__PURE__ */ r(he.Portal, {
|
|
491
491
|
container: me(),
|
|
492
492
|
className: we,
|
|
493
|
-
children: /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ r(
|
|
493
|
+
children: /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ r(he.Positioner, {
|
|
494
494
|
sideOffset: 6,
|
|
495
495
|
className: Bu,
|
|
496
|
-
children: /* @__PURE__ */ r(
|
|
496
|
+
children: /* @__PURE__ */ r(he.Popup, {
|
|
497
497
|
className: Ya,
|
|
498
498
|
children: e
|
|
499
499
|
})
|
|
@@ -509,7 +509,7 @@ var Ya = "srewh00", Bu = "srewh01", Hu = {
|
|
|
509
509
|
6: "_1b7s5f6"
|
|
510
510
|
}, $u = "_1b7s5f7";
|
|
511
511
|
var Wu = 6, Uu = ({ options: e, value: t, onChange: n, onCommit: o, columns: a, itemLayout: i = "tile", disabled: l, ariaLabel: s, ariaLabelledBy: c, id: d }) => {
|
|
512
|
-
const u =
|
|
512
|
+
const u = Ae({
|
|
513
513
|
id: d,
|
|
514
514
|
ariaLabel: s,
|
|
515
515
|
ariaLabelledBy: c
|
|
@@ -571,7 +571,7 @@ var Wu = 6, Uu = ({ options: e, value: t, onChange: n, onCommit: o, columns: a,
|
|
|
571
571
|
})
|
|
572
572
|
}), qu = "_1g5x15w0 uz3g760", ju = "_1g5x15w1", Xu = "_1g5x15w2", Nr = "_1g5x15w3", Zu = "_1g5x15w4", Yu = "_1g5x15w5", Ju = "_1g5x15w6", Qu = "_1g5x15w7";
|
|
573
573
|
var eh = ({ options: e, value: t, onChange: n, placeholder: o, disabled: a, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
|
|
574
|
-
const d =
|
|
574
|
+
const d = Ae({
|
|
575
575
|
id: c,
|
|
576
576
|
ariaLabel: l,
|
|
577
577
|
ariaLabelledBy: s
|
|
@@ -632,7 +632,7 @@ var eh = ({ options: e, value: t, onChange: n, placeholder: o, disabled: a, hasE
|
|
|
632
632
|
children: n
|
|
633
633
|
}) : nh(e, t), nh = (e, t) => e.find((n) => n.value === t)?.label ?? t, rh = "vod76w0", oh = "vod76w1", ah = "vod76w2", ih = "vod76w3", lh = "vod76w4", sh = "vod76w5";
|
|
634
634
|
var ch = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix: l, formatValue: s, showValue: c = !0, disabled: d, ariaLabel: u, ariaLabelledBy: h }) => {
|
|
635
|
-
const p =
|
|
635
|
+
const p = Ae({
|
|
636
636
|
ariaLabel: u,
|
|
637
637
|
ariaLabelledBy: h
|
|
638
638
|
}, !1), m = dh(e, l, s), { commitUnlessHeldKey: g, gestureHandlers: f } = Ut(n);
|
|
@@ -666,7 +666,7 @@ var ch = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix:
|
|
|
666
666
|
})]
|
|
667
667
|
});
|
|
668
668
|
}, dh = (e, t, n) => n !== void 0 ? n(e) : `${e}${t ?? ""}`, uh = "_1hyrlw60", hh = "_1hyrlw61", ph = ({ checked: e, onChange: t, disabled: n, ariaLabel: o, ariaLabelledBy: a, id: i }) => {
|
|
669
|
-
const l =
|
|
669
|
+
const l = Ae({
|
|
670
670
|
id: i,
|
|
671
671
|
ariaLabel: o,
|
|
672
672
|
ariaLabelledBy: a
|
|
@@ -680,7 +680,7 @@ var ch = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix:
|
|
|
680
680
|
children: /* @__PURE__ */ r(Or.Thumb, { className: hh })
|
|
681
681
|
});
|
|
682
682
|
}, gh = "uz3g761", mh = "tpcnun0 uz3g760", vh = ({ value: e, onChange: t, onCommit: n, placeholder: o, disabled: a, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
|
|
683
|
-
const d =
|
|
683
|
+
const d = Ae({
|
|
684
684
|
id: c,
|
|
685
685
|
ariaLabel: l,
|
|
686
686
|
ariaLabelledBy: s
|
|
@@ -701,7 +701,7 @@ var ch = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix:
|
|
|
701
701
|
});
|
|
702
702
|
}, fh = "cnu9yl0", bh = "cnu9yl1";
|
|
703
703
|
var ei = ({ options: e, value: t, onChange: n, onCommit: o, itemLayout: a = "inline", hasEqualWidths: i = !1, disabled: l, ariaLabel: s, ariaLabelledBy: c, id: d }) => {
|
|
704
|
-
const u =
|
|
704
|
+
const u = Ae({
|
|
705
705
|
id: d,
|
|
706
706
|
ariaLabel: s,
|
|
707
707
|
ariaLabelledBy: c
|
|
@@ -748,7 +748,7 @@ var ei = ({ options: e, value: t, onChange: n, onCommit: o, itemLayout: a = "inl
|
|
|
748
748
|
ColorSwatches: yu,
|
|
749
749
|
CustomColor: Nu
|
|
750
750
|
}, xn = Oe(Sh), Ch = ({ controls: e, children: t }) => {
|
|
751
|
-
const n =
|
|
751
|
+
const n = ue(xn), o = M(() => ({
|
|
752
752
|
ToggleGroup: e?.ToggleGroup ?? n.ToggleGroup,
|
|
753
753
|
Switch: e?.Switch ?? n.Switch,
|
|
754
754
|
Slider: e?.Slider ?? n.Slider,
|
|
@@ -776,14 +776,14 @@ var ei = ({ options: e, value: t, onChange: n, onCommit: o, itemLayout: a = "inl
|
|
|
776
776
|
value: o,
|
|
777
777
|
children: t
|
|
778
778
|
});
|
|
779
|
-
}, D = () =>
|
|
779
|
+
}, D = () => ue(xn), Dr = {
|
|
780
780
|
stack: "pr583x0",
|
|
781
781
|
grid: "pr583x1"
|
|
782
782
|
}, _r = "pr583x2", xh = {
|
|
783
783
|
plain: "pr583x4 pr583x3",
|
|
784
784
|
withIcon: "pr583x5 pr583x3"
|
|
785
785
|
}, T = ({ label: e, layout: t = "grid", icon: n, children: o }) => {
|
|
786
|
-
const a =
|
|
786
|
+
const a = Ie(), i = Ie();
|
|
787
787
|
return e === void 0 ? /* @__PURE__ */ r(Cn, {
|
|
788
788
|
className: Dr[t],
|
|
789
789
|
children: /* @__PURE__ */ r("div", {
|
|
@@ -810,7 +810,7 @@ var ei = ({ options: e, value: t, onChange: n, onCommit: o, itemLayout: a = "inl
|
|
|
810
810
|
})]
|
|
811
811
|
});
|
|
812
812
|
}, ni = ({ target: e }) => {
|
|
813
|
-
const t =
|
|
813
|
+
const t = Rt();
|
|
814
814
|
return t === null ? null : /* @__PURE__ */ r(wh, {
|
|
815
815
|
graph: t,
|
|
816
816
|
axis: e.axis
|
|
@@ -1011,7 +1011,7 @@ var ri = (e, t, n) => j(t.layers, e.layerId) === void 0 ? null : Yn(t.spec, e, n
|
|
|
1011
1011
|
width: 0.95
|
|
1012
1012
|
}
|
|
1013
1013
|
], oi = ({ target: e }) => {
|
|
1014
|
-
const t = R((p) => p), n =
|
|
1014
|
+
const t = R((p) => p), n = de(), o = E(), { ToggleGroup: a } = D(), i = j(t.spec.layers, e.layerId), l = zt(i, "bar") ? i : null, s = t.coordSystem.type === "polar" && t.coordSystem.bandAxis === null, c = (p) => {
|
|
1015
1015
|
const m = en.find(({ name: g }) => g === p);
|
|
1016
1016
|
m !== void 0 && n.dispatch(new oa({
|
|
1017
1017
|
layerId: e.layerId,
|
|
@@ -2048,7 +2048,7 @@ var lp = "_1a90obs1", sp = [
|
|
|
2048
2048
|
stackedBars: "stacked",
|
|
2049
2049
|
lines: "lines"
|
|
2050
2050
|
}, pp = () => {
|
|
2051
|
-
const e = R((k) => k.spec), t = R(({ layers: k }) => k.some((L) => Ft(L.data, L.mapping))), n =
|
|
2051
|
+
const e = R((k) => k.spec), t = R(({ layers: k }) => k.some((L) => Ft(L.data, L.mapping))), n = de(), o = E(), { Button: a, RadioGrid: i } = D(), [l, s] = q(!1), c = ne(null);
|
|
2052
2052
|
z(() => {
|
|
2053
2053
|
if (!l) return;
|
|
2054
2054
|
const k = ({ target: L, detail: B }) => {
|
|
@@ -2274,8 +2274,8 @@ var lp = "_1a90obs1", sp = [
|
|
|
2274
2274
|
onChange: a
|
|
2275
2275
|
})
|
|
2276
2276
|
});
|
|
2277
|
-
}, bi = Oe({}), yp = bi.Provider, Sp = () =>
|
|
2278
|
-
const e = R((u) => u.scales.color), t = Sp(), n =
|
|
2277
|
+
}, bi = Oe({}), yp = bi.Provider, Sp = () => ue(bi), Cp = "_1qh3fon0", kn = "theme", xp = 3, st = 14, Hr = 9, wp = () => {
|
|
2278
|
+
const e = R((u) => u.scales.color), t = Sp(), n = de(), o = E(), { RadioGrid: a } = D();
|
|
2279
2279
|
if (Object.keys(t).length === 0 || e?.kind !== "visual" || e.spec.scaleType !== "discrete" || e.defaultPalette === void 0) return null;
|
|
2280
2280
|
const { defaultPalette: i, spec: l } = e, s = Object.entries(t), c = [{
|
|
2281
2281
|
value: kn,
|
|
@@ -2326,7 +2326,7 @@ var lp = "_1a90obs1", sp = [
|
|
|
2326
2326
|
}, i)).reverse()
|
|
2327
2327
|
});
|
|
2328
2328
|
}, Vr = ["smooth", "linear"], yi = () => {
|
|
2329
|
-
const e = R((S) => S), t = $(), n =
|
|
2329
|
+
const e = R((S) => S), t = $(), n = zn(), o = de(), a = E(), { Switch: i, ToggleGroup: l } = D(), s = Si(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: y }) => S(y)).map(({ layer: y }) => y), d = Tp(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = wn.filter((S) => h.some((y) => y.missingValueOptions.includes(S))), m = Ip(u), g = Ep(h), f = (S) => {
|
|
2330
2330
|
o.dispatch(new Xe({ commands: d.map((y) => new qn({
|
|
2331
2331
|
layerId: y.layerId,
|
|
2332
2332
|
showPoints: S
|
|
@@ -2535,7 +2535,7 @@ var Si = (e, t, n) => e.filter((o) => o.interactive).map((o) => ({
|
|
|
2535
2535
|
const [t, ...n] = e, o = t?.missingValues ?? null;
|
|
2536
2536
|
return o === null ? "" : n.every((a) => a.missingValues === o) ? o : "";
|
|
2537
2537
|
}, ct = ({ label: e, layers: t, isOn: n, buildCommand: o }) => {
|
|
2538
|
-
const a =
|
|
2538
|
+
const a = de(), { Switch: i } = D();
|
|
2539
2539
|
if (t.length === 0) return null;
|
|
2540
2540
|
const l = (s) => {
|
|
2541
2541
|
a.dispatch(new Xe({ commands: t.map((c) => o(c.id, s)) }));
|
|
@@ -2608,7 +2608,7 @@ var Ci = (e) => e.scaledAesthetic === "x" || e.scaledAesthetic === "y", xi = (e,
|
|
|
2608
2608
|
widthPx: 4
|
|
2609
2609
|
}
|
|
2610
2610
|
], Ti = ({ target: e }) => {
|
|
2611
|
-
const t = R((b) => b), n = $(), o = xi(t, n), a = E(), i =
|
|
2611
|
+
const t = R((b) => b), n = $(), o = xi(t, n), a = E(), i = de(), { ToggleGroup: l } = D();
|
|
2612
2612
|
if (o === null || !o.stylable) return null;
|
|
2613
2613
|
const s = e.axis === "both" ? "y" : e.axis, c = n.gridLine[s]().resolve(), d = _e(c.dashArray), u = Np(e.axis, o), h = At.map((b) => ({
|
|
2614
2614
|
value: b,
|
|
@@ -2702,12 +2702,12 @@ var Ur = [
|
|
|
2702
2702
|
center: "Center",
|
|
2703
2703
|
end: "End"
|
|
2704
2704
|
}, _p = () => {
|
|
2705
|
-
const e = R((c) => c.guides.legends.drawn[0]), t =
|
|
2705
|
+
const e = R((c) => c.guides.legends.drawn[0]), t = de(), n = E(), { RadioGrid: o } = D(), a = e === void 0, i = a ? "" : an(e), l = Ur.map((c) => {
|
|
2706
2706
|
const d = an(c);
|
|
2707
2707
|
return {
|
|
2708
2708
|
value: d,
|
|
2709
2709
|
label: n(`editor.overlayMenu.legendPlaces.${d}`),
|
|
2710
|
-
icon: /* @__PURE__ */ r(
|
|
2710
|
+
icon: /* @__PURE__ */ r(us, {
|
|
2711
2711
|
title: "",
|
|
2712
2712
|
size: "xs",
|
|
2713
2713
|
style: { transform: `rotate(${Fp(c)}deg)` }
|
|
@@ -2741,7 +2741,7 @@ var Ur = [
|
|
|
2741
2741
|
})
|
|
2742
2742
|
});
|
|
2743
2743
|
}, an = ({ position: e, align: t }) => e === "left" || e === "right" ? e : `${e}${Dp[t]}`, Fp = ({ gridRow: e, gridColumn: t }) => Math.atan2(t - 2, 2 - e) * 180 / Math.PI, An = ({ target: e }) => {
|
|
2744
|
-
const t =
|
|
2744
|
+
const t = Rt();
|
|
2745
2745
|
return t === null ? null : /* @__PURE__ */ r(zp, {
|
|
2746
2746
|
graph: t,
|
|
2747
2747
|
target: e
|
|
@@ -3427,7 +3427,7 @@ var Yp = (e) => {
|
|
|
3427
3427
|
};
|
|
3428
3428
|
return t.hasRows = (n, { scene: o }) => za(n, o) !== null, t;
|
|
3429
3429
|
}, bt = ir((e, t) => Zp(t, e)), jr = ir(Mi), y1 = ir(Oi), S1 = ({ anchor: e, readHighlightOptions: t }) => {
|
|
3430
|
-
const { layer: n, observation: o, at: a } = e, i = E(), { dispatch: l } =
|
|
3430
|
+
const { layer: n, observation: o, at: a } = e, i = E(), { dispatch: l } = de(), { selectionStore: s } = H(), { Button: c } = D(), [d, u] = q(null), h = R((P) => P.spec.annotations), p = R((P) => P.config.parsingLocale), m = nd(h, a, M(() => jc(n, p), [n, p])), g = m !== null && l1(m) ? m : null, f = a1(n, o), b = f.at(-1), C = R((P) => P.coordSystem), A = M(() => cd({
|
|
3431
3431
|
layer: n,
|
|
3432
3432
|
at: a,
|
|
3433
3433
|
coordSystem: C
|
|
@@ -3482,7 +3482,7 @@ var Yp = (e) => {
|
|
|
3482
3482
|
/* @__PURE__ */ r(c, {
|
|
3483
3483
|
label: i("graph.annotations.baseMenu.pinNumber"),
|
|
3484
3484
|
icon: /* @__PURE__ */ r(Ii, {}),
|
|
3485
|
-
onClick: () => x(new
|
|
3485
|
+
onClick: () => x(new Pe({
|
|
3486
3486
|
kind: "pinnedNumber",
|
|
3487
3487
|
annotation: { at: a }
|
|
3488
3488
|
}))
|
|
@@ -3512,7 +3512,7 @@ var Yp = (e) => {
|
|
|
3512
3512
|
A !== null && /* @__PURE__ */ r(c, {
|
|
3513
3513
|
label: i("graph.annotations.baseMenu.differenceArrow"),
|
|
3514
3514
|
icon: /* @__PURE__ */ r(qp, {}),
|
|
3515
|
-
onClick: () => x(new
|
|
3515
|
+
onClick: () => x(new Pe({
|
|
3516
3516
|
kind: "differenceArrow",
|
|
3517
3517
|
annotation: {
|
|
3518
3518
|
...ea,
|
|
@@ -3547,7 +3547,7 @@ var Yp = (e) => {
|
|
|
3547
3547
|
s.current?.querySelector("input")?.focus();
|
|
3548
3548
|
}, []);
|
|
3549
3549
|
const d = () => {
|
|
3550
|
-
c.length !== 0 && t(new
|
|
3550
|
+
c.length !== 0 && t(new Pe({
|
|
3551
3551
|
kind: "comment",
|
|
3552
3552
|
annotation: {
|
|
3553
3553
|
at: e,
|
|
@@ -3573,11 +3573,11 @@ var Yp = (e) => {
|
|
|
3573
3573
|
});
|
|
3574
3574
|
}, w1 = ({ at: e, onRun: t }) => /* @__PURE__ */ r("div", {
|
|
3575
3575
|
className: g1,
|
|
3576
|
-
children: Object.entries(
|
|
3576
|
+
children: Object.entries(_s).map(([n, o]) => /* @__PURE__ */ r("button", {
|
|
3577
3577
|
type: "button",
|
|
3578
3578
|
className: f1,
|
|
3579
3579
|
"aria-label": n,
|
|
3580
|
-
onClick: () => t(new
|
|
3580
|
+
onClick: () => t(new Pe({
|
|
3581
3581
|
kind: "sticker",
|
|
3582
3582
|
annotation: {
|
|
3583
3583
|
at: {
|
|
@@ -3667,7 +3667,7 @@ var Yp = (e) => {
|
|
|
3667
3667
|
children: t
|
|
3668
3668
|
});
|
|
3669
3669
|
}, A1 = (e) => {
|
|
3670
|
-
const t =
|
|
3670
|
+
const t = ue(lr), n = R((l) => l), { findGeom: o } = H(), a = zn(), i = Bi(ge());
|
|
3671
3671
|
return M(() => e === null ? null : Hi(e, t, {
|
|
3672
3672
|
scene: n,
|
|
3673
3673
|
dataLabelPlacement: a,
|
|
@@ -3681,7 +3681,7 @@ var Yp = (e) => {
|
|
|
3681
3681
|
i
|
|
3682
3682
|
]);
|
|
3683
3683
|
}, P1 = () => {
|
|
3684
|
-
const e =
|
|
3684
|
+
const e = ue(lr), { store: t, findGeom: n } = H(), o = zn(), a = Bi(ge());
|
|
3685
3685
|
return te((i) => Hi(i, e, {
|
|
3686
3686
|
scene: t.getState().scene,
|
|
3687
3687
|
dataLabelPlacement: o,
|
|
@@ -3693,7 +3693,7 @@ var Yp = (e) => {
|
|
|
3693
3693
|
n,
|
|
3694
3694
|
a
|
|
3695
3695
|
]);
|
|
3696
|
-
}, Bi = (e) => e ===
|
|
3696
|
+
}, Bi = (e) => e === Ds.annotate ? "annotate" : "style", Hi = (e, t, n, o) => {
|
|
3697
3697
|
if (o === "annotate" && e.kind !== "observations") return null;
|
|
3698
3698
|
switch (e.kind) {
|
|
3699
3699
|
case "observations": {
|
|
@@ -6152,12 +6152,12 @@ var Yp = (e) => {
|
|
|
6152
6152
|
"en-US": F1,
|
|
6153
6153
|
ar: M1,
|
|
6154
6154
|
"pt-PT": G1
|
|
6155
|
-
}, $1 = [V1,
|
|
6155
|
+
}, $1 = [V1, ws], Gi = ({ children: e, ...t }) => /* @__PURE__ */ r(Xs, {
|
|
6156
6156
|
dictionaries: $1,
|
|
6157
6157
|
...t,
|
|
6158
6158
|
children: /* @__PURE__ */ r(W1, { children: e })
|
|
6159
6159
|
}), W1 = ({ children: e }) => /* @__PURE__ */ r(er, {
|
|
6160
|
-
direction:
|
|
6160
|
+
direction: Jo(),
|
|
6161
6161
|
children: e
|
|
6162
6162
|
}), U1 = "data-variant", Vi = _a.extend({ addAttributes() {
|
|
6163
6163
|
return { variant: {
|
|
@@ -6226,7 +6226,7 @@ var Yp = (e) => {
|
|
|
6226
6226
|
})
|
|
6227
6227
|
], X1 = ({ showTitle: e, showSubtitle: t }) => e && t ? xt.extend({ content: "block{2,}" }) : xt;
|
|
6228
6228
|
var Z1 = "linear-gradient(to top right, transparent calc(50% - 1px), var(--graphy-alert) calc(50% - 1px), var(--graphy-alert) calc(50% + 1px), transparent calc(50% + 1px))", Y1 = "d0bl00";
|
|
6229
|
-
var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn =
|
|
6229
|
+
var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Yo.map((e) => se[e]), tg = Object.fromEntries(Yo.map((e) => [se[e], e])), ng = (e) => Pn.some((t) => t.toLowerCase() === e.toLowerCase()), rg = ({ color: e, onChange: t, open: n, onOpenChange: o, children: a, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: d = !1 }) => {
|
|
6230
6230
|
const u = E(), { ColorSwatches: h, Slider: p } = D(), m = ig(), g = d ? [$a, ...Pn] : Pn, f = (b) => {
|
|
6231
6231
|
t(b), o(!1);
|
|
6232
6232
|
};
|
|
@@ -6234,7 +6234,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6234
6234
|
open: n,
|
|
6235
6235
|
onOpenChange: o,
|
|
6236
6236
|
children: [/* @__PURE__ */ r(J.Trigger, {
|
|
6237
|
-
render: /* @__PURE__ */ r(
|
|
6237
|
+
render: /* @__PURE__ */ r(Te.Button, {}),
|
|
6238
6238
|
"aria-label": i ?? u("graph.toolbar.color.label"),
|
|
6239
6239
|
className: Y1,
|
|
6240
6240
|
onMouseDown: (b) => b.preventDefault(),
|
|
@@ -6292,11 +6292,11 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6292
6292
|
})]
|
|
6293
6293
|
});
|
|
6294
6294
|
}, og = (e, t) => {
|
|
6295
|
-
if (
|
|
6295
|
+
if (Xo(e)) return e;
|
|
6296
6296
|
const n = tg[e];
|
|
6297
6297
|
return n === void 0 ? e : t[n];
|
|
6298
6298
|
}, ag = ({ value: e, onChange: t, popupAttributes: n }) => {
|
|
6299
|
-
const { CustomColor: o } = D(), { themeValues: a } =
|
|
6299
|
+
const { CustomColor: o } = D(), { themeValues: a } = Ot();
|
|
6300
6300
|
return /* @__PURE__ */ r(o, {
|
|
6301
6301
|
value: e === null ? null : og(e, a),
|
|
6302
6302
|
onChange: t,
|
|
@@ -6334,13 +6334,13 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6334
6334
|
disabled: n,
|
|
6335
6335
|
onClick: o,
|
|
6336
6336
|
children: e
|
|
6337
|
-
}), mg = ({ className: e, ...t }) => /* @__PURE__ */ r(
|
|
6337
|
+
}), mg = ({ className: e, ...t }) => /* @__PURE__ */ r(he.Provider, { children: /* @__PURE__ */ r(Te.Root, {
|
|
6338
6338
|
...t,
|
|
6339
6339
|
className: ye(lg, e)
|
|
6340
|
-
}) }), vg = ({ className: e, ...t }) => /* @__PURE__ */ r(
|
|
6340
|
+
}) }), vg = ({ className: e, ...t }) => /* @__PURE__ */ r(Te.Group, {
|
|
6341
6341
|
...t,
|
|
6342
6342
|
className: ye(sg, e)
|
|
6343
|
-
}), fg = ({ className: e, ...t }) => /* @__PURE__ */ r(
|
|
6343
|
+
}), fg = ({ className: e, ...t }) => /* @__PURE__ */ r(Te.Separator, {
|
|
6344
6344
|
...t,
|
|
6345
6345
|
className: ye(cg, e)
|
|
6346
6346
|
}), bg = ({ children: e }) => {
|
|
@@ -6351,16 +6351,16 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6351
6351
|
Root: mg,
|
|
6352
6352
|
Group: vg,
|
|
6353
6353
|
Separator: fg,
|
|
6354
|
-
Button:
|
|
6354
|
+
Button: Te.Button,
|
|
6355
6355
|
ColorPicker: rg,
|
|
6356
6356
|
MenuPopup: pg,
|
|
6357
6357
|
MenuItem: gg
|
|
6358
|
-
}, yg = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Sg = `'Aeonik', 'Aeonik Fallback', ${
|
|
6358
|
+
}, yg = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Sg = `'Aeonik', 'Aeonik Fallback', ${qo}`, Cg = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", xg = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Ln = [
|
|
6359
6359
|
{
|
|
6360
6360
|
id: "modern",
|
|
6361
6361
|
label: "Modern",
|
|
6362
6362
|
preview: "Aa",
|
|
6363
|
-
fontFamily:
|
|
6363
|
+
fontFamily: qo
|
|
6364
6364
|
},
|
|
6365
6365
|
{
|
|
6366
6366
|
id: "fresh",
|
|
@@ -6394,7 +6394,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6394
6394
|
open: n,
|
|
6395
6395
|
onOpenChange: o,
|
|
6396
6396
|
children: [/* @__PURE__ */ v(ae.Trigger, {
|
|
6397
|
-
render: /* @__PURE__ */ r(
|
|
6397
|
+
render: /* @__PURE__ */ r(Te.Button, {}),
|
|
6398
6398
|
"aria-label": a("graph.toolbar.font.ariaLabel"),
|
|
6399
6399
|
className: $i,
|
|
6400
6400
|
onMouseDown: (s) => s.preventDefault(),
|
|
@@ -6459,7 +6459,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6459
6459
|
open: n,
|
|
6460
6460
|
onOpenChange: o,
|
|
6461
6461
|
children: [/* @__PURE__ */ v(ae.Trigger, {
|
|
6462
|
-
render: /* @__PURE__ */ r(
|
|
6462
|
+
render: /* @__PURE__ */ r(Te.Button, {}),
|
|
6463
6463
|
"aria-label": a("graph.toolbar.heading.ariaLabel"),
|
|
6464
6464
|
className: $i,
|
|
6465
6465
|
onMouseDown: (l) => l.preventDefault(),
|
|
@@ -6560,7 +6560,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6560
6560
|
open: o,
|
|
6561
6561
|
onOpenChange: a,
|
|
6562
6562
|
children: [/* @__PURE__ */ r(J.Trigger, {
|
|
6563
|
-
render: /* @__PURE__ */ r(
|
|
6563
|
+
render: /* @__PURE__ */ r(Te.Button, {}),
|
|
6564
6564
|
"aria-label": i("graph.toolbar.formatting.link"),
|
|
6565
6565
|
"data-active": n,
|
|
6566
6566
|
className: Og,
|
|
@@ -6665,9 +6665,9 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6665
6665
|
})
|
|
6666
6666
|
}), zg = "_1d66w570", Bg = "_1d66w571", He = ({ label: e, active: t, onToggle: n, children: o }) => {
|
|
6667
6667
|
const a = (i) => i.preventDefault();
|
|
6668
|
-
return /* @__PURE__ */ v(
|
|
6668
|
+
return /* @__PURE__ */ v(he.Root, { children: [/* @__PURE__ */ r(he.Trigger, {
|
|
6669
6669
|
render: /* @__PURE__ */ r(au, {
|
|
6670
|
-
render: /* @__PURE__ */ r(
|
|
6670
|
+
render: /* @__PURE__ */ r(Te.Button, {}),
|
|
6671
6671
|
pressed: t,
|
|
6672
6672
|
onPressedChange: () => n()
|
|
6673
6673
|
}),
|
|
@@ -6675,13 +6675,13 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6675
6675
|
className: zg,
|
|
6676
6676
|
onMouseDown: a,
|
|
6677
6677
|
children: o
|
|
6678
|
-
}), /* @__PURE__ */ r(
|
|
6678
|
+
}), /* @__PURE__ */ r(he.Portal, {
|
|
6679
6679
|
container: me(),
|
|
6680
6680
|
className: we,
|
|
6681
|
-
children: /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ r(
|
|
6681
|
+
children: /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ r(he.Positioner, {
|
|
6682
6682
|
sideOffset: 6,
|
|
6683
6683
|
className: Bg,
|
|
6684
|
-
children: /* @__PURE__ */ r(
|
|
6684
|
+
children: /* @__PURE__ */ r(he.Popup, {
|
|
6685
6685
|
className: Ya,
|
|
6686
6686
|
children: e
|
|
6687
6687
|
})
|
|
@@ -6814,7 +6814,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6814
6814
|
"aria-label": t
|
|
6815
6815
|
})]
|
|
6816
6816
|
}), Xg = 200, cr = ({ content: e, extensions: t, editable: n, onUpdate: o, updateDebounceMs: a = Xg }) => {
|
|
6817
|
-
const i = ne(Qr(e)), l = ne(i.current), s =
|
|
6817
|
+
const i = ne(Qr(e)), l = ne(i.current), s = bs((d) => {
|
|
6818
6818
|
l.current = d, o?.(d);
|
|
6819
6819
|
}, a), c = ru({
|
|
6820
6820
|
extensions: t,
|
|
@@ -6859,7 +6859,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6859
6859
|
to: Math.min(o, a)
|
|
6860
6860
|
});
|
|
6861
6861
|
}, sn = (e, t) => JSON.stringify(Pt(e)) === JSON.stringify(Pt(t)), Pt = (e) => Array.isArray(e) ? e.map(Pt) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [t, Pt(n)]).filter(([, t]) => !Yg(t)).sort(([t], [n]) => String(t).localeCompare(String(n)))), Yg = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Jg = ({ caption: e, captionStyle: t }) => {
|
|
6862
|
-
const { dispatch: n } =
|
|
6862
|
+
const { dispatch: n } = de(), o = cr({
|
|
6863
6863
|
content: e,
|
|
6864
6864
|
extensions: M(() => j1({ placeholder: "Add caption" }), []),
|
|
6865
6865
|
editable: !0,
|
|
@@ -6870,7 +6870,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6870
6870
|
});
|
|
6871
6871
|
return /* @__PURE__ */ r("div", {
|
|
6872
6872
|
"data-testid": "caption-editor",
|
|
6873
|
-
style:
|
|
6873
|
+
style: gs(t),
|
|
6874
6874
|
children: /* @__PURE__ */ r(Ji, {
|
|
6875
6875
|
editor: o,
|
|
6876
6876
|
ariaLabel: "Chart caption"
|
|
@@ -6886,7 +6886,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6886
6886
|
placeholder: ({ pos: t }) => t === 0 ? e : ""
|
|
6887
6887
|
})
|
|
6888
6888
|
], em = ({ annotation: e }) => {
|
|
6889
|
-
const t = E(), { dispatch: n } =
|
|
6889
|
+
const t = E(), { dispatch: n } = de(), o = X(), a = M(() => Qg(t("graph.annotations.text.placeholder")), [t]), i = cr({
|
|
6890
6890
|
content: e.content,
|
|
6891
6891
|
extensions: a,
|
|
6892
6892
|
editable: !0,
|
|
@@ -6905,12 +6905,12 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
6905
6905
|
i?.commands.focus("end", { scrollIntoView: !1 });
|
|
6906
6906
|
}, [i]), /* @__PURE__ */ r(Fa, {
|
|
6907
6907
|
"aria-label": t("graph.annotations.text.editLabel"),
|
|
6908
|
-
className:
|
|
6908
|
+
className: Os,
|
|
6909
6909
|
editor: i,
|
|
6910
6910
|
"data-testid": "text-annotation-editor"
|
|
6911
6911
|
});
|
|
6912
6912
|
}, eo = (e) => {
|
|
6913
|
-
const t =
|
|
6913
|
+
const t = Ms(e);
|
|
6914
6914
|
return t === void 0 ? {} : { style: `font-family: ${t}` };
|
|
6915
6915
|
}, tm = Na.create({
|
|
6916
6916
|
name: "annotationTextStyleAttributes",
|
|
@@ -7011,7 +7011,7 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
7011
7011
|
textShadow: "var(--uwf6ltl)",
|
|
7012
7012
|
textOutline: "var(--uwf6ltm)"
|
|
7013
7013
|
}, hm = ({ title: e, showTitle: t, showSubtitle: n, subtitle: o, headingStyle: a, subtitleStyle: i }) => {
|
|
7014
|
-
const { dispatch: l } =
|
|
7014
|
+
const { dispatch: l } = de(), s = M(() => q1({
|
|
7015
7015
|
titlePlaceholder: "Untitled",
|
|
7016
7016
|
subtitlePlaceholder: "Untitled",
|
|
7017
7017
|
showTitle: t,
|
|
@@ -7039,8 +7039,8 @@ var J1 = "d0bl03", Q1 = "d0bl04", eg = 0.01, Pn = Jo.map((e) => se[e]), tg = Obj
|
|
|
7039
7039
|
className: cm,
|
|
7040
7040
|
"data-testid": "title-editor",
|
|
7041
7041
|
style: {
|
|
7042
|
-
...
|
|
7043
|
-
...
|
|
7042
|
+
...kr(dm, a),
|
|
7043
|
+
...kr(um, i)
|
|
7044
7044
|
},
|
|
7045
7045
|
children: /* @__PURE__ */ r(Ji, {
|
|
7046
7046
|
editor: c,
|
|
@@ -7206,7 +7206,7 @@ var xm = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
7206
7206
|
to: e.y + e.height
|
|
7207
7207
|
}), Lm = (e, { frameElement: t, panelRect: n, look: o }) => {
|
|
7208
7208
|
const a = X(), i = $(), l = R((h) => h.coordSystem), s = ne(/* @__PURE__ */ new Map()), c = e?.target ?? null, d = e?.outline ?? null;
|
|
7209
|
-
|
|
7209
|
+
Ee(() => {
|
|
7210
7210
|
if (c === null || d === null) return;
|
|
7211
7211
|
const h = s.current, p = /* @__PURE__ */ new Map(), g = bm(d, {
|
|
7212
7212
|
panelRect: n,
|
|
@@ -7242,7 +7242,7 @@ var xm = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
7242
7242
|
o
|
|
7243
7243
|
]);
|
|
7244
7244
|
const u = e !== null;
|
|
7245
|
-
|
|
7245
|
+
Ee(() => u ? () => a.getState().setSelectedOutline(null) : void 0, [a, u]);
|
|
7246
7246
|
}, ur = "var(--_1qfw3e00)", Im = "_1qfw3e01", Em = "_1qfw3e02", ao = ({ pathData: e, animateTransitions: t, source: n, ...o }) => t ? /* @__PURE__ */ r(Mm, {
|
|
7247
7247
|
pathData: e,
|
|
7248
7248
|
source: n,
|
|
@@ -7251,7 +7251,7 @@ var xm = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
7251
7251
|
d: e,
|
|
7252
7252
|
...o
|
|
7253
7253
|
}), Mm = ({ pathData: e, source: t, ...n }) => {
|
|
7254
|
-
const o =
|
|
7254
|
+
const o = Ys(e, Ls, t);
|
|
7255
7255
|
return /* @__PURE__ */ r(Dd.path, {
|
|
7256
7256
|
d: o,
|
|
7257
7257
|
...n
|
|
@@ -7309,12 +7309,8 @@ var xm = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
7309
7309
|
return e;
|
|
7310
7310
|
}
|
|
7311
7311
|
}, rt = () => {
|
|
7312
|
-
const e = P1(), { store: t } = H()
|
|
7313
|
-
return te((
|
|
7314
|
-
e,
|
|
7315
|
-
t,
|
|
7316
|
-
n
|
|
7317
|
-
]);
|
|
7312
|
+
const e = P1(), { store: t } = H();
|
|
7313
|
+
return te((n) => e(n) || nl(n, t.getState().scene) !== null, [e, t]);
|
|
7318
7314
|
};
|
|
7319
7315
|
var io = (e, t) => {
|
|
7320
7316
|
if (e.kind === "observations" && t.kind === "observations") {
|
|
@@ -7431,7 +7427,7 @@ var io = (e, t) => {
|
|
|
7431
7427
|
return dn([...Gm(i.filter((s) => !Vm(s)))].flatMap(([s, c]) => o[s] === "direct" ? c.map(l) : [yn(c.map(l))]));
|
|
7432
7428
|
case "grid":
|
|
7433
7429
|
return i.flatMap((s) => {
|
|
7434
|
-
const c =
|
|
7430
|
+
const c = Nt([s], e);
|
|
7435
7431
|
if (c?.kind !== "grid" || c.target.axis === "both") return [];
|
|
7436
7432
|
const { axis: d } = c.target;
|
|
7437
7433
|
return t.axis === "both" || d === t.axis ? [$m(s, l(s), d)] : [];
|
|
@@ -7439,15 +7435,15 @@ var io = (e, t) => {
|
|
|
7439
7435
|
}
|
|
7440
7436
|
}, Hm = (e) => {
|
|
7441
7437
|
const t = `[${cs}="${e.kind}"]`;
|
|
7442
|
-
return e.kind !== "axis" ? t : `${t}[${
|
|
7438
|
+
return e.kind !== "axis" ? t : `${t}[${xs}="${e.axis}"]`;
|
|
7443
7439
|
}, Gm = (e) => {
|
|
7444
7440
|
const t = /* @__PURE__ */ new Map();
|
|
7445
7441
|
for (const n of e) {
|
|
7446
|
-
const o =
|
|
7442
|
+
const o = fs(n);
|
|
7447
7443
|
o !== null && t.set(o.legendIndex, [...t.get(o.legendIndex) ?? [], n]);
|
|
7448
7444
|
}
|
|
7449
7445
|
return t;
|
|
7450
|
-
}, Vm = (e) => e.closest(
|
|
7446
|
+
}, Vm = (e) => e.closest(Go) !== null, dn = (e) => e.map((t) => ({
|
|
7451
7447
|
kind: "box",
|
|
7452
7448
|
rect: t
|
|
7453
7449
|
})), $m = (e, { x: t, y: n, width: o, height: a }, i) => e.querySelector("circle") !== null ? {
|
|
@@ -7506,7 +7502,7 @@ var io = (e, t) => {
|
|
|
7506
7502
|
const t = (n) => Number(e?.getAttribute(n) ?? 0);
|
|
7507
7503
|
return (t("x2") - t("x1")) * (t("y2") - t("y1")) >= 0;
|
|
7508
7504
|
}, Um = [], Km = (e, { frameElement: t, frameSize: n, panelRect: o, animateTransitions: a }) => {
|
|
7509
|
-
const i = R((f) => f.coordSystem), l =
|
|
7505
|
+
const i = R((f) => f.coordSystem), l = Ps(), s = Vo(), c = jm(e.kind === "guide" ? e.target : null, {
|
|
7510
7506
|
frameElement: t,
|
|
7511
7507
|
frameSize: n
|
|
7512
7508
|
}), d = qm(t, n), u = M(() => ({
|
|
@@ -7553,7 +7549,7 @@ var io = (e, t) => {
|
|
|
7553
7549
|
]);
|
|
7554
7550
|
}, qm = (e, t) => {
|
|
7555
7551
|
const [n, o] = q(() => no(e, t));
|
|
7556
|
-
return
|
|
7552
|
+
return Ee(() => {
|
|
7557
7553
|
o((a) => {
|
|
7558
7554
|
const i = no(e, {
|
|
7559
7555
|
width: t.width,
|
|
@@ -7595,7 +7591,7 @@ var io = (e, t) => {
|
|
|
7595
7591
|
};
|
|
7596
7592
|
}, jm = (e, { frameElement: t, frameSize: n }) => {
|
|
7597
7593
|
const o = R((u) => u.coordSystem.type), a = R(Ce((u) => u.guides.legends.drawn.map((h) => h.display))), i = R((u) => e === null ? null : u), [l, s] = q([]), c = ee(e), d = ne(!1);
|
|
7598
|
-
return
|
|
7594
|
+
return Ee(() => {
|
|
7599
7595
|
const u = c.current;
|
|
7600
7596
|
if (u === null) return;
|
|
7601
7597
|
const h = () => {
|
|
@@ -7732,21 +7728,21 @@ var io = (e, t) => {
|
|
|
7732
7728
|
vertex: null
|
|
7733
7729
|
};
|
|
7734
7730
|
}, Qm = ["x", "y"], e2 = Ma(function({ frameElement: t, frameSize: n, panelRect: o, animateTransitions: a }) {
|
|
7735
|
-
const i =
|
|
7736
|
-
if (l === null && (s === null || !
|
|
7737
|
-
const
|
|
7731
|
+
const i = Us(Md, $()), l = Zm(), s = _m(l?.outlined ?? null), { selectObservationsOnPress: c, selectGraphOnPress: d, selectGuidesOnPress: u } = Me[ge()], h = c || d || u;
|
|
7732
|
+
if (l === null && (s === null || !h)) return null;
|
|
7733
|
+
const p = {
|
|
7738
7734
|
frameElement: t,
|
|
7739
7735
|
frameSize: n,
|
|
7740
7736
|
panelRect: o,
|
|
7741
7737
|
animateTransitions: a
|
|
7742
7738
|
};
|
|
7743
|
-
return !
|
|
7739
|
+
return !h && l !== null ? /* @__PURE__ */ r(un, {
|
|
7744
7740
|
part: "selected",
|
|
7745
7741
|
target: l.outlined,
|
|
7746
7742
|
editTarget: l.target,
|
|
7747
7743
|
look: i.selected,
|
|
7748
7744
|
paints: !1,
|
|
7749
|
-
...
|
|
7745
|
+
...p
|
|
7750
7746
|
}) : /* @__PURE__ */ v("svg", {
|
|
7751
7747
|
className: Im,
|
|
7752
7748
|
width: n.width,
|
|
@@ -7758,18 +7754,18 @@ var io = (e, t) => {
|
|
|
7758
7754
|
target: s,
|
|
7759
7755
|
look: i.hover,
|
|
7760
7756
|
paints: !0,
|
|
7761
|
-
...
|
|
7757
|
+
...p
|
|
7762
7758
|
}, s.key), l !== null && /* @__PURE__ */ r(un, {
|
|
7763
7759
|
part: "selected",
|
|
7764
7760
|
target: l.outlined,
|
|
7765
7761
|
editTarget: l.target,
|
|
7766
7762
|
look: i.selected,
|
|
7767
7763
|
paints: !0,
|
|
7768
|
-
...
|
|
7764
|
+
...p
|
|
7769
7765
|
}, l.outlined.key)]
|
|
7770
7766
|
});
|
|
7771
7767
|
}), un = ({ part: e, target: t, editTarget: n, look: o, frameSize: a, panelRect: i, frameElement: l, animateTransitions: s, paints: c }) => {
|
|
7772
|
-
const d =
|
|
7768
|
+
const d = Ie(), u = `${d}-shapes`, h = `${d}-hole`, p = Km(t, {
|
|
7773
7769
|
frameElement: l,
|
|
7774
7770
|
frameSize: a,
|
|
7775
7771
|
panelRect: i,
|
|
@@ -7860,7 +7856,7 @@ var io = (e, t) => {
|
|
|
7860
7856
|
return n * Math.max(1, Math.round(2 * Math.PI * e / t)) * t;
|
|
7861
7857
|
}, a2 = (e, t, n) => {
|
|
7862
7858
|
const o = n.offset + nt(n);
|
|
7863
|
-
return
|
|
7859
|
+
return $n(Be({
|
|
7864
7860
|
x: 0,
|
|
7865
7861
|
y: 0,
|
|
7866
7862
|
...e
|
|
@@ -7921,13 +7917,13 @@ var io = (e, t) => {
|
|
|
7921
7917
|
}, i);
|
|
7922
7918
|
case "dots":
|
|
7923
7919
|
return o.centers.length === 0 ? null : /* @__PURE__ */ r("path", {
|
|
7924
|
-
d:
|
|
7920
|
+
d: ls(o.centers, o.size / 2),
|
|
7925
7921
|
pathLength: rl(o.size / 2, n, o.centers.length),
|
|
7926
7922
|
"data-geom": t.geom
|
|
7927
7923
|
}, i);
|
|
7928
7924
|
}
|
|
7929
7925
|
}), s2 = ({ boxes: e, borderRadius: t }) => {
|
|
7930
|
-
const n = e.map((o) =>
|
|
7926
|
+
const n = e.map((o) => $n(o, t)).join("");
|
|
7931
7927
|
return n === "" ? null : /* @__PURE__ */ r("path", {
|
|
7932
7928
|
d: n,
|
|
7933
7929
|
"data-testid": "edit-outline-boxes"
|
|
@@ -7945,7 +7941,7 @@ var io = (e, t) => {
|
|
|
7945
7941
|
...s
|
|
7946
7942
|
}, h))] }, l);
|
|
7947
7943
|
});
|
|
7948
|
-
const i = t.map((l) => l.kind === "box" ?
|
|
7944
|
+
const i = t.map((l) => l.kind === "box" ? $n(l.rect, n) : "").join("");
|
|
7949
7945
|
return i === "" ? null : /* @__PURE__ */ r("path", { d: i });
|
|
7950
7946
|
}, d2 = (e, t) => e.kind === "line" && e.axis === t ? `M${e.from.x},${e.from.y}L${e.to.x},${e.to.y}` : "", u2 = ({ center: e, radius: t }) => {
|
|
7951
7947
|
const n = `${e.x},${e.y - t}`;
|
|
@@ -7961,7 +7957,7 @@ var io = (e, t) => {
|
|
|
7961
7957
|
height: n.height,
|
|
7962
7958
|
overflow: "visible",
|
|
7963
7959
|
children: /* @__PURE__ */ r("line", {
|
|
7964
|
-
...
|
|
7960
|
+
...is(o, i, n),
|
|
7965
7961
|
stroke: t.stroke,
|
|
7966
7962
|
strokeOpacity: t.strokeAlpha,
|
|
7967
7963
|
strokeWidth: t.strokeWidth,
|
|
@@ -7996,7 +7992,7 @@ var io = (e, t) => {
|
|
|
7996
7992
|
return z(() => {
|
|
7997
7993
|
t(!0);
|
|
7998
7994
|
}, []), e;
|
|
7999
|
-
}, y2 = (e) =>
|
|
7995
|
+
}, y2 = (e) => Ss.some((t) => t === e), co = (e, t, n) => n === 0 ? 0 : e * t / n, S2 = {
|
|
8000
7996
|
x: 8,
|
|
8001
7997
|
y: 8
|
|
8002
7998
|
}, C2 = {
|
|
@@ -8007,7 +8003,7 @@ var io = (e, t) => {
|
|
|
8007
8003
|
const l = Wt(), s = b2(), [c, d] = q(null), u = ne(null), h = te((w) => {
|
|
8008
8004
|
u.current = w, d(w);
|
|
8009
8005
|
}, []), p = ne(null);
|
|
8010
|
-
|
|
8006
|
+
Ee(() => () => {
|
|
8011
8007
|
c?.contains(document.activeElement) && e.focus({ preventScroll: !0 });
|
|
8012
8008
|
}, [c, e]);
|
|
8013
8009
|
const { x: m, y: g, width: f, height: b } = t, C = M(() => ({
|
|
@@ -8154,7 +8150,7 @@ var io = (e, t) => {
|
|
|
8154
8150
|
xValue: Ni,
|
|
8155
8151
|
group: Di
|
|
8156
8152
|
}, O2 = () => {
|
|
8157
|
-
const { selectionStore: e } = H(), t = X(), n = E(), o =
|
|
8153
|
+
const { selectionStore: e } = H(), t = X(), n = E(), o = Vn(), a = R((b) => b), i = hr(a, o), l = Q((b) => b.pressedObservation), s = rt(), c = M(() => R2({
|
|
8158
8154
|
scene: a,
|
|
8159
8155
|
pressed: l,
|
|
8160
8156
|
groupOptions: i,
|
|
@@ -8196,7 +8192,7 @@ var io = (e, t) => {
|
|
|
8196
8192
|
ariaLabel: n("editor.overlayMenu.selection")
|
|
8197
8193
|
});
|
|
8198
8194
|
}, R2 = ({ scene: e, pressed: t, groupOptions: n, locale: o, t: a, hasOverlayMenu: i }) => {
|
|
8199
|
-
const l = t === null ? null :
|
|
8195
|
+
const l = t === null ? null : ps(t, e.layers, e.config.parsingLocale);
|
|
8200
8196
|
if (t === null || l === null) return null;
|
|
8201
8197
|
const { layer: s, observation: c } = l, { observationIndex: d, selectedFor: u } = t, { parsingLocale: h } = e.config, p = kd({
|
|
8202
8198
|
layer: s,
|
|
@@ -8253,7 +8249,7 @@ var io = (e, t) => {
|
|
|
8253
8249
|
]
|
|
8254
8250
|
})
|
|
8255
8251
|
}), _2 = "_11vjgg60", F2 = ({ target: e }) => {
|
|
8256
|
-
const t = E(), n =
|
|
8252
|
+
const t = E(), n = de(), o = R((m) => m), [a, i] = q(null), l = nl(e, o);
|
|
8257
8253
|
if (l === null) return null;
|
|
8258
8254
|
const { hidden: s, hide: c, show: d } = l, u = () => {
|
|
8259
8255
|
if (s) {
|
|
@@ -8307,7 +8303,7 @@ var io = (e, t) => {
|
|
|
8307
8303
|
return e;
|
|
8308
8304
|
}
|
|
8309
8305
|
}, U2 = ({ target: e }) => {
|
|
8310
|
-
const t = E(), n =
|
|
8306
|
+
const t = E(), n = Vn(), o = R((l) => l), a = hr(o, n), i = M(() => q2({
|
|
8311
8307
|
target: e,
|
|
8312
8308
|
scene: o,
|
|
8313
8309
|
groupOptions: a,
|
|
@@ -8326,8 +8322,8 @@ var io = (e, t) => {
|
|
|
8326
8322
|
const c = t.current, d = n.current;
|
|
8327
8323
|
c === null || d === null || a(d.offsetWidth > c.clientWidth);
|
|
8328
8324
|
}, []);
|
|
8329
|
-
|
|
8330
|
-
const { setElement: l } =
|
|
8325
|
+
Ee(i, [i, e.whole]);
|
|
8326
|
+
const { setElement: l } = ss({ onResize: i }), s = te((c) => {
|
|
8331
8327
|
t.current = c, l(c);
|
|
8332
8328
|
}, [l]);
|
|
8333
8329
|
return /* @__PURE__ */ v(V, { children: [/* @__PURE__ */ r(J.Title, {
|
|
@@ -8409,9 +8405,9 @@ var io = (e, t) => {
|
|
|
8409
8405
|
o,
|
|
8410
8406
|
a
|
|
8411
8407
|
]);
|
|
8412
|
-
return
|
|
8408
|
+
return Ee(() => {
|
|
8413
8409
|
t.getState().setBoundary(i);
|
|
8414
|
-
}, [t, i]),
|
|
8410
|
+
}, [t, i]), Ee(() => () => t.getState().setBoundary(null), [t]), null;
|
|
8415
8411
|
}, ht = (e, t, n) => ({
|
|
8416
8412
|
from: t + e.from * n,
|
|
8417
8413
|
to: t + e.to * n
|
|
@@ -8473,7 +8469,7 @@ var io = (e, t) => {
|
|
|
8473
8469
|
},
|
|
8474
8470
|
"data-testid": "arrow-endpoint-preview",
|
|
8475
8471
|
"data-annotation-id": t.annotationId,
|
|
8476
|
-
children: /* @__PURE__ */ r(
|
|
8472
|
+
children: /* @__PURE__ */ r(Ko, {
|
|
8477
8473
|
computed: l,
|
|
8478
8474
|
style: i,
|
|
8479
8475
|
addressable: !1
|
|
@@ -8710,7 +8706,7 @@ var io = (e, t) => {
|
|
|
8710
8706
|
}, {
|
|
8711
8707
|
value: "none",
|
|
8712
8708
|
key: "graph.annotations.arrowToolbar.arrowhead.none",
|
|
8713
|
-
Icon:
|
|
8709
|
+
Icon: ys
|
|
8714
8710
|
}], go = [
|
|
8715
8711
|
{
|
|
8716
8712
|
value: "solid",
|
|
@@ -8737,7 +8733,7 @@ var w0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: o, frameHeight: a,
|
|
|
8737
8733
|
...g,
|
|
8738
8734
|
part: "outline"
|
|
8739
8735
|
}), [g]), b = (S, y) => {
|
|
8740
|
-
const N =
|
|
8736
|
+
const N = Le(c, { select: g }, d)?.declarations ?? {};
|
|
8741
8737
|
s.dispatch(new Ne({
|
|
8742
8738
|
list: "overrides",
|
|
8743
8739
|
rule: {
|
|
@@ -8749,7 +8745,7 @@ var w0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: o, frameHeight: a,
|
|
|
8749
8745
|
}
|
|
8750
8746
|
}), y);
|
|
8751
8747
|
}, C = (S) => {
|
|
8752
|
-
const y =
|
|
8748
|
+
const y = Le(c, { select: f }, d)?.declarations ?? {};
|
|
8753
8749
|
s.dispatch(new Ne({
|
|
8754
8750
|
list: "overrides",
|
|
8755
8751
|
rule: {
|
|
@@ -8874,9 +8870,9 @@ var w0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: o, frameHeight: a,
|
|
|
8874
8870
|
})
|
|
8875
8871
|
})]
|
|
8876
8872
|
}, String(i.value))) });
|
|
8877
|
-
}, k0 = "_1me29t10",
|
|
8878
|
-
x:
|
|
8879
|
-
y:
|
|
8873
|
+
}, k0 = "_1me29t10", pe = (e, t) => t > 0 ? e / t : 0, jt = (e, t, n) => ({
|
|
8874
|
+
x: pe(t.x - e.x, n.width),
|
|
8875
|
+
y: pe(t.y - e.y, n.height)
|
|
8880
8876
|
}), T0 = (e) => e.x !== 0 || e.y !== 0, dl = (e, t) => ({
|
|
8881
8877
|
x: e.x * t.width,
|
|
8882
8878
|
y: e.y * t.height
|
|
@@ -8938,7 +8934,7 @@ var A0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, at = class {
|
|
|
8938
8934
|
}
|
|
8939
8935
|
readOwn(e) {
|
|
8940
8936
|
const { annotationId: t, endpoint: n } = this.params;
|
|
8941
|
-
return
|
|
8937
|
+
return Gn(K(e, "arrow-endpoint-drag"), t, n);
|
|
8942
8938
|
}
|
|
8943
8939
|
resolvePreview(e) {
|
|
8944
8940
|
const { annotationId: t, endpoint: n, press: o, readInputs: a } = this.params, { annotations: i, arrow: l, panelRect: s } = a(), c = Lt(i, t, n);
|
|
@@ -9014,7 +9010,7 @@ var A0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, at = class {
|
|
|
9014
9010
|
s
|
|
9015
9011
|
]), te((c) => ({ onKeyDown: (d) => {
|
|
9016
9012
|
if (d.altKey || d.ctrlKey || d.metaKey || d.shiftKey) return;
|
|
9017
|
-
const u = a.getState(), h =
|
|
9013
|
+
const u = a.getState(), h = Gn(K(u, "arrow-endpoint-drag"), e, c);
|
|
9018
9014
|
if (I0.includes(d.key)) {
|
|
9019
9015
|
if (d.preventDefault(), d.repeat) return;
|
|
9020
9016
|
if (h !== null) {
|
|
@@ -9059,7 +9055,7 @@ var A0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, at = class {
|
|
|
9059
9055
|
o
|
|
9060
9056
|
]);
|
|
9061
9057
|
}, vo = ({ editorStore: e, annotationId: t, endpoint: n, annotations: o, dispatch: a }) => {
|
|
9062
|
-
const i = e.getState(), l =
|
|
9058
|
+
const i = e.getState(), l = Gn(K(i, "arrow-endpoint-drag"), t, n);
|
|
9063
9059
|
if (l === null) return;
|
|
9064
9060
|
i.releaseInteraction("arrow-endpoint-drag");
|
|
9065
9061
|
const s = Lt(o, t, n);
|
|
@@ -9069,7 +9065,7 @@ var A0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, at = class {
|
|
|
9069
9065
|
patch: ul(n, l.anchor)
|
|
9070
9066
|
}));
|
|
9071
9067
|
}, M0 = (e, t) => {
|
|
9072
|
-
const n =
|
|
9068
|
+
const n = pe(mo, t.width), o = pe(mo, t.height);
|
|
9073
9069
|
switch (e) {
|
|
9074
9070
|
case "ArrowLeft":
|
|
9075
9071
|
return {
|
|
@@ -9227,10 +9223,10 @@ var V0 = [
|
|
|
9227
9223
|
patch: y
|
|
9228
9224
|
}), N);
|
|
9229
9225
|
}, w = (y) => ({
|
|
9230
|
-
...
|
|
9226
|
+
...Le(d, { select: g }, u)?.declarations,
|
|
9231
9227
|
...y
|
|
9232
9228
|
}), P = (y) => ({
|
|
9233
|
-
...
|
|
9229
|
+
...Le(d, { select: f }, u)?.declarations,
|
|
9234
9230
|
...y
|
|
9235
9231
|
}), k = (y) => {
|
|
9236
9232
|
x(y), h.close();
|
|
@@ -9371,7 +9367,7 @@ var X0 = "ydgo3h1", Z0 = "ydgo3h2", Y0 = "ydgo3h3", J0 = ({ clientPoint: e, pane
|
|
|
9371
9367
|
}
|
|
9372
9368
|
readOwn(e) {
|
|
9373
9369
|
const { endpoint: t, readInputs: n } = this.params;
|
|
9374
|
-
return
|
|
9370
|
+
return Ho(K(e, "difference-arrow-endpoint-drag"), n().arrow.id, t);
|
|
9375
9371
|
}
|
|
9376
9372
|
resolvePreview(e) {
|
|
9377
9373
|
const { endpoint: t, readInputs: n, engine: o, anchorResolver: a } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: d } = n(), u = J0({
|
|
@@ -9454,7 +9450,7 @@ var X0 = "ydgo3h1", Z0 = "ydgo3h2", Y0 = "ydgo3h3", J0 = ({ clientPoint: e, pane
|
|
|
9454
9450
|
K(c, "difference-arrow-endpoint-drag")?.annotationId === s && c.releaseInteraction("difference-arrow-endpoint-drag");
|
|
9455
9451
|
}, [o, s]), te((c) => ({ onKeyDown: (d) => {
|
|
9456
9452
|
if (d.altKey || d.ctrlKey || d.metaKey || d.shiftKey) return;
|
|
9457
|
-
const u = o.getState(), h =
|
|
9453
|
+
const u = o.getState(), h = Ho(K(u, "difference-arrow-endpoint-drag"), e.id, c);
|
|
9458
9454
|
if (nv.includes(d.key)) {
|
|
9459
9455
|
if (d.preventDefault(), d.repeat) return;
|
|
9460
9456
|
if (h === null) return u.claimInteraction({
|
|
@@ -9534,7 +9530,7 @@ var X0 = "ydgo3h1", Z0 = "ydgo3h2", Y0 = "ydgo3h3", J0 = ({ clientPoint: e, pane
|
|
|
9534
9530
|
...e
|
|
9535
9531
|
});
|
|
9536
9532
|
}, lv = ({ annotationId: e, ...t }) => {
|
|
9537
|
-
const n =
|
|
9533
|
+
const n = hs(), o = M(() => n.find((a) => a.id === e), [n, e]);
|
|
9538
9534
|
return o === void 0 ? null : /* @__PURE__ */ r(sv, {
|
|
9539
9535
|
committedArrow: o.committedArrow,
|
|
9540
9536
|
color: o.color,
|
|
@@ -9574,7 +9570,7 @@ var X0 = "ydgo3h1", Z0 = "ydgo3h2", Y0 = "ydgo3h3", J0 = ({ clientPoint: e, pane
|
|
|
9574
9570
|
top: s.y + a.y - 2,
|
|
9575
9571
|
width: a.width + 4,
|
|
9576
9572
|
height: a.height + 4,
|
|
9577
|
-
borderRadius:
|
|
9573
|
+
borderRadius: Js(n, 2)
|
|
9578
9574
|
}
|
|
9579
9575
|
}),
|
|
9580
9576
|
/* @__PURE__ */ r(yo, {
|
|
@@ -9634,8 +9630,8 @@ var X0 = "ydgo3h1", Z0 = "ydgo3h2", Y0 = "ydgo3h3", J0 = ({ clientPoint: e, pane
|
|
|
9634
9630
|
"bottom-left"
|
|
9635
9631
|
];
|
|
9636
9632
|
var gl = ({ width: e, height: t }) => ({
|
|
9637
|
-
x:
|
|
9638
|
-
y:
|
|
9633
|
+
x: pe(16, e),
|
|
9634
|
+
y: pe(16, t)
|
|
9639
9635
|
}), dv = (e, t) => ({
|
|
9640
9636
|
x: fl(t) ? e.x : e.x + e.width,
|
|
9641
9637
|
y: bl(t) ? e.y : e.y + e.height
|
|
@@ -9667,7 +9663,7 @@ var gl = ({ width: e, height: t }) => ({
|
|
|
9667
9663
|
};
|
|
9668
9664
|
}, vl = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, fl = (e) => e === "top-left" || e === "bottom-left", bl = (e) => e === "top-left" || e === "top-right", yl = (e, t, n, o) => {
|
|
9669
9665
|
const a = e.textAnnotations.find((i) => i.id === t);
|
|
9670
|
-
return a === void 0 ? null :
|
|
9666
|
+
return a === void 0 ? null : js(Ks(a, n), o);
|
|
9671
9667
|
}, uv = "var(--_1ee8fau0)";
|
|
9672
9668
|
var hv = {
|
|
9673
9669
|
hovered: "_1ee8fau2 _1ee8fau1",
|
|
@@ -9676,7 +9672,7 @@ var hv = {
|
|
|
9676
9672
|
hovered: "_1ee8fau5 _1ee8fau4",
|
|
9677
9673
|
selected: "_1ee8fau6 _1ee8fau4"
|
|
9678
9674
|
}, gv = ({ panelRect: e }) => {
|
|
9679
|
-
const t = Fe(e), n =
|
|
9675
|
+
const t = Fe(e), n = Zo(), o = $(), a = ot(), i = Q((f) => K(f, "move-drag")), l = Q((f) => K(f, "shape-resize-drag")), s = Q((f) => K(f, "arrow-endpoint-drag")), c = Q((f) => K(f, "text-resize-drag")), d = Q(ms), u = M(() => ({
|
|
9680
9676
|
panel: {
|
|
9681
9677
|
width: e.width,
|
|
9682
9678
|
height: e.height
|
|
@@ -9695,7 +9691,7 @@ var hv = {
|
|
|
9695
9691
|
}
|
|
9696
9692
|
if (s?.annotationId === f.id) {
|
|
9697
9693
|
const b = t.arrows.find((C) => C.id === f.id);
|
|
9698
|
-
return b === void 0 ? f.geometry :
|
|
9694
|
+
return b === void 0 ? f.geometry : Zs(gr(b, s), u.panel) ?? f.geometry;
|
|
9699
9695
|
}
|
|
9700
9696
|
return c?.annotationId === f.id ? yl(t, f.id, c, u) ?? f.geometry : f.geometry;
|
|
9701
9697
|
}, g = (f) => {
|
|
@@ -9719,7 +9715,7 @@ var hv = {
|
|
|
9719
9715
|
})] });
|
|
9720
9716
|
}, So = (e, t, n) => {
|
|
9721
9717
|
if (t === null) return null;
|
|
9722
|
-
const o =
|
|
9718
|
+
const o = Cs(e, t, n);
|
|
9723
9719
|
return o === null ? null : {
|
|
9724
9720
|
id: t,
|
|
9725
9721
|
geometry: o
|
|
@@ -9779,7 +9775,7 @@ var hv = {
|
|
|
9779
9775
|
children: bv(n, t.annotationId, e)
|
|
9780
9776
|
});
|
|
9781
9777
|
}, vv = ({ annotation: e, panel: t }) => {
|
|
9782
|
-
const n =
|
|
9778
|
+
const n = Gs(e.id);
|
|
9783
9779
|
return /* @__PURE__ */ r(Es, {
|
|
9784
9780
|
annotation: e,
|
|
9785
9781
|
panel: t,
|
|
@@ -9819,16 +9815,16 @@ var hv = {
|
|
|
9819
9815
|
panelWidth: t.width,
|
|
9820
9816
|
panelHeight: t.height
|
|
9821
9817
|
});
|
|
9822
|
-
return o === null ? null : /* @__PURE__ */ r(
|
|
9818
|
+
return o === null ? null : /* @__PURE__ */ r(Ko, {
|
|
9823
9819
|
computed: o,
|
|
9824
9820
|
style: n,
|
|
9825
9821
|
addressable: !1
|
|
9826
9822
|
});
|
|
9827
|
-
}, Sv = ({ shape: e, panelSize: t }) => /* @__PURE__ */ r(
|
|
9823
|
+
}, Sv = ({ shape: e, panelSize: t }) => /* @__PURE__ */ r(jo, {
|
|
9828
9824
|
shape: e,
|
|
9829
9825
|
style: $().annotation.shape(e.id).resolve(),
|
|
9830
9826
|
panel: t
|
|
9831
|
-
}), Cv = ({ image: e, panelSize: t }) => /* @__PURE__ */ r(
|
|
9827
|
+
}), Cv = ({ image: e, panelSize: t }) => /* @__PURE__ */ r(zs, {
|
|
9832
9828
|
image: e,
|
|
9833
9829
|
panel: t,
|
|
9834
9830
|
style: $().annotation.image(e.id).resolve()
|
|
@@ -9847,7 +9843,7 @@ var hv = {
|
|
|
9847
9843
|
},
|
|
9848
9844
|
"data-testid": "shape-resize-preview",
|
|
9849
9845
|
"data-annotation-id": t.annotationId,
|
|
9850
|
-
children: /* @__PURE__ */ r(
|
|
9846
|
+
children: /* @__PURE__ */ r(jo, {
|
|
9851
9847
|
shape: {
|
|
9852
9848
|
...a,
|
|
9853
9849
|
region: mr(t.region)
|
|
@@ -9906,7 +9902,7 @@ var hv = {
|
|
|
9906
9902
|
kind: "shape",
|
|
9907
9903
|
annotation: e.id
|
|
9908
9904
|
}), [e.id]), g = (x, w) => {
|
|
9909
|
-
const P =
|
|
9905
|
+
const P = Le(c, { select: m }, d)?.declarations ?? {};
|
|
9910
9906
|
s.dispatch(new Ne({
|
|
9911
9907
|
list: "overrides",
|
|
9912
9908
|
rule: {
|
|
@@ -9997,7 +9993,7 @@ var hv = {
|
|
|
9997
9993
|
super(...e), this.kind = "shape-resize-drag";
|
|
9998
9994
|
}
|
|
9999
9995
|
readOwn(e) {
|
|
10000
|
-
return
|
|
9996
|
+
return Bn(K(e, "shape-resize-drag"), this.params.annotationId);
|
|
10001
9997
|
}
|
|
10002
9998
|
resolvePreview(e) {
|
|
10003
9999
|
const { annotationId: t, corner: n, press: o, readInputs: a } = this.params, { annotations: i, panelRect: l } = a(), s = It(i, t);
|
|
@@ -10059,7 +10055,7 @@ var hv = {
|
|
|
10059
10055
|
}, ko = 4, Mv = ({ annotationId: e, panelRect: t }) => {
|
|
10060
10056
|
const { commands: n } = H(), o = X(), a = R((i) => i.spec.annotations);
|
|
10061
10057
|
return xl({
|
|
10062
|
-
readHeld: () =>
|
|
10058
|
+
readHeld: () => Bn(K(o.getState(), "shape-resize-drag"), e),
|
|
10063
10059
|
claim: () => {
|
|
10064
10060
|
const i = It(a, e);
|
|
10065
10061
|
return i === null ? null : {
|
|
@@ -10091,7 +10087,7 @@ var hv = {
|
|
|
10091
10087
|
}
|
|
10092
10088
|
});
|
|
10093
10089
|
}, Ov = (e, t) => {
|
|
10094
|
-
const n =
|
|
10090
|
+
const n = pe(ko, t.width), o = pe(ko, t.height);
|
|
10095
10091
|
switch (e) {
|
|
10096
10092
|
case "ArrowLeft":
|
|
10097
10093
|
return {
|
|
@@ -10176,7 +10172,7 @@ var hv = {
|
|
|
10176
10172
|
resizedRegion: null,
|
|
10177
10173
|
moving: !1
|
|
10178
10174
|
} : {
|
|
10179
|
-
resizedRegion:
|
|
10175
|
+
resizedRegion: Bn(K(t, "shape-resize-drag"), e)?.region ?? null,
|
|
10180
10176
|
moving: Dt(K(t, "move-drag"), e) !== null
|
|
10181
10177
|
})), zv = ({ textColor: e, ...t }) => /* @__PURE__ */ v(I, {
|
|
10182
10178
|
...t,
|
|
@@ -10221,7 +10217,7 @@ var Et = "textStyle", wl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Bv
|
|
|
10221
10217
|
...e,
|
|
10222
10218
|
marks: o === void 0 ? [...n, a] : n.map((i) => i === o ? a : i)
|
|
10223
10219
|
};
|
|
10224
|
-
}, hn = (e) => e.marks?.find((t) => t.type === Et)?.attrs, Wv = (e) =>
|
|
10220
|
+
}, hn = (e) => e.marks?.find((t) => t.type === Et)?.attrs, Wv = (e) => Tr(e?.font) ?? Tr(e?.fontFamily), kl = (e) => fr(e, (t) => t.type === "text"), Uv = (e) => fr(e, (t) => wl.has(t.type ?? "")), fr = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => fr(n, t))], mt = (e) => {
|
|
10225
10221
|
const [t, ...n] = e;
|
|
10226
10222
|
return t === void 0 ? null : n.every((o) => o === t) ? t : null;
|
|
10227
10223
|
}, Kv = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qv = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, jv = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
|
|
@@ -10249,7 +10245,7 @@ var Tl = [
|
|
|
10249
10245
|
].map(({ id: e, key: t }) => ({
|
|
10250
10246
|
id: e,
|
|
10251
10247
|
key: t,
|
|
10252
|
-
fontFamily:
|
|
10248
|
+
fontFamily: Fs[e] ?? e
|
|
10253
10249
|
})), Xv = (e) => Tl.find((t) => t.id === (e ?? "modern")) ?? null;
|
|
10254
10250
|
var Al = [
|
|
10255
10251
|
{
|
|
@@ -10291,7 +10287,7 @@ var Al = [
|
|
|
10291
10287
|
kind: "text",
|
|
10292
10288
|
annotation: e.id
|
|
10293
10289
|
}), [e.id]), A = (y, N) => {
|
|
10294
|
-
const G =
|
|
10290
|
+
const G = Le(c, { select: C }, d)?.declarations ?? {};
|
|
10295
10291
|
s.dispatch(new Ne({
|
|
10296
10292
|
list: "overrides",
|
|
10297
10293
|
rule: {
|
|
@@ -10409,7 +10405,7 @@ var Al = [
|
|
|
10409
10405
|
})
|
|
10410
10406
|
}, a.alignment)) });
|
|
10411
10407
|
}, nf = ["left", "right"];
|
|
10412
|
-
var Pl = ({ width: e }) =>
|
|
10408
|
+
var Pl = ({ width: e }) => pe(60, e), rf = (e, t) => ({
|
|
10413
10409
|
x: t === "left" ? e.x : e.x + e.width,
|
|
10414
10410
|
y: e.y + e.height / 2
|
|
10415
10411
|
}), Ll = ({ at: e, width: t, align: n, edge: o, delta: a, minWidth: i, panelWidth: l }) => {
|
|
@@ -10433,7 +10429,7 @@ var Pl = ({ width: e }) => ge(60, e), rf = (e, t) => ({
|
|
|
10433
10429
|
width: d.extent,
|
|
10434
10430
|
shift: u - e.x
|
|
10435
10431
|
};
|
|
10436
|
-
}, Il = (e, t) => e.at.x === t.at.x && e.width === t.width, of = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ?
|
|
10432
|
+
}, Il = (e, t) => e.at.x === t.at.x && e.width === t.width, of = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? pe(e.x, t) : e.x, Mt = (e, t) => {
|
|
10437
10433
|
const n = e.textAnnotations.find((o) => o.id === t);
|
|
10438
10434
|
return n === void 0 || n.at.anchorType !== "panel" ? null : {
|
|
10439
10435
|
at: n.at,
|
|
@@ -10524,7 +10520,7 @@ var Pl = ({ width: e }) => ge(60, e), rf = (e, t) => ({
|
|
|
10524
10520
|
}
|
|
10525
10521
|
});
|
|
10526
10522
|
}, df = (e, t) => {
|
|
10527
|
-
const n =
|
|
10523
|
+
const n = pe(sf, t.width);
|
|
10528
10524
|
switch (e) {
|
|
10529
10525
|
case "ArrowLeft":
|
|
10530
10526
|
return -n;
|
|
@@ -10591,7 +10587,7 @@ var Pl = ({ width: e }) => ge(60, e), rf = (e, t) => ({
|
|
|
10591
10587
|
resized: Hn(K(t, "text-resize-drag"), e),
|
|
10592
10588
|
moving: Dt(K(t, "move-drag"), e) !== null
|
|
10593
10589
|
})), mf = (e, t, n) => {
|
|
10594
|
-
const o = Fe(e), a =
|
|
10590
|
+
const o = Fe(e), a = Zo(), i = $(), l = M(() => ({
|
|
10595
10591
|
panel: {
|
|
10596
10592
|
width: e.width,
|
|
10597
10593
|
height: e.height
|
|
@@ -10682,8 +10678,8 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
10682
10678
|
n,
|
|
10683
10679
|
o
|
|
10684
10680
|
]);
|
|
10685
|
-
}, Lf = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], El = (e, t, n) =>
|
|
10686
|
-
const { selectionStore: t, commands: n, chartId: o } = H(), a = X(), i = ee(R((u) => u.spec.annotations.textAnnotations)), {
|
|
10681
|
+
}, Lf = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], El = (e, t, n) => Nt(Lf(e, t), n), If = (e) => {
|
|
10682
|
+
const { selectionStore: t, commands: n, chartId: o } = H(), a = X(), i = ee(R((u) => u.spec.annotations.textAnnotations)), { showAnnotations: l } = Me[ge()], s = te((u) => {
|
|
10687
10683
|
const { selection: h } = t.getState(), p = l ? On(h) : null;
|
|
10688
10684
|
p !== null && (u.preventDefault(), n.dispatch(new $e({ id: p })), e.focus({ preventScroll: !0 }));
|
|
10689
10685
|
}, [
|
|
@@ -10890,11 +10886,11 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
10890
10886
|
}, zf = (e) => {
|
|
10891
10887
|
const t = e.getBoundingClientRect();
|
|
10892
10888
|
return t.width > 0 && t.height > 0 ? t : null;
|
|
10893
|
-
}, To = (e, t, n, {
|
|
10889
|
+
}, To = (e, t, n, { showAnnotations: o, selectGuidesOnPress: a, frameElement: i, scene: l, hasOverlayMenu: s }) => {
|
|
10894
10890
|
if (!o && l.coordSystem.type === "cartesian" && e && t) return null;
|
|
10895
10891
|
const c = e || o ? El(n.clientX, n.clientY, i) : Bf(n.target, i);
|
|
10896
10892
|
return c === null ? null : (c.kind === "annotation" ? o : a && s(c.target)) ? c : null;
|
|
10897
|
-
}, Bf = (e, t) => e instanceof Element ?
|
|
10893
|
+
}, Bf = (e, t) => e instanceof Element ? Nt([e], t) : null, Hf = (e, t, n) => {
|
|
10898
10894
|
const o = Vt({
|
|
10899
10895
|
x: e.clientX - t.left,
|
|
10900
10896
|
y: e.clientY - t.top
|
|
@@ -10960,7 +10956,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
10960
10956
|
target: e,
|
|
10961
10957
|
observationIndex: n ? t : null
|
|
10962
10958
|
}, Wf = (e, t, n, o, a) => {
|
|
10963
|
-
const { commands: i, selectionStore: l, store: s } = H(), c = X(), d = R((b) => b.spec.annotations), u =
|
|
10959
|
+
const { commands: i, selectionStore: l, store: s } = H(), c = X(), d = R((b) => b.spec.annotations), { selectGraphOnPress: u } = Me[ge()], h = ee(u), p = ee({
|
|
10964
10960
|
annotations: d,
|
|
10965
10961
|
panelRect: n
|
|
10966
10962
|
}), m = ee(t), g = ee(a), f = ne(null);
|
|
@@ -10974,10 +10970,10 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
10974
10970
|
clientY: k.clientY
|
|
10975
10971
|
}, o()).targetAtPoint, C = (k) => {
|
|
10976
10972
|
if (!(k.target instanceof Element)) return !1;
|
|
10977
|
-
const L = k.target.closest(
|
|
10978
|
-
return L !== null && e.contains(L) &&
|
|
10973
|
+
const L = k.target.closest(Go);
|
|
10974
|
+
return L !== null && e.contains(L) && Nt([k.target], e) === null;
|
|
10979
10975
|
}, A = (k, L) => {
|
|
10980
|
-
if (f.current !== null || !
|
|
10976
|
+
if (f.current !== null || !qs(p.current.annotations, L.id)) return;
|
|
10981
10977
|
try {
|
|
10982
10978
|
e.setPointerCapture(k.pointerId);
|
|
10983
10979
|
} catch {
|
|
@@ -11001,7 +10997,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11001
10997
|
});
|
|
11002
10998
|
f.current = B, B.start();
|
|
11003
10999
|
}, x = (k, L) => {
|
|
11004
|
-
const B = l.getState(), { layers: ie, config: _ } = s.getState().scene, S = L.kind === "select-observations" && L.observationIndex !== null ?
|
|
11000
|
+
const B = l.getState(), { layers: ie, config: _ } = s.getState().scene, S = L.kind === "select-observations" && L.observationIndex !== null ? As(L.observationIndex, ie, L.target, _.parsingLocale) : null;
|
|
11005
11001
|
switch (c.getState().setPressedObservation(S), L.kind) {
|
|
11006
11002
|
case "select-annotation":
|
|
11007
11003
|
B.setSelection([L.target]), A(k, L.target);
|
|
@@ -11081,14 +11077,14 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11081
11077
|
o
|
|
11082
11078
|
]);
|
|
11083
11079
|
}, Uf = (e, t) => {
|
|
11084
|
-
const n = X(), { store: o } = H(), { engine: a, overlayRef: i } = et(), l = ee(t), {
|
|
11080
|
+
const n = X(), { store: o } = H(), { engine: a, overlayRef: i } = et(), l = ee(t), { showAnnotations: s, selectObservationsOnPress: c, selectGuidesOnPress: d, hoverTolerance: u } = Me[ge()], h = $s(), p = rt(), m = c && !h;
|
|
11085
11081
|
return te(() => ({
|
|
11086
11082
|
frameElement: e,
|
|
11087
11083
|
captureRect: i.current,
|
|
11088
11084
|
panelOrigin: l.current,
|
|
11089
11085
|
menuTrigger: n.getState().menuTrigger,
|
|
11090
|
-
|
|
11091
|
-
|
|
11086
|
+
selectGuidesOnPress: d,
|
|
11087
|
+
showAnnotations: s,
|
|
11092
11088
|
resolvesObservations: m,
|
|
11093
11089
|
engine: a,
|
|
11094
11090
|
tolerance: u ?? void 0,
|
|
@@ -11108,7 +11104,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11108
11104
|
o
|
|
11109
11105
|
]);
|
|
11110
11106
|
}, Kf = () => {
|
|
11111
|
-
const {
|
|
11107
|
+
const { showMenuTriggerOnHover: e, layers: t, coordSystem: n, parsingLocale: o, anchorResolver: a, geom: i, hasOverlayMenu: l } = Ol(), s = Is((c) => e ? c.hover.primary : null);
|
|
11112
11108
|
return M(() => {
|
|
11113
11109
|
if (s === null) return null;
|
|
11114
11110
|
const c = t.find((u) => u.id === s.layerId);
|
|
@@ -11137,7 +11133,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11137
11133
|
l
|
|
11138
11134
|
]);
|
|
11139
11135
|
}, qf = () => {
|
|
11140
|
-
const {
|
|
11136
|
+
const { showMenuTriggerOnHover: e, layers: t, coordSystem: n, parsingLocale: o, anchorResolver: a, geom: i, hasOverlayMenu: l } = Ol(), [s] = tt(), c = s?.kind === "observations" && s.scope === "observation" ? s : null;
|
|
11141
11137
|
return M(() => {
|
|
11142
11138
|
if (!e || c === null || !l(c)) return null;
|
|
11143
11139
|
const d = t.find((p) => p.id === c.layerId);
|
|
@@ -11166,13 +11162,13 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11166
11162
|
i
|
|
11167
11163
|
]);
|
|
11168
11164
|
}, Ol = () => {
|
|
11169
|
-
const e =
|
|
11165
|
+
const { showMenuTriggerOnHover: e } = Me[ge()], t = R(Ce((i) => ({
|
|
11170
11166
|
layers: i.layers,
|
|
11171
11167
|
coordSystem: i.coordSystem,
|
|
11172
11168
|
parsingLocale: i.config.parsingLocale
|
|
11173
|
-
}))), { anchorResolver: n } = H(), o =
|
|
11169
|
+
}))), { anchorResolver: n } = H(), o = Vo(), a = rt();
|
|
11174
11170
|
return {
|
|
11175
|
-
|
|
11171
|
+
showMenuTriggerOnHover: e,
|
|
11176
11172
|
...t,
|
|
11177
11173
|
anchorResolver: n,
|
|
11178
11174
|
geom: o,
|
|
@@ -11251,7 +11247,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11251
11247
|
d
|
|
11252
11248
|
]);
|
|
11253
11249
|
}, Yf = (e, t, n) => {
|
|
11254
|
-
const o = X(), { store: a } = H(), { store: i } = et(), l = ee(t), s =
|
|
11250
|
+
const o = X(), { store: a } = H(), { store: i } = et(), l = ee(t), { selectObservationsOnPress: s } = Me[ge()];
|
|
11255
11251
|
z(() => (i.getState().setEditorOwnsQuery(s), () => i.getState().setEditorOwnsQuery(!1)), [i, s]), z(() => {
|
|
11256
11252
|
let c = null, d = null, u = !1;
|
|
11257
11253
|
const h = (w) => {
|
|
@@ -11322,7 +11318,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11322
11318
|
return !1;
|
|
11323
11319
|
}
|
|
11324
11320
|
}, Ao = "editor", Po = [], Qf = (e, t, n, o, a) => {
|
|
11325
|
-
const i = Nl(), { store: l } = et(), s = tt().length > 0, c =
|
|
11321
|
+
const i = Nl(), { store: l } = et(), s = tt().length > 0, { freezeHoverWhileSelected: c } = Me[ge()], d = Q((m) => m.menuTrigger), u = M(() => d === null ? Po : [Gc(d)], [d]), h = Uf(e, t);
|
|
11326
11322
|
Yf(e, t, h), Wf(e, t, n, h, a), Zf(i, t, n), Ef(e), If(e), Pf(e, o), z(() => (l.getState().publishPointerRegions(Ao, u), () => l.getState().publishPointerRegions(Ao, Po)), [l, u]);
|
|
11327
11323
|
const p = s && c;
|
|
11328
11324
|
z(() => (l.getState().setSuspendsHover(p), () => l.getState().setSuspendsHover(!1)), [l, p]), z(() => {
|
|
@@ -11335,7 +11331,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11335
11331
|
c
|
|
11336
11332
|
]);
|
|
11337
11333
|
}, e5 = ({ frameElement: e, panelRect: t, formattedAxes: n, animateTransitions: o }) => {
|
|
11338
|
-
const { measureRef: a, screenRect: i } =
|
|
11334
|
+
const { measureRef: a, screenRect: i } = ds(), { selectionStore: l } = H(), s = X(), c = Q((h) => h.caret?.annotationId ?? null), d = ge(), u = ne(d);
|
|
11339
11335
|
return z(() => (a(e), () => a(null)), [a, e]), z(() => () => {
|
|
11340
11336
|
const h = s.getState();
|
|
11341
11337
|
h.setCaret(null), h.setPressedObservation(null), l.getState().clearSelection();
|
|
@@ -11386,58 +11382,62 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11386
11382
|
animateTransitions: a
|
|
11387
11383
|
});
|
|
11388
11384
|
}, r5 = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: o, boxRef: a, animateTransitions: i }) => {
|
|
11389
|
-
const l = Wt(), s = Nl(), {
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11385
|
+
const l = Wt(), s = Nl(), { showAnnotations: c } = Me[ge()];
|
|
11386
|
+
return /* @__PURE__ */ v(V, { children: [
|
|
11387
|
+
/* @__PURE__ */ r(e2, {
|
|
11388
|
+
frameElement: e,
|
|
11389
|
+
frameSize: M(() => ({
|
|
11390
|
+
width: t.width,
|
|
11391
|
+
height: t.height
|
|
11392
|
+
}), [t.width, t.height]),
|
|
11393
|
+
panelRect: o,
|
|
11394
|
+
animateTransitions: i
|
|
11395
|
+
}),
|
|
11396
|
+
/* @__PURE__ */ r(Z2, { frameRect: t }),
|
|
11397
|
+
/* @__PURE__ */ r(mm, {
|
|
11398
|
+
rect: t,
|
|
11399
|
+
zIndex: Hs.editorOverlay,
|
|
11400
|
+
container: l,
|
|
11401
|
+
"data-testid": "editor-overlay",
|
|
11402
|
+
boxRef: a,
|
|
11403
|
+
children: /* @__PURE__ */ v(Se, { children: [
|
|
11404
|
+
c && /* @__PURE__ */ v(V, { children: [
|
|
11405
|
+
/* @__PURE__ */ r(iv, {
|
|
11406
|
+
panelRect: o,
|
|
11407
|
+
panelOrigin: n,
|
|
11408
|
+
frameRect: t,
|
|
11409
|
+
frameElement: e
|
|
11410
|
+
}),
|
|
11411
|
+
/* @__PURE__ */ r(Nv, {
|
|
11412
|
+
panelRect: o,
|
|
11413
|
+
frameRect: t,
|
|
11414
|
+
frameElement: e
|
|
11415
|
+
}),
|
|
11416
|
+
/* @__PURE__ */ r(O0, {
|
|
11417
|
+
panelRect: o,
|
|
11418
|
+
frameRect: t,
|
|
11419
|
+
frameElement: e
|
|
11420
|
+
}),
|
|
11421
|
+
/* @__PURE__ */ r(uf, {
|
|
11422
|
+
panelRect: o,
|
|
11423
|
+
frameRect: t,
|
|
11424
|
+
frameElement: e
|
|
11425
|
+
}),
|
|
11426
|
+
/* @__PURE__ */ r(mv, { panelRect: o }),
|
|
11427
|
+
/* @__PURE__ */ r(xv, { panelRect: o }),
|
|
11428
|
+
/* @__PURE__ */ r(Q2, { panelRect: o }),
|
|
11429
|
+
/* @__PURE__ */ r(gv, { panelRect: o })
|
|
11430
|
+
] }),
|
|
11431
|
+
/* @__PURE__ */ r(kf, {
|
|
11432
|
+
interaction: s,
|
|
11433
|
+
panelRect: o
|
|
11426
11434
|
}),
|
|
11427
|
-
/* @__PURE__ */ r(
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
] }),
|
|
11432
|
-
/* @__PURE__ */ r(kf, {
|
|
11433
|
-
interaction: s,
|
|
11434
|
-
panelRect: o
|
|
11435
|
-
}),
|
|
11436
|
-
u && /* @__PURE__ */ r(j2, { frameElement: e })
|
|
11437
|
-
] })
|
|
11438
|
-
})] });
|
|
11435
|
+
/* @__PURE__ */ r(j2, { frameElement: e })
|
|
11436
|
+
] })
|
|
11437
|
+
})
|
|
11438
|
+
] });
|
|
11439
11439
|
}, o5 = {}, S3 = ({ slots: e, mode: t, palettePresets: n = o5, editMenus: o, ...a }) => {
|
|
11440
|
-
const i =
|
|
11440
|
+
const i = $o(Vn()), l = M(() => ({
|
|
11441
11441
|
EditorSurface: e5,
|
|
11442
11442
|
...e
|
|
11443
11443
|
}), [e]);
|
|
@@ -11445,9 +11445,9 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11445
11445
|
...i,
|
|
11446
11446
|
children: /* @__PURE__ */ r(T1, {
|
|
11447
11447
|
editMenus: o,
|
|
11448
|
-
children: /* @__PURE__ */ r(
|
|
11448
|
+
children: /* @__PURE__ */ r(ks, { children: /* @__PURE__ */ r(yp, {
|
|
11449
11449
|
value: n,
|
|
11450
|
-
children: /* @__PURE__ */ r(
|
|
11450
|
+
children: /* @__PURE__ */ r(Ts, {
|
|
11451
11451
|
editors: pm,
|
|
11452
11452
|
children: /* @__PURE__ */ r(Vs, {
|
|
11453
11453
|
slots: l,
|
|
@@ -11465,7 +11465,7 @@ var Sf = "_1tyillx2", Cf = {
|
|
|
11465
11465
|
className: i5,
|
|
11466
11466
|
children: e
|
|
11467
11467
|
}), _l = Oe(null), l5 = _l.Provider, s5 = () => {
|
|
11468
|
-
const e =
|
|
11468
|
+
const e = ue(_l);
|
|
11469
11469
|
if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
|
|
11470
11470
|
return e;
|
|
11471
11471
|
}, c5 = "_1jlczkt0", d5 = "data-graphy-editor-panel", u5 = {
|
|
@@ -11482,9 +11482,9 @@ var p5 = () => () => {
|
|
|
11482
11482
|
const t = Nd(e?.subscribe ?? p5, () => e?.getScene()?.config.parsingLocale);
|
|
11483
11483
|
return e?.formattingLocale ?? t;
|
|
11484
11484
|
}, m5 = (e) => {
|
|
11485
|
-
const t =
|
|
11485
|
+
const t = ue(vs), n = $o(g5(Rt(e.handle))), o = Rs();
|
|
11486
11486
|
let a = /* @__PURE__ */ r(v5, { ...e });
|
|
11487
|
-
return !o && t && (a = /* @__PURE__ */ r(
|
|
11487
|
+
return !o && t && (a = /* @__PURE__ */ r(Bs, {
|
|
11488
11488
|
colorScheme: t.colorScheme,
|
|
11489
11489
|
children: a
|
|
11490
11490
|
})), /* @__PURE__ */ r(Gi, {
|
|
@@ -11495,7 +11495,7 @@ var p5 = () => () => {
|
|
|
11495
11495
|
Root: m5,
|
|
11496
11496
|
Controls: u5
|
|
11497
11497
|
}, v5 = ({ handle: e, children: t, controls: n, defaultExpandedSection: o = void 0, className: a }) => {
|
|
11498
|
-
const i =
|
|
11498
|
+
const i = Rt(e), { themeClass: l, inlineVarsStyle: s } = Ot(), [c, d] = q(() => o ? [o] : []), u = M(() => ({
|
|
11499
11499
|
expandSection: (h) => d([h]),
|
|
11500
11500
|
collapseAllSections: () => d([])
|
|
11501
11501
|
}), []);
|
|
@@ -11557,7 +11557,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11557
11557
|
]
|
|
11558
11558
|
}), /* @__PURE__ */ r("div", { children: i })]
|
|
11559
11559
|
}), x5 = ({ title: e, accessory: t, children: n }) => {
|
|
11560
|
-
const o =
|
|
11560
|
+
const o = Ie(), a = Ie();
|
|
11561
11561
|
return /* @__PURE__ */ r("div", {
|
|
11562
11562
|
className: yr,
|
|
11563
11563
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -11951,7 +11951,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11951
11951
|
})] })
|
|
11952
11952
|
});
|
|
11953
11953
|
}, it = (e) => {
|
|
11954
|
-
const { colorScheme: t } =
|
|
11954
|
+
const { colorScheme: t } = Ot(), n = M(() => Xc({ colorScheme: t }), [t]);
|
|
11955
11955
|
return M(() => e === null ? null : n.readers(e), [e, n]);
|
|
11956
11956
|
}, Bl = (e, t, n) => {
|
|
11957
11957
|
const o = it(e);
|
|
@@ -11985,7 +11985,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11985
11985
|
})), h = (p) => {
|
|
11986
11986
|
const m = Dn.find((f) => `${f}` === p);
|
|
11987
11987
|
if (m === void 0) return;
|
|
11988
|
-
const g =
|
|
11988
|
+
const g = Le(a.spec.styles.overrides, D5, ce(a.spec))?.declarations ?? {};
|
|
11989
11989
|
o.commands.dispatch(new Ne({
|
|
11990
11990
|
list: "overrides",
|
|
11991
11991
|
rule: {
|
|
@@ -12054,7 +12054,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12054
12054
|
value: g,
|
|
12055
12055
|
label: i(g === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.gray")
|
|
12056
12056
|
})), p = (g) => {
|
|
12057
|
-
const f =
|
|
12057
|
+
const f = Le(a.spec.styles.overrides, H5, ce(a.spec))?.declarations ?? {};
|
|
12058
12058
|
o.commands.dispatch(new Ne({
|
|
12059
12059
|
list: "overrides",
|
|
12060
12060
|
rule: {
|
|
@@ -12180,7 +12180,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12180
12180
|
const [n, o] = Gl[t], a = e[n];
|
|
12181
12181
|
return typeof a != "string" || a !== e[o] ? "" : a === "none" || a === "full" ? a : "md";
|
|
12182
12182
|
}, Zt = ({ children: e }) => {
|
|
12183
|
-
const t =
|
|
12183
|
+
const t = Ie();
|
|
12184
12184
|
return /* @__PURE__ */ v(V, { children: [/* @__PURE__ */ r("g", {
|
|
12185
12185
|
filter: `url(#${t})`,
|
|
12186
12186
|
children: e
|
|
@@ -12268,7 +12268,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12268
12268
|
const o = U(), a = W(o), i = E(), { Button: l } = D();
|
|
12269
12269
|
if (!a) return null;
|
|
12270
12270
|
const s = () => {
|
|
12271
|
-
o.commands.dispatch(new
|
|
12271
|
+
o.commands.dispatch(new Pe({
|
|
12272
12272
|
kind: "text",
|
|
12273
12273
|
annotation: {
|
|
12274
12274
|
..._c,
|
|
@@ -12281,7 +12281,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12281
12281
|
}
|
|
12282
12282
|
}));
|
|
12283
12283
|
}, c = () => {
|
|
12284
|
-
o.commands.dispatch(new
|
|
12284
|
+
o.commands.dispatch(new Pe({
|
|
12285
12285
|
kind: "arrow",
|
|
12286
12286
|
annotation: {
|
|
12287
12287
|
...ec,
|
|
@@ -12296,7 +12296,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12296
12296
|
}
|
|
12297
12297
|
}));
|
|
12298
12298
|
}, d = () => {
|
|
12299
|
-
o.commands.dispatch(new
|
|
12299
|
+
o.commands.dispatch(new Pe({
|
|
12300
12300
|
kind: "shape",
|
|
12301
12301
|
annotation: {
|
|
12302
12302
|
...pc,
|
|
@@ -12309,7 +12309,7 @@ var C5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12309
12309
|
}));
|
|
12310
12310
|
}, u = () => {
|
|
12311
12311
|
const p = sd(a);
|
|
12312
|
-
p !== null && o.commands.dispatch(new
|
|
12312
|
+
p !== null && o.commands.dispatch(new Pe({
|
|
12313
12313
|
kind: "differenceArrow",
|
|
12314
12314
|
annotation: {
|
|
12315
12315
|
...ea,
|
|
@@ -12701,7 +12701,7 @@ var pn = [
|
|
|
12701
12701
|
"pill",
|
|
12702
12702
|
"direct"
|
|
12703
12703
|
], O3 = ({ positions: e, title: t, layout: n = "collapsible", preview: o }) => {
|
|
12704
|
-
const a = U(), i = W(a), l = E(), { ToggleGroup: s } = D(), c =
|
|
12704
|
+
const a = U(), i = W(a), l = E(), { ToggleGroup: s } = D(), c = Jo();
|
|
12705
12705
|
if (!i) return null;
|
|
12706
12706
|
const d = i.config.legend.position, u = e ?? pn, h = i.guides.legends.drawn[0], p = $c({
|
|
12707
12707
|
legendPosition: i.guides.legends.position,
|