@graphysdk/react-renderer 1.9.0-beta.1792505847409 → 1.9.0-beta.1792510459918
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 +27 -27
- package/dist/editable.mjs +407 -407
- package/dist/history-chords-CsWrjb9i.cjs +2 -0
- package/dist/{history-chords-BIeYhK4y.js → history-chords-Kybi2Tvr.js} +325 -325
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.mjs +6 -6
- package/package.json +4 -4
- package/dist/history-chords-D9BmYary.cjs +0 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { $ as Dn, $t as Xl, A as
|
|
2
|
-
import { ARROW_DEFAULTS as $s, ARROW_STICKER_DECLARATIONS as Ws, ARROW_STROKE_WIDTHS_PX as Jt, AddAnnotationCommand as Te, AddHighlightCommand as Us, BORDER_RADIUS_TOKENS as wr, COMBO_TYPES as kr, CONSTANT_VARIABLES as Ks, DASH_PRESETS as qs, DEFAULT_BAR_CORNER_RADIUS as js, DEFAULT_GEOM_COLOR as Xs, DEFAULT_POINT_SIZE_PX as $a, DEFAULT_STROKE_WIDTH_PX as Zs, DIFFERENCE_ARROW_DEFAULTS as Wa, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Tr, InternalError as Ys, MAX_BAR_WIDTH_FRACTION as Js, MIN_BAR_WIDTH_FRACTION as Qs, MoveAnnotationCommand as ec, RESTING_HOVER_STATE as Vn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as tc, SHAPE_DEFAULTS as nc, SequenceCommand as qe, SetAxisLabelCommand as Ua, SetAxisPositionCommand as Ka, SetAxisTickModeCommand as qa, SetAxisTicksVisibilityCommand as rc, SetAxisVisibilityCommand as hn, SetBarCornerRadiusCommand as ac, SetBarWidthCommand as ja, SetChartTypeCommand as $n, SetContentCaptionCommand as Xa, SetContentSourceCommand as oc, SetContentSubtitleCommand as Za, SetContentTitleCommand as Ya, SetDataLabelsFormatCommand as Ja, SetDifferenceArrowStyleCommand as ic, SetGridLineStyleCommand as Qa, SetGridVisibilityCommand as pn, SetHeadlineCompareWithCommand as lc, SetHeadlinePositionCommand as sc, SetHeadlineShowCommand as Ar, SetHeadlineSizeCommand as cc, SetHighlightDimStyleCommand as dc, SetLayerYScaleTypeCommand as uc, SetLegendAlignCommand as hc, SetLegendDisplayCommand as pc, SetLegendPlacementCommand as mc, SetLegendPositionCommand as mn, SetLineCurveCommand as eo, SetLineMissingValuesCommand as to, SetLineStyleCommand as Ce, SetMappingCommand as gc, SetNumberFormatAbbreviationCommand as vc, SetNumberFormatDecimalsCommand as Pr, SetObservationsColorCommand as fc, SetPointSizeCommand as Wn, SetPolarInnerRadiusCommand as bc, SetPolarStartAngleCommand as yc, SetRuleLabelCommand as Sc, SetRuleValueCommand as Cc, SetScaleDomainCommand as Ze, SetScaleRangeCommand as xc, SetScaleReverseCommand as wc, SetScaleTransformCommand as no, SetStatLineCommand as kc, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as Tc, TEXT_ANNOTATION_FADE_ALPHA as Ac, ToggleCategoryLabelsCommand as ro, ToggleContentVisibilityCommand as Dt, ToggleDataLabelsCommand as ao, ToggleGoalLineCommand as Pc, ToggleLinePointsCommand as Un, ToggleStackTotalsCommand as oo, UpdateAnnotationCommand as ve, alignUnitFractions as Lc, areAnchorsEqual as io, areEditTargetsEqual as Kn, areEndpointsComparable as Ic, buildEditMenuTriggerRegion as
|
|
3
|
-
import { Fragment as wo, createContext as
|
|
1
|
+
import { $ as Dn, $t as Xl, A as Mt, An as H, B as Zl, C as Yl, Ct as Ma, D as Jl, Dt as Ql, E as es, En as W, Et as Ne, F as ts, Ft as ne, G as ee, Gt as ns, I as rs, It as as, J as Sr, Jt as os, K as U, L, Lt as is, Mn as _n, O as Oa, On as R, Ot as ls, P as ss, Pt as et, Q as Fn, Qt as cs, S as ds, St as E, T as Ee, U as us, W as hs, Wt as Cr, X as ps, Y as ms, Z as j, _ as De, _n as gs, an as ce, at as zn, b as Ra, bn as vs, bt as fs, c as Na, ct as bs, d as ys, dt as Ss, en as Da, et as _a, f as Cs, ft as ge, g as Fa, gn as xs, gt as Ot, h as Rt, ht as ws, i as Bn, in as za, it as Ba, k as un, kn as ks, kt as Ts, l as As, lt as Ps, m as Ls, mt as Is, n as le, nt as Nt, o as Es, on as Hn, p as Ha, pt as ue, q as Ms, r as K, rn as Ga, rt as Os, sn as Be, st as Rs, t as Ns, tn as Ds, tt as Gn, u as _s, ut as xr, v as Fs, wn as Va, wt as zs, x as Bs, xt as Hs, y as Gs, yt as Vs } from "./history-chords-Kybi2Tvr.js";
|
|
2
|
+
import { ARROW_DEFAULTS as $s, ARROW_STICKER_DECLARATIONS as Ws, ARROW_STROKE_WIDTHS_PX as Jt, AddAnnotationCommand as Te, AddHighlightCommand as Us, BORDER_RADIUS_TOKENS as wr, COMBO_TYPES as kr, CONSTANT_VARIABLES as Ks, DASH_PRESETS as qs, DEFAULT_BAR_CORNER_RADIUS as js, DEFAULT_GEOM_COLOR as Xs, DEFAULT_POINT_SIZE_PX as $a, DEFAULT_STROKE_WIDTH_PX as Zs, DIFFERENCE_ARROW_DEFAULTS as Wa, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Tr, InternalError as Ys, MAX_BAR_WIDTH_FRACTION as Js, MIN_BAR_WIDTH_FRACTION as Qs, MoveAnnotationCommand as ec, RESTING_HOVER_STATE as Vn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as tc, SHAPE_DEFAULTS as nc, SequenceCommand as qe, SetAxisLabelCommand as Ua, SetAxisPositionCommand as Ka, SetAxisTickModeCommand as qa, SetAxisTicksVisibilityCommand as rc, SetAxisVisibilityCommand as hn, SetBarCornerRadiusCommand as ac, SetBarWidthCommand as ja, SetChartTypeCommand as $n, SetContentCaptionCommand as Xa, SetContentSourceCommand as oc, SetContentSubtitleCommand as Za, SetContentTitleCommand as Ya, SetDataLabelsFormatCommand as Ja, SetDifferenceArrowStyleCommand as ic, SetGridLineStyleCommand as Qa, SetGridVisibilityCommand as pn, SetHeadlineCompareWithCommand as lc, SetHeadlinePositionCommand as sc, SetHeadlineShowCommand as Ar, SetHeadlineSizeCommand as cc, SetHighlightDimStyleCommand as dc, SetLayerYScaleTypeCommand as uc, SetLegendAlignCommand as hc, SetLegendDisplayCommand as pc, SetLegendPlacementCommand as mc, SetLegendPositionCommand as mn, SetLineCurveCommand as eo, SetLineMissingValuesCommand as to, SetLineStyleCommand as Ce, SetMappingCommand as gc, SetNumberFormatAbbreviationCommand as vc, SetNumberFormatDecimalsCommand as Pr, SetObservationsColorCommand as fc, SetPointSizeCommand as Wn, SetPolarInnerRadiusCommand as bc, SetPolarStartAngleCommand as yc, SetRuleLabelCommand as Sc, SetRuleValueCommand as Cc, SetScaleDomainCommand as Ze, SetScaleRangeCommand as xc, SetScaleReverseCommand as wc, SetScaleTransformCommand as no, SetStatLineCommand as kc, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as Tc, TEXT_ANNOTATION_FADE_ALPHA as Ac, ToggleCategoryLabelsCommand as ro, ToggleContentVisibilityCommand as Dt, ToggleDataLabelsCommand as ao, ToggleGoalLineCommand as Pc, ToggleLinePointsCommand as Un, ToggleStackTotalsCommand as oo, UpdateAnnotationCommand as ve, alignUnitFractions as Lc, areAnchorsEqual as io, areEditTargetsEqual as Kn, areEndpointsComparable as Ic, buildEditMenuTriggerRegion as Ec, buildLayerStyleAddress as Ge, buildObservationPredicate as Mc, buildObservationsTarget as tt, buildObservationsTargetAtValue as lo, canAnchorDirectLabels as Oc, canBecomeCombo as Rc, canBecomeHeatmap as Nc, clampAnnotationTranslation as Dc, combineKindStyleDeclarations as Lr, computeArrow as so, createObservationAnchorBuilder as _c, createObservationAnchorParser as Fc, createStyleResolver as zc, createStyleRuleMatcher as Bc, createValueFormatter as co, createXValueReader as Hc, filterLayersByGeoms as gn, findAnnotation as Gc, findAverageLineLayer as Vc, findAxisGuide as uo, findCompanionLayers as ho, findGoalLineLayer as $c, findHighlightsAtObservation as Wc, findHostLayer as _t, findKindStyleDeclarations as bt, findLayerByGeom as po, findLayerById as Z, findObservationAttachment as Uc, findStyleRule as Pe, findTrendLineLayer as Kc, formatDifferenceLabel as qc, getBoundingRect as vn, getGroupVariables as mo, getXBand as jc, getYBand as Xc, hasMainAxisBand as Zc, hasMultipleGroups as go, inferDefaultDifferenceArrowEndpoints as Yc, inferDifferenceArrowEndpoints as Jc, isComboChartType as se, isCompanionLayer as vo, isGeomStyleRule as Qc, isLayerSpecOf as Ft, isObservationAttachmentKind as ed, isPointWithinEditMenuTrigger as qn, isSafeUrl as td, isZeroAnchoredAxis as fo, measureObservationsBoxes as bo, projectAnchorToPanel as yt, readBroadestObservationsScope as nd, readChartType as zt, readColorChoices as rd, readComboLineLayerId as ad, readCompanionRowsAtScopeKey as od, readConstantValue as id, readEditTargetKey as Bt, readGeomColor as ld, readHighlightDimStyle as sd, readMainAxis as cd, readMappableAesthetics as dd, readMappedVariable as ud, readObservationIndex as yo, readObservationsColor as hd, readObservationsColorRoute as jn, readReachableLevels as pd, readRowScopeKey as md, readRowsAtScopeKey as gd, readScopeXVariable as vd, readStyleCoord as de, readStyleRulesBeneath as fd, readVariableName as Ht, resolveArrowAnnotationStyle as Xn, resolveBarBandFraction as So, resolveComparisonBasis as bd, resolveDifferenceArrowAnnotationStyle as yd, resolveEditOutlineStyle as Sd, resolveLayerAxisValueFormat as Cd, resolveObservationPoint as Co, resolveObservationsTarget as Je, stepDifferenceArrowEndpoint as xd, toDashPreset as Re, toPaintColor as St, toPanelCursor as Gt, toStrokeDasharray as xo } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as wo, createContext as Me, memo as ko, useCallback as re, useContext as he, useEffect as z, useId as Le, useLayoutEffect as Ie, useMemo as M, useRef as ae, useState as X, useSyncExternalStore as wd } from "react";
|
|
4
4
|
import { Fragment as $, jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
5
5
|
import { motion as kd } from "motion/react";
|
|
6
6
|
import { useShallow as xe } from "zustand/react/shallow";
|
|
7
7
|
import { assignInlineVars as Se } from "@vanilla-extract/dynamic";
|
|
8
8
|
import ye from "clsx";
|
|
9
9
|
import { clamp as Ve, isEqual as Td } from "lodash-es";
|
|
10
|
-
import { autoUpdate as Ad, flip as Pd, offset as Ld, shift as Id, useFloating as
|
|
10
|
+
import { autoUpdate as Ad, flip as Pd, offset as Ld, shift as Id, useFloating as Ed } from "@floating-ui/react-dom";
|
|
11
11
|
import { createPortal as Zn } from "react-dom";
|
|
12
12
|
import { DirectionProvider as Yn } from "@base-ui/react/direction-provider";
|
|
13
13
|
import { Extension as To } from "@tiptap/core";
|
|
14
|
-
import { Bold as
|
|
14
|
+
import { Bold as Md } from "@tiptap/extension-bold";
|
|
15
15
|
import { Document as Ct } from "@tiptap/extension-document";
|
|
16
16
|
import { HardBreak as Od } from "@tiptap/extension-hard-break";
|
|
17
17
|
import { Heading as Rd } from "@tiptap/extension-heading";
|
|
@@ -30,10 +30,10 @@ import { Popover as Q } from "@base-ui/react/popover";
|
|
|
30
30
|
import { HexColorInput as Wd, HexColorPicker as Ud } from "react-colorful";
|
|
31
31
|
import { NumberField as Ir } from "@base-ui/react/number-field";
|
|
32
32
|
import { Radio as Io } from "@base-ui/react/radio";
|
|
33
|
-
import { RadioGroup as
|
|
33
|
+
import { RadioGroup as Eo } from "@base-ui/react/radio-group";
|
|
34
34
|
import { Select as be } from "@base-ui/react/select";
|
|
35
35
|
import { Slider as Ue } from "@base-ui/react/slider";
|
|
36
|
-
import { Switch as
|
|
36
|
+
import { Switch as Er } from "@base-ui/react/switch";
|
|
37
37
|
import { Input as Kd } from "@base-ui/react/input";
|
|
38
38
|
import { Menu as V } from "@base-ui/react/menu";
|
|
39
39
|
import { Toggle as qd } from "@base-ui/react/toggle";
|
|
@@ -2500,12 +2500,12 @@ import './editable.css';var Xd = {
|
|
|
2500
2500
|
"en-US": au,
|
|
2501
2501
|
ar: Jd,
|
|
2502
2502
|
"pt-PT": su
|
|
2503
|
-
}, du = [cu, zs],
|
|
2503
|
+
}, du = [cu, zs], Mo = ({ children: e, ...t }) => /* @__PURE__ */ r(fs, {
|
|
2504
2504
|
dictionaries: du,
|
|
2505
2505
|
...t,
|
|
2506
2506
|
children: /* @__PURE__ */ r(uu, { children: e })
|
|
2507
2507
|
}), uu = ({ children: e }) => /* @__PURE__ */ r(Yn, {
|
|
2508
|
-
direction:
|
|
2508
|
+
direction: Ma(),
|
|
2509
2509
|
children: e
|
|
2510
2510
|
}), hu = "data-variant", Oo = Po.extend({ addAttributes() {
|
|
2511
2511
|
return { variant: {
|
|
@@ -2516,11 +2516,11 @@ import './editable.css';var Xd = {
|
|
|
2516
2516
|
} }), pu = To.create({
|
|
2517
2517
|
name: "preventBackspaceAcrossTitleBoundary",
|
|
2518
2518
|
addOptions() {
|
|
2519
|
-
return {
|
|
2519
|
+
return { showTitle: !0 };
|
|
2520
2520
|
},
|
|
2521
2521
|
addKeyboardShortcuts() {
|
|
2522
2522
|
return { Backspace: ({ editor: e }) => {
|
|
2523
|
-
if (!this.options.
|
|
2523
|
+
if (!this.options.showTitle) return !1;
|
|
2524
2524
|
const { selection: t } = e.state;
|
|
2525
2525
|
if (!t.empty) return !1;
|
|
2526
2526
|
const { $from: n } = t;
|
|
@@ -2535,7 +2535,7 @@ import './editable.css';var Xd = {
|
|
|
2535
2535
|
2,
|
|
2536
2536
|
3
|
|
2537
2537
|
] }),
|
|
2538
|
-
|
|
2538
|
+
Md,
|
|
2539
2539
|
Nd,
|
|
2540
2540
|
Hd,
|
|
2541
2541
|
Fd.configure({ types: ["heading", "paragraph"] }),
|
|
@@ -2546,15 +2546,15 @@ import './editable.css';var Xd = {
|
|
|
2546
2546
|
Bd,
|
|
2547
2547
|
zd,
|
|
2548
2548
|
Od
|
|
2549
|
-
], mu = ({ titlePlaceholder: e, subtitlePlaceholder: t,
|
|
2549
|
+
], mu = ({ titlePlaceholder: e, subtitlePlaceholder: t, showTitle: n, showSubtitle: a }) => [
|
|
2550
2550
|
vu({
|
|
2551
|
-
|
|
2552
|
-
|
|
2551
|
+
showTitle: n,
|
|
2552
|
+
showSubtitle: a
|
|
2553
2553
|
}),
|
|
2554
2554
|
Oo,
|
|
2555
2555
|
...Qn(),
|
|
2556
2556
|
Ao,
|
|
2557
|
-
pu.configure({
|
|
2557
|
+
pu.configure({ showTitle: n }),
|
|
2558
2558
|
Jn.configure({
|
|
2559
2559
|
showOnlyCurrent: !1,
|
|
2560
2560
|
placeholder: ({ pos: o, editor: i }) => {
|
|
@@ -2572,7 +2572,7 @@ import './editable.css';var Xd = {
|
|
|
2572
2572
|
showOnlyCurrent: !1,
|
|
2573
2573
|
placeholder: ({ pos: t }) => t === 0 ? e : ""
|
|
2574
2574
|
})
|
|
2575
|
-
], vu = ({
|
|
2575
|
+
], vu = ({ showTitle: e, showSubtitle: t }) => e && t ? Ct.extend({ content: "block{2,}" }) : Ct, fu = {
|
|
2576
2576
|
accent: "var(--graphy-editor-accent, var(--graphy-editor-default-accent))",
|
|
2577
2577
|
surface: "var(--graphy-editor-surface, var(--graphy-editor-default-surface))",
|
|
2578
2578
|
text: "var(--graphy-editor-text, var(--graphy-editor-default-text))",
|
|
@@ -2586,8 +2586,8 @@ import './editable.css';var Xd = {
|
|
|
2586
2586
|
focus: "color-mix(in srgb, transparent, var(--graphy-editor-text, var(--graphy-editor-default-text)) 55.00000000000001%)",
|
|
2587
2587
|
focusWidth: "2px",
|
|
2588
2588
|
shadow: "var(--graphy-editor-default-shadow)"
|
|
2589
|
-
}, Ro =
|
|
2590
|
-
const a =
|
|
2589
|
+
}, Ro = Me(null), No = ({ labelId: e, controlId: t, children: n }) => {
|
|
2590
|
+
const a = M(() => {
|
|
2591
2591
|
let o = null;
|
|
2592
2592
|
return {
|
|
2593
2593
|
labelId: e,
|
|
@@ -2606,15 +2606,15 @@ import './editable.css';var Xd = {
|
|
|
2606
2606
|
...t !== void 0 && { "aria-label": t },
|
|
2607
2607
|
...c !== void 0 && { "aria-labelledby": c }
|
|
2608
2608
|
};
|
|
2609
|
-
}, bu = "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))", Do = "_14ty2ng0",
|
|
2609
|
+
}, bu = "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))", Do = "_14ty2ng0", Mr = "_14ty2ng1", yu = "_14ty2ng2", Su = "_14ty2ng3", _o = "_14ty2ng4";
|
|
2610
2610
|
var Fo = "transparent", zo = (e) => e === "transparent" ? {
|
|
2611
2611
|
background: bu,
|
|
2612
2612
|
border: `1px solid ${ce.border100}`
|
|
2613
2613
|
} : {
|
|
2614
2614
|
background: e,
|
|
2615
2615
|
border: `1px solid ${fu.border}`
|
|
2616
|
-
}, Cu = ({ title: e, colors: t, value: n, onChange: a, trailing: o,
|
|
2617
|
-
const u =
|
|
2616
|
+
}, Cu = ({ title: e, colors: t, value: n, onChange: a, trailing: o, clearable: i = !1, disabled: l, id: s, ariaLabel: c, ariaLabelledBy: d }) => {
|
|
2617
|
+
const u = E(), h = ke({
|
|
2618
2618
|
id: s,
|
|
2619
2619
|
ariaLabel: c,
|
|
2620
2620
|
ariaLabelledBy: d
|
|
@@ -2657,7 +2657,7 @@ var xu = {
|
|
|
2657
2657
|
default: "woi4bh5 woi4bh4",
|
|
2658
2658
|
tile: "woi4bh6 woi4bh4",
|
|
2659
2659
|
icon: "woi4bh7 woi4bh4"
|
|
2660
|
-
}, wu = ({ label: e, icon: t, onClick: n, variant: a = "default",
|
|
2660
|
+
}, wu = ({ label: e, icon: t, onClick: n, variant: a = "default", expanded: o, disabled: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
|
|
2661
2661
|
const d = ke({
|
|
2662
2662
|
id: c,
|
|
2663
2663
|
ariaLabel: l,
|
|
@@ -2681,7 +2681,7 @@ var xu = {
|
|
|
2681
2681
|
}, ku = "data-graphy-chart-chrome", Tu = "data-graphy-chart-menu", er = { [Tu]: "" }, Vt = (e) => ({ [ku]: e }), ft = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, Ho = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, fn = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, Go = (e, t, n) => n !== null && qn({
|
|
2682
2682
|
x: e.clientX - t.x,
|
|
2683
2683
|
y: e.clientY - t.y
|
|
2684
|
-
}, n), Ye = (e, t, n) => e instanceof Node && (t.contains(e) || ft(e, n)), Au = "cml7ha0", Vo =
|
|
2684
|
+
}, n), Ye = (e, t, n) => e instanceof Node && (t.contains(e) || ft(e, n)), Au = "cml7ha0", Vo = Me(null), Pu = ({ children: e }) => {
|
|
2685
2685
|
const { chartId: t } = H(), [n] = X(ge), [a, o] = X(null);
|
|
2686
2686
|
return n === null ? null : /* @__PURE__ */ v($, { children: [Zn(/* @__PURE__ */ r("div", {
|
|
2687
2687
|
ref: o,
|
|
@@ -2691,12 +2691,12 @@ var xu = {
|
|
|
2691
2691
|
value: a,
|
|
2692
2692
|
children: e
|
|
2693
2693
|
})] });
|
|
2694
|
-
}, We = () => he(Vo), Lu = "_178jeit0", Iu = "_178jeit1 _14ty2ng3",
|
|
2694
|
+
}, We = () => he(Vo), Lu = "_178jeit0", Iu = "_178jeit1 _14ty2ng3", Eu = "_178jeit2 _14ty2ng4", Mu = "_178jeit3", Ou = "_178jeit4", Ru = "_178jeit5", Nu = "_178jeit6", Du = "_178jeit7", _u = {
|
|
2695
2695
|
side: "flip",
|
|
2696
2696
|
align: "shift",
|
|
2697
2697
|
fallbackAxisSide: "end"
|
|
2698
2698
|
}, Fu = ({ value: e, onChange: t, onCommit: n, popupAttributes: a, variant: o = "default" }) => {
|
|
2699
|
-
const i =
|
|
2699
|
+
const i = E(), l = We(), [s, c] = X(!1), d = (p) => {
|
|
2700
2700
|
c(p), p || n?.();
|
|
2701
2701
|
}, u = e !== null && Ds(e) ? e : "#000000", h = Da(u) ? u.toUpperCase() : "#000000";
|
|
2702
2702
|
return /* @__PURE__ */ v(Q.Root, {
|
|
@@ -2706,14 +2706,14 @@ var xu = {
|
|
|
2706
2706
|
className: Iu,
|
|
2707
2707
|
onMouseDown: (p) => p.preventDefault(),
|
|
2708
2708
|
"aria-label": i("graph.colorDropdown.pickCustom"),
|
|
2709
|
-
children: /* @__PURE__ */ r("span", { className:
|
|
2709
|
+
children: /* @__PURE__ */ r("span", { className: Eu })
|
|
2710
2710
|
}) : /* @__PURE__ */ v("div", {
|
|
2711
2711
|
className: Do,
|
|
2712
2712
|
children: [/* @__PURE__ */ r("div", {
|
|
2713
|
-
className:
|
|
2713
|
+
className: Mr,
|
|
2714
2714
|
children: i("graph.colorDropdown.custom")
|
|
2715
2715
|
}), /* @__PURE__ */ v(Q.Trigger, {
|
|
2716
|
-
className:
|
|
2716
|
+
className: Mu,
|
|
2717
2717
|
onMouseDown: (p) => p.preventDefault(),
|
|
2718
2718
|
"aria-label": i("graph.colorDropdown.pickCustom"),
|
|
2719
2719
|
children: [/* @__PURE__ */ r("span", {
|
|
@@ -2740,7 +2740,7 @@ var xu = {
|
|
|
2740
2740
|
...a,
|
|
2741
2741
|
children: [
|
|
2742
2742
|
/* @__PURE__ */ r("div", {
|
|
2743
|
-
className:
|
|
2743
|
+
className: Mr,
|
|
2744
2744
|
children: i("graph.colorDropdown.pickColor")
|
|
2745
2745
|
}),
|
|
2746
2746
|
/* @__PURE__ */ r(Ud, {
|
|
@@ -2760,7 +2760,7 @@ var xu = {
|
|
|
2760
2760
|
}) })
|
|
2761
2761
|
})]
|
|
2762
2762
|
});
|
|
2763
|
-
}, tr =
|
|
2763
|
+
}, tr = Me(null), q = () => {
|
|
2764
2764
|
const e = he(tr);
|
|
2765
2765
|
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>.");
|
|
2766
2766
|
return e;
|
|
@@ -2805,7 +2805,7 @@ var xu = {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
};
|
|
2807
2807
|
}, zu = "eh8dvc0", Bu = "eh8dvc1 uz3g760", Hu = "eh8dvc2 uz3g761";
|
|
2808
|
-
var Gu = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, placeholder: l, prefix: s, suffix: c,
|
|
2808
|
+
var Gu = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, placeholder: l, prefix: s, suffix: c, disabled: d, hasError: u, ariaLabel: h, ariaLabelledBy: p, id: g }) => {
|
|
2809
2809
|
const m = ke({
|
|
2810
2810
|
id: g,
|
|
2811
2811
|
ariaLabel: h,
|
|
@@ -2848,7 +2848,7 @@ var Gu = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, placeho
|
|
|
2848
2848
|
}, nr = ({ children: e }) => {
|
|
2849
2849
|
const { themeValues: t } = Ot();
|
|
2850
2850
|
return /* @__PURE__ */ r(ue, {
|
|
2851
|
-
style:
|
|
2851
|
+
style: M(() => Se({
|
|
2852
2852
|
[ce.fontFamily]: t.fontFamily,
|
|
2853
2853
|
[ce.textScale]: t.textScale
|
|
2854
2854
|
}), [t]),
|
|
@@ -2859,9 +2859,9 @@ var Uo = "srewh00", Vu = "srewh01", $u = {
|
|
|
2859
2859
|
pointer: null,
|
|
2860
2860
|
focus: null,
|
|
2861
2861
|
last: "pointer"
|
|
2862
|
-
}, Ko =
|
|
2863
|
-
|
|
2864
|
-
|
|
2862
|
+
}, Ko = Me({
|
|
2863
|
+
hovered: !1,
|
|
2864
|
+
dismissed: !1,
|
|
2865
2865
|
reachedTooltipId: null,
|
|
2866
2866
|
reach: () => {
|
|
2867
2867
|
},
|
|
@@ -2881,9 +2881,9 @@ var Uo = "srewh00", Vu = "srewh01", $u = {
|
|
|
2881
2881
|
...b,
|
|
2882
2882
|
[f]: null
|
|
2883
2883
|
} : b);
|
|
2884
|
-
}, []), u = re(() => i(!0), []), h = Wu(l), p =
|
|
2885
|
-
|
|
2886
|
-
|
|
2884
|
+
}, []), u = re(() => i(!0), []), h = Wu(l), p = M(() => ({
|
|
2885
|
+
hovered: n,
|
|
2886
|
+
dismissed: o,
|
|
2887
2887
|
reachedTooltipId: h,
|
|
2888
2888
|
reach: c,
|
|
2889
2889
|
release: d,
|
|
@@ -2907,8 +2907,8 @@ var Uo = "srewh00", Vu = "srewh01", $u = {
|
|
|
2907
2907
|
children: t
|
|
2908
2908
|
})
|
|
2909
2909
|
});
|
|
2910
|
-
}, rr = ({ label: e,
|
|
2911
|
-
const {
|
|
2910
|
+
}, rr = ({ label: e, checked: t = !1, children: n }) => {
|
|
2911
|
+
const { hovered: a, dismissed: o, reachedTooltipId: i, reach: l, release: s, dismiss: c } = he(Ko), d = Le(), [u, h] = X(!1), p = a ? !o && (i === d || t && i === null) : u;
|
|
2912
2912
|
z(() => () => {
|
|
2913
2913
|
s(d, "pointer"), s(d, "focus");
|
|
2914
2914
|
}, [d, s]);
|
|
@@ -2946,13 +2946,13 @@ var Uo = "srewh00", Vu = "srewh01", $u = {
|
|
|
2946
2946
|
5: "_1b7s5f5",
|
|
2947
2947
|
6: "_1b7s5f6"
|
|
2948
2948
|
}, Ku = "_1b7s5f7";
|
|
2949
|
-
var qu = 6, ju = ({ options: e, value: t, onChange: n, onCommit: a, columns: o, itemLayout: i = "tile",
|
|
2949
|
+
var qu = 6, ju = ({ options: e, value: t, onChange: n, onCommit: a, columns: o, itemLayout: i = "tile", disabled: l, ariaLabel: s, ariaLabelledBy: c, id: d }) => {
|
|
2950
2950
|
const u = ke({
|
|
2951
2951
|
id: d,
|
|
2952
2952
|
ariaLabel: s,
|
|
2953
2953
|
ariaLabelledBy: c
|
|
2954
2954
|
}), h = i === "tile", p = i === "swatch", g = i === "icon", m = i === "track", { commitAfterChange: f, gestureHandlers: b } = $t(a);
|
|
2955
|
-
return /* @__PURE__ */ r(
|
|
2955
|
+
return /* @__PURE__ */ r(Eo, {
|
|
2956
2956
|
className: ye(Uu, Xu(o ?? e.length), g && "_1b7s5f9", m && "_1b7s5fb"),
|
|
2957
2957
|
value: t,
|
|
2958
2958
|
onValueChange: (C) => {
|
|
@@ -2964,7 +2964,7 @@ var qu = 6, ju = ({ options: e, value: t, onChange: n, onCommit: a, columns: o,
|
|
|
2964
2964
|
children: e.map((C) => {
|
|
2965
2965
|
const P = /* @__PURE__ */ v(Io.Root, {
|
|
2966
2966
|
value: C.value,
|
|
2967
|
-
disabled: C.
|
|
2967
|
+
disabled: C.disabled,
|
|
2968
2968
|
className: ye(Ku, p && "_1b7s5f8", g && "_1b7s5fa", m && "_1b7s5fc"),
|
|
2969
2969
|
style: {
|
|
2970
2970
|
gridRow: C.gridRow,
|
|
@@ -2978,7 +2978,7 @@ var qu = 6, ju = ({ options: e, value: t, onChange: n, onCommit: a, columns: o,
|
|
|
2978
2978
|
}, C.value);
|
|
2979
2979
|
return !p && !g ? P : /* @__PURE__ */ r(rr, {
|
|
2980
2980
|
label: C.label,
|
|
2981
|
-
|
|
2981
|
+
checked: g && C.value === t,
|
|
2982
2982
|
children: P
|
|
2983
2983
|
}, C.value);
|
|
2984
2984
|
})
|
|
@@ -3017,7 +3017,7 @@ var qu = 6, ju = ({ options: e, value: t, onChange: n, onCommit: a, columns: o,
|
|
|
3017
3017
|
children: /* @__PURE__ */ r("path", { d: "m6 9 6 6 6-6" })
|
|
3018
3018
|
})
|
|
3019
3019
|
}), Zu = "_1g5x15w0 uz3g760", Yu = "_1g5x15w1", Ju = "_1g5x15w2", Or = "_1g5x15w3", Qu = "_1g5x15w4", eh = "_1g5x15w5", th = "_1g5x15w6", nh = "_1g5x15w7";
|
|
3020
|
-
var rh = ({ options: e, value: t, onChange: n, placeholder: a,
|
|
3020
|
+
var rh = ({ options: e, value: t, onChange: n, placeholder: a, disabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
|
|
3021
3021
|
const d = ke({
|
|
3022
3022
|
id: c,
|
|
3023
3023
|
ariaLabel: l,
|
|
@@ -3052,7 +3052,7 @@ var rh = ({ options: e, value: t, onChange: n, placeholder: a, isDisabled: o, ha
|
|
|
3052
3052
|
className: eh,
|
|
3053
3053
|
children: e.map((h) => /* @__PURE__ */ v(be.Item, {
|
|
3054
3054
|
value: h.value,
|
|
3055
|
-
disabled: h.
|
|
3055
|
+
disabled: h.disabled,
|
|
3056
3056
|
className: th,
|
|
3057
3057
|
children: [
|
|
3058
3058
|
h.icon,
|
|
@@ -3077,7 +3077,7 @@ var rh = ({ options: e, value: t, onChange: n, placeholder: a, isDisabled: o, ha
|
|
|
3077
3077
|
className: Ju,
|
|
3078
3078
|
children: n
|
|
3079
3079
|
}) : oh(e, t), oh = (e, t) => e.find((n) => n.value === t)?.label ?? t, ih = "vod76w0", lh = "vod76w1", sh = "vod76w2", ch = "vod76w3", dh = "vod76w4", uh = "vod76w5";
|
|
3080
|
-
var hh = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, suffix: l, formatValue: s, showValue: c = !0,
|
|
3080
|
+
var hh = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, suffix: l, formatValue: s, showValue: c = !0, disabled: d, ariaLabel: u, ariaLabelledBy: h }) => {
|
|
3081
3081
|
const p = ke({
|
|
3082
3082
|
ariaLabel: u,
|
|
3083
3083
|
ariaLabelledBy: h
|
|
@@ -3111,21 +3111,21 @@ var hh = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, suffix:
|
|
|
3111
3111
|
children: g
|
|
3112
3112
|
})]
|
|
3113
3113
|
});
|
|
3114
|
-
}, ph = (e, t, n) => n !== void 0 ? n(e) : `${e}${t ?? ""}`, mh = "_1hyrlw60", gh = "_1hyrlw61", vh = ({
|
|
3114
|
+
}, ph = (e, t, n) => n !== void 0 ? n(e) : `${e}${t ?? ""}`, mh = "_1hyrlw60", gh = "_1hyrlw61", vh = ({ checked: e, onChange: t, disabled: n, ariaLabel: a, ariaLabelledBy: o, id: i }) => {
|
|
3115
3115
|
const l = ke({
|
|
3116
3116
|
id: i,
|
|
3117
3117
|
ariaLabel: a,
|
|
3118
3118
|
ariaLabelledBy: o
|
|
3119
3119
|
});
|
|
3120
|
-
return /* @__PURE__ */ r(
|
|
3120
|
+
return /* @__PURE__ */ r(Er.Root, {
|
|
3121
3121
|
checked: e,
|
|
3122
3122
|
onCheckedChange: (s) => t(s),
|
|
3123
3123
|
disabled: n,
|
|
3124
3124
|
className: mh,
|
|
3125
3125
|
...l,
|
|
3126
|
-
children: /* @__PURE__ */ r(
|
|
3126
|
+
children: /* @__PURE__ */ r(Er.Thumb, { className: gh })
|
|
3127
3127
|
});
|
|
3128
|
-
}, fh = "uz3g761", bh = "tpcnun0 uz3g760", yh = ({ value: e, onChange: t, onCommit: n, placeholder: a,
|
|
3128
|
+
}, fh = "uz3g761", bh = "tpcnun0 uz3g760", yh = ({ value: e, onChange: t, onCommit: n, placeholder: a, disabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
|
|
3129
3129
|
const d = ke({
|
|
3130
3130
|
id: c,
|
|
3131
3131
|
ariaLabel: l,
|
|
@@ -3146,13 +3146,13 @@ var hh = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, suffix:
|
|
|
3146
3146
|
})
|
|
3147
3147
|
});
|
|
3148
3148
|
}, Sh = "cnu9yl0", Ch = "cnu9yl1";
|
|
3149
|
-
var jo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inline", hasEqualWidths: i = !1,
|
|
3149
|
+
var jo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inline", hasEqualWidths: i = !1, disabled: l, ariaLabel: s, ariaLabelledBy: c, id: d }) => {
|
|
3150
3150
|
const u = ke({
|
|
3151
3151
|
id: d,
|
|
3152
3152
|
ariaLabel: s,
|
|
3153
3153
|
ariaLabelledBy: c
|
|
3154
3154
|
}), h = o === "stacked", { commitAfterChange: p, gestureHandlers: g } = $t(a);
|
|
3155
|
-
return /* @__PURE__ */ r(
|
|
3155
|
+
return /* @__PURE__ */ r(Eo, {
|
|
3156
3156
|
className: Sh,
|
|
3157
3157
|
value: t,
|
|
3158
3158
|
onValueChange: (m) => {
|
|
@@ -3164,7 +3164,7 @@ var jo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inl
|
|
|
3164
3164
|
children: e.map((m) => {
|
|
3165
3165
|
const f = xh(m, h), b = /* @__PURE__ */ v(Io.Root, {
|
|
3166
3166
|
value: m.value,
|
|
3167
|
-
disabled: m.
|
|
3167
|
+
disabled: m.disabled,
|
|
3168
3168
|
className: ye(Ch, h && "cnu9yl3", i && "cnu9yl2"),
|
|
3169
3169
|
"aria-label": f,
|
|
3170
3170
|
children: [m.icon, Xo(m, h) && /* @__PURE__ */ r("span", {
|
|
@@ -3174,7 +3174,7 @@ var jo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inl
|
|
|
3174
3174
|
}, m.value);
|
|
3175
3175
|
return f === void 0 ? b : /* @__PURE__ */ r(rr, {
|
|
3176
3176
|
label: f,
|
|
3177
|
-
|
|
3177
|
+
checked: m.value === t,
|
|
3178
3178
|
children: b
|
|
3179
3179
|
}, m.value);
|
|
3180
3180
|
})
|
|
@@ -3193,8 +3193,8 @@ var jo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inl
|
|
|
3193
3193
|
Select: rh,
|
|
3194
3194
|
ColorSwatches: Cu,
|
|
3195
3195
|
CustomColor: Fu
|
|
3196
|
-
}, yn =
|
|
3197
|
-
const n = he(yn), a =
|
|
3196
|
+
}, yn = Me(wh), kh = ({ controls: e, children: t }) => {
|
|
3197
|
+
const n = he(yn), a = M(() => ({
|
|
3198
3198
|
ToggleGroup: e?.ToggleGroup ?? n.ToggleGroup,
|
|
3199
3199
|
Switch: e?.Switch ?? n.Switch,
|
|
3200
3200
|
Slider: e?.Slider ?? n.Slider,
|
|
@@ -3224,8 +3224,8 @@ var jo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inl
|
|
|
3224
3224
|
});
|
|
3225
3225
|
}, F = () => he(yn);
|
|
3226
3226
|
var Th = "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))", Ah = "d0bl00";
|
|
3227
|
-
var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]),
|
|
3228
|
-
const u =
|
|
3227
|
+
var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Eh = Object.fromEntries(za.map((e) => [ce[e], e])), Mh = (e) => Sn.some((t) => t.toLowerCase() === e.toLowerCase()), Oh = ({ color: e, onChange: t, open: n, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: d = !1 }) => {
|
|
3228
|
+
const u = E(), { ColorSwatches: h, Slider: p } = F(), g = Dh(), m = d ? [Fo, ...Sn] : Sn, f = (b) => {
|
|
3229
3229
|
t(b), a(!1);
|
|
3230
3230
|
};
|
|
3231
3231
|
return /* @__PURE__ */ v(Q.Root, {
|
|
@@ -3290,7 +3290,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3290
3290
|
});
|
|
3291
3291
|
}, Rh = (e, t) => {
|
|
3292
3292
|
if (Da(e)) return e;
|
|
3293
|
-
const n =
|
|
3293
|
+
const n = Eh[e];
|
|
3294
3294
|
return n === void 0 ? e : t[n];
|
|
3295
3295
|
}, Nh = ({ value: e, onChange: t, popupAttributes: n }) => {
|
|
3296
3296
|
const { CustomColor: a } = F(), { themeValues: o } = Ot();
|
|
@@ -3301,7 +3301,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3301
3301
|
});
|
|
3302
3302
|
}, Dh = () => {
|
|
3303
3303
|
const e = R((t) => t.scales.color);
|
|
3304
|
-
return
|
|
3304
|
+
return M(() => {
|
|
3305
3305
|
if (!e || e.kind !== "visual") return [];
|
|
3306
3306
|
const t = /* @__PURE__ */ new Set();
|
|
3307
3307
|
for (const n of e.domain) {
|
|
@@ -3324,7 +3324,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3324
3324
|
children: e
|
|
3325
3325
|
})
|
|
3326
3326
|
}) })
|
|
3327
|
-
}), $h = ({ children: e,
|
|
3327
|
+
}), $h = ({ children: e, selected: t = !1, disabled: n = !1, onClick: a }) => /* @__PURE__ */ r(V.Item, {
|
|
3328
3328
|
className: Gh,
|
|
3329
3329
|
"data-selected": t,
|
|
3330
3330
|
disabled: n,
|
|
@@ -3382,8 +3382,8 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3382
3382
|
preview: "Aa",
|
|
3383
3383
|
fontFamily: Yh
|
|
3384
3384
|
}
|
|
3385
|
-
], Jh = (e) => e ? Cn.find((t) => t.fontFamily === e) ?? null : null, Zo = "_70l3rt0", Yo = "_70l3rt1", Jo = "_70l3rt3", Qo = "_70l3rt4", ei = "_70l3rt5", Qh = ({ editor: e, currentFontFamily: t,
|
|
3386
|
-
const o =
|
|
3385
|
+
], Jh = (e) => e ? Cn.find((t) => t.fontFamily === e) ?? null : null, Zo = "_70l3rt0", Yo = "_70l3rt1", Jo = "_70l3rt3", Qo = "_70l3rt4", ei = "_70l3rt5", Qh = ({ editor: e, currentFontFamily: t, open: n, onOpenChange: a }) => {
|
|
3386
|
+
const o = E(), i = Jh(t) ?? Cn[0], l = (s) => {
|
|
3387
3387
|
e.chain().focus().setFontFamily(s.fontFamily).run();
|
|
3388
3388
|
};
|
|
3389
3389
|
return /* @__PURE__ */ v(V.Root, {
|
|
@@ -3448,8 +3448,8 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3448
3448
|
translationKey: "graph.toolbar.heading.heading1",
|
|
3449
3449
|
previewFont: ce.fontTextEditorH1
|
|
3450
3450
|
}
|
|
3451
|
-
], ep = ({ editor: e, activeStyle: t,
|
|
3452
|
-
const o =
|
|
3451
|
+
], ep = ({ editor: e, activeStyle: t, open: n, onOpenChange: a }) => {
|
|
3452
|
+
const o = E(), i = Rr.find((l) => l.id === t) ?? ti;
|
|
3453
3453
|
return /* @__PURE__ */ v(V.Root, {
|
|
3454
3454
|
open: n,
|
|
3455
3455
|
onOpenChange: a,
|
|
@@ -3536,8 +3536,8 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3536
3536
|
from: o + i,
|
|
3537
3537
|
to: o + l
|
|
3538
3538
|
};
|
|
3539
|
-
}, Nr = (e) => e !== void 0 && /\S/.test(e), lp = "fop13s0", sp = "fop13s1", cp = "fop13s2", dp = "fop13s3", Dr = "fop13s4", up = ({ editor: e, currentUrl: t,
|
|
3540
|
-
const i =
|
|
3539
|
+
}, Nr = (e) => e !== void 0 && /\S/.test(e), lp = "fop13s0", sp = "fop13s1", cp = "fop13s2", dp = "fop13s3", Dr = "fop13s4", up = ({ editor: e, currentUrl: t, active: n, open: a, onOpenChange: o }) => {
|
|
3540
|
+
const i = E(), [l, s] = X(""), c = ae(null);
|
|
3541
3541
|
z(() => {
|
|
3542
3542
|
a && s(t ?? "");
|
|
3543
3543
|
}, [a, t]);
|
|
@@ -3656,7 +3656,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3656
3656
|
/* @__PURE__ */ r("path", { d: "M17 19H3" })
|
|
3657
3657
|
]
|
|
3658
3658
|
})
|
|
3659
|
-
}), pp = "_1d66w570", mp = "_1d66w571", He = ({ label: e,
|
|
3659
|
+
}), pp = "_1d66w570", mp = "_1d66w571", He = ({ label: e, active: t, onToggle: n, children: a }) => {
|
|
3660
3660
|
const o = (i) => i.preventDefault();
|
|
3661
3661
|
return /* @__PURE__ */ v(pe.Root, { children: [/* @__PURE__ */ r(pe.Trigger, {
|
|
3662
3662
|
render: /* @__PURE__ */ r(qd, {
|
|
@@ -3680,41 +3680,41 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3680
3680
|
}) })
|
|
3681
3681
|
})] });
|
|
3682
3682
|
}, gp = ({ editor: e, activeAlignment: t = "left" }) => {
|
|
3683
|
-
const n =
|
|
3683
|
+
const n = E();
|
|
3684
3684
|
return /* @__PURE__ */ v($, { children: [
|
|
3685
3685
|
/* @__PURE__ */ r(He, {
|
|
3686
3686
|
label: n("graph.toolbar.textAlign.left"),
|
|
3687
|
-
|
|
3687
|
+
active: t === "left",
|
|
3688
3688
|
onToggle: () => e.chain().focus().setTextAlign("left").run(),
|
|
3689
3689
|
children: /* @__PURE__ */ r(ai, {})
|
|
3690
3690
|
}),
|
|
3691
3691
|
/* @__PURE__ */ r(He, {
|
|
3692
3692
|
label: n("graph.toolbar.textAlign.center"),
|
|
3693
|
-
|
|
3693
|
+
active: t === "center",
|
|
3694
3694
|
onToggle: () => e.chain().focus().setTextAlign("center").run(),
|
|
3695
3695
|
children: /* @__PURE__ */ r(ni, {})
|
|
3696
3696
|
}),
|
|
3697
3697
|
/* @__PURE__ */ r(He, {
|
|
3698
3698
|
label: n("graph.toolbar.textAlign.right"),
|
|
3699
|
-
|
|
3699
|
+
active: t === "right",
|
|
3700
3700
|
onToggle: () => e.chain().focus().setTextAlign("right").run(),
|
|
3701
3701
|
children: /* @__PURE__ */ r(ri, {})
|
|
3702
3702
|
})
|
|
3703
3703
|
] });
|
|
3704
3704
|
}, vp = "_1u34vl40", fp = ({ editor: e }) => ({
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3705
|
+
bold: e?.isActive("bold") ?? !1,
|
|
3706
|
+
italic: e?.isActive("italic") ?? !1,
|
|
3707
|
+
underlined: e?.isActive("underline") ?? !1,
|
|
3708
|
+
linked: e?.isActive("link") ?? !1,
|
|
3709
3709
|
linkUrl: e?.getAttributes("link").href ?? null,
|
|
3710
3710
|
color: e?.getAttributes("textStyle").color ?? null,
|
|
3711
3711
|
fontFamily: e?.getAttributes("textStyle").fontFamily ?? null,
|
|
3712
3712
|
fontSize: bp(e),
|
|
3713
3713
|
textAlign: yp(e)
|
|
3714
3714
|
}), bp = (e) => e ? e.isActive("heading", { level: 1 }) ? "h1" : e.isActive("heading", { level: 2 }) ? "h2" : e.isActive("heading", { level: 3 }) ? "h3" : e.isActive("paragraph", { variant: "caption" }) ? "caption" : "text" : "text", yp = (e) => e ? e.isActive({ textAlign: "center" }) ? "center" : e.isActive({ textAlign: "right" }) ? "right" : "left" : "left", Sp = 8, Cp = 8, xp = ({ editor: e }) => {
|
|
3715
|
-
const t =
|
|
3715
|
+
const t = E(), [n, a] = X(!1), [o, i] = X(null), l = o !== null, s = (g) => (m) => {
|
|
3716
3716
|
i(m ? g : null);
|
|
3717
|
-
}, { refs: c, floatingStyles: d } =
|
|
3717
|
+
}, { refs: c, floatingStyles: d } = Ed({
|
|
3718
3718
|
placement: "top-start",
|
|
3719
3719
|
strategy: "fixed",
|
|
3720
3720
|
middleware: [
|
|
@@ -3748,38 +3748,38 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3748
3748
|
/* @__PURE__ */ v(J.Group, { children: [/* @__PURE__ */ r(J.ColorPicker, {
|
|
3749
3749
|
color: h?.color ?? null,
|
|
3750
3750
|
onChange: (g) => e.chain().setColor(g).run(),
|
|
3751
|
-
|
|
3751
|
+
open: o === "color",
|
|
3752
3752
|
onOpenChange: s("color")
|
|
3753
3753
|
}), /* @__PURE__ */ r(Qh, {
|
|
3754
3754
|
editor: e,
|
|
3755
3755
|
currentFontFamily: h?.fontFamily ?? null,
|
|
3756
|
-
|
|
3756
|
+
open: o === "fontFamily",
|
|
3757
3757
|
onOpenChange: s("fontFamily")
|
|
3758
3758
|
})] }),
|
|
3759
3759
|
/* @__PURE__ */ r(J.Separator, {}),
|
|
3760
3760
|
/* @__PURE__ */ r(J.Group, { children: /* @__PURE__ */ r(ep, {
|
|
3761
3761
|
editor: e,
|
|
3762
3762
|
activeStyle: h?.fontSize ?? "text",
|
|
3763
|
-
|
|
3763
|
+
open: o === "fontSize",
|
|
3764
3764
|
onOpenChange: s("fontSize")
|
|
3765
3765
|
}) }),
|
|
3766
3766
|
/* @__PURE__ */ r(J.Separator, {}),
|
|
3767
3767
|
/* @__PURE__ */ v(J.Group, { children: [
|
|
3768
3768
|
/* @__PURE__ */ r(He, {
|
|
3769
3769
|
label: t("graph.toolbar.formatting.bold"),
|
|
3770
|
-
|
|
3770
|
+
active: h?.bold ?? !1,
|
|
3771
3771
|
onToggle: () => e.chain().focus().toggleBold().run(),
|
|
3772
3772
|
children: /* @__PURE__ */ r("strong", { children: "B" })
|
|
3773
3773
|
}),
|
|
3774
3774
|
/* @__PURE__ */ r(He, {
|
|
3775
3775
|
label: t("graph.toolbar.formatting.italic"),
|
|
3776
|
-
|
|
3776
|
+
active: h?.italic ?? !1,
|
|
3777
3777
|
onToggle: () => e.chain().focus().toggleItalic().run(),
|
|
3778
3778
|
children: /* @__PURE__ */ r("em", { children: "I" })
|
|
3779
3779
|
}),
|
|
3780
3780
|
/* @__PURE__ */ r(He, {
|
|
3781
3781
|
label: t("graph.toolbar.formatting.underline"),
|
|
3782
|
-
|
|
3782
|
+
active: h?.underlined ?? !1,
|
|
3783
3783
|
onToggle: () => e.chain().focus().toggleUnderline().run(),
|
|
3784
3784
|
children: /* @__PURE__ */ r("u", { children: "U" })
|
|
3785
3785
|
})
|
|
@@ -3793,8 +3793,8 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3793
3793
|
/* @__PURE__ */ r(J.Group, { children: /* @__PURE__ */ r(up, {
|
|
3794
3794
|
editor: e,
|
|
3795
3795
|
currentUrl: h?.linkUrl ?? null,
|
|
3796
|
-
|
|
3797
|
-
|
|
3796
|
+
active: h?.linked ?? !1,
|
|
3797
|
+
open: o === "link",
|
|
3798
3798
|
onOpenChange: s("link")
|
|
3799
3799
|
}) })
|
|
3800
3800
|
]
|
|
@@ -3805,7 +3805,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3805
3805
|
editor: e,
|
|
3806
3806
|
"aria-label": t
|
|
3807
3807
|
})]
|
|
3808
|
-
}), kp = 200, ar = ({ content: e, extensions: t,
|
|
3808
|
+
}), kp = 200, ar = ({ content: e, extensions: t, editable: n, onUpdate: a, updateDebounceMs: o = kp }) => {
|
|
3809
3809
|
const i = ae(_r(e)), l = ae(i.current), s = Ts((d) => {
|
|
3810
3810
|
l.current = d, a?.(d);
|
|
3811
3811
|
}, o), c = Vd({
|
|
@@ -3853,8 +3853,8 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3853
3853
|
}, Qt = (e, t) => JSON.stringify(xt(e)) === JSON.stringify(xt(t)), xt = (e) => Array.isArray(e) ? e.map(xt) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [t, xt(n)]).filter(([, t]) => !Ap(t)).sort(([t], [n]) => String(t).localeCompare(String(n)))), Ap = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Pp = ({ caption: e, captionStyle: t }) => {
|
|
3854
3854
|
const { dispatch: n } = le(), a = ar({
|
|
3855
3855
|
content: e,
|
|
3856
|
-
extensions:
|
|
3857
|
-
|
|
3856
|
+
extensions: M(() => gu({ placeholder: "Add caption" }), []),
|
|
3857
|
+
editable: !0,
|
|
3858
3858
|
onUpdate: (o) => {
|
|
3859
3859
|
const i = op(o) ? null : o;
|
|
3860
3860
|
n(new Xa({ caption: i }));
|
|
@@ -3872,16 +3872,16 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3872
3872
|
Ct,
|
|
3873
3873
|
Po,
|
|
3874
3874
|
...Qn(),
|
|
3875
|
-
|
|
3875
|
+
Ep,
|
|
3876
3876
|
Jn.configure({
|
|
3877
3877
|
showOnlyCurrent: !1,
|
|
3878
3878
|
placeholder: ({ pos: t }) => t === 0 ? e : ""
|
|
3879
3879
|
})
|
|
3880
3880
|
], Ip = ({ annotation: e }) => {
|
|
3881
|
-
const t =
|
|
3881
|
+
const t = E(), { dispatch: n } = le(), a = U(), o = M(() => Lp(t("graph.annotations.text.placeholder")), [t]), i = ar({
|
|
3882
3882
|
content: e.content,
|
|
3883
3883
|
extensions: o,
|
|
3884
|
-
|
|
3884
|
+
editable: !0,
|
|
3885
3885
|
onUpdate: (l) => {
|
|
3886
3886
|
n(new ve({
|
|
3887
3887
|
kind: "text",
|
|
@@ -3904,7 +3904,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3904
3904
|
}, Fr = (e) => {
|
|
3905
3905
|
const t = Ss(e);
|
|
3906
3906
|
return t === void 0 ? {} : { style: `font-family: ${t}` };
|
|
3907
|
-
},
|
|
3907
|
+
}, Ep = To.create({
|
|
3908
3908
|
name: "annotationTextStyleAttributes",
|
|
3909
3909
|
addGlobalAttributes() {
|
|
3910
3910
|
return [{
|
|
@@ -3925,11 +3925,11 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
3925
3925
|
}
|
|
3926
3926
|
}];
|
|
3927
3927
|
}
|
|
3928
|
-
}),
|
|
3928
|
+
}), Mp = 3, Op = ({ title: e, showTitle: t, subtitle: n, showSubtitle: a }) => {
|
|
3929
3929
|
const o = [];
|
|
3930
3930
|
return t && o.push({
|
|
3931
3931
|
type: "heading",
|
|
3932
|
-
attrs: { level:
|
|
3932
|
+
attrs: { level: Mp },
|
|
3933
3933
|
content: Np(e)
|
|
3934
3934
|
}), a && o.push(...Dp(n)), {
|
|
3935
3935
|
type: "doc",
|
|
@@ -4002,18 +4002,18 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
4002
4002
|
textDecoration: "var(--uwf6ltk)",
|
|
4003
4003
|
textShadow: "var(--uwf6ltl)",
|
|
4004
4004
|
textOutline: "var(--uwf6ltm)"
|
|
4005
|
-
}, Gp = ({ title: e,
|
|
4006
|
-
const { dispatch: l } = le(), s =
|
|
4005
|
+
}, Gp = ({ title: e, showTitle: t, showSubtitle: n, subtitle: a, headingStyle: o, subtitleStyle: i }) => {
|
|
4006
|
+
const { dispatch: l } = le(), s = M(() => mu({
|
|
4007
4007
|
titlePlaceholder: "Untitled",
|
|
4008
4008
|
subtitlePlaceholder: "Untitled",
|
|
4009
|
-
|
|
4010
|
-
|
|
4009
|
+
showTitle: t,
|
|
4010
|
+
showSubtitle: n
|
|
4011
4011
|
}), [t, n]), c = ar({
|
|
4012
|
-
content:
|
|
4012
|
+
content: M(() => Op({
|
|
4013
4013
|
title: e,
|
|
4014
|
-
|
|
4014
|
+
showTitle: t,
|
|
4015
4015
|
subtitle: a,
|
|
4016
|
-
|
|
4016
|
+
showSubtitle: n
|
|
4017
4017
|
}), [
|
|
4018
4018
|
e,
|
|
4019
4019
|
t,
|
|
@@ -4021,7 +4021,7 @@ var Ph = "d0bl03", Lh = "d0bl04", Ih = 0.01, Sn = za.map((e) => ce[e]), Mh = Obj
|
|
|
4021
4021
|
n
|
|
4022
4022
|
]),
|
|
4023
4023
|
extensions: s,
|
|
4024
|
-
|
|
4024
|
+
editable: !0,
|
|
4025
4025
|
onUpdate: (d) => {
|
|
4026
4026
|
const u = Rp(d);
|
|
4027
4027
|
t && l(new Ya({ title: u.title })), n && l(new Za({ subtitle: u.subtitle }));
|
|
@@ -4235,7 +4235,7 @@ var Yp = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
4235
4235
|
]);
|
|
4236
4236
|
const u = e !== null;
|
|
4237
4237
|
Ie(() => u ? () => o.getState().setSelectedOutline(null) : void 0, [o, u]);
|
|
4238
|
-
}, ir = "var(--_10d2ycx0)", a1 = "_10d2ycx1", o1 = "_10d2ycx2", Vr = ({ pathData: e,
|
|
4238
|
+
}, ir = "var(--_10d2ycx0)", a1 = "_10d2ycx1", o1 = "_10d2ycx2", Vr = ({ pathData: e, animateTransitions: t, source: n, ...a }) => t ? /* @__PURE__ */ r(i1, {
|
|
4239
4239
|
pathData: e,
|
|
4240
4240
|
source: n,
|
|
4241
4241
|
...a
|
|
@@ -4347,9 +4347,9 @@ var Yp = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
4347
4347
|
};
|
|
4348
4348
|
ci.hasRows = (e, { scene: t }) => t.coordSystem.type !== "polar";
|
|
4349
4349
|
var v1 = ({ graph: e, axis: t }) => {
|
|
4350
|
-
const n = K(e), a =
|
|
4350
|
+
const n = K(e), a = E(), { NumberField: o, TextField: i, ToggleGroup: l } = F(), s = n?.guides.axes.find((A) => A.scaleAestheticKey === t);
|
|
4351
4351
|
if (z(() => () => e.commands.commit(), [e.commands]), n === null || s?.geometry !== "linear") return null;
|
|
4352
|
-
const c = !s.
|
|
4352
|
+
const c = !s.visible, d = n.scales[t]?.spec.scaleType, u = d === "continuous" || d === "datetime", h = n.guides.legends.drawn.some((A) => A.position === "left" || A.position === "right"), p = t !== "x" && d === "continuous" && (s.position === "left" || s.position === "right") && !h, g = t === "x" ? void 0 : n.scales[t]?.spec, m = g?.scaleType === "continuous" ? g : void 0, f = m !== void 0 && (s.position === "left" || s.position === "right") && !fo(n, t), b = m?.transform === "log" ? "log" : "linear", C = f && m.transform !== "log", P = m?.domainMin ?? null, k = m !== void 0 && (s.position === "left" || s.position === "right") && m.transform !== "log", x = m?.domainMax ?? null, I = s.label ?? a("editor.axesPanel.controls.titlePlaceholder"), w = (A) => {
|
|
4353
4353
|
const B = A === "" ? null : A, te = t === "ySecondary" ? {
|
|
4354
4354
|
axis: t,
|
|
4355
4355
|
label: B
|
|
@@ -4367,14 +4367,14 @@ var v1 = ({ graph: e, axis: t }) => {
|
|
|
4367
4367
|
placeholder: I,
|
|
4368
4368
|
onChange: w,
|
|
4369
4369
|
onCommit: e.commands.commit,
|
|
4370
|
-
|
|
4370
|
+
disabled: c
|
|
4371
4371
|
})
|
|
4372
4372
|
}),
|
|
4373
4373
|
u && /* @__PURE__ */ r(T, {
|
|
4374
4374
|
label: a("editor.axesPanel.controls.labels"),
|
|
4375
4375
|
children: /* @__PURE__ */ r(l, {
|
|
4376
4376
|
value: s.tickMode,
|
|
4377
|
-
|
|
4377
|
+
disabled: c,
|
|
4378
4378
|
options: [{
|
|
4379
4379
|
value: "auto",
|
|
4380
4380
|
label: a("editor.axesPanel.labelMode.auto"),
|
|
@@ -4398,7 +4398,7 @@ var v1 = ({ graph: e, axis: t }) => {
|
|
|
4398
4398
|
label: a("editor.axesPanel.controls.position"),
|
|
4399
4399
|
children: /* @__PURE__ */ r(l, {
|
|
4400
4400
|
value: s.position,
|
|
4401
|
-
|
|
4401
|
+
disabled: c,
|
|
4402
4402
|
options: [{
|
|
4403
4403
|
value: "left",
|
|
4404
4404
|
label: a("editor.axesPanel.position.left"),
|
|
@@ -4422,7 +4422,7 @@ var v1 = ({ graph: e, axis: t }) => {
|
|
|
4422
4422
|
label: a("editor.axesPanel.controls.scale"),
|
|
4423
4423
|
children: /* @__PURE__ */ r(l, {
|
|
4424
4424
|
value: b,
|
|
4425
|
-
|
|
4425
|
+
disabled: c,
|
|
4426
4426
|
options: [{
|
|
4427
4427
|
value: "linear",
|
|
4428
4428
|
label: a("editor.axesPanel.scale.auto"),
|
|
@@ -4445,7 +4445,7 @@ var v1 = ({ graph: e, axis: t }) => {
|
|
|
4445
4445
|
children: /* @__PURE__ */ r(o, {
|
|
4446
4446
|
value: P,
|
|
4447
4447
|
placeholder: a("editor.axesPanel.startFrom.auto"),
|
|
4448
|
-
|
|
4448
|
+
disabled: c,
|
|
4449
4449
|
onChange: (A) => {
|
|
4450
4450
|
e.commands.dispatch(new Ze({
|
|
4451
4451
|
scaledAesthetic: t,
|
|
@@ -4460,7 +4460,7 @@ var v1 = ({ graph: e, axis: t }) => {
|
|
|
4460
4460
|
children: /* @__PURE__ */ r(o, {
|
|
4461
4461
|
value: x,
|
|
4462
4462
|
placeholder: a("editor.axesPanel.endAt.auto"),
|
|
4463
|
-
|
|
4463
|
+
disabled: c,
|
|
4464
4464
|
onChange: (A) => {
|
|
4465
4465
|
e.commands.dispatch(new Ze({
|
|
4466
4466
|
scaledAesthetic: t,
|
|
@@ -4489,9 +4489,9 @@ var v1 = ({ graph: e, axis: t }) => {
|
|
|
4489
4489
|
})
|
|
4490
4490
|
});
|
|
4491
4491
|
}, y1 = 6, at = ({ target: e }) => {
|
|
4492
|
-
const { commands: t } = H(), { ColorSwatches: n, CustomColor: a } = F(), o =
|
|
4492
|
+
const { commands: t } = H(), { ColorSwatches: n, CustomColor: a } = F(), o = E(), i = W(), l = R((h) => h), s = di(e, l), c = rd(l.scales.color).slice(0, y1);
|
|
4493
4493
|
z(() => () => t.commit(), [t]);
|
|
4494
|
-
const d =
|
|
4494
|
+
const d = M(() => hd({
|
|
4495
4495
|
readers: i,
|
|
4496
4496
|
layers: l.layers,
|
|
4497
4497
|
target: e,
|
|
@@ -4540,7 +4540,7 @@ var di = (e, t) => Z(t.layers, e.layerId) === void 0 ? null : jn(t.spec, e), S1
|
|
|
4540
4540
|
width: 0.95
|
|
4541
4541
|
}
|
|
4542
4542
|
], ui = ({ target: e }) => {
|
|
4543
|
-
const t = R((p) => p), n = le(), a =
|
|
4543
|
+
const t = R((p) => p), n = le(), a = E(), { ToggleGroup: o } = F(), i = Z(t.spec.layers, e.layerId), l = Ft(i, "bar") ? i : null, s = t.coordSystem.type === "polar" && t.coordSystem.bandAxis === null, c = (p) => {
|
|
4544
4544
|
const g = tn.find(({ name: m }) => m === p);
|
|
4545
4545
|
g !== void 0 && n.dispatch(new ja({
|
|
4546
4546
|
layerId: e.layerId,
|
|
@@ -4627,9 +4627,9 @@ var kn = [
|
|
|
4627
4627
|
showPoints: h !== void 0 && P1(e, t, h.id),
|
|
4628
4628
|
pointLayerId: h?.id ?? null,
|
|
4629
4629
|
showFill: a.geom === "line" && !o ? (c?.fillAlpha ?? 0) > 0 : null,
|
|
4630
|
-
|
|
4630
|
+
smooth: o ? null : a.params.curve === "smooth",
|
|
4631
4631
|
widthMode: u === null ? "auto" : "custom",
|
|
4632
|
-
|
|
4632
|
+
hasUnderlyingStrokeWidth: d?.strokeWidth !== void 0,
|
|
4633
4633
|
strokeWidth: u ?? I1(e, t, a) ?? Zs,
|
|
4634
4634
|
missingValues: g ? a.params.missingValues : null,
|
|
4635
4635
|
missingValueOptions: g ? p : []
|
|
@@ -4646,7 +4646,7 @@ var kn = [
|
|
|
4646
4646
|
const a = Z(e.layers, n.id);
|
|
4647
4647
|
if (a?.geom === "line") return t.geom.line(a).get("strokeWidth");
|
|
4648
4648
|
if (a?.geom === "area") return t.geom.area(a).get("strokeWidth");
|
|
4649
|
-
},
|
|
4649
|
+
}, E1 = (e) => /* @__PURE__ */ v(L, {
|
|
4650
4650
|
viewBox: "0 0 16 16",
|
|
4651
4651
|
...e,
|
|
4652
4652
|
children: [/* @__PURE__ */ r("path", {
|
|
@@ -4658,7 +4658,7 @@ var kn = [
|
|
|
4658
4658
|
fillOpacity: "0.3",
|
|
4659
4659
|
d: "M0 11 5.5 5.5 10.5 9 16 4V0H0z"
|
|
4660
4660
|
})]
|
|
4661
|
-
}),
|
|
4661
|
+
}), M1 = (e) => /* @__PURE__ */ v(L, {
|
|
4662
4662
|
viewBox: "0 0 16 16",
|
|
4663
4663
|
...e,
|
|
4664
4664
|
children: [/* @__PURE__ */ v("g", {
|
|
@@ -5537,14 +5537,14 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5537
5537
|
geom: "area",
|
|
5538
5538
|
position: "fill"
|
|
5539
5539
|
},
|
|
5540
|
-
icon:
|
|
5540
|
+
icon: E1
|
|
5541
5541
|
},
|
|
5542
5542
|
{
|
|
5543
5543
|
summary: {
|
|
5544
5544
|
coordType: "cartesian",
|
|
5545
5545
|
comboType: "stacked-bars"
|
|
5546
5546
|
},
|
|
5547
|
-
icon:
|
|
5547
|
+
icon: M1
|
|
5548
5548
|
},
|
|
5549
5549
|
{
|
|
5550
5550
|
summary: {
|
|
@@ -5573,7 +5573,7 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5573
5573
|
"stacked-bars": "stacked",
|
|
5574
5574
|
lines: "lines"
|
|
5575
5575
|
}, om = () => {
|
|
5576
|
-
const e = R((w) => w.spec), t = R(({ layers: w }) => w.some((A) => go(A.data, A.mapping))), n = le(), a =
|
|
5576
|
+
const e = R((w) => w.spec), t = R(({ layers: w }) => w.some((A) => go(A.data, A.mapping))), n = le(), a = E(), { Button: o, RadioGrid: i } = F(), [l, s] = X(!1), c = ae(null);
|
|
5577
5577
|
z(() => {
|
|
5578
5578
|
if (!l) return;
|
|
5579
5579
|
const w = ({ target: A, detail: B }) => {
|
|
@@ -5592,20 +5592,20 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5592
5592
|
value: w,
|
|
5593
5593
|
label: a(`editor.graphTypes.${w}`),
|
|
5594
5594
|
icon: /* @__PURE__ */ r(A.icon, { size: "md" }),
|
|
5595
|
-
|
|
5595
|
+
disabled: !gi(A.summary, e)
|
|
5596
5596
|
}));
|
|
5597
5597
|
return /* @__PURE__ */ v($, { children: [
|
|
5598
5598
|
/* @__PURE__ */ r(T, {
|
|
5599
5599
|
label: a("editor.overlayMenu.chartType"),
|
|
5600
5600
|
children: f === void 0 ? /* @__PURE__ */ r(o, {
|
|
5601
5601
|
label: m,
|
|
5602
|
-
|
|
5602
|
+
expanded: l,
|
|
5603
5603
|
onClick: P
|
|
5604
5604
|
}) : /* @__PURE__ */ r(o, {
|
|
5605
5605
|
variant: "icon",
|
|
5606
5606
|
icon: /* @__PURE__ */ r(f, { size: "sm" }),
|
|
5607
5607
|
ariaLabel: m,
|
|
5608
|
-
|
|
5608
|
+
expanded: l,
|
|
5609
5609
|
onClick: P
|
|
5610
5610
|
})
|
|
5611
5611
|
}),
|
|
@@ -5639,7 +5639,7 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5639
5639
|
arrangements: [n, ...[...Qe, ...em].filter((a) => a !== n && bi(n.summary, a.summary))]
|
|
5640
5640
|
}];
|
|
5641
5641
|
}), Ur = yi.filter(({ name: e }) => e !== "combo"), im = ({ type: e, arrangement: t, onPick: n, onCommit: a }) => {
|
|
5642
|
-
const o =
|
|
5642
|
+
const o = E(), { ToggleGroup: i } = F(), l = e.arrangements.map(({ summary: c, icon: d }) => {
|
|
5643
5643
|
const u = Tt(c);
|
|
5644
5644
|
return {
|
|
5645
5645
|
value: u,
|
|
@@ -5749,7 +5749,7 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5749
5749
|
sizePx: 10
|
|
5750
5750
|
}
|
|
5751
5751
|
], xi = ({ widthPx: e, onChange: t }) => {
|
|
5752
|
-
const n =
|
|
5752
|
+
const n = E(), { ToggleGroup: a } = F(), o = (i) => {
|
|
5753
5753
|
const l = nn.find(({ name: s }) => s === i);
|
|
5754
5754
|
l !== void 0 && t(l.widthPx);
|
|
5755
5755
|
};
|
|
@@ -5766,7 +5766,7 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5766
5766
|
})
|
|
5767
5767
|
});
|
|
5768
5768
|
}, wi = ({ lineStyle: e, onChange: t }) => {
|
|
5769
|
-
const n =
|
|
5769
|
+
const n = E(), { ToggleGroup: a } = F(), o = (i) => {
|
|
5770
5770
|
const l = qr.find((s) => s === i);
|
|
5771
5771
|
l !== void 0 && t(l);
|
|
5772
5772
|
};
|
|
@@ -5783,7 +5783,7 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5783
5783
|
})
|
|
5784
5784
|
});
|
|
5785
5785
|
}, ki = ({ sizePx: e, onChange: t }) => {
|
|
5786
|
-
const n =
|
|
5786
|
+
const n = E(), { ToggleGroup: a } = F(), o = (i) => {
|
|
5787
5787
|
const l = rn.find(({ name: s }) => s === i);
|
|
5788
5788
|
l !== void 0 && t(l.sizePx);
|
|
5789
5789
|
};
|
|
@@ -5799,8 +5799,8 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5799
5799
|
onChange: o
|
|
5800
5800
|
})
|
|
5801
5801
|
});
|
|
5802
|
-
}, Ti =
|
|
5803
|
-
const e = R((u) => u.scales.color), t = hm(), n = le(), a =
|
|
5802
|
+
}, Ti = Me({}), um = Ti.Provider, hm = () => he(Ti), pm = "_1m2a0t20", Tn = "theme", mm = 3, dt = 14, jr = 9, gm = () => {
|
|
5803
|
+
const e = R((u) => u.scales.color), t = hm(), n = le(), a = E(), { RadioGrid: o } = F();
|
|
5804
5804
|
if (Object.keys(t).length === 0 || e?.kind !== "visual" || e.spec.scaleType !== "discrete" || e.defaultPalette === void 0) return null;
|
|
5805
5805
|
const { defaultPalette: i, spec: l } = e, s = Object.entries(t), c = [{
|
|
5806
5806
|
value: Tn,
|
|
@@ -5851,7 +5851,7 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5851
5851
|
}, i)).reverse()
|
|
5852
5852
|
});
|
|
5853
5853
|
}, Zr = ["smooth", "linear"], Ai = () => {
|
|
5854
|
-
const e = R((S) => S), t = W(), n = _n(), a = le(), o =
|
|
5854
|
+
const e = R((S) => S), t = W(), n = _n(), a = le(), o = E(), { Switch: i, ToggleGroup: l } = F(), s = Pi(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: y }) => S(y)).map(({ layer: y }) => y), d = fm(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = kn.filter((S) => h.some((y) => y.missingValueOptions.includes(S))), g = Cm(u), m = xm(h), f = (S) => {
|
|
5855
5855
|
a.dispatch(new qe({ commands: d.map((y) => new Un({
|
|
5856
5856
|
layerId: y.layerId,
|
|
5857
5857
|
showPoints: S
|
|
@@ -5965,14 +5965,14 @@ var Q1 = "_1hrfeju1", em = [
|
|
|
5965
5965
|
P.length > 0 && /* @__PURE__ */ r(T, {
|
|
5966
5966
|
label: o("editor.graphPanel.graphOptions.lineFill"),
|
|
5967
5967
|
children: /* @__PURE__ */ r(i, {
|
|
5968
|
-
|
|
5968
|
+
checked: I,
|
|
5969
5969
|
onChange: te
|
|
5970
5970
|
})
|
|
5971
5971
|
}),
|
|
5972
5972
|
d.length > 0 && /* @__PURE__ */ r(T, {
|
|
5973
5973
|
label: o("editor.graphPanel.graphOptions.showPoints"),
|
|
5974
5974
|
children: /* @__PURE__ */ r(i, {
|
|
5975
|
-
|
|
5975
|
+
checked: k.length > 0,
|
|
5976
5976
|
onChange: f
|
|
5977
5977
|
})
|
|
5978
5978
|
}),
|
|
@@ -6025,7 +6025,7 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
|
|
|
6025
6025
|
}), an = (e) => {
|
|
6026
6026
|
const [t] = e;
|
|
6027
6027
|
return t !== void 0 && e.every((n) => n === t) ? t : null;
|
|
6028
|
-
}, Cm = (e) => e.every((t) => t.
|
|
6028
|
+
}, Cm = (e) => e.every((t) => t.smooth === !0) ? "smooth" : e.every((t) => t.smooth !== !0) ? "linear" : "", xm = (e) => {
|
|
6029
6029
|
const [t, ...n] = e, a = t?.missingValues ?? null;
|
|
6030
6030
|
return a === null ? "" : n.every((o) => o.missingValues === a) ? a : "";
|
|
6031
6031
|
}, ut = ({ label: e, layers: t, isOn: n, buildCommand: a }) => {
|
|
@@ -6037,7 +6037,7 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
|
|
|
6037
6037
|
return /* @__PURE__ */ r(T, {
|
|
6038
6038
|
label: e,
|
|
6039
6039
|
children: /* @__PURE__ */ r(i, {
|
|
6040
|
-
|
|
6040
|
+
checked: t.some((s) => n(s.dataLabels)),
|
|
6041
6041
|
onChange: l
|
|
6042
6042
|
})
|
|
6043
6043
|
});
|
|
@@ -6070,18 +6070,18 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
|
|
|
6070
6070
|
const a = t.gridLine.y().resolve();
|
|
6071
6071
|
return {
|
|
6072
6072
|
axes: n,
|
|
6073
|
-
|
|
6073
|
+
stylable: e.coordSystem.type !== "polar",
|
|
6074
6074
|
lineStyle: Re(a.dashArray),
|
|
6075
6075
|
strokeWidth: a.strokeWidth
|
|
6076
6076
|
};
|
|
6077
6077
|
}, Tm = (e, t) => {
|
|
6078
|
-
if (e === "both") return t.axes.every((a) => !a.
|
|
6078
|
+
if (e === "both") return t.axes.every((a) => !a.showGrid);
|
|
6079
6079
|
const n = t.axes.find((a) => a.scaleAestheticKey === e);
|
|
6080
|
-
return n === void 0 || !n.
|
|
6081
|
-
},
|
|
6080
|
+
return n === void 0 || !n.showGrid;
|
|
6081
|
+
}, Ei = (e, t = "both") => new Qa({
|
|
6082
6082
|
axis: t,
|
|
6083
6083
|
lineStyle: e
|
|
6084
|
-
}),
|
|
6084
|
+
}), Mi = (e, t = "both") => new Qa({
|
|
6085
6085
|
axis: t,
|
|
6086
6086
|
strokeWidth: e
|
|
6087
6087
|
}), on = [
|
|
@@ -6098,8 +6098,8 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
|
|
|
6098
6098
|
widthPx: 4
|
|
6099
6099
|
}
|
|
6100
6100
|
], Oi = ({ target: e }) => {
|
|
6101
|
-
const t = R((b) => b), n = W(), a = Ii(t, n), o =
|
|
6102
|
-
if (a === null || !a.
|
|
6101
|
+
const t = R((b) => b), n = W(), a = Ii(t, n), o = E(), i = le(), { ToggleGroup: l } = F();
|
|
6102
|
+
if (a === null || !a.stylable) return null;
|
|
6103
6103
|
const s = e.axis === "both" ? "y" : e.axis, c = n.gridLine[s]().resolve(), d = Re(c.dashArray), u = Tm(e.axis, a), h = At.map((b) => ({
|
|
6104
6104
|
value: b,
|
|
6105
6105
|
label: o(`editor.graphPanel.gridSection.lineStyles.${b}`),
|
|
@@ -6110,10 +6110,10 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
|
|
|
6110
6110
|
icon: /* @__PURE__ */ r(Ci, { lineWidth: C })
|
|
6111
6111
|
})), g = on.find(({ widthPx: b }) => b === c.strokeWidth)?.name ?? "", m = (b) => {
|
|
6112
6112
|
const C = At.find((P) => P === b);
|
|
6113
|
-
C !== void 0 && i.dispatch(
|
|
6113
|
+
C !== void 0 && i.dispatch(Ei(C, e.axis));
|
|
6114
6114
|
}, f = (b) => {
|
|
6115
6115
|
const C = on.find(({ name: P }) => P === b);
|
|
6116
|
-
C !== void 0 && i.dispatch(
|
|
6116
|
+
C !== void 0 && i.dispatch(Mi(C.widthPx, e.axis));
|
|
6117
6117
|
};
|
|
6118
6118
|
return /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(T, {
|
|
6119
6119
|
label: o("editor.graphPanel.gridSection.gridStyle"),
|
|
@@ -6121,7 +6121,7 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
|
|
|
6121
6121
|
value: d,
|
|
6122
6122
|
options: h,
|
|
6123
6123
|
onChange: m,
|
|
6124
|
-
|
|
6124
|
+
disabled: u
|
|
6125
6125
|
})
|
|
6126
6126
|
}), /* @__PURE__ */ r(T, {
|
|
6127
6127
|
label: o("editor.graphPanel.gridSection.gridThickness"),
|
|
@@ -6129,7 +6129,7 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
|
|
|
6129
6129
|
value: g,
|
|
6130
6130
|
options: p,
|
|
6131
6131
|
onChange: f,
|
|
6132
|
-
|
|
6132
|
+
disabled: u
|
|
6133
6133
|
})
|
|
6134
6134
|
})] });
|
|
6135
6135
|
};
|
|
@@ -6192,7 +6192,7 @@ var Jr = [
|
|
|
6192
6192
|
center: "Center",
|
|
6193
6193
|
end: "End"
|
|
6194
6194
|
}, Pm = () => {
|
|
6195
|
-
const e = R((c) => c.guides.legends.drawn[0]), t = le(), n =
|
|
6195
|
+
const e = R((c) => c.guides.legends.drawn[0]), t = le(), n = E(), { RadioGrid: a } = F(), o = e === void 0, i = o ? "" : ln(e), l = Jr.map((c) => {
|
|
6196
6196
|
const d = ln(c);
|
|
6197
6197
|
return {
|
|
6198
6198
|
value: d,
|
|
@@ -6225,7 +6225,7 @@ var Jr = [
|
|
|
6225
6225
|
onCommit: t.commit,
|
|
6226
6226
|
columns: 3,
|
|
6227
6227
|
itemLayout: "icon",
|
|
6228
|
-
|
|
6228
|
+
disabled: o
|
|
6229
6229
|
})
|
|
6230
6230
|
})
|
|
6231
6231
|
})
|
|
@@ -6239,9 +6239,9 @@ var Jr = [
|
|
|
6239
6239
|
};
|
|
6240
6240
|
Pn.hasRows = (e, { scene: t }) => e.scope === "series" && Ri(t, e.layerId) !== null;
|
|
6241
6241
|
var Im = ({ graph: e, target: t }) => {
|
|
6242
|
-
const n = K(e), a = W(), o =
|
|
6242
|
+
const n = K(e), a = W(), o = E(), { Switch: i } = F(), l = n === null ? null : Ri(n, t.layerId), s = n === null || l === null ? null : lr(n, a, l.id);
|
|
6243
6243
|
if (n === null || l === null || s === null) return null;
|
|
6244
|
-
const c = Nm(n, t), d = c === void 0 ? {} : { where: c }, u = c === void 0 || l.geom !== "line" ? void 0 : Rm(n, s.layerId, c), h = u === void 0 ? s.showFill : u > 0, p = c === void 0 ? null :
|
|
6244
|
+
const c = Nm(n, t), d = c === void 0 ? {} : { where: c }, u = c === void 0 || l.geom !== "line" ? void 0 : Rm(n, s.layerId, c), h = u === void 0 ? s.showFill : u > 0, p = c === void 0 ? null : Em(n, l.geom, s.layerId, c), g = c === void 0 ? s.strokeWidth : p ?? Mm(n, a, t) ?? s.strokeWidth, m = s.pointLayerId === null ? null : Om(n, a, s.pointLayerId, c), f = m !== null && m > 0, b = (w) => {
|
|
6245
6245
|
e.commands.dispatch(new Un({
|
|
6246
6246
|
layerId: s.layerId,
|
|
6247
6247
|
showPoints: w,
|
|
@@ -6285,14 +6285,14 @@ var Im = ({ graph: e, target: t }) => {
|
|
|
6285
6285
|
s.showFill !== null && /* @__PURE__ */ r(T, {
|
|
6286
6286
|
label: o("editor.graphPanel.graphOptions.lineFill"),
|
|
6287
6287
|
children: /* @__PURE__ */ r(i, {
|
|
6288
|
-
|
|
6288
|
+
checked: h === !0,
|
|
6289
6289
|
onChange: C
|
|
6290
6290
|
})
|
|
6291
6291
|
}),
|
|
6292
6292
|
/* @__PURE__ */ r(T, {
|
|
6293
6293
|
label: o("editor.graphPanel.graphOptions.showPoints"),
|
|
6294
6294
|
children: /* @__PURE__ */ r(i, {
|
|
6295
|
-
|
|
6295
|
+
checked: f,
|
|
6296
6296
|
onChange: b
|
|
6297
6297
|
})
|
|
6298
6298
|
}),
|
|
@@ -6301,7 +6301,7 @@ var Im = ({ graph: e, target: t }) => {
|
|
|
6301
6301
|
onChange: k
|
|
6302
6302
|
})
|
|
6303
6303
|
] });
|
|
6304
|
-
},
|
|
6304
|
+
}, Em = (e, t, n, a) => {
|
|
6305
6305
|
const o = (t === "line" ? bt(e.spec.styles.overrides, {
|
|
6306
6306
|
...Ge("line", n),
|
|
6307
6307
|
when: { where: a }
|
|
@@ -6310,7 +6310,7 @@ var Im = ({ graph: e, target: t }) => {
|
|
|
6310
6310
|
when: { where: a }
|
|
6311
6311
|
}, de(e.spec)))?.strokeWidth;
|
|
6312
6312
|
return typeof o == "number" ? o : null;
|
|
6313
|
-
},
|
|
6313
|
+
}, Mm = (e, t, n) => {
|
|
6314
6314
|
const a = Z(e.layers, n.layerId), o = a === void 0 ? void 0 : _t(a, e.layers);
|
|
6315
6315
|
if (o?.geom !== "line" && o?.geom !== "area") return null;
|
|
6316
6316
|
const [i] = Je({
|
|
@@ -6360,15 +6360,15 @@ var Im = ({ graph: e, target: t }) => {
|
|
|
6360
6360
|
axis: ci,
|
|
6361
6361
|
grid: Oi,
|
|
6362
6362
|
graph: Ai
|
|
6363
|
-
}, sr =
|
|
6364
|
-
const n =
|
|
6363
|
+
}, sr = Me([Ni]), _m = ({ editMenus: e, children: t }) => {
|
|
6364
|
+
const n = M(() => [e ?? {}, Ni], [e]);
|
|
6365
6365
|
return /* @__PURE__ */ r(sr.Provider, {
|
|
6366
6366
|
value: n,
|
|
6367
6367
|
children: t
|
|
6368
6368
|
});
|
|
6369
6369
|
}, Fm = (e) => {
|
|
6370
6370
|
const t = he(sr), n = R((o) => o), a = _n();
|
|
6371
|
-
return
|
|
6371
|
+
return M(() => e === null ? null : Di(e, t, {
|
|
6372
6372
|
scene: n,
|
|
6373
6373
|
dataLabelPlacement: a
|
|
6374
6374
|
}), [
|
|
@@ -6418,23 +6418,23 @@ var Im = ({ graph: e, target: t }) => {
|
|
|
6418
6418
|
case "legend": {
|
|
6419
6419
|
const { position: o } = n.legend, i = o === "none";
|
|
6420
6420
|
return {
|
|
6421
|
-
|
|
6421
|
+
hidden: i,
|
|
6422
6422
|
hide: new mn({ position: "none" }),
|
|
6423
6423
|
show: new mn({ position: i ? "auto" : o })
|
|
6424
6424
|
};
|
|
6425
6425
|
}
|
|
6426
6426
|
case "axis": {
|
|
6427
|
-
const { axis: o } = e, i = o === "ySecondary" ? a.axes.find((l) => l.scaleAestheticKey === "ySecondary")?.
|
|
6427
|
+
const { axis: o } = e, i = o === "ySecondary" ? a.axes.find((l) => l.scaleAestheticKey === "ySecondary")?.visible : n.axes[o].visible;
|
|
6428
6428
|
return i === void 0 ? null : {
|
|
6429
|
-
|
|
6429
|
+
hidden: !i,
|
|
6430
6430
|
hide: new hn({
|
|
6431
6431
|
axis: o,
|
|
6432
|
-
|
|
6432
|
+
visible: !1,
|
|
6433
6433
|
keepSecondaryAxis: !0
|
|
6434
6434
|
}),
|
|
6435
6435
|
show: new hn({
|
|
6436
6436
|
axis: o,
|
|
6437
|
-
|
|
6437
|
+
visible: !0,
|
|
6438
6438
|
keepSecondaryAxis: !0
|
|
6439
6439
|
})
|
|
6440
6440
|
};
|
|
@@ -6442,16 +6442,16 @@ var Im = ({ graph: e, target: t }) => {
|
|
|
6442
6442
|
case "grid": {
|
|
6443
6443
|
const { axis: o } = e;
|
|
6444
6444
|
if (o === "both") return null;
|
|
6445
|
-
const {
|
|
6445
|
+
const { visible: i } = n.axes[o].grid, l = i === !1;
|
|
6446
6446
|
return {
|
|
6447
|
-
|
|
6447
|
+
hidden: l,
|
|
6448
6448
|
hide: new pn({
|
|
6449
6449
|
axis: o,
|
|
6450
|
-
|
|
6450
|
+
visible: !1
|
|
6451
6451
|
}),
|
|
6452
6452
|
show: new pn({
|
|
6453
6453
|
axis: o,
|
|
6454
|
-
|
|
6454
|
+
visible: l ? !0 : i
|
|
6455
6455
|
})
|
|
6456
6456
|
};
|
|
6457
6457
|
}
|
|
@@ -6484,13 +6484,13 @@ var Qr = (e, t) => {
|
|
|
6484
6484
|
const { layers: t, parsingLocale: n } = R(xe((p) => ({
|
|
6485
6485
|
layers: p.layers,
|
|
6486
6486
|
parsingLocale: p.config.parsingLocale
|
|
6487
|
-
}))), a = ee((p) => p.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : Z(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : md(i, o.target.scope, o.observationIndex), c =
|
|
6487
|
+
}))), a = ee((p) => p.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : Z(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : md(i, o.target.scope, o.observationIndex), c = M(() => i === void 0 || l === null || s === null ? null : Vm(t, i, l, s), [
|
|
6488
6488
|
t,
|
|
6489
6489
|
i,
|
|
6490
6490
|
l,
|
|
6491
6491
|
s
|
|
6492
|
-
]), d =
|
|
6493
|
-
return
|
|
6492
|
+
]), d = M(() => c !== null && e !== null && Qr(c, e), [c, e]), u = Wt(), h = o !== null && i !== void 0 && $m(o, i, n, u) ? o.observationIndex : null;
|
|
6493
|
+
return M(() => {
|
|
6494
6494
|
switch (a?.kind) {
|
|
6495
6495
|
case "observations": {
|
|
6496
6496
|
const p = c?.parts[0];
|
|
@@ -6552,7 +6552,7 @@ var Qr = (e, t) => {
|
|
|
6552
6552
|
parts: o,
|
|
6553
6553
|
vertex: null
|
|
6554
6554
|
};
|
|
6555
|
-
}, $m = ({ observationIndex: e, target: t,
|
|
6555
|
+
}, $m = ({ observationIndex: e, target: t, onObservation: n }, a, o, i) => {
|
|
6556
6556
|
if (!n || t.scope !== "series") return !1;
|
|
6557
6557
|
const l = tt({
|
|
6558
6558
|
layer: a,
|
|
@@ -6580,7 +6580,7 @@ var Qr = (e, t) => {
|
|
|
6580
6580
|
return sn([...Km(i.filter((s) => !qm(s)))].flatMap(([s, c]) => a[s] === "direct" ? c.map(l) : [vn(c.map(l))]));
|
|
6581
6581
|
case "grid":
|
|
6582
6582
|
return i.flatMap((s) => {
|
|
6583
|
-
const c =
|
|
6583
|
+
const c = Mt([s], e);
|
|
6584
6584
|
if (c?.kind !== "grid" || c.target.axis === "both") return [];
|
|
6585
6585
|
const { axis: d } = c.target;
|
|
6586
6586
|
return t.axis === "both" || d === t.axis ? [jm(s, l(s), d)] : [];
|
|
@@ -6654,11 +6654,11 @@ var Qr = (e, t) => {
|
|
|
6654
6654
|
}, Xm = (e) => {
|
|
6655
6655
|
const t = (n) => Number(e?.getAttribute(n) ?? 0);
|
|
6656
6656
|
return (t("x2") - t("x1")) * (t("y2") - t("y1")) >= 0;
|
|
6657
|
-
}, Zm = [], Ym = (e, { frameElement: t, frameSize: n, panelRect: a,
|
|
6657
|
+
}, Zm = [], Ym = (e, { frameElement: t, frameSize: n, panelRect: a, animateTransitions: o }) => {
|
|
6658
6658
|
const i = R((f) => f.coordSystem), l = os(), s = Va(), c = Qm(e.kind === "guide" ? e.target : null, {
|
|
6659
6659
|
frameElement: t,
|
|
6660
6660
|
frameSize: n
|
|
6661
|
-
}), d = Jm(t, n), u =
|
|
6661
|
+
}), d = Jm(t, n), u = M(() => ({
|
|
6662
6662
|
coordSystem: i,
|
|
6663
6663
|
panelRect: a,
|
|
6664
6664
|
resolveRenderer: l,
|
|
@@ -6668,12 +6668,12 @@ var Qr = (e, t) => {
|
|
|
6668
6668
|
a,
|
|
6669
6669
|
l,
|
|
6670
6670
|
s
|
|
6671
|
-
]), h = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, g =
|
|
6671
|
+
]), h = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, g = M(() => h?.map((f) => ea(f, u, o)) ?? Zm, [
|
|
6672
6672
|
h,
|
|
6673
6673
|
u,
|
|
6674
6674
|
o
|
|
6675
|
-
]), m =
|
|
6676
|
-
return
|
|
6675
|
+
]), m = M(() => p === null ? null : ea(p, u, !1), [p, u]);
|
|
6676
|
+
return M(() => {
|
|
6677
6677
|
switch (e.kind) {
|
|
6678
6678
|
case "observations":
|
|
6679
6679
|
return {
|
|
@@ -6739,7 +6739,7 @@ var Qr = (e, t) => {
|
|
|
6739
6739
|
coordSystem: n,
|
|
6740
6740
|
panelRect: a,
|
|
6741
6741
|
styleReaders: i(e),
|
|
6742
|
-
|
|
6742
|
+
animateTransitions: l
|
|
6743
6743
|
})
|
|
6744
6744
|
};
|
|
6745
6745
|
}, Qm = (e, { frameElement: t, frameSize: n }) => {
|
|
@@ -6811,7 +6811,7 @@ var Qr = (e, t) => {
|
|
|
6811
6811
|
layers: a.layers,
|
|
6812
6812
|
parsingLocale: a.config.parsingLocale
|
|
6813
6813
|
})));
|
|
6814
|
-
return
|
|
6814
|
+
return M(() => e === null ? null : ng(e, t, n), [
|
|
6815
6815
|
e,
|
|
6816
6816
|
t,
|
|
6817
6817
|
n
|
|
@@ -6880,14 +6880,14 @@ var Qr = (e, t) => {
|
|
|
6880
6880
|
parts: i,
|
|
6881
6881
|
vertex: null
|
|
6882
6882
|
};
|
|
6883
|
-
}, ag = ["x", "y"], og = ko(function({ frameElement: t, frameSize: n, panelRect: a,
|
|
6883
|
+
}, ag = ["x", "y"], og = ko(function({ frameElement: t, frameSize: n, panelRect: a, animateTransitions: o }) {
|
|
6884
6884
|
const i = cs(Sd, W()), l = tg(), s = Gm(l?.outlined ?? null);
|
|
6885
6885
|
if (l === null && s === null) return null;
|
|
6886
6886
|
const c = {
|
|
6887
6887
|
frameElement: t,
|
|
6888
6888
|
frameSize: n,
|
|
6889
6889
|
panelRect: a,
|
|
6890
|
-
|
|
6890
|
+
animateTransitions: o
|
|
6891
6891
|
};
|
|
6892
6892
|
return /* @__PURE__ */ v("svg", {
|
|
6893
6893
|
className: a1,
|
|
@@ -6908,12 +6908,12 @@ var Qr = (e, t) => {
|
|
|
6908
6908
|
...c
|
|
6909
6909
|
}, l.outlined.key)]
|
|
6910
6910
|
});
|
|
6911
|
-
}), ta = ({ part: e, target: t, editTarget: n, look: a, frameSize: o, panelRect: i, frameElement: l,
|
|
6911
|
+
}), ta = ({ part: e, target: t, editTarget: n, look: a, frameSize: o, panelRect: i, frameElement: l, animateTransitions: s }) => {
|
|
6912
6912
|
const c = Le(), d = `${c}-shapes`, u = `${c}-hole`, h = Ym(t, {
|
|
6913
6913
|
frameElement: l,
|
|
6914
6914
|
frameSize: o,
|
|
6915
6915
|
panelRect: i,
|
|
6916
|
-
|
|
6916
|
+
animateTransitions: s
|
|
6917
6917
|
});
|
|
6918
6918
|
return r1(n === void 0 ? null : {
|
|
6919
6919
|
target: n,
|
|
@@ -7047,14 +7047,14 @@ var Qr = (e, t) => {
|
|
|
7047
7047
|
return a.pathData === "" ? null : /* @__PURE__ */ r(Vr, {
|
|
7048
7048
|
pathData: a.pathData,
|
|
7049
7049
|
fillRule: a.fillRule,
|
|
7050
|
-
|
|
7050
|
+
animateTransitions: a.animateTransitions ?? !1,
|
|
7051
7051
|
source: t,
|
|
7052
7052
|
"data-geom": t.geom
|
|
7053
7053
|
}, i);
|
|
7054
7054
|
case "stroke":
|
|
7055
7055
|
return a.pathData === "" ? null : /* @__PURE__ */ r(Vr, {
|
|
7056
7056
|
pathData: a.pathData,
|
|
7057
|
-
|
|
7057
|
+
animateTransitions: a.animateTransitions ?? !1,
|
|
7058
7058
|
source: t,
|
|
7059
7059
|
"data-geom": t.geom,
|
|
7060
7060
|
...si(a.width)
|
|
@@ -7125,7 +7125,7 @@ var Qr = (e, t) => {
|
|
|
7125
7125
|
const n = e.getBoundingClientRect(), a = ii(e, n.width);
|
|
7126
7126
|
return new DOMRect(n.left + t.x * a, n.top + t.y * a, t.width * a, t.height * a);
|
|
7127
7127
|
}
|
|
7128
|
-
}), Cg = ({ side: e, boundary: t, spans: n, anchor: a,
|
|
7128
|
+
}), Cg = ({ side: e, boundary: t, spans: n, anchor: a, rightToLeft: o }) => {
|
|
7129
7129
|
if (!xg(e)) return 0;
|
|
7130
7130
|
const i = n[e];
|
|
7131
7131
|
if (e === "left" || e === "right") return ra(i.from - t.y, a.height, t.height);
|
|
@@ -7150,7 +7150,7 @@ var Qr = (e, t) => {
|
|
|
7150
7150
|
Ie(() => () => {
|
|
7151
7151
|
c?.contains(document.activeElement) && e.focus({ preventScroll: !0 });
|
|
7152
7152
|
}, [c, e]);
|
|
7153
|
-
const { x: g, y: m, width: f, height: b } = t, C =
|
|
7153
|
+
const { x: g, y: m, width: f, height: b } = t, C = M(() => ({
|
|
7154
7154
|
box: {
|
|
7155
7155
|
x: g,
|
|
7156
7156
|
y: m,
|
|
@@ -7164,7 +7164,7 @@ var Qr = (e, t) => {
|
|
|
7164
7164
|
f,
|
|
7165
7165
|
b,
|
|
7166
7166
|
n
|
|
7167
|
-
]), P =
|
|
7167
|
+
]), P = M(() => zi(e, C.box), [e, C]), k = (x, I) => {
|
|
7168
7168
|
x || (I.cancel(), I.reason === "escape-key" && o());
|
|
7169
7169
|
};
|
|
7170
7170
|
return /* @__PURE__ */ r(Q.Root, {
|
|
@@ -7184,7 +7184,7 @@ var Qr = (e, t) => {
|
|
|
7184
7184
|
boundary: C.box,
|
|
7185
7185
|
spans: C.spans,
|
|
7186
7186
|
anchor: I,
|
|
7187
|
-
|
|
7187
|
+
rightToLeft: Ag(p.current)
|
|
7188
7188
|
}),
|
|
7189
7189
|
collisionAvoidance: kg,
|
|
7190
7190
|
sticky: !0,
|
|
@@ -7318,7 +7318,7 @@ var Qr = (e, t) => {
|
|
|
7318
7318
|
rx: ".533"
|
|
7319
7319
|
})
|
|
7320
7320
|
]
|
|
7321
|
-
}), cr = (e) =>
|
|
7321
|
+
}), cr = (e) => M(() => {
|
|
7322
7322
|
if (e === null) return {
|
|
7323
7323
|
options: [],
|
|
7324
7324
|
findValue: () => {
|
|
@@ -7345,7 +7345,7 @@ var Qr = (e, t) => {
|
|
|
7345
7345
|
}, [e]), Pg = ({ scene: e, layer: t, observation: n, groupOptions: a, locale: o, t: i }) => {
|
|
7346
7346
|
const l = Ln(e, t, n, a);
|
|
7347
7347
|
return {
|
|
7348
|
-
"data-point": i(
|
|
7348
|
+
"data-point": i(Mg(e, t)),
|
|
7349
7349
|
"x-value": i("editor.overlayMenu.allOf", { name: $i(e, t, n, o) }),
|
|
7350
7350
|
series: l === null ? i("editor.overlayMenu.all") : i("editor.overlayMenu.allOf", { name: l })
|
|
7351
7351
|
};
|
|
@@ -7363,7 +7363,7 @@ var Qr = (e, t) => {
|
|
|
7363
7363
|
return aa(uo(e.guides, "x")?.label ?? null, c, i);
|
|
7364
7364
|
case "series": {
|
|
7365
7365
|
const d = Ln(e, t, n, a) ?? i("editor.overlayMenu.all");
|
|
7366
|
-
return aa(
|
|
7366
|
+
return aa(Eg(e, s), d, i);
|
|
7367
7367
|
}
|
|
7368
7368
|
default:
|
|
7369
7369
|
return l;
|
|
@@ -7377,10 +7377,10 @@ var Qr = (e, t) => {
|
|
|
7377
7377
|
value: t
|
|
7378
7378
|
}),
|
|
7379
7379
|
value: t
|
|
7380
|
-
}),
|
|
7380
|
+
}), Eg = (e, t) => {
|
|
7381
7381
|
const [n, ...a] = t;
|
|
7382
7382
|
return n === void 0 || a.length > 0 ? null : e.guides.variableLabels[n] ?? null;
|
|
7383
|
-
},
|
|
7383
|
+
}, Mg = (e, t) => {
|
|
7384
7384
|
switch (t.geom) {
|
|
7385
7385
|
case "bar":
|
|
7386
7386
|
return e.coordSystem.type === "polar" && e.coordSystem.bandAxis === null ? "editor.overlayMenu.thisSlice" : "editor.overlayMenu.thisBar";
|
|
@@ -7410,7 +7410,7 @@ var Qr = (e, t) => {
|
|
|
7410
7410
|
"x-value": Gi,
|
|
7411
7411
|
series: Vi
|
|
7412
7412
|
}, Dg = () => {
|
|
7413
|
-
const { selectionStore: e } = H(), t = U(), n =
|
|
7413
|
+
const { selectionStore: e } = H(), t = U(), n = E(), a = zn(), o = R((b) => b), i = cr(o), l = ee((b) => b.pressedObservation), s = Wt(), c = M(() => _g({
|
|
7414
7414
|
scene: o,
|
|
7415
7415
|
pressed: l,
|
|
7416
7416
|
groupOptions: i,
|
|
@@ -7509,9 +7509,9 @@ var Qr = (e, t) => {
|
|
|
7509
7509
|
]
|
|
7510
7510
|
})
|
|
7511
7511
|
}), Bg = "_1de58rm0", Hg = ({ target: e }) => {
|
|
7512
|
-
const t =
|
|
7512
|
+
const t = E(), n = le(), a = R((g) => g), [o, i] = X(null), l = _i(e, a);
|
|
7513
7513
|
if (l === null) return null;
|
|
7514
|
-
const {
|
|
7514
|
+
const { hidden: s, hide: c, show: d } = l, u = () => {
|
|
7515
7515
|
if (s) {
|
|
7516
7516
|
n.dispatch(o ?? d);
|
|
7517
7517
|
return;
|
|
@@ -7563,7 +7563,7 @@ var Qr = (e, t) => {
|
|
|
7563
7563
|
return e;
|
|
7564
7564
|
}
|
|
7565
7565
|
}, jg = ({ target: e }) => {
|
|
7566
|
-
const t =
|
|
7566
|
+
const t = E(), n = zn(), a = R((l) => l), o = cr(a), i = M(() => Zg({
|
|
7567
7567
|
target: e,
|
|
7568
7568
|
scene: a,
|
|
7569
7569
|
groupOptions: o,
|
|
@@ -7641,7 +7641,7 @@ var Qr = (e, t) => {
|
|
|
7641
7641
|
const t = Rt(), [n, a] = X(e), o = n !== null && Kn(t[0] ?? null, n.target), i = e ?? (o ? n : null);
|
|
7642
7642
|
return i !== n && a(i), i;
|
|
7643
7643
|
}, Qg = ({ frameRect: e }) => {
|
|
7644
|
-
const { targetBoundaryStore: t } = H(), n = ee((l) => l.selectedOutline), { left: a, top: o } = e, i =
|
|
7644
|
+
const { targetBoundaryStore: t } = H(), n = ee((l) => l.selectedOutline), { left: a, top: o } = e, i = M(() => {
|
|
7645
7645
|
if (n === null) return null;
|
|
7646
7646
|
const { frame: l, frameSpans: s, frameScale: c } = n;
|
|
7647
7647
|
return {
|
|
@@ -7799,7 +7799,7 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
|
|
|
7799
7799
|
fillOpacity: "0.8"
|
|
7800
7800
|
})
|
|
7801
7801
|
}), d2 = "relative-difference", u2 = ({ label: e, layer: t, at: n, onRequestClose: a }) => {
|
|
7802
|
-
const { dispatch: o } = le(), i = R((c) => c.coordSystem), l =
|
|
7802
|
+
const { dispatch: o } = le(), i = R((c) => c.coordSystem), l = M(() => Jc({
|
|
7803
7803
|
layer: t,
|
|
7804
7804
|
at: n,
|
|
7805
7805
|
coordSystem: i
|
|
@@ -8146,7 +8146,7 @@ var p2 = (e) => {
|
|
|
8146
8146
|
fillOpacity: "0.8"
|
|
8147
8147
|
})]
|
|
8148
8148
|
}), C2 = ({ label: e, options: t, onSelect: n }) => {
|
|
8149
|
-
const a =
|
|
8149
|
+
const a = E();
|
|
8150
8150
|
return /* @__PURE__ */ r(dr, {
|
|
8151
8151
|
label: e,
|
|
8152
8152
|
icon: /* @__PURE__ */ r(ji, {}),
|
|
@@ -8160,7 +8160,7 @@ var p2 = (e) => {
|
|
|
8160
8160
|
}, o.scope))
|
|
8161
8161
|
});
|
|
8162
8162
|
}, x2 = ({ label: e, layer: t, observation: n, highlights: a, onRequestClose: o }) => {
|
|
8163
|
-
const i =
|
|
8163
|
+
const i = E(), { dispatch: l } = le(), s = R((g) => g.coordSystem), c = M(() => Mc(t, n), [t, n]), d = M(() => h2(s, t), [s, t]), u = M(() => {
|
|
8164
8164
|
const g = new Set(a.map((m) => m.scope));
|
|
8165
8165
|
return d.filter((m) => !g.has(m.scope));
|
|
8166
8166
|
}, [d, a]), [h] = u;
|
|
@@ -8208,7 +8208,7 @@ var p2 = (e) => {
|
|
|
8208
8208
|
});
|
|
8209
8209
|
}, A2 = (e, t) => {
|
|
8210
8210
|
const n = R((o) => o.spec.highlights), a = R((o) => o.config.parsingLocale);
|
|
8211
|
-
return
|
|
8211
|
+
return M(() => Wc({
|
|
8212
8212
|
layer: e,
|
|
8213
8213
|
highlights: n,
|
|
8214
8214
|
observation: t,
|
|
@@ -8305,7 +8305,7 @@ var p2 = (e) => {
|
|
|
8305
8305
|
},
|
|
8306
8306
|
image: null
|
|
8307
8307
|
}, L2 = (e) => ed(e.kind) && Ji[e.kind] !== null, I2 = ({ attachment: e, onRequestClose: t }) => {
|
|
8308
|
-
const n =
|
|
8308
|
+
const n = E(), { dispatch: a } = le(), { icon: o, labelKey: i } = Ji[e.kind], l = () => {
|
|
8309
8309
|
a(new $e({ id: e.annotation.id })), t();
|
|
8310
8310
|
};
|
|
8311
8311
|
return /* @__PURE__ */ v(V.Item, {
|
|
@@ -8316,7 +8316,7 @@ var p2 = (e) => {
|
|
|
8316
8316
|
children: n(i)
|
|
8317
8317
|
})]
|
|
8318
8318
|
});
|
|
8319
|
-
},
|
|
8319
|
+
}, E2 = "ceeojg0", M2 = "ceeojg1", O2 = "ceeojg2", R2 = ({ label: e, at: t, onRequestClose: n }) => {
|
|
8320
8320
|
const { dispatch: a } = le(), o = (i) => {
|
|
8321
8321
|
a(new Te({
|
|
8322
8322
|
kind: "sticker",
|
|
@@ -8333,9 +8333,9 @@ var p2 = (e) => {
|
|
|
8333
8333
|
label: e,
|
|
8334
8334
|
icon: /* @__PURE__ */ r(Yi, {}),
|
|
8335
8335
|
children: /* @__PURE__ */ r("div", {
|
|
8336
|
-
className:
|
|
8336
|
+
className: E2,
|
|
8337
8337
|
children: Object.entries(As).map(([i, l]) => /* @__PURE__ */ r(Ae.Item, {
|
|
8338
|
-
className:
|
|
8338
|
+
className: M2,
|
|
8339
8339
|
"aria-label": i,
|
|
8340
8340
|
onClick: () => o(i),
|
|
8341
8341
|
children: /* @__PURE__ */ r("img", {
|
|
@@ -8366,7 +8366,7 @@ var p2 = (e) => {
|
|
|
8366
8366
|
onClose: i
|
|
8367
8367
|
});
|
|
8368
8368
|
}, D2 = ({ frameElement: e, trigger: t, layer: n, at: a, observation: o, onClose: i }) => {
|
|
8369
|
-
const l =
|
|
8369
|
+
const l = E(), s = We(), c = R((x) => x.spec.annotations), d = R((x) => x.config.parsingLocale), u = Bi(), { x: h, y: p, width: g, height: m } = t, f = M(() => zi(e, {
|
|
8370
8370
|
x: h,
|
|
8371
8371
|
y: p,
|
|
8372
8372
|
width: g,
|
|
@@ -8377,7 +8377,7 @@ var p2 = (e) => {
|
|
|
8377
8377
|
p,
|
|
8378
8378
|
g,
|
|
8379
8379
|
m
|
|
8380
|
-
]), b = Uc(c, a,
|
|
8380
|
+
]), b = Uc(c, a, M(() => Fc(n, d), [n, d])), C = b !== null && L2(b) ? b : null, P = A2(n, o), k = (x, I) => {
|
|
8381
8381
|
!x && _2(I.reason) && i();
|
|
8382
8382
|
};
|
|
8383
8383
|
return /* @__PURE__ */ r(V.Root, {
|
|
@@ -8505,7 +8505,7 @@ var p2 = (e) => {
|
|
|
8505
8505
|
children: /* @__PURE__ */ r(Fa, {
|
|
8506
8506
|
computed: l,
|
|
8507
8507
|
style: i,
|
|
8508
|
-
|
|
8508
|
+
addressable: !1
|
|
8509
8509
|
})
|
|
8510
8510
|
});
|
|
8511
8511
|
}, ot = () => {
|
|
@@ -8618,7 +8618,7 @@ var p2 = (e) => {
|
|
|
8618
8618
|
children: l
|
|
8619
8619
|
})
|
|
8620
8620
|
});
|
|
8621
|
-
}, J2 = ({ label: e, trigger: t,
|
|
8621
|
+
}, J2 = ({ label: e, trigger: t, open: n, onOpenChange: a, disabled: o = !1, children: i }) => {
|
|
8622
8622
|
const { chartId: l } = H();
|
|
8623
8623
|
return /* @__PURE__ */ v(V.Root, {
|
|
8624
8624
|
open: n,
|
|
@@ -8653,7 +8653,7 @@ var p2 = (e) => {
|
|
|
8653
8653
|
className: q2,
|
|
8654
8654
|
onClick: t,
|
|
8655
8655
|
children: n
|
|
8656
|
-
}), n0 = ({ label: e,
|
|
8656
|
+
}), n0 = ({ label: e, pressed: t, onClick: n, children: a }) => /* @__PURE__ */ r(J.Button, {
|
|
8657
8657
|
"aria-label": e,
|
|
8658
8658
|
"aria-pressed": t,
|
|
8659
8659
|
className: j2,
|
|
@@ -8680,7 +8680,7 @@ var p2 = (e) => {
|
|
|
8680
8680
|
};
|
|
8681
8681
|
return {
|
|
8682
8682
|
bind: (i) => ({
|
|
8683
|
-
|
|
8683
|
+
open: n === i,
|
|
8684
8684
|
onOpenChange: (l) => l ? a(i) : o()
|
|
8685
8685
|
}),
|
|
8686
8686
|
close: o
|
|
@@ -8758,11 +8758,11 @@ var p2 = (e) => {
|
|
|
8758
8758
|
}
|
|
8759
8759
|
], s0 = (e, t) => e.find((n) => n.value === t) ?? e[0];
|
|
8760
8760
|
var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
|
|
8761
|
-
const l =
|
|
8761
|
+
const l = E(), { commands: s } = H(), c = R((S) => S.spec.styles.overrides), d = R((S) => de(S.spec)), u = Kt(), h = Xn(W(), e.id), p = s0(la, Re(h.dashArray)), g = h.outline.strokeWidth > 0 || h.outline.shadow !== "none", m = M(() => ({
|
|
8762
8762
|
target: "annotation",
|
|
8763
8763
|
kind: "arrow",
|
|
8764
8764
|
annotation: e.id
|
|
8765
|
-
}), [e.id]), f =
|
|
8765
|
+
}), [e.id]), f = M(() => ({
|
|
8766
8766
|
...m,
|
|
8767
8767
|
part: "outline"
|
|
8768
8768
|
}), [m]), b = (S, y) => {
|
|
@@ -8872,7 +8872,7 @@ var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
|
|
|
8872
8872
|
}),
|
|
8873
8873
|
/* @__PURE__ */ r(_.ToggleButton, {
|
|
8874
8874
|
label: l("graph.annotations.arrowToolbar.sticker"),
|
|
8875
|
-
|
|
8875
|
+
pressed: g,
|
|
8876
8876
|
onClick: D,
|
|
8877
8877
|
children: /* @__PURE__ */ r(G2, {
|
|
8878
8878
|
size: "sm",
|
|
@@ -8891,9 +8891,9 @@ var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
|
|
|
8891
8891
|
]
|
|
8892
8892
|
});
|
|
8893
8893
|
}, pt = ({ options: e, current: t, onPick: n }) => {
|
|
8894
|
-
const a =
|
|
8894
|
+
const a = E(), o = (i) => () => n(i);
|
|
8895
8895
|
return /* @__PURE__ */ r($, { children: e.map((i) => /* @__PURE__ */ v(_.MenuItem, {
|
|
8896
|
-
|
|
8896
|
+
selected: i.value === t,
|
|
8897
8897
|
onClick: o(i.value),
|
|
8898
8898
|
children: [/* @__PURE__ */ r("span", { children: a(i.key) }), i.Icon !== void 0 && /* @__PURE__ */ r("span", {
|
|
8899
8899
|
className: "_112xh5c0",
|
|
@@ -9131,12 +9131,12 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
|
|
|
9131
9131
|
arrow: n,
|
|
9132
9132
|
committed: a,
|
|
9133
9133
|
painted: i,
|
|
9134
|
-
|
|
9135
|
-
|
|
9134
|
+
settled: o.dragged === null && !o.moving,
|
|
9135
|
+
moving: o.moving,
|
|
9136
9136
|
...e
|
|
9137
9137
|
});
|
|
9138
|
-
}, y0 = ({ arrow: e, committed: t, painted: n,
|
|
9139
|
-
const c =
|
|
9138
|
+
}, y0 = ({ arrow: e, committed: t, painted: n, settled: a, moving: o, panelRect: i, frameRect: l, frameElement: s }) => {
|
|
9139
|
+
const c = E(), d = m0({
|
|
9140
9140
|
annotationId: e.id,
|
|
9141
9141
|
arrow: t,
|
|
9142
9142
|
panelRect: i
|
|
@@ -9185,12 +9185,12 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
|
|
|
9185
9185
|
}, w0 = (e) => ee(xe((t) => {
|
|
9186
9186
|
if (e === null) return {
|
|
9187
9187
|
dragged: null,
|
|
9188
|
-
|
|
9188
|
+
moving: !1
|
|
9189
9189
|
};
|
|
9190
9190
|
const n = j(t, "arrow-endpoint-drag");
|
|
9191
9191
|
return {
|
|
9192
9192
|
dragged: n?.annotationId === e ? n : null,
|
|
9193
|
-
|
|
9193
|
+
moving: Nt(j(t, "move-drag"), e) !== null
|
|
9194
9194
|
};
|
|
9195
9195
|
})), k0 = (e) => /* @__PURE__ */ r(L, {
|
|
9196
9196
|
...e,
|
|
@@ -9206,17 +9206,17 @@ var L0 = [
|
|
|
9206
9206
|
"absolute-difference",
|
|
9207
9207
|
"relative-difference",
|
|
9208
9208
|
"proportion"
|
|
9209
|
-
], da = ["absolute-difference", "relative-difference"], I0 = ["relative-difference", "proportion"],
|
|
9209
|
+
], da = ["absolute-difference", "relative-difference"], I0 = ["relative-difference", "proportion"], E0 = {
|
|
9210
9210
|
"absolute-difference": "graph.annotations.differenceArrowToolbar.labelKind.absoluteDifference",
|
|
9211
9211
|
"relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
|
|
9212
9212
|
proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
|
|
9213
|
-
},
|
|
9213
|
+
}, M0 = (e) => {
|
|
9214
9214
|
const { formattingLocale: t } = H(), n = R((o) => o.config.parsingLocale), a = t ?? n;
|
|
9215
|
-
return
|
|
9215
|
+
return M(() => {
|
|
9216
9216
|
const o = Ic(e.start, e.end);
|
|
9217
9217
|
return L0.filter((i) => o || !da.includes(i) || i === e.label).map((i) => ({
|
|
9218
9218
|
kind: i,
|
|
9219
|
-
key:
|
|
9219
|
+
key: E0[i],
|
|
9220
9220
|
preview: qc({
|
|
9221
9221
|
locale: a,
|
|
9222
9222
|
kind: i,
|
|
@@ -9224,8 +9224,8 @@ var L0 = [
|
|
|
9224
9224
|
endValue: e.end.measurementValue,
|
|
9225
9225
|
valueFormat: e.start.valueFormat
|
|
9226
9226
|
}),
|
|
9227
|
-
|
|
9228
|
-
|
|
9227
|
+
pickable: o || !da.includes(i),
|
|
9228
|
+
suspect: I0.includes(i) && e.start.measurementValue === 0
|
|
9229
9229
|
}));
|
|
9230
9230
|
}, [e, a]);
|
|
9231
9231
|
}, ua = [
|
|
@@ -9242,14 +9242,14 @@ var L0 = [
|
|
|
9242
9242
|
key: "graph.annotations.differenceArrowToolbar.size.large"
|
|
9243
9243
|
}
|
|
9244
9244
|
], O0 = ({ arrow: e, color: t, labelBox: n, panelRect: a, frameWidth: o, frameHeight: i, frameElement: l }) => {
|
|
9245
|
-
const s =
|
|
9245
|
+
const s = E(), { commands: c } = H(), d = R((y) => y.spec.styles.overrides), u = R((y) => de(y.spec)), h = Kt(), p = M0(e), g = yd(W(), e.id), m = M(() => ({
|
|
9246
9246
|
target: "annotation",
|
|
9247
9247
|
kind: "differenceArrow",
|
|
9248
9248
|
annotation: e.id
|
|
9249
|
-
}), [e.id]), f =
|
|
9249
|
+
}), [e.id]), f = M(() => ({
|
|
9250
9250
|
...m,
|
|
9251
9251
|
part: "label"
|
|
9252
|
-
}), [m]), b = p.find((y) => y.kind === e.label), C = p.some((y) => y.
|
|
9252
|
+
}), [m]), b = p.find((y) => y.kind === e.label), C = p.some((y) => y.pickable && y.kind !== e.label), P = ua.find((y) => Tr[y.id].arrow.strokeWidth === g.strokeWidth), k = (y, N) => {
|
|
9253
9253
|
c.dispatch(new ve({
|
|
9254
9254
|
kind: "differenceArrow",
|
|
9255
9255
|
id: e.id,
|
|
@@ -9293,16 +9293,16 @@ var L0 = [
|
|
|
9293
9293
|
/* @__PURE__ */ r(_.Dropdown, {
|
|
9294
9294
|
label: s("graph.annotations.differenceArrowToolbar.labelKind.ariaLabel"),
|
|
9295
9295
|
trigger: /* @__PURE__ */ r(R0, { option: b }),
|
|
9296
|
-
|
|
9296
|
+
disabled: !C,
|
|
9297
9297
|
...h.bind("labelKind"),
|
|
9298
9298
|
children: p.map((y) => /* @__PURE__ */ v(_.MenuItem, {
|
|
9299
|
-
|
|
9300
|
-
|
|
9299
|
+
selected: y.kind === e.label,
|
|
9300
|
+
disabled: !y.pickable,
|
|
9301
9301
|
onClick: D(y.kind),
|
|
9302
9302
|
children: [
|
|
9303
9303
|
/* @__PURE__ */ r("span", { children: s(y.key) }),
|
|
9304
|
-
(y.
|
|
9305
|
-
"aria-label": s(y.
|
|
9304
|
+
(y.suspect || !y.pickable) && /* @__PURE__ */ r("span", {
|
|
9305
|
+
"aria-label": s(y.pickable ? "graph.annotations.differenceArrowToolbar.labelKind.suspectValue" : "graph.annotations.differenceArrowToolbar.labelKind.incomparableEnds"),
|
|
9306
9306
|
className: "q7gcrz3",
|
|
9307
9307
|
role: "img",
|
|
9308
9308
|
children: "⚠"
|
|
@@ -9327,7 +9327,7 @@ var L0 = [
|
|
|
9327
9327
|
trigger: P === void 0 ? "" : s(P.key),
|
|
9328
9328
|
...h.bind("size"),
|
|
9329
9329
|
children: ua.map((y) => /* @__PURE__ */ r(_.MenuItem, {
|
|
9330
|
-
|
|
9330
|
+
selected: y.id === P?.id,
|
|
9331
9331
|
onClick: S(y.id),
|
|
9332
9332
|
children: s(y.key)
|
|
9333
9333
|
}, y.id))
|
|
@@ -9352,7 +9352,7 @@ var L0 = [
|
|
|
9352
9352
|
]
|
|
9353
9353
|
});
|
|
9354
9354
|
}, R0 = ({ option: e }) => {
|
|
9355
|
-
const t =
|
|
9355
|
+
const t = E();
|
|
9356
9356
|
return e === void 0 ? null : /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r("span", {
|
|
9357
9357
|
className: A0,
|
|
9358
9358
|
children: t(e.key)
|
|
@@ -9563,7 +9563,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
|
|
|
9563
9563
|
...e
|
|
9564
9564
|
});
|
|
9565
9565
|
}, q0 = ({ annotationId: e, ...t }) => {
|
|
9566
|
-
const n = us(), a =
|
|
9566
|
+
const n = us(), a = M(() => n.find((o) => o.id === e), [n, e]);
|
|
9567
9567
|
return a === void 0 ? null : /* @__PURE__ */ r(j0, {
|
|
9568
9568
|
committedArrow: a.committedArrow,
|
|
9569
9569
|
color: a.color,
|
|
@@ -9572,10 +9572,10 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
|
|
|
9572
9572
|
labelBox: a.labelBox,
|
|
9573
9573
|
start: a.start,
|
|
9574
9574
|
end: a.end,
|
|
9575
|
-
|
|
9575
|
+
dragging: a.dragging,
|
|
9576
9576
|
...t
|
|
9577
9577
|
});
|
|
9578
|
-
}, j0 = ({ committedArrow: e, color: t, labelCornerRadius: n, committedLabelBox: a, labelBox: o, start: i, end: l, panelRect: s, panelOrigin: c, frameRect: d, frameElement: u,
|
|
9578
|
+
}, j0 = ({ committedArrow: e, color: t, labelCornerRadius: n, committedLabelBox: a, labelBox: o, start: i, end: l, panelRect: s, panelOrigin: c, frameRect: d, frameElement: u, dragging: h }) => {
|
|
9579
9579
|
const p = G0({
|
|
9580
9580
|
arrow: e,
|
|
9581
9581
|
panelOrigin: c,
|
|
@@ -9638,7 +9638,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
|
|
|
9638
9638
|
"aria-hidden": "true",
|
|
9639
9639
|
className: _0
|
|
9640
9640
|
})
|
|
9641
|
-
}),
|
|
9641
|
+
}), En = ({ start: e, extent: t, moveStartEdge: n, delta: a, minExtent: o }) => {
|
|
9642
9642
|
if (!Number.isFinite(a)) return {
|
|
9643
9643
|
start: e,
|
|
9644
9644
|
extent: t
|
|
@@ -9674,16 +9674,16 @@ var sl = ({ width: e, height: t }) => ({
|
|
|
9674
9674
|
width: e.width,
|
|
9675
9675
|
height: e.height
|
|
9676
9676
|
}), cl = ({ region: e, corner: t, delta: n, minSize: a }) => {
|
|
9677
|
-
const o =
|
|
9677
|
+
const o = En({
|
|
9678
9678
|
start: e.x,
|
|
9679
9679
|
extent: e.width,
|
|
9680
|
-
|
|
9680
|
+
moveStartEdge: ul(t),
|
|
9681
9681
|
delta: n.x,
|
|
9682
9682
|
minExtent: a.x
|
|
9683
|
-
}), i =
|
|
9683
|
+
}), i = En({
|
|
9684
9684
|
start: e.y,
|
|
9685
9685
|
extent: e.height,
|
|
9686
|
-
|
|
9686
|
+
moveStartEdge: hl(t),
|
|
9687
9687
|
delta: n.y,
|
|
9688
9688
|
minExtent: a.y
|
|
9689
9689
|
});
|
|
@@ -9705,7 +9705,7 @@ var J0 = {
|
|
|
9705
9705
|
hovered: "_1ee8fau5 _1ee8fau4",
|
|
9706
9706
|
selected: "_1ee8fau6 _1ee8fau4"
|
|
9707
9707
|
}, ev = ({ panelRect: e }) => {
|
|
9708
|
-
const t = De(e), n = Ba(), a = W(), o = ot(), i = ee((f) => j(f, "move-drag")), l = ee((f) => j(f, "shape-resize-drag")), s = ee((f) => j(f, "arrow-endpoint-drag")), c = ee((f) => j(f, "text-resize-drag")), d = ee(
|
|
9708
|
+
const t = De(e), n = Ba(), a = W(), o = ot(), i = ee((f) => j(f, "move-drag")), l = ee((f) => j(f, "shape-resize-drag")), s = ee((f) => j(f, "arrow-endpoint-drag")), c = ee((f) => j(f, "text-resize-drag")), d = ee(Ms), u = M(() => ({
|
|
9709
9709
|
panel: {
|
|
9710
9710
|
width: e.width,
|
|
9711
9711
|
height: e.height
|
|
@@ -9851,7 +9851,7 @@ var J0 = {
|
|
|
9851
9851
|
return a === null ? null : /* @__PURE__ */ r(Fa, {
|
|
9852
9852
|
computed: a,
|
|
9853
9853
|
style: n,
|
|
9854
|
-
|
|
9854
|
+
addressable: !1
|
|
9855
9855
|
});
|
|
9856
9856
|
}, iv = ({ shape: e, panelSize: t }) => /* @__PURE__ */ r(Ha, {
|
|
9857
9857
|
shape: e,
|
|
@@ -9912,7 +9912,7 @@ var J0 = {
|
|
|
9912
9912
|
className: dv[a]
|
|
9913
9913
|
})
|
|
9914
9914
|
});
|
|
9915
|
-
},
|
|
9915
|
+
}, Mn = [
|
|
9916
9916
|
{
|
|
9917
9917
|
width: 0,
|
|
9918
9918
|
key: "graph.annotations.shapeToolbar.border.none"
|
|
@@ -9929,8 +9929,8 @@ var J0 = {
|
|
|
9929
9929
|
width: 16,
|
|
9930
9930
|
key: "graph.annotations.shapeToolbar.border.thick"
|
|
9931
9931
|
}
|
|
9932
|
-
], hv = (e) => [...
|
|
9933
|
-
const l =
|
|
9932
|
+
], hv = (e) => [...Mn].reverse().find((t) => t.width <= e) ?? Mn[0], pv = ({ shape: e, shapeBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
|
|
9933
|
+
const l = E(), { commands: s } = H(), c = R((k) => k.spec.styles.overrides), d = R((k) => de(k.spec)), u = Kt(), h = W().annotation.shape(e.id).resolve(), p = hv(h.strokeWidth), g = M(() => ({
|
|
9934
9934
|
target: "annotation",
|
|
9935
9935
|
kind: "shape",
|
|
9936
9936
|
annotation: e.id
|
|
@@ -9978,8 +9978,8 @@ var J0 = {
|
|
|
9978
9978
|
title: ""
|
|
9979
9979
|
}),
|
|
9980
9980
|
...u.bind("border"),
|
|
9981
|
-
children:
|
|
9982
|
-
|
|
9981
|
+
children: Mn.map((k) => /* @__PURE__ */ r(_.MenuItem, {
|
|
9982
|
+
selected: k.width === p?.width,
|
|
9983
9983
|
onClick: P(k.width),
|
|
9984
9984
|
children: l(k.key)
|
|
9985
9985
|
}, k.width))
|
|
@@ -10157,12 +10157,12 @@ var J0 = {
|
|
|
10157
10157
|
return o === null ? null : /* @__PURE__ */ r(Cv, {
|
|
10158
10158
|
shape: n,
|
|
10159
10159
|
region: o,
|
|
10160
|
-
|
|
10161
|
-
|
|
10160
|
+
settled: a.resizedRegion === null && !a.moving,
|
|
10161
|
+
moving: a.moving,
|
|
10162
10162
|
...e
|
|
10163
10163
|
});
|
|
10164
|
-
}, Cv = ({ shape: e, region: t,
|
|
10165
|
-
const s =
|
|
10164
|
+
}, Cv = ({ shape: e, region: t, settled: n, moving: a, panelRect: o, frameRect: i, frameElement: l }) => {
|
|
10165
|
+
const s = E(), c = gv({
|
|
10166
10166
|
annotationId: e.id,
|
|
10167
10167
|
panelRect: o
|
|
10168
10168
|
}), d = fv({
|
|
@@ -10203,10 +10203,10 @@ var J0 = {
|
|
|
10203
10203
|
return e === null ? null : t.find((n) => n.id === e) ?? null;
|
|
10204
10204
|
}, wv = (e) => ee(xe((t) => e === null ? {
|
|
10205
10205
|
resizedRegion: null,
|
|
10206
|
-
|
|
10206
|
+
moving: !1
|
|
10207
10207
|
} : {
|
|
10208
10208
|
resizedRegion: Dn(j(t, "shape-resize-drag"), e)?.region ?? null,
|
|
10209
|
-
|
|
10209
|
+
moving: Nt(j(t, "move-drag"), e) !== null
|
|
10210
10210
|
})), kv = ({ textColor: e, ...t }) => /* @__PURE__ */ v(L, {
|
|
10211
10211
|
...t,
|
|
10212
10212
|
children: [/* @__PURE__ */ v("g", {
|
|
@@ -10222,10 +10222,10 @@ var J0 = {
|
|
|
10222
10222
|
})]
|
|
10223
10223
|
});
|
|
10224
10224
|
var It = "textStyle", fl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Tv = (e) => {
|
|
10225
|
-
const t = bl(e), n =
|
|
10225
|
+
const t = bl(e), n = Mv(e);
|
|
10226
10226
|
return {
|
|
10227
10227
|
color: gt(t.map((a) => Ov(cn(a)?.color))),
|
|
10228
|
-
font: gt(t.map((a) =>
|
|
10228
|
+
font: gt(t.map((a) => Ev(cn(a)))),
|
|
10229
10229
|
fontSize: gt(t.map((a) => Rv(cn(a)?.fontSize))),
|
|
10230
10230
|
alignment: gt(n.map((a) => Nv(a.attrs?.textAlign)))
|
|
10231
10231
|
};
|
|
@@ -10250,7 +10250,7 @@ var It = "textStyle", fl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Tv
|
|
|
10250
10250
|
...e,
|
|
10251
10251
|
marks: a === void 0 ? [...n, o] : n.map((i) => i === a ? o : i)
|
|
10252
10252
|
};
|
|
10253
|
-
}, cn = (e) => e.marks?.find((t) => t.type === It)?.attrs,
|
|
10253
|
+
}, cn = (e) => e.marks?.find((t) => t.type === It)?.attrs, Ev = (e) => xr(e?.font) ?? xr(e?.fontFamily), bl = (e) => gr(e, (t) => t.type === "text"), Mv = (e) => gr(e, (t) => fl.has(t.type ?? "")), gr = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => gr(n, t))], gt = (e) => {
|
|
10254
10254
|
const [t, ...n] = e;
|
|
10255
10255
|
return t === void 0 ? null : n.every((a) => a === t) ? t : null;
|
|
10256
10256
|
}, Ov = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Rv = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, Nv = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
|
|
@@ -10315,7 +10315,7 @@ var Sl = [
|
|
|
10315
10315
|
Icon: ri
|
|
10316
10316
|
}
|
|
10317
10317
|
], Bv = ({ annotation: e, textBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
|
|
10318
|
-
const l =
|
|
10318
|
+
const l = E(), { commands: s } = H(), c = R((y) => y.spec.styles.overrides), d = R((y) => de(y.spec)), u = U(), h = Kt(), p = W().annotation.text(e.id).resolve(), g = Tv(e.content), m = Dv(g.font), f = _v(g.fontSize), b = g.color ?? p.textColor, C = M(() => ({
|
|
10319
10319
|
target: "annotation",
|
|
10320
10320
|
kind: "text",
|
|
10321
10321
|
annotation: e.id
|
|
@@ -10386,7 +10386,7 @@ var Sl = [
|
|
|
10386
10386
|
}),
|
|
10387
10387
|
...h.bind("font"),
|
|
10388
10388
|
children: yl.map((y) => /* @__PURE__ */ r(_.MenuItem, {
|
|
10389
|
-
|
|
10389
|
+
selected: y.id === m?.id,
|
|
10390
10390
|
onClick: te(y.id),
|
|
10391
10391
|
children: /* @__PURE__ */ r("span", {
|
|
10392
10392
|
style: { fontFamily: y.fontFamily },
|
|
@@ -10399,7 +10399,7 @@ var Sl = [
|
|
|
10399
10399
|
trigger: f === null ? "" : l(f.key),
|
|
10400
10400
|
...h.bind("fontSize"),
|
|
10401
10401
|
children: Sl.map((y) => /* @__PURE__ */ r(_.MenuItem, {
|
|
10402
|
-
|
|
10402
|
+
selected: y.size === f?.size,
|
|
10403
10403
|
onClick: D(y.size),
|
|
10404
10404
|
children: /* @__PURE__ */ r("span", {
|
|
10405
10405
|
style: { fontSize: Fv(y.size) },
|
|
@@ -10425,12 +10425,12 @@ var Sl = [
|
|
|
10425
10425
|
});
|
|
10426
10426
|
}, Hv = (e) => e === "transparent" ? { fill: Fo } : {
|
|
10427
10427
|
fill: e,
|
|
10428
|
-
fillAlpha:
|
|
10428
|
+
fillAlpha: Mh(e) ? Ac : 1
|
|
10429
10429
|
}, Gv = ({ current: e, onPick: t }) => {
|
|
10430
|
-
const n =
|
|
10430
|
+
const n = E(), a = (o) => () => t(o);
|
|
10431
10431
|
return /* @__PURE__ */ r($, { children: zv.map((o) => /* @__PURE__ */ r(_.ToggleButton, {
|
|
10432
10432
|
label: n(`graph.annotations.textToolbar.align.${o.alignment}`),
|
|
10433
|
-
|
|
10433
|
+
pressed: o.alignment === e,
|
|
10434
10434
|
onClick: a(o.alignment),
|
|
10435
10435
|
children: /* @__PURE__ */ r(o.Icon, {
|
|
10436
10436
|
size: "sm",
|
|
@@ -10447,10 +10447,10 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10447
10447
|
width: t,
|
|
10448
10448
|
shift: 0
|
|
10449
10449
|
};
|
|
10450
|
-
const s = Lc(n).x, c = Wv(e.offset, l), d =
|
|
10450
|
+
const s = Lc(n).x, c = Wv(e.offset, l), d = En({
|
|
10451
10451
|
start: e.x + c - s * t,
|
|
10452
10452
|
extent: t,
|
|
10453
|
-
|
|
10453
|
+
moveStartEdge: a === "left",
|
|
10454
10454
|
delta: o,
|
|
10455
10455
|
minExtent: i
|
|
10456
10456
|
}), u = d.start + s * d.extent - c;
|
|
@@ -10462,7 +10462,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10462
10462
|
width: d.extent,
|
|
10463
10463
|
shift: u - e.x
|
|
10464
10464
|
};
|
|
10465
|
-
}, wl = (e, t) => e.at.x === t.at.x && e.width === t.width, Wv = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? me(e.x, t) : e.x,
|
|
10465
|
+
}, wl = (e, t) => e.at.x === t.at.x && e.width === t.width, Wv = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? me(e.x, t) : e.x, Et = (e, t) => {
|
|
10466
10466
|
const n = e.textAnnotations.find((a) => a.id === t);
|
|
10467
10467
|
return n === void 0 || n.at.anchorType !== "panel" ? null : {
|
|
10468
10468
|
at: n.at,
|
|
@@ -10477,7 +10477,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10477
10477
|
return Fn(j(e, "text-resize-drag"), this.params.annotationId);
|
|
10478
10478
|
}
|
|
10479
10479
|
resolvePreview(e) {
|
|
10480
|
-
const { annotationId: t, edge: n, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s =
|
|
10480
|
+
const { annotationId: t, edge: n, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = Et(i, t);
|
|
10481
10481
|
if (s === null) return null;
|
|
10482
10482
|
const c = qt(a, e, l).x;
|
|
10483
10483
|
return {
|
|
@@ -10494,7 +10494,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10494
10494
|
};
|
|
10495
10495
|
}
|
|
10496
10496
|
commit(e) {
|
|
10497
|
-
const { annotationId: t, dispatch: n, readInputs: a } = this.params, o =
|
|
10497
|
+
const { annotationId: t, dispatch: n, readInputs: a } = this.params, o = Et(a().annotations, t);
|
|
10498
10498
|
o === null || wl(o, e) || n(new ve({
|
|
10499
10499
|
kind: "text",
|
|
10500
10500
|
id: t,
|
|
@@ -10519,7 +10519,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10519
10519
|
}));
|
|
10520
10520
|
}, qv = 4, jv = ({ annotationId: e, panelRect: t }) => {
|
|
10521
10521
|
const { commands: n } = H(), a = U(), o = R((l) => l.spec.annotations), i = (l, s) => {
|
|
10522
|
-
const c =
|
|
10522
|
+
const c = Et(o, e);
|
|
10523
10523
|
return c === null ? null : {
|
|
10524
10524
|
kind: "text-resize-drag",
|
|
10525
10525
|
annotationId: e,
|
|
@@ -10541,7 +10541,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10541
10541
|
return d === null ? null : i(s, l.delta + d);
|
|
10542
10542
|
},
|
|
10543
10543
|
commit: (l) => {
|
|
10544
|
-
const s =
|
|
10544
|
+
const s = Et(o, e);
|
|
10545
10545
|
s === null || wl(s, l) || n.dispatch(new ve({
|
|
10546
10546
|
kind: "text",
|
|
10547
10547
|
id: e,
|
|
@@ -10567,14 +10567,14 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10567
10567
|
return n === null || i === null ? null : /* @__PURE__ */ r(Yv, {
|
|
10568
10568
|
annotation: n,
|
|
10569
10569
|
textBox: i,
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10570
|
+
settled: a.resized === null && !a.moving,
|
|
10571
|
+
moving: a.moving,
|
|
10572
|
+
resizable: n.at.anchorType === "panel",
|
|
10573
10573
|
hasCaret: o,
|
|
10574
10574
|
...e
|
|
10575
10575
|
});
|
|
10576
|
-
}, Yv = ({ annotation: e, textBox: t,
|
|
10577
|
-
const d =
|
|
10576
|
+
}, Yv = ({ annotation: e, textBox: t, settled: n, moving: a, resizable: o, hasCaret: i, panelRect: l, frameRect: s, frameElement: c }) => {
|
|
10577
|
+
const d = E(), u = Kv({
|
|
10578
10578
|
annotationId: e.id,
|
|
10579
10579
|
panelRect: l
|
|
10580
10580
|
}), h = jv({
|
|
@@ -10615,12 +10615,12 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
|
|
|
10615
10615
|
return e === null ? null : t.find((n) => n.id === e) ?? null;
|
|
10616
10616
|
}, Qv = (e) => ee(xe((t) => e === null ? {
|
|
10617
10617
|
resized: null,
|
|
10618
|
-
|
|
10618
|
+
moving: !1
|
|
10619
10619
|
} : {
|
|
10620
10620
|
resized: Fn(j(t, "text-resize-drag"), e),
|
|
10621
|
-
|
|
10621
|
+
moving: Nt(j(t, "move-drag"), e) !== null
|
|
10622
10622
|
})), ef = (e, t, n) => {
|
|
10623
|
-
const a = De(e), o = Ba(), i = W(), l =
|
|
10623
|
+
const a = De(e), o = Ba(), i = W(), l = M(() => ({
|
|
10624
10624
|
panel: {
|
|
10625
10625
|
width: e.width,
|
|
10626
10626
|
height: e.height
|
|
@@ -10656,7 +10656,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10656
10656
|
closed: "_1tyillx7",
|
|
10657
10657
|
open: "_1tyillx8"
|
|
10658
10658
|
}, df = ({ interaction: e, panelRect: t }) => {
|
|
10659
|
-
const n = U(), a = W().editOutline.selected().resolve().stroke, o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = uf(e), l =
|
|
10659
|
+
const n = U(), a = W().editOutline.selected().resolve().stroke, o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = uf(e), l = M(() => {
|
|
10660
10660
|
if (o === null) return null;
|
|
10661
10661
|
const s = yt(o.position, t);
|
|
10662
10662
|
return {
|
|
@@ -10692,7 +10692,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10692
10692
|
children: /* @__PURE__ */ r(tf, { size: "lg" })
|
|
10693
10693
|
})
|
|
10694
10694
|
});
|
|
10695
|
-
}, uf = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.
|
|
10695
|
+
}, uf = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.engaged ? "hovered" : "rest", hf = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', pf = (e, t) => {
|
|
10696
10696
|
const { chartId: n } = H(), a = U();
|
|
10697
10697
|
z(() => {
|
|
10698
10698
|
if (t === null) return;
|
|
@@ -10711,7 +10711,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10711
10711
|
n,
|
|
10712
10712
|
a
|
|
10713
10713
|
]);
|
|
10714
|
-
}, mf = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], kl = (e, t, n) =>
|
|
10714
|
+
}, mf = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], kl = (e, t, n) => Mt(mf(e, t), n), gf = (e) => {
|
|
10715
10715
|
const { selectionStore: t, chartId: n } = H(), a = U();
|
|
10716
10716
|
z(() => {
|
|
10717
10717
|
let o = null;
|
|
@@ -10812,13 +10812,13 @@ var of = "_1tyillx2", lf = {
|
|
|
10812
10812
|
if (p !== null) return {
|
|
10813
10813
|
layerId: l.id,
|
|
10814
10814
|
observationIndex: s,
|
|
10815
|
-
|
|
10815
|
+
onObservation: c,
|
|
10816
10816
|
target: p
|
|
10817
10817
|
};
|
|
10818
10818
|
}
|
|
10819
10819
|
return null;
|
|
10820
10820
|
}, xf = (e, t, n) => {
|
|
10821
|
-
if (!e.
|
|
10821
|
+
if (!e.onObservation || e.target.scope !== "series") return null;
|
|
10822
10822
|
const a = Z(t, e.layerId);
|
|
10823
10823
|
return a === void 0 ? null : tt({
|
|
10824
10824
|
layer: a,
|
|
@@ -10833,7 +10833,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10833
10833
|
}, s);
|
|
10834
10834
|
if (!(n instanceof Element && i.contains(n))) return {
|
|
10835
10835
|
targetAtPoint: Sr({
|
|
10836
|
-
|
|
10836
|
+
overMenuTrigger: h,
|
|
10837
10837
|
stamped: ba(!1, !1, e, t),
|
|
10838
10838
|
observations: null
|
|
10839
10839
|
}),
|
|
@@ -10845,7 +10845,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10845
10845
|
scales: u.scales,
|
|
10846
10846
|
parsingLocale: u.config.parsingLocale
|
|
10847
10847
|
}), b = f !== null && t.hasOverlayMenu(f.target) ? f : null, C = Sr({
|
|
10848
|
-
|
|
10848
|
+
overMenuTrigger: h,
|
|
10849
10849
|
stamped: ba(p, b !== null, e, t),
|
|
10850
10850
|
observations: b
|
|
10851
10851
|
});
|
|
@@ -10860,7 +10860,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10860
10860
|
if (!a && l.coordSystem.type === "cartesian" && e && t) return null;
|
|
10861
10861
|
const c = e || a ? kl(n.clientX, n.clientY, i) : kf(n.target, i);
|
|
10862
10862
|
return c === null ? null : (c.kind === "annotation" ? a : o && s(c.target)) ? c : null;
|
|
10863
|
-
}, kf = (e, t) => e instanceof Element ?
|
|
10863
|
+
}, kf = (e, t) => e instanceof Element ? Mt([e], t) : null, Tf = (e, t, n) => {
|
|
10864
10864
|
const a = Gt({
|
|
10865
10865
|
x: e.clientX - t.left,
|
|
10866
10866
|
y: e.clientY - t.top
|
|
@@ -10894,7 +10894,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10894
10894
|
translation: e
|
|
10895
10895
|
}));
|
|
10896
10896
|
}
|
|
10897
|
-
}, Pf = (e, { canSelectGraph: t,
|
|
10897
|
+
}, Pf = (e, { canSelectGraph: t, withinFrame: n, caretAnnotationId: a }) => {
|
|
10898
10898
|
switch (e?.kind) {
|
|
10899
10899
|
case "annotation":
|
|
10900
10900
|
return e.target.id === a ? { kind: "keep-caret" } : {
|
|
@@ -10918,7 +10918,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10918
10918
|
kind: "select-graph",
|
|
10919
10919
|
target: { kind: "graph" }
|
|
10920
10920
|
} : { kind: "clear" };
|
|
10921
|
-
}, Lf = ({ target: e, observationIndex: t,
|
|
10921
|
+
}, Lf = ({ target: e, observationIndex: t, onObservation: n }) => e.scope === "x-value" ? {
|
|
10922
10922
|
kind: "select-band",
|
|
10923
10923
|
target: e
|
|
10924
10924
|
} : {
|
|
@@ -10926,7 +10926,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10926
10926
|
target: e,
|
|
10927
10927
|
observationIndex: n ? t : null
|
|
10928
10928
|
}, If = (e, t, n, a, o) => {
|
|
10929
|
-
const { commands: i, selectionStore: l, store: s } = H(), c = U(), d = R((b) => b.spec.annotations), u = Ne[
|
|
10929
|
+
const { commands: i, selectionStore: l, store: s } = H(), c = U(), d = R((b) => b.spec.annotations), u = Ne[Ee()], h = ne(u.graphPress), p = ne({
|
|
10930
10930
|
annotations: d,
|
|
10931
10931
|
panelRect: n
|
|
10932
10932
|
}), g = ne(t), m = ne(o), f = ae(null);
|
|
@@ -10941,7 +10941,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10941
10941
|
}, a()).targetAtPoint, C = (w) => {
|
|
10942
10942
|
if (!(w.target instanceof Element)) return !1;
|
|
10943
10943
|
const A = w.target.closest(Oa);
|
|
10944
|
-
return A !== null && e.contains(A) &&
|
|
10944
|
+
return A !== null && e.contains(A) && Mt([w.target], e) === null;
|
|
10945
10945
|
}, P = (w, A) => {
|
|
10946
10946
|
if (f.current !== null || !Fs(p.current.annotations, A.id)) return;
|
|
10947
10947
|
try {
|
|
@@ -10988,7 +10988,7 @@ var of = "_1tyillx2", lf = {
|
|
|
10988
10988
|
if (w.button !== 0 || fn(w.target) || Go(w, g.current, c.getState().menuTrigger) || C(w) || un(w.target, e)) return;
|
|
10989
10989
|
const A = Pf(b(w), {
|
|
10990
10990
|
canSelectGraph: h.current && a().hasOverlayMenu({ kind: "graph" }),
|
|
10991
|
-
|
|
10991
|
+
withinFrame: w.target instanceof Node && e.contains(w.target),
|
|
10992
10992
|
caretAnnotationId: c.getState().caret?.annotationId ?? null
|
|
10993
10993
|
});
|
|
10994
10994
|
A.kind !== "keep-caret" && (c.getState().setCaret(null), k(w, A));
|
|
@@ -11046,8 +11046,8 @@ var of = "_1tyillx2", lf = {
|
|
|
11046
11046
|
h,
|
|
11047
11047
|
a
|
|
11048
11048
|
]);
|
|
11049
|
-
},
|
|
11050
|
-
const { selectionStore: t, commands: n, chartId: a } = H(), o = U(), i = ne(R((u) => u.spec.annotations.textAnnotations)), { annotations: l } = Ne[
|
|
11049
|
+
}, Ef = (e) => {
|
|
11050
|
+
const { selectionStore: t, commands: n, chartId: a } = H(), o = U(), i = ne(R((u) => u.spec.annotations.textAnnotations)), { annotations: l } = Ne[Ee()], s = re((u) => {
|
|
11051
11051
|
const { selection: h } = t.getState(), p = l ? In(h) : null;
|
|
11052
11052
|
p !== null && (u.preventDefault(), n.dispatch(new $e({ id: p })), e.focus({ preventScroll: !0 }));
|
|
11053
11053
|
}, [
|
|
@@ -11085,7 +11085,7 @@ var of = "_1tyillx2", lf = {
|
|
|
11085
11085
|
z(() => {
|
|
11086
11086
|
const u = (h) => {
|
|
11087
11087
|
if (!Ye(h.target, e, a) || Ho(h.target)) return;
|
|
11088
|
-
const p =
|
|
11088
|
+
const p = Mf(h.target), g = o.getState().caret !== null && !ft(h.target, a);
|
|
11089
11089
|
if (!(p && !g))
|
|
11090
11090
|
switch (h.key) {
|
|
11091
11091
|
case "Escape":
|
|
@@ -11108,8 +11108,8 @@ var of = "_1tyillx2", lf = {
|
|
|
11108
11108
|
a,
|
|
11109
11109
|
o
|
|
11110
11110
|
]);
|
|
11111
|
-
},
|
|
11112
|
-
const n = U(), { store: a } = H(), { engine: o, overlayRef: i } = et(), l = ne(t), { annotations: s, observationsPress: c, guidePress: d, tolerance: u } = Ne[
|
|
11111
|
+
}, Mf = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Of = (e, t) => {
|
|
11112
|
+
const n = U(), { store: a } = H(), { engine: o, overlayRef: i } = et(), l = ne(t), { annotations: s, observationsPress: c, guidePress: d, tolerance: u } = Ne[Ee()], h = Rs(), p = Wt(), g = c && !h;
|
|
11113
11113
|
return re(() => ({
|
|
11114
11114
|
frameElement: e,
|
|
11115
11115
|
captureRect: i.current,
|
|
@@ -11136,11 +11136,11 @@ var of = "_1tyillx2", lf = {
|
|
|
11136
11136
|
a
|
|
11137
11137
|
]);
|
|
11138
11138
|
}, Rf = () => {
|
|
11139
|
-
const e = Ne[
|
|
11139
|
+
const e = Ne[Ee()].observationMenu, t = bs((l) => e ? l.hover.primary : null), { layers: n, coordSystem: a } = R(xe((l) => ({
|
|
11140
11140
|
layers: l.layers,
|
|
11141
11141
|
coordSystem: l.coordSystem
|
|
11142
11142
|
}))), { anchorResolver: o } = H(), i = Va();
|
|
11143
|
-
return
|
|
11143
|
+
return M(() => {
|
|
11144
11144
|
if (t === null) return null;
|
|
11145
11145
|
const l = n.find((d) => d.id === t.layerId);
|
|
11146
11146
|
if (l === void 0) return null;
|
|
@@ -11167,10 +11167,10 @@ var of = "_1tyillx2", lf = {
|
|
|
11167
11167
|
]);
|
|
11168
11168
|
}, Nf = { kind: "idle" }, Al = () => {
|
|
11169
11169
|
const e = ee((a) => a.standingInteraction), t = ee((a) => a.editTargetUnderPointer?.kind === "menu-trigger"), n = Rf();
|
|
11170
|
-
return
|
|
11170
|
+
return M(() => e !== null ? e : n === null ? Nf : {
|
|
11171
11171
|
kind: "trigger",
|
|
11172
11172
|
anchor: n,
|
|
11173
|
-
|
|
11173
|
+
engaged: t
|
|
11174
11174
|
}, [
|
|
11175
11175
|
e,
|
|
11176
11176
|
n,
|
|
@@ -11216,13 +11216,13 @@ var of = "_1tyillx2", lf = {
|
|
|
11216
11216
|
d
|
|
11217
11217
|
]);
|
|
11218
11218
|
}, Ff = (e, t, n) => {
|
|
11219
|
-
const a = U(), { store: o } = H(), { store: i } = et(), l = ne(t), s = Ne[
|
|
11220
|
-
z(() => (i.getState().
|
|
11219
|
+
const a = U(), { store: o } = H(), { store: i } = et(), l = ne(t), s = Ne[Ee()].observationsPress;
|
|
11220
|
+
z(() => (i.getState().setEditorOwnsQuery(s), () => i.getState().setEditorOwnsQuery(!1)), [i, s]), z(() => {
|
|
11221
11221
|
let c = null, d = null, u = !1;
|
|
11222
11222
|
const h = (x) => {
|
|
11223
11223
|
if (!s) return;
|
|
11224
11224
|
const I = i.getState();
|
|
11225
|
-
I.
|
|
11225
|
+
I.suspendsHover || x === null && I.hover.primary === null || I.setHoverState(x ?? Vn);
|
|
11226
11226
|
}, p = () => {
|
|
11227
11227
|
if (c = null, d === null) return;
|
|
11228
11228
|
const x = a.getState();
|
|
@@ -11288,10 +11288,10 @@ var of = "_1tyillx2", lf = {
|
|
|
11288
11288
|
return !1;
|
|
11289
11289
|
}
|
|
11290
11290
|
}, ya = "editor", Sa = [], Bf = (e, t, n, a, o) => {
|
|
11291
|
-
const i = Al(), { store: l } = et(), s = Rt().length > 0, c = Ne[
|
|
11292
|
-
Ff(e, t, p), If(e, t, n, p, o), _f(i, t, n), gf(e),
|
|
11291
|
+
const i = Al(), { store: l } = et(), s = Rt().length > 0, c = Ne[Ee()].holdsHoverWhileSelected, d = ee((m) => m.menuTrigger), u = i.kind === "menu", h = M(() => d === null ? Sa : [Ec(d)], [d]), p = Of(e, t);
|
|
11292
|
+
Ff(e, t, p), If(e, t, n, p, o), _f(i, t, n), gf(e), Ef(e), pf(e, a), z(() => (l.getState().publishPointerRegions(ya, h), () => l.getState().publishPointerRegions(ya, Sa)), [l, h]);
|
|
11293
11293
|
const g = u || s && c;
|
|
11294
|
-
z(() => (l.getState().
|
|
11294
|
+
z(() => (l.getState().setSuspendsHover(g), () => l.getState().setSuspendsHover(!1)), [l, g]), z(() => {
|
|
11295
11295
|
if (!s || !c) return;
|
|
11296
11296
|
const m = l.getState();
|
|
11297
11297
|
m.setHoverState(Vn), m.setTooltipAnchor(null);
|
|
@@ -11300,8 +11300,8 @@ var of = "_1tyillx2", lf = {
|
|
|
11300
11300
|
s,
|
|
11301
11301
|
c
|
|
11302
11302
|
]);
|
|
11303
|
-
}, Hf = ({ frameElement: e, panelRect: t, formattedAxes: n,
|
|
11304
|
-
const { measureRef: o, screenRect: i } = Ql(), { selectionStore: l } = H(), s = U(), c = ee((h) => h.caret?.annotationId ?? null), d =
|
|
11303
|
+
}, Hf = ({ frameElement: e, panelRect: t, formattedAxes: n, animateTransitions: a }) => {
|
|
11304
|
+
const { measureRef: o, screenRect: i } = Ql(), { selectionStore: l } = H(), s = U(), c = ee((h) => h.caret?.annotationId ?? null), d = Ee(), u = ae(d);
|
|
11305
11305
|
return z(() => (o(e), () => o(null)), [o, e]), z(() => () => {
|
|
11306
11306
|
const h = s.getState();
|
|
11307
11307
|
h.releaseInteraction("menu"), h.setCaret(null), h.setPressedObservation(null);
|
|
@@ -11322,7 +11322,7 @@ var of = "_1tyillx2", lf = {
|
|
|
11322
11322
|
frameRect: i,
|
|
11323
11323
|
panelRect: t,
|
|
11324
11324
|
formattedAxes: n,
|
|
11325
|
-
|
|
11325
|
+
animateTransitions: a
|
|
11326
11326
|
})] });
|
|
11327
11327
|
}, Gf = ({ annotationId: e, panelRect: t }) => {
|
|
11328
11328
|
const n = U(), { textAnnotations: a } = De(t);
|
|
@@ -11333,8 +11333,8 @@ var of = "_1tyillx2", lf = {
|
|
|
11333
11333
|
a,
|
|
11334
11334
|
n
|
|
11335
11335
|
]), null;
|
|
11336
|
-
}, Vf = ({ frameElement: e, frameRect: t, panelRect: n, formattedAxes: a,
|
|
11337
|
-
const i =
|
|
11336
|
+
}, Vf = ({ frameElement: e, frameRect: t, panelRect: n, formattedAxes: a, animateTransitions: o }) => {
|
|
11337
|
+
const i = M(() => ({
|
|
11338
11338
|
x: t.left + n.x,
|
|
11339
11339
|
y: t.top + n.y
|
|
11340
11340
|
}), [
|
|
@@ -11349,10 +11349,10 @@ var of = "_1tyillx2", lf = {
|
|
|
11349
11349
|
panelOrigin: i,
|
|
11350
11350
|
panelRect: n,
|
|
11351
11351
|
boxRef: s,
|
|
11352
|
-
|
|
11352
|
+
animateTransitions: o
|
|
11353
11353
|
});
|
|
11354
|
-
}, $f = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: a, boxRef: o,
|
|
11355
|
-
const l = We(), s = Al(), { annotations: c, editOutline: d, overlayMenu: u } = Ne[
|
|
11354
|
+
}, $f = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: a, boxRef: o, animateTransitions: i }) => {
|
|
11355
|
+
const l = We(), s = Al(), { annotations: c, editOutline: d, overlayMenu: u } = Ne[Ee()], h = M(() => ({
|
|
11356
11356
|
width: t.width,
|
|
11357
11357
|
height: t.height
|
|
11358
11358
|
}), [t.width, t.height]);
|
|
@@ -11360,7 +11360,7 @@ var of = "_1tyillx2", lf = {
|
|
|
11360
11360
|
frameElement: e,
|
|
11361
11361
|
frameSize: h,
|
|
11362
11362
|
panelRect: a,
|
|
11363
|
-
|
|
11363
|
+
animateTransitions: i
|
|
11364
11364
|
}), /* @__PURE__ */ r(Qg, { frameRect: t })] }), /* @__PURE__ */ r(Wp, {
|
|
11365
11365
|
rect: t,
|
|
11366
11366
|
zIndex: Xl.editorOverlay,
|
|
@@ -11407,7 +11407,7 @@ var of = "_1tyillx2", lf = {
|
|
|
11407
11407
|
u && /* @__PURE__ */ r(Yg, { frameElement: e })
|
|
11408
11408
|
] })
|
|
11409
11409
|
})] });
|
|
11410
|
-
}, Wf = {}, i3 = ({ slots: e, mode: t, palettePresets: n = Wf, editMenus: a, ...o }) => /* @__PURE__ */ r(
|
|
11410
|
+
}, Wf = {}, i3 = ({ slots: e, mode: t, palettePresets: n = Wf, editMenus: a, ...o }) => /* @__PURE__ */ r(Mo, {
|
|
11411
11411
|
locale: zn(),
|
|
11412
11412
|
children: /* @__PURE__ */ r(_m, {
|
|
11413
11413
|
editMenus: a,
|
|
@@ -11415,8 +11415,8 @@ var of = "_1tyillx2", lf = {
|
|
|
11415
11415
|
value: n,
|
|
11416
11416
|
children: /* @__PURE__ */ r(Zl, {
|
|
11417
11417
|
editors: Vp,
|
|
11418
|
-
children: /* @__PURE__ */ r(
|
|
11419
|
-
slots:
|
|
11418
|
+
children: /* @__PURE__ */ r(Es, {
|
|
11419
|
+
slots: M(() => ({
|
|
11420
11420
|
EditorSurface: Hf,
|
|
11421
11421
|
...e
|
|
11422
11422
|
}), [e]),
|
|
@@ -11432,7 +11432,7 @@ var of = "_1tyillx2", lf = {
|
|
|
11432
11432
|
}), Kf = "_139ohwv0", oe = ({ children: e }) => /* @__PURE__ */ r("div", {
|
|
11433
11433
|
className: Kf,
|
|
11434
11434
|
children: e
|
|
11435
|
-
}), Ll =
|
|
11435
|
+
}), Ll = Me(null), qf = Ll.Provider, jf = () => {
|
|
11436
11436
|
const e = he(Ll);
|
|
11437
11437
|
if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
|
|
11438
11438
|
return e;
|
|
@@ -11455,7 +11455,7 @@ var Qf = () => () => {
|
|
|
11455
11455
|
return !o && t && (i = /* @__PURE__ */ r(Is, {
|
|
11456
11456
|
colorScheme: t.colorScheme,
|
|
11457
11457
|
children: i
|
|
11458
|
-
})), a || (i = /* @__PURE__ */ r(
|
|
11458
|
+
})), a || (i = /* @__PURE__ */ r(Mo, {
|
|
11459
11459
|
locale: n,
|
|
11460
11460
|
children: i
|
|
11461
11461
|
})), i;
|
|
@@ -11463,7 +11463,7 @@ var Qf = () => () => {
|
|
|
11463
11463
|
Root: t5,
|
|
11464
11464
|
Controls: Yf
|
|
11465
11465
|
}, n5 = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = void 0, className: o }) => {
|
|
11466
|
-
const i = Bn(e), { themeClass: l, inlineVarsStyle: s } = Ot(), [c, d] = X(() => a ? [a] : []), u =
|
|
11466
|
+
const i = Bn(e), { themeClass: l, inlineVarsStyle: s } = Ot(), [c, d] = X(() => a ? [a] : []), u = M(() => ({
|
|
11467
11467
|
expandSection: (h) => d([h]),
|
|
11468
11468
|
collapseAllSections: () => d([])
|
|
11469
11469
|
}), []);
|
|
@@ -11493,7 +11493,7 @@ var Qf = () => () => {
|
|
|
11493
11493
|
strokeLinejoin: "round",
|
|
11494
11494
|
children: /* @__PURE__ */ r("path", { d: "m9 6 6 6-6 6" })
|
|
11495
11495
|
})
|
|
11496
|
-
}), vr = "_40zvwv0", fr = "_40zvwv1", o5 = "_40zvwv2",
|
|
11496
|
+
}), vr = "_40zvwv0", fr = "_40zvwv1", o5 = "_40zvwv2", El = "_40zvwv3", i5 = "_40zvwv4 _40zvwv3";
|
|
11497
11497
|
var l5 = "_40zvwv6";
|
|
11498
11498
|
var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory: a, onOpenChange: o, children: i }) => t === "collapsible" ? /* @__PURE__ */ r(d5, {
|
|
11499
11499
|
title: e,
|
|
@@ -11511,7 +11511,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11511
11511
|
className: fr,
|
|
11512
11512
|
children: [
|
|
11513
11513
|
/* @__PURE__ */ r("span", {
|
|
11514
|
-
className:
|
|
11514
|
+
className: El,
|
|
11515
11515
|
children: e
|
|
11516
11516
|
}),
|
|
11517
11517
|
n !== void 0 && /* @__PURE__ */ r("span", {
|
|
@@ -11553,7 +11553,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11553
11553
|
})
|
|
11554
11554
|
});
|
|
11555
11555
|
}, d5 = ({ title: e, preview: t, accessory: n, onOpenChange: a, children: o }) => {
|
|
11556
|
-
const i =
|
|
11556
|
+
const i = E();
|
|
11557
11557
|
return /* @__PURE__ */ v(je.Item, {
|
|
11558
11558
|
value: e,
|
|
11559
11559
|
className: vr,
|
|
@@ -11567,7 +11567,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11567
11567
|
"aria-label": i("editor.accessibility.toggleSection", { title: e })
|
|
11568
11568
|
}),
|
|
11569
11569
|
/* @__PURE__ */ r("span", {
|
|
11570
|
-
className:
|
|
11570
|
+
className: El,
|
|
11571
11571
|
children: e
|
|
11572
11572
|
}),
|
|
11573
11573
|
t !== void 0 && /* @__PURE__ */ r("span", {
|
|
@@ -11585,7 +11585,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11585
11585
|
]
|
|
11586
11586
|
}), /* @__PURE__ */ r(je.Panel, { children: /* @__PURE__ */ r("div", { children: o }) })]
|
|
11587
11587
|
});
|
|
11588
|
-
}, u5 = ({ title: e,
|
|
11588
|
+
}, u5 = ({ title: e, checked: t, onToggle: n, disabled: a, preview: o, children: i }) => {
|
|
11589
11589
|
const { expandSection: l, collapseAllSections: s } = jf(), { Switch: c } = F();
|
|
11590
11590
|
return /* @__PURE__ */ r(Y, {
|
|
11591
11591
|
title: e,
|
|
@@ -11595,11 +11595,11 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11595
11595
|
h && !t && a !== !0 && n(!0);
|
|
11596
11596
|
},
|
|
11597
11597
|
accessory: /* @__PURE__ */ r(c, {
|
|
11598
|
-
|
|
11598
|
+
checked: t,
|
|
11599
11599
|
onChange: (h) => {
|
|
11600
11600
|
n(h), h ? l(e) : s();
|
|
11601
11601
|
},
|
|
11602
|
-
|
|
11602
|
+
disabled: a,
|
|
11603
11603
|
ariaLabel: e
|
|
11604
11604
|
}),
|
|
11605
11605
|
children: i
|
|
@@ -11616,7 +11616,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11616
11616
|
x: "editor.axesPanel.mainAxisSection.xAxis",
|
|
11617
11617
|
y: "editor.axesPanel.mainAxisSection.yAxis"
|
|
11618
11618
|
}, Ca = ({ axis: e, title: t, layout: n = "collapsible", preview: a }) => {
|
|
11619
|
-
const o = q(), i = K(o), l =
|
|
11619
|
+
const o = q(), i = K(o), l = E(), { NumberField: s, Switch: c, TextField: d, ToggleGroup: u } = F();
|
|
11620
11620
|
if (!i) return null;
|
|
11621
11621
|
const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", p = i.config.axes[e], g = i.scales[e], m = g?.spec, f = m?.scaleType === "continuous" ? m : void 0;
|
|
11622
11622
|
if (h === "circular" || h === "radial" && f === void 0) return null;
|
|
@@ -11633,7 +11633,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11633
11633
|
], (O) => l(O === "zero" ? "editor.axesPanel.startFrom.zero" : O === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), Yt = w(["auto", "custom"], (O) => l(O === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Dl = w(["no", "yes"], (O) => l(O === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), _l = w(["single", "double"], (O) => l(O === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), Fl = (O) => {
|
|
11634
11634
|
o.commands.dispatch(new hn({
|
|
11635
11635
|
axis: e,
|
|
11636
|
-
|
|
11636
|
+
visible: O
|
|
11637
11637
|
}));
|
|
11638
11638
|
}, zl = (O) => {
|
|
11639
11639
|
o.commands.dispatch(new Ua({
|
|
@@ -11643,7 +11643,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11643
11643
|
}, Bl = (O) => {
|
|
11644
11644
|
o.commands.dispatch(new rc({
|
|
11645
11645
|
axis: e,
|
|
11646
|
-
|
|
11646
|
+
visible: O
|
|
11647
11647
|
}));
|
|
11648
11648
|
}, Hl = (O) => {
|
|
11649
11649
|
o.commands.dispatch(new qa({
|
|
@@ -11701,7 +11701,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11701
11701
|
/* @__PURE__ */ r(T, {
|
|
11702
11702
|
label: l("editor.axesPanel.controls.visible"),
|
|
11703
11703
|
children: /* @__PURE__ */ r(c, {
|
|
11704
|
-
|
|
11704
|
+
checked: p.visible,
|
|
11705
11705
|
onChange: Fl
|
|
11706
11706
|
})
|
|
11707
11707
|
}),
|
|
@@ -11723,7 +11723,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11723
11723
|
}), /* @__PURE__ */ r(T, {
|
|
11724
11724
|
label: l("editor.axesPanel.controls.ticks"),
|
|
11725
11725
|
children: /* @__PURE__ */ r(c, {
|
|
11726
|
-
|
|
11726
|
+
checked: p.ticks.visible,
|
|
11727
11727
|
onChange: Bl
|
|
11728
11728
|
})
|
|
11729
11729
|
})] }),
|
|
@@ -11801,23 +11801,23 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11801
11801
|
const n = t === "start" ? e?.[0] : e?.[e.length - 1];
|
|
11802
11802
|
return typeof n == "number" ? n : 0;
|
|
11803
11803
|
}, br = ({ value: e, onChange: t }) => {
|
|
11804
|
-
const n = q(), a =
|
|
11804
|
+
const n = q(), a = E(), { TextField: o } = F(), i = e !== null && typeof e != "string", l = (s) => t(s === "" ? null : s);
|
|
11805
11805
|
return /* @__PURE__ */ r(T, {
|
|
11806
11806
|
label: a("editor.elementsPanel.contentValue"),
|
|
11807
11807
|
children: /* @__PURE__ */ r(o, {
|
|
11808
11808
|
value: typeof e == "string" ? e : "",
|
|
11809
11809
|
onChange: l,
|
|
11810
11810
|
onCommit: n.commands.commit,
|
|
11811
|
-
|
|
11811
|
+
disabled: i
|
|
11812
11812
|
})
|
|
11813
11813
|
});
|
|
11814
11814
|
}, v5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
11815
|
-
const a = q(), o = K(a), i =
|
|
11815
|
+
const a = q(), o = K(a), i = E(), { Switch: l } = F();
|
|
11816
11816
|
if (!o) return null;
|
|
11817
11817
|
const s = o.config.content, c = (u) => {
|
|
11818
11818
|
a.commands.dispatch(new Dt({
|
|
11819
11819
|
part: "caption",
|
|
11820
|
-
|
|
11820
|
+
visible: u
|
|
11821
11821
|
}));
|
|
11822
11822
|
}, d = (u) => {
|
|
11823
11823
|
a.commands.dispatch(new Xa({ caption: u }), { transient: !0 });
|
|
@@ -11829,7 +11829,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11829
11829
|
children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
|
|
11830
11830
|
label: i("editor.elementsPanel.contentVisible"),
|
|
11831
11831
|
children: /* @__PURE__ */ r(l, {
|
|
11832
|
-
|
|
11832
|
+
checked: s.showCaption,
|
|
11833
11833
|
onChange: c
|
|
11834
11834
|
})
|
|
11835
11835
|
}), /* @__PURE__ */ r(br, {
|
|
@@ -11838,12 +11838,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11838
11838
|
})] })
|
|
11839
11839
|
});
|
|
11840
11840
|
}, wa = /^[a-z][a-z\d+.-]*:/i, f5 = {}, b5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
11841
|
-
const a = q(), o = K(a), i =
|
|
11841
|
+
const a = q(), o = K(a), i = E(), { Switch: l } = F();
|
|
11842
11842
|
if (!o) return null;
|
|
11843
11843
|
const s = o.config.content, c = (d) => {
|
|
11844
11844
|
a.commands.dispatch(new Dt({
|
|
11845
11845
|
part: "source",
|
|
11846
|
-
|
|
11846
|
+
visible: d
|
|
11847
11847
|
}));
|
|
11848
11848
|
};
|
|
11849
11849
|
return /* @__PURE__ */ r(Y, {
|
|
@@ -11853,13 +11853,13 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11853
11853
|
children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
|
|
11854
11854
|
label: i("editor.elementsPanel.contentVisible"),
|
|
11855
11855
|
children: /* @__PURE__ */ r(l, {
|
|
11856
|
-
|
|
11856
|
+
checked: s.showSource,
|
|
11857
11857
|
onChange: c
|
|
11858
11858
|
})
|
|
11859
11859
|
}), /* @__PURE__ */ r(y5, { source: s.source ?? f5 })] })
|
|
11860
11860
|
});
|
|
11861
11861
|
}, y5 = ({ source: e }) => {
|
|
11862
|
-
const t = q(), n =
|
|
11862
|
+
const t = q(), n = E(), { TextField: a } = F(), o = (c) => {
|
|
11863
11863
|
const d = (c.label ?? "") !== "" || (c.url ?? "") !== "";
|
|
11864
11864
|
t.commands.dispatch(new oc({ source: d ? c : null }), { transient: !0 });
|
|
11865
11865
|
}, i = () => {
|
|
@@ -11892,12 +11892,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11892
11892
|
})
|
|
11893
11893
|
})] });
|
|
11894
11894
|
}, S5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
11895
|
-
const a = q(), o = K(a), i =
|
|
11895
|
+
const a = q(), o = K(a), i = E(), { Switch: l } = F();
|
|
11896
11896
|
if (!o) return null;
|
|
11897
11897
|
const s = o.config.content, c = (u) => {
|
|
11898
11898
|
a.commands.dispatch(new Dt({
|
|
11899
11899
|
part: "subtitle",
|
|
11900
|
-
|
|
11900
|
+
visible: u
|
|
11901
11901
|
}));
|
|
11902
11902
|
}, d = (u) => {
|
|
11903
11903
|
a.commands.dispatch(new Za({ subtitle: u }), { transient: !0 });
|
|
@@ -11909,7 +11909,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11909
11909
|
children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
|
|
11910
11910
|
label: i("editor.elementsPanel.contentVisible"),
|
|
11911
11911
|
children: /* @__PURE__ */ r(l, {
|
|
11912
|
-
|
|
11912
|
+
checked: s.showSubtitle,
|
|
11913
11913
|
onChange: c
|
|
11914
11914
|
})
|
|
11915
11915
|
}), /* @__PURE__ */ r(br, {
|
|
@@ -11918,11 +11918,11 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11918
11918
|
})] })
|
|
11919
11919
|
});
|
|
11920
11920
|
}, lt = (e) => {
|
|
11921
|
-
const { colorScheme: t } = Ot(), n =
|
|
11922
|
-
return
|
|
11923
|
-
},
|
|
11921
|
+
const { colorScheme: t } = Ot(), n = M(() => zc({ colorScheme: t }), [t]);
|
|
11922
|
+
return M(() => e === null ? null : n.readers(e), [e, n]);
|
|
11923
|
+
}, Ml = (e, t, n) => {
|
|
11924
11924
|
const a = lt(e);
|
|
11925
|
-
return
|
|
11925
|
+
return M(() => {
|
|
11926
11926
|
if (a === null || e === null || t === null) return null;
|
|
11927
11927
|
const o = Z(e.layers, t);
|
|
11928
11928
|
return o === void 0 ? null : a.geom[n](o);
|
|
@@ -11944,7 +11944,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11944
11944
|
3,
|
|
11945
11945
|
4
|
|
11946
11946
|
], C5 = On.length / 2, x5 = { select: { target: "graph" } }, w5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
11947
|
-
const a = q(), o = K(a), i =
|
|
11947
|
+
const a = q(), o = K(a), i = E(), { RadioGrid: l } = F(), s = lt(o);
|
|
11948
11948
|
if (!o || !s) return null;
|
|
11949
11949
|
const c = s.graph().get("textScale"), d = (p) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${p}` }), u = On.map((p) => ({
|
|
11950
11950
|
value: `${p}`,
|
|
@@ -11977,12 +11977,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11977
11977
|
})
|
|
11978
11978
|
});
|
|
11979
11979
|
}, k5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
11980
|
-
const a = q(), o = K(a), i =
|
|
11980
|
+
const a = q(), o = K(a), i = E(), { Switch: l } = F();
|
|
11981
11981
|
if (!o) return null;
|
|
11982
11982
|
const s = o.config.content, c = (u) => {
|
|
11983
11983
|
a.commands.dispatch(new Dt({
|
|
11984
11984
|
part: "title",
|
|
11985
|
-
|
|
11985
|
+
visible: u
|
|
11986
11986
|
}));
|
|
11987
11987
|
}, d = (u) => {
|
|
11988
11988
|
a.commands.dispatch(new Ya({ title: u }), { transient: !0 });
|
|
@@ -11994,7 +11994,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
11994
11994
|
children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
|
|
11995
11995
|
label: i("editor.elementsPanel.contentVisible"),
|
|
11996
11996
|
children: /* @__PURE__ */ r(l, {
|
|
11997
|
-
|
|
11997
|
+
checked: s.showTitle,
|
|
11998
11998
|
onChange: c
|
|
11999
11999
|
})
|
|
12000
12000
|
}), /* @__PURE__ */ r(br, {
|
|
@@ -12015,7 +12015,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12015
12015
|
...t,
|
|
12016
12016
|
children: e ?? /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(Ca, { axis: "x" }), /* @__PURE__ */ r(Ca, { axis: "y" })] })
|
|
12017
12017
|
}), jt = (e) => `${e}px`, Ol = (e) => `${Math.round(e * 100)}%`, T5 = (e) => `${e}°`, A5 = 24, P5 = { select: { target: "graph" } }, ka = ["dim", "desaturate"], d3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12018
|
-
const a = q(), o = K(a), i =
|
|
12018
|
+
const a = q(), o = K(a), i = E(), { Slider: l, ToggleGroup: s } = F(), c = lt(o);
|
|
12019
12019
|
if (!o || !c) return null;
|
|
12020
12020
|
const d = c.graph().get("cornerRadius"), u = sd(o.spec), h = ka.map((m) => ({
|
|
12021
12021
|
value: m,
|
|
@@ -12061,7 +12061,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12061
12061
|
})] })
|
|
12062
12062
|
});
|
|
12063
12063
|
}, L5 = 0.05, u3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12064
|
-
const a = q(), o = K(a), i =
|
|
12064
|
+
const a = q(), o = K(a), i = E(), { Slider: l, ToggleGroup: s } = F(), c = o ? po(o.spec.layers, "bar") : void 0, d = Ml(o, c?.id ?? null, "bar");
|
|
12065
12065
|
if (!o || !c || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
|
|
12066
12066
|
const u = (f) => {
|
|
12067
12067
|
a.commands.dispatch(new ja({
|
|
@@ -12140,7 +12140,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12140
12140
|
fill: "currentColor",
|
|
12141
12141
|
d: "M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z"
|
|
12142
12142
|
})]
|
|
12143
|
-
}),
|
|
12143
|
+
}), E5 = (e) => /* @__PURE__ */ r(L, {
|
|
12144
12144
|
viewBox: "0 0 32 32",
|
|
12145
12145
|
...e,
|
|
12146
12146
|
children: /* @__PURE__ */ v(Xt, { children: [/* @__PURE__ */ r("path", {
|
|
@@ -12150,7 +12150,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12150
12150
|
fill: "currentColor",
|
|
12151
12151
|
d: "M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z"
|
|
12152
12152
|
})] })
|
|
12153
|
-
}),
|
|
12153
|
+
}), M5 = (e) => /* @__PURE__ */ v(L, {
|
|
12154
12154
|
viewBox: "0 0 32 33",
|
|
12155
12155
|
...e,
|
|
12156
12156
|
children: [/* @__PURE__ */ r(Xt, { children: /* @__PURE__ */ r("path", {
|
|
@@ -12189,7 +12189,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12189
12189
|
x: 0.6,
|
|
12190
12190
|
y: 0.4
|
|
12191
12191
|
}, B5 = "relative-difference", h3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12192
|
-
const a = q(), o = K(a), i =
|
|
12192
|
+
const a = q(), o = K(a), i = E(), { Button: l } = F();
|
|
12193
12193
|
if (!o) return null;
|
|
12194
12194
|
const s = () => {
|
|
12195
12195
|
a.commands.dispatch(new Te({
|
|
@@ -12261,13 +12261,13 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12261
12261
|
}),
|
|
12262
12262
|
/* @__PURE__ */ r(l, {
|
|
12263
12263
|
variant: "tile",
|
|
12264
|
-
icon: /* @__PURE__ */ r(
|
|
12264
|
+
icon: /* @__PURE__ */ r(E5, { size: "xl" }),
|
|
12265
12265
|
label: i("editor.annotatePanel.callOutSection.box"),
|
|
12266
12266
|
onClick: d
|
|
12267
12267
|
}),
|
|
12268
12268
|
h && /* @__PURE__ */ r(l, {
|
|
12269
12269
|
variant: "tile",
|
|
12270
|
-
icon: /* @__PURE__ */ r(
|
|
12270
|
+
icon: /* @__PURE__ */ r(M5, { size: "xl" }),
|
|
12271
12271
|
label: i("editor.annotatePanel.callOutSection.difference"),
|
|
12272
12272
|
onClick: u
|
|
12273
12273
|
})
|
|
@@ -12283,7 +12283,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12283
12283
|
}]
|
|
12284
12284
|
}]
|
|
12285
12285
|
}), p3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12286
|
-
const a = q(), o = K(a), i =
|
|
12286
|
+
const a = q(), o = K(a), i = E(), { ToggleGroup: l } = F();
|
|
12287
12287
|
if (!o) return null;
|
|
12288
12288
|
const s = zt(o.spec);
|
|
12289
12289
|
if (s === null || !se(s)) return null;
|
|
@@ -12309,7 +12309,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12309
12309
|
})
|
|
12310
12310
|
});
|
|
12311
12311
|
}, G5 = 0.1, V5 = 20, m3 = ({ title: e, preview: t }) => {
|
|
12312
|
-
const n = q(), a = K(n), o =
|
|
12312
|
+
const n = q(), a = K(n), o = E(), { NumberField: i, TextField: l } = F();
|
|
12313
12313
|
if (!a || a.coordSystem.type === "polar") return null;
|
|
12314
12314
|
const s = $c(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), d = id(s?.mapping.y), u = typeof d == "number" ? d : null, h = (m) => {
|
|
12315
12315
|
const f = new Pc({
|
|
@@ -12336,7 +12336,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12336
12336
|
return /* @__PURE__ */ r(u5, {
|
|
12337
12337
|
title: c,
|
|
12338
12338
|
preview: t,
|
|
12339
|
-
|
|
12339
|
+
checked: s !== void 0,
|
|
12340
12340
|
onToggle: h,
|
|
12341
12341
|
children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
|
|
12342
12342
|
label: o("editor.annotationsPanel.goalSection.labelControl"),
|
|
@@ -12366,7 +12366,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12366
12366
|
const i = Math.min(V5, Math.max(0, 1 - Math.floor(Math.log10(o))));
|
|
12367
12367
|
return Number((n + o * G5).toFixed(i));
|
|
12368
12368
|
}, g3 = ({ layerId: e, title: t, layout: n = "collapsible", preview: a }) => {
|
|
12369
|
-
const o = q(), i = K(o), l =
|
|
12369
|
+
const o = q(), i = K(o), l = E(), { Switch: s } = F();
|
|
12370
12370
|
if (!i) return null;
|
|
12371
12371
|
const c = e === void 0 ? i.layers[0] : Z(i.layers, e);
|
|
12372
12372
|
if (!c) return null;
|
|
@@ -12408,39 +12408,39 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12408
12408
|
/* @__PURE__ */ r(T, {
|
|
12409
12409
|
label: l("editor.graphPanel.graphOptions.dataLabels"),
|
|
12410
12410
|
children: /* @__PURE__ */ r(s, {
|
|
12411
|
-
|
|
12411
|
+
checked: d,
|
|
12412
12412
|
onChange: m
|
|
12413
12413
|
})
|
|
12414
12414
|
}),
|
|
12415
12415
|
g.supportsPercentages && /* @__PURE__ */ r(T, {
|
|
12416
12416
|
label: l("editor.graphPanel.graphOptions.showPercentages"),
|
|
12417
12417
|
children: /* @__PURE__ */ r(s, {
|
|
12418
|
-
|
|
12418
|
+
checked: u === "percentage",
|
|
12419
12419
|
onChange: f
|
|
12420
12420
|
})
|
|
12421
12421
|
}),
|
|
12422
12422
|
g.supportsStackTotals && /* @__PURE__ */ r(T, {
|
|
12423
12423
|
label: l("editor.graphPanel.graphOptions.stackTotals"),
|
|
12424
12424
|
children: /* @__PURE__ */ r(s, {
|
|
12425
|
-
|
|
12425
|
+
checked: h,
|
|
12426
12426
|
onChange: b
|
|
12427
12427
|
})
|
|
12428
12428
|
}),
|
|
12429
12429
|
g.supportsCategoryLabels && /* @__PURE__ */ r(T, {
|
|
12430
12430
|
label: l("editor.graphPanel.graphOptions.categoryLabels"),
|
|
12431
12431
|
children: /* @__PURE__ */ r(s, {
|
|
12432
|
-
|
|
12432
|
+
checked: p,
|
|
12433
12433
|
onChange: C
|
|
12434
12434
|
})
|
|
12435
12435
|
})
|
|
12436
12436
|
] })
|
|
12437
12437
|
});
|
|
12438
12438
|
}, W5 = 3, v3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12439
|
-
const a = q(), o = K(a), i =
|
|
12439
|
+
const a = q(), o = K(a), i = E(), { RadioGrid: l } = F(), s = M(() => Qe.map(({ name: h, icon: p, summary: g }) => ({
|
|
12440
12440
|
value: h,
|
|
12441
12441
|
label: i(`editor.graphTypes.${h}`),
|
|
12442
12442
|
icon: /* @__PURE__ */ r(p, { size: "md" }),
|
|
12443
|
-
|
|
12443
|
+
disabled: !gi(g, o?.spec)
|
|
12444
12444
|
})), [i, o]);
|
|
12445
12445
|
if (!o) return null;
|
|
12446
12446
|
const c = zt(o.spec), d = wt(c), u = (h) => {
|
|
@@ -12460,21 +12460,21 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12460
12460
|
})
|
|
12461
12461
|
});
|
|
12462
12462
|
}, f3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12463
|
-
const a = q(), o = K(a), i =
|
|
12463
|
+
const a = q(), o = K(a), i = E(), { Slider: l, Switch: s, ToggleGroup: c } = F(), d = lt(o), u = o !== null && d !== null ? Ii(o, d) : null;
|
|
12464
12464
|
if (u === null) return null;
|
|
12465
|
-
const h = u.axes.some((b) => b.
|
|
12465
|
+
const h = u.axes.some((b) => b.showGrid), p = At.map((b) => ({
|
|
12466
12466
|
value: b,
|
|
12467
12467
|
label: i(`editor.graphPanel.gridSection.lineStyles.${b}`)
|
|
12468
12468
|
})), g = (b) => (C) => {
|
|
12469
12469
|
a.commands.dispatch(new pn({
|
|
12470
12470
|
axis: b,
|
|
12471
|
-
|
|
12471
|
+
visible: C
|
|
12472
12472
|
}));
|
|
12473
12473
|
}, m = (b) => {
|
|
12474
12474
|
const C = At.find((P) => P === b);
|
|
12475
|
-
C !== void 0 && a.commands.dispatch(
|
|
12475
|
+
C !== void 0 && a.commands.dispatch(Ei(C));
|
|
12476
12476
|
}, f = (b) => {
|
|
12477
|
-
a.commands.dispatch(
|
|
12477
|
+
a.commands.dispatch(Mi(b), { transient: !0 });
|
|
12478
12478
|
};
|
|
12479
12479
|
return /* @__PURE__ */ r(Y, {
|
|
12480
12480
|
title: e ?? i("editor.graphPanel.gridSection.title"),
|
|
@@ -12483,10 +12483,10 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12483
12483
|
children: /* @__PURE__ */ v(oe, { children: [u.axes.map((b) => /* @__PURE__ */ r(T, {
|
|
12484
12484
|
label: i(U5(b)),
|
|
12485
12485
|
children: /* @__PURE__ */ r(s, {
|
|
12486
|
-
|
|
12486
|
+
checked: b.showGrid,
|
|
12487
12487
|
onChange: g(b.scaleAestheticKey)
|
|
12488
12488
|
})
|
|
12489
|
-
}, b.scaleAestheticKey)), u.
|
|
12489
|
+
}, b.scaleAestheticKey)), u.stylable && h && /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(T, {
|
|
12490
12490
|
label: i("editor.graphPanel.gridSection.gridStyle"),
|
|
12491
12491
|
children: /* @__PURE__ */ r(c, {
|
|
12492
12492
|
value: u.lineStyle,
|
|
@@ -12516,7 +12516,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12516
12516
|
"medium",
|
|
12517
12517
|
"large"
|
|
12518
12518
|
], b3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12519
|
-
const a = q(), o = K(a), i =
|
|
12519
|
+
const a = q(), o = K(a), i = E(), { Switch: l, ToggleGroup: s } = F();
|
|
12520
12520
|
if (!o) return null;
|
|
12521
12521
|
const c = o.config.headline, d = c.show !== "none", u = o.coordSystem, h = u.type === "polar", p = u.type === "polar" && u.innerRadius > 0, g = o.layers.some((D) => D.summary.grandTotal !== void 0);
|
|
12522
12522
|
if (h && !g) return null;
|
|
@@ -12556,7 +12556,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
|
|
|
12556
12556
|
children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
|
|
12557
12557
|
label: i("editor.graphPanel.headlineNumberSection.toggle"),
|
|
12558
12558
|
children: /* @__PURE__ */ r(l, {
|
|
12559
|
-
|
|
12559
|
+
checked: d,
|
|
12560
12560
|
onChange: I
|
|
12561
12561
|
})
|
|
12562
12562
|
}), d && /* @__PURE__ */ v($, { children: [
|
|
@@ -12625,7 +12625,7 @@ var dn = [
|
|
|
12625
12625
|
"pill",
|
|
12626
12626
|
"direct"
|
|
12627
12627
|
], y3 = ({ positions: e, title: t, layout: n = "collapsible", preview: a }) => {
|
|
12628
|
-
const o = q(), i = K(o), l =
|
|
12628
|
+
const o = q(), i = K(o), l = E(), { ToggleGroup: s } = F(), c = Ma();
|
|
12629
12629
|
if (!i) return null;
|
|
12630
12630
|
const d = i.config.legend.position, u = e ?? dn, h = i.guides.legends.drawn[0], p = Oc({
|
|
12631
12631
|
legendPosition: i.guides.legends.position,
|
|
@@ -12694,7 +12694,7 @@ var dn = [
|
|
|
12694
12694
|
] })
|
|
12695
12695
|
});
|
|
12696
12696
|
}, Z5 = 1, Y5 = 20, J5 = 0.5, Nl = ({ layerId: e }) => {
|
|
12697
|
-
const t = q(), n = K(t), { Slider: a } = F(), o =
|
|
12697
|
+
const t = q(), n = K(t), { Slider: a } = F(), o = Ml(n, e, "point");
|
|
12698
12698
|
if (!n) return null;
|
|
12699
12699
|
const i = Z(n.layers, e)?.data?.findFirst((c) => (o?.get("size", c) ?? 0) > 0) ?? void 0, l = o?.get("size", i) ?? $a;
|
|
12700
12700
|
return /* @__PURE__ */ r(a, {
|
|
@@ -12713,7 +12713,7 @@ var dn = [
|
|
|
12713
12713
|
onCommit: t.commands.commit
|
|
12714
12714
|
});
|
|
12715
12715
|
}, S3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12716
|
-
const a = q(), o = K(a), i =
|
|
12716
|
+
const a = q(), o = K(a), i = E(), { Select: l, Slider: s, Switch: c, ToggleGroup: d } = F(), u = lt(o), h = po(o?.spec.layers ?? [], "line", "area"), p = o && u && h ? lr(o, u, h.id) : null;
|
|
12717
12717
|
if (!o || !p) return null;
|
|
12718
12718
|
const g = p.missingValueOptions.map((I) => ({
|
|
12719
12719
|
value: I,
|
|
@@ -12721,7 +12721,7 @@ var dn = [
|
|
|
12721
12721
|
})), m = [{
|
|
12722
12722
|
value: "auto",
|
|
12723
12723
|
label: i("editor.graphPanel.numberFormat.options.auto"),
|
|
12724
|
-
|
|
12724
|
+
disabled: p.hasUnderlyingStrokeWidth
|
|
12725
12725
|
}, {
|
|
12726
12726
|
value: "custom",
|
|
12727
12727
|
label: i("editor.graphPanel.numberFormat.options.custom")
|
|
@@ -12765,7 +12765,7 @@ var dn = [
|
|
|
12765
12765
|
/* @__PURE__ */ r(T, {
|
|
12766
12766
|
label: i("editor.graphPanel.graphOptions.showPoints"),
|
|
12767
12767
|
children: /* @__PURE__ */ r(c, {
|
|
12768
|
-
|
|
12768
|
+
checked: p.showPoints,
|
|
12769
12769
|
onChange: f
|
|
12770
12770
|
})
|
|
12771
12771
|
}),
|
|
@@ -12776,14 +12776,14 @@ var dn = [
|
|
|
12776
12776
|
p.showFill !== null && /* @__PURE__ */ r(T, {
|
|
12777
12777
|
label: i("editor.graphPanel.graphOptions.lineFill"),
|
|
12778
12778
|
children: /* @__PURE__ */ r(c, {
|
|
12779
|
-
|
|
12779
|
+
checked: p.showFill,
|
|
12780
12780
|
onChange: b
|
|
12781
12781
|
})
|
|
12782
12782
|
}),
|
|
12783
|
-
p.
|
|
12783
|
+
p.smooth !== null && /* @__PURE__ */ r(T, {
|
|
12784
12784
|
label: i("editor.graphPanel.graphOptions.smoothLines"),
|
|
12785
12785
|
children: /* @__PURE__ */ r(c, {
|
|
12786
|
-
|
|
12786
|
+
checked: p.smooth,
|
|
12787
12787
|
onChange: C
|
|
12788
12788
|
})
|
|
12789
12789
|
}),
|
|
@@ -12830,7 +12830,7 @@ var dn = [
|
|
|
12830
12830
|
size: "editor.graphPanel.mappingSection.size",
|
|
12831
12831
|
label: "editor.graphPanel.mappingSection.label"
|
|
12832
12832
|
}, C3 = ({ title: e, layout: t = "collapsible" }) => {
|
|
12833
|
-
const n = q(), a = K(n), o =
|
|
12833
|
+
const n = q(), a = K(n), o = E(), { Select: i } = F(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = M(() => s === void 0 ? [] : dd(s, Q5).map(({ aesthetic: d, variables: u, required: h }) => {
|
|
12834
12834
|
const p = ud(s.mapping, d);
|
|
12835
12835
|
return {
|
|
12836
12836
|
aesthetic: d,
|
|
@@ -12886,7 +12886,7 @@ var dn = [
|
|
|
12886
12886
|
labelKey: "billions"
|
|
12887
12887
|
}
|
|
12888
12888
|
], ib = ["auto", "none"], x3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12889
|
-
const a = q(), o = K(a), i =
|
|
12889
|
+
const a = q(), o = K(a), i = E(), { NumberField: l, ToggleGroup: s } = F();
|
|
12890
12890
|
if (!o) return null;
|
|
12891
12891
|
const { abbreviation: c, decimals: d } = o.config.numberFormat, u = lb(c) !== void 0, h = d !== "auto", p = (k) => k.map((x) => ({
|
|
12892
12892
|
value: x,
|
|
@@ -12953,7 +12953,7 @@ var dn = [
|
|
|
12953
12953
|
] })
|
|
12954
12954
|
});
|
|
12955
12955
|
}, lb = (e) => Nn.find((t) => t.value === e), w3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12956
|
-
const a = K(q()), o =
|
|
12956
|
+
const a = K(q()), o = E();
|
|
12957
12957
|
if (!a) return null;
|
|
12958
12958
|
const i = sb(a.spec.layers);
|
|
12959
12959
|
return i ? /* @__PURE__ */ r(Y, {
|
|
@@ -12969,7 +12969,7 @@ var dn = [
|
|
|
12969
12969
|
const t = gn(e, "line", "area");
|
|
12970
12970
|
return gn(e, "point").find((n) => !vo(n, t));
|
|
12971
12971
|
}, cb = 0.9, db = 360, ub = 0.05, hb = 15, k3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
12972
|
-
const a = q(), o = K(a), i =
|
|
12972
|
+
const a = q(), o = K(a), i = E(), { Slider: l } = F();
|
|
12973
12973
|
if (!o || o.spec.coords.coordType !== "polar") return null;
|
|
12974
12974
|
const { innerRadius: s, startAngle: c } = o.spec.coords.params, d = (h) => {
|
|
12975
12975
|
a.commands.dispatch(new bc({ innerRadius: h }), { transient: !0 });
|
|
@@ -13050,7 +13050,7 @@ var dn = [
|
|
|
13050
13050
|
fill: "currentColor"
|
|
13051
13051
|
})
|
|
13052
13052
|
]
|
|
13053
|
-
}),
|
|
13053
|
+
}), Ea = [
|
|
13054
13054
|
"linear",
|
|
13055
13055
|
"exponential",
|
|
13056
13056
|
"quadratic",
|
|
@@ -13059,9 +13059,9 @@ var dn = [
|
|
|
13059
13059
|
"power",
|
|
13060
13060
|
"loess"
|
|
13061
13061
|
], mb = "linear", T3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
|
|
13062
|
-
const a = q(), o = K(a), i =
|
|
13062
|
+
const a = q(), o = K(a), i = E(), { Select: l, Switch: s } = F(), { options: c, findValue: d } = cr(o);
|
|
13063
13063
|
if (!o || o.coordSystem.type === "polar") return null;
|
|
13064
|
-
const u = Kc(o.spec.layers), h = Vc(o.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : mb, g = gb(h), m =
|
|
13064
|
+
const u = Kc(o.spec.layers), h = Vc(o.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : mb, g = gb(h), m = Ea.map((x) => ({
|
|
13065
13065
|
value: x,
|
|
13066
13066
|
label: i(`editor.annotationsPanel.trendType.options.${x}`)
|
|
13067
13067
|
})), f = (x, I = {}) => {
|
|
@@ -13073,7 +13073,7 @@ var dn = [
|
|
|
13073
13073
|
});
|
|
13074
13074
|
a.commands.dispatch(A);
|
|
13075
13075
|
}, b = (x) => f(x ? "trend" : "none", { method: p }), C = (x) => f(x ? "average" : "none", { group: g ?? d(c[0]?.value ?? "") }), P = (x) => {
|
|
13076
|
-
const I =
|
|
13076
|
+
const I = Ea.find((w) => w === x);
|
|
13077
13077
|
I !== void 0 && f("trend", { method: I });
|
|
13078
13078
|
}, k = (x) => {
|
|
13079
13079
|
const I = x === null ? void 0 : d(x);
|
|
@@ -13088,7 +13088,7 @@ var dn = [
|
|
|
13088
13088
|
label: i("editor.annotationsPanel.trendsAndAveragesSection.trend"),
|
|
13089
13089
|
icon: /* @__PURE__ */ r(Ia, { size: "lg" }),
|
|
13090
13090
|
children: /* @__PURE__ */ r(s, {
|
|
13091
|
-
|
|
13091
|
+
checked: u !== void 0,
|
|
13092
13092
|
onChange: b
|
|
13093
13093
|
})
|
|
13094
13094
|
}),
|
|
@@ -13105,7 +13105,7 @@ var dn = [
|
|
|
13105
13105
|
label: i("editor.annotationsPanel.trendsAndAveragesSection.average"),
|
|
13106
13106
|
icon: /* @__PURE__ */ r(pb, { size: "lg" }),
|
|
13107
13107
|
children: /* @__PURE__ */ r(s, {
|
|
13108
|
-
|
|
13108
|
+
checked: h !== void 0,
|
|
13109
13109
|
onChange: C
|
|
13110
13110
|
})
|
|
13111
13111
|
}),
|
|
@@ -13146,7 +13146,7 @@ export {
|
|
|
13146
13146
|
v3 as GraphTypeSection,
|
|
13147
13147
|
f3 as GridSection,
|
|
13148
13148
|
b3 as HeadlineSection,
|
|
13149
|
-
|
|
13149
|
+
Mo as IntlProvider,
|
|
13150
13150
|
y3 as LegendSection,
|
|
13151
13151
|
S3 as LineSection,
|
|
13152
13152
|
C3 as MappingSection,
|