@graphysdk/react-renderer 1.8.1-beta.1786354953172 → 1.8.1-beta.1786366143449
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 +21 -14
- package/dist/editable.mjs +1740 -1281
- package/dist/history-chords-B9Z337V_.cjs +1 -0
- package/dist/{history-chords-DdGqrRWz.js → history-chords-C4ubfbkC.js} +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/history-chords-BQ7eeQ6T.cjs +0 -1
package/dist/editable.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { B as _e, D as he, E as
|
|
2
|
-
import { g as
|
|
3
|
-
import { AddAnnotationCommand as
|
|
4
|
-
import { createContext as ue, useCallback as fe, useContext as ae, useEffect as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { useShallow as
|
|
7
|
-
import { createPortal as
|
|
1
|
+
import { B as _e, D as he, E as It, F as Tt, I as At, L as Re, M as Ss, N as A, Q as Lt, S as J, V as se, Z as Ot, b as I, c as Nt, d as q, et as kt, f as ge, h as Sn, i as Mt, k as De, l as Et, m as _t, n as R, o as wn, p as Le, r as Rt, rt as G, s as Dt, t as zt, tt as K, u as ve, v as Ht, x as j, y as Se } from "./history-chords-C4ubfbkC.js";
|
|
2
|
+
import { g as Vt } from "./font-values-CPxYeqns.js";
|
|
3
|
+
import { AddAnnotationCommand as we, AddHighlightCommand as Ft, BORDER_RADIUS_TOKENS as Ze, CONSTANT_VARIABLES as Bt, DEFAULT_BAR_BORDER_RADIUS as Kt, DEFAULT_POINT_SIZE as Gt, DEFAULT_STROKE_WIDTH as Ut, DIFFERENCE_ARROW_DEFAULTS as Wt, MAX_BAR_WIDTH as qt, MIN_BAR_WIDTH as $t, RESTING_HOVER_STATE as xn, RemoveAnnotationCommand as ze, RemoveHighlightCommand as Zt, SetAppearanceCornerRadiusCommand as jt, SetAppearanceTextScaleCommand as Xt, SetAxisLabelCommand as Yt, SetAxisPositionCommand as Qt, SetAxisTickModeCommand as Jt, SetAxisTicksVisibilityCommand as er, SetAxisVisibilityCommand as nr, SetBarBorderRadiusCommand as tr, SetBarWidthCommand as rr, SetChartTypeCommand as ar, SetContentCaptionCommand as or, SetContentSourceCommand as ir, SetContentSubtitleCommand as lr, SetContentTitleCommand as sr, SetDataLabelsFormatCommand as cr, SetGridLineStyleCommand as dr, SetGridLineWidthCommand as hr, SetGridVisibilityCommand as ur, SetHeadlineCompareWithCommand as mr, SetHeadlinePositionCommand as pr, SetHeadlineShowCommand as je, SetHeadlineSizeCommand as gr, SetHighlightDimStyleCommand as vr, SetLegendAlignCommand as fr, SetLegendDisplayCommand as Cr, SetLegendPositionCommand as br, SetLineInterpolationCommand as yr, SetLineMissingValuesCommand as Sr, SetLineWidthCommand as Xe, SetNumberFormatAbbreviationCommand as wr, SetNumberFormatDecimalsCommand as Ye, SetPointSizeCommand as xr, SetPolarInnerRadiusCommand as Pr, SetPolarStartAngleCommand as Ir, SetScaleDomainCommand as pe, SetScaleReverseCommand as Tr, SetScaleTransformCommand as Ar, SetScaleZeroCommand as Qe, ToggleCategoryLabelsCommand as Lr, ToggleContentVisibilityCommand as xe, ToggleDataLabelsCommand as Or, ToggleLineFillCommand as Nr, ToggleLinePointsVisibilityCommand as kr, ToggleStackTotalsCommand as Mr, UpdateAnnotationCommand as Pn, areAnchorsEqual as In, areEndpointsComparable as Er, buildEditMenuTriggerRegion as _r, buildLayerStyleAddress as Rr, buildObservationAnchor as Dr, buildObservationPredicate as zr, canAnchorDirectLabels as Hr, canPlaceDataLabels as Vr, createObservationAnchorParser as Fr, createStyleResolver as Br, extractVariableName as Kr, filterLayersByGeoms as Oe, findHighlightsAtObservation as Gr, findLayerByGeom as Tn, findObservationAttachment as Ur, findStyleRule as Wr, formatDifferenceLabel as qr, getColor as $r, hasMultipleGroups as Zr, inferDifferenceArrowEndpoints as jr, isCompanionLayer as An, isObservationAttachmentKind as Xr, isPointWithinEditMenuTrigger as Ln, isSafeUrl as Yr, projectAnchorToPanel as Qr, readChartType as Jr, readHighlightDimStyle as ea, resolveComparisonBasis as na, resolveObservationPoint as Ne, stepDifferenceArrowEndpoint as ta, toPanelCursor as He } from "@graphysdk/viz-engine";
|
|
4
|
+
import { createContext as ue, useCallback as fe, useContext as ae, useEffect as V, useId as de, useMemo as k, useRef as Ce, useState as $ } from "react";
|
|
5
|
+
import { Fragment as W, jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
6
|
+
import { useShallow as Ve } from "zustand/react/shallow";
|
|
7
|
+
import { createPortal as ra } from "react-dom";
|
|
8
8
|
import re from "clsx";
|
|
9
|
-
import { assignInlineVars as
|
|
10
|
-
import { Menu as
|
|
11
|
-
import { Menu as
|
|
9
|
+
import { assignInlineVars as On } from "@vanilla-extract/dynamic";
|
|
10
|
+
import { Menu as _ } from "@base-ui/react/menu";
|
|
11
|
+
import { Menu as X } from "@base-ui/react";
|
|
12
12
|
import { Accordion as le } from "@base-ui/react/accordion";
|
|
13
|
-
import { NumberField as
|
|
14
|
-
import { Radio as
|
|
15
|
-
import { RadioGroup as
|
|
13
|
+
import { NumberField as Je } from "@base-ui/react/number-field";
|
|
14
|
+
import { Radio as Nn } from "@base-ui/react/radio";
|
|
15
|
+
import { RadioGroup as kn } from "@base-ui/react/radio-group";
|
|
16
16
|
import { Select as U } from "@base-ui/react/select";
|
|
17
17
|
import { Slider as oe } from "@base-ui/react/slider";
|
|
18
|
-
import { Switch as
|
|
19
|
-
import { Input as
|
|
20
|
-
import './editable.css';var
|
|
21
|
-
const { chartId: t } =
|
|
22
|
-
return i === null ? null : /* @__PURE__ */
|
|
23
|
-
ref:
|
|
24
|
-
className:
|
|
25
|
-
...
|
|
18
|
+
import { Switch as en } from "@base-ui/react/switch";
|
|
19
|
+
import { Input as aa } from "@base-ui/react/input";
|
|
20
|
+
import './editable.css';var oa = "data-graphy-chart-chrome", ia = "data-graphy-chart-menu", Mn = { [ia]: "" }, be = (e) => ({ [oa]: e }), En = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, la = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, sa = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, ce = (e, t, i) => e instanceof Node && (t.contains(e) || En(e, i)), ca = "cml7ha0", _n = ue(null), da = ({ children: e }) => {
|
|
21
|
+
const { chartId: t } = G(), [i] = $(Re), [r, o] = $(null);
|
|
22
|
+
return i === null ? null : /* @__PURE__ */ m(W, { children: [ra(/* @__PURE__ */ n("div", {
|
|
23
|
+
ref: o,
|
|
24
|
+
className: ca,
|
|
25
|
+
...be(t)
|
|
26
26
|
}), i), /* @__PURE__ */ n(_n.Provider, {
|
|
27
27
|
value: r,
|
|
28
28
|
children: e
|
|
29
29
|
})] });
|
|
30
|
-
}, Fe = () => ae(_n),
|
|
30
|
+
}, Fe = () => ae(_n), Rn = (e) => /* @__PURE__ */ m(I, {
|
|
31
31
|
viewBox: "0 0 16 16",
|
|
32
32
|
...e,
|
|
33
33
|
children: [
|
|
@@ -53,39 +53,39 @@ import './editable.css';var na = "data-graphy-chart-chrome", ta = "data-graphy-c
|
|
|
53
53
|
})
|
|
54
54
|
]
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Dn = "efjmb40", zn = "efjmb41", ee = "efjmb42", ne = "efjmb43", ha = "efjmb44", ua = "efjmb45", ma = /* @__PURE__ */ new Set([
|
|
57
57
|
"item-press",
|
|
58
58
|
"escape-key",
|
|
59
59
|
"outside-press",
|
|
60
60
|
"close-press",
|
|
61
61
|
"sibling-open",
|
|
62
62
|
"trigger-press"
|
|
63
|
-
]),
|
|
64
|
-
const
|
|
65
|
-
s ? (l(!0), i?.()) :
|
|
63
|
+
]), Be = ({ label: e, icon: t, onOpened: i, children: r }) => {
|
|
64
|
+
const o = Fe(), [a, l] = $(!1), c = (s, u) => {
|
|
65
|
+
s ? (l(!0), i?.()) : ma.has(u.reason) && l(!1);
|
|
66
66
|
};
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
open:
|
|
67
|
+
return /* @__PURE__ */ m(X.SubmenuRoot, {
|
|
68
|
+
open: a,
|
|
69
69
|
onOpenChange: c,
|
|
70
|
-
children: [/* @__PURE__ */ n(
|
|
70
|
+
children: [/* @__PURE__ */ n(pa, {
|
|
71
71
|
label: e,
|
|
72
72
|
icon: t
|
|
73
|
-
}), /* @__PURE__ */ n(
|
|
74
|
-
container:
|
|
75
|
-
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(
|
|
73
|
+
}), /* @__PURE__ */ n(X.Portal, {
|
|
74
|
+
container: o,
|
|
75
|
+
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(X.Positioner, {
|
|
76
76
|
side: "right",
|
|
77
77
|
align: "start",
|
|
78
78
|
sideOffset: 4,
|
|
79
|
-
className:
|
|
80
|
-
...
|
|
81
|
-
children: /* @__PURE__ */ n(
|
|
82
|
-
className:
|
|
79
|
+
className: Dn,
|
|
80
|
+
...Mn,
|
|
81
|
+
children: /* @__PURE__ */ n(X.Popup, {
|
|
82
|
+
className: zn,
|
|
83
83
|
children: r
|
|
84
84
|
})
|
|
85
85
|
}) })
|
|
86
86
|
})]
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, pa = ({ label: e, icon: t }) => /* @__PURE__ */ m(X.SubmenuTrigger, {
|
|
89
89
|
className: ee,
|
|
90
90
|
openOnHover: !1,
|
|
91
91
|
children: [
|
|
@@ -95,31 +95,31 @@ var Mn = "efjmb40", Rn = "efjmb41", ee = "efjmb42", ne = "efjmb43", la = "efjmb4
|
|
|
95
95
|
children: e
|
|
96
96
|
}),
|
|
97
97
|
/* @__PURE__ */ n("span", {
|
|
98
|
-
className:
|
|
98
|
+
className: ua,
|
|
99
99
|
children: /* @__PURE__ */ n(Se, { size: "sm" })
|
|
100
100
|
})
|
|
101
101
|
]
|
|
102
|
-
}),
|
|
103
|
-
const
|
|
104
|
-
u.length !== 0 && (s(new
|
|
102
|
+
}), ga = "_1qe7q450", va = "_1qe7q451", fa = "_1qe7q452", Ca = ({ label: e, placeholder: t, addLabel: i, at: r, onRequestClose: o }) => {
|
|
103
|
+
const a = Ce(null), [l, c] = $(""), { dispatch: s } = J(), u = l.trim(), d = () => {
|
|
104
|
+
u.length !== 0 && (s(new we({
|
|
105
105
|
kind: "comment",
|
|
106
106
|
annotation: {
|
|
107
107
|
at: r,
|
|
108
|
-
content:
|
|
108
|
+
content: ba(u)
|
|
109
109
|
}
|
|
110
|
-
})),
|
|
110
|
+
})), o());
|
|
111
111
|
};
|
|
112
|
-
return /* @__PURE__ */ n(
|
|
112
|
+
return /* @__PURE__ */ n(Be, {
|
|
113
113
|
label: e,
|
|
114
|
-
icon: /* @__PURE__ */ n(
|
|
114
|
+
icon: /* @__PURE__ */ n(Rn, {}),
|
|
115
115
|
onOpened: () => {
|
|
116
|
-
requestAnimationFrame(() =>
|
|
116
|
+
requestAnimationFrame(() => a.current?.focus());
|
|
117
117
|
},
|
|
118
|
-
children: /* @__PURE__ */
|
|
119
|
-
className:
|
|
118
|
+
children: /* @__PURE__ */ m("div", {
|
|
119
|
+
className: ga,
|
|
120
120
|
children: [/* @__PURE__ */ n("input", {
|
|
121
|
-
ref:
|
|
122
|
-
className:
|
|
121
|
+
ref: a,
|
|
122
|
+
className: va,
|
|
123
123
|
value: l,
|
|
124
124
|
placeholder: t,
|
|
125
125
|
onChange: (g) => {
|
|
@@ -130,14 +130,14 @@ var Mn = "efjmb40", Rn = "efjmb41", ee = "efjmb42", ne = "efjmb43", la = "efjmb4
|
|
|
130
130
|
}
|
|
131
131
|
}), /* @__PURE__ */ n("button", {
|
|
132
132
|
type: "button",
|
|
133
|
-
className:
|
|
133
|
+
className: fa,
|
|
134
134
|
disabled: u.length === 0,
|
|
135
135
|
onClick: d,
|
|
136
136
|
children: i
|
|
137
137
|
})]
|
|
138
138
|
})
|
|
139
139
|
});
|
|
140
|
-
},
|
|
140
|
+
}, ba = (e) => ({
|
|
141
141
|
type: "doc",
|
|
142
142
|
content: [{
|
|
143
143
|
type: "paragraph",
|
|
@@ -146,7 +146,7 @@ var Mn = "efjmb40", Rn = "efjmb41", ee = "efjmb42", ne = "efjmb43", la = "efjmb4
|
|
|
146
146
|
text: e
|
|
147
147
|
}]
|
|
148
148
|
}]
|
|
149
|
-
}),
|
|
149
|
+
}), ya = (e) => /* @__PURE__ */ n(I, {
|
|
150
150
|
viewBox: "0 0 15 14",
|
|
151
151
|
...e,
|
|
152
152
|
children: /* @__PURE__ */ n("path", {
|
|
@@ -154,42 +154,42 @@ var Mn = "efjmb40", Rn = "efjmb41", ee = "efjmb42", ne = "efjmb43", la = "efjmb4
|
|
|
154
154
|
fill: "currentColor",
|
|
155
155
|
fillOpacity: "0.8"
|
|
156
156
|
})
|
|
157
|
-
}),
|
|
158
|
-
const { dispatch:
|
|
157
|
+
}), Sa = "relative-difference", wa = ({ label: e, layer: t, at: i, onRequestClose: r }) => {
|
|
158
|
+
const { dispatch: o } = J(), a = K((s) => s.coordSystem), l = k(() => jr({
|
|
159
159
|
layer: t,
|
|
160
160
|
at: i,
|
|
161
|
-
coordSystem:
|
|
161
|
+
coordSystem: a
|
|
162
162
|
}), [
|
|
163
163
|
t,
|
|
164
164
|
i,
|
|
165
|
-
|
|
165
|
+
a
|
|
166
166
|
]);
|
|
167
167
|
if (l === null) return null;
|
|
168
168
|
const c = () => {
|
|
169
|
-
|
|
169
|
+
o(new we({
|
|
170
170
|
kind: "differenceArrow",
|
|
171
171
|
annotation: {
|
|
172
|
-
...
|
|
172
|
+
...Wt,
|
|
173
173
|
...l,
|
|
174
|
-
label:
|
|
174
|
+
label: Sa
|
|
175
175
|
}
|
|
176
176
|
})), r();
|
|
177
177
|
};
|
|
178
|
-
return /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ m(_.Item, {
|
|
179
179
|
className: ee,
|
|
180
180
|
onClick: c,
|
|
181
|
-
children: [/* @__PURE__ */ n(
|
|
181
|
+
children: [/* @__PURE__ */ n(ya, {}), /* @__PURE__ */ n("span", {
|
|
182
182
|
className: ne,
|
|
183
183
|
children: e
|
|
184
184
|
})]
|
|
185
185
|
});
|
|
186
186
|
};
|
|
187
|
-
function
|
|
188
|
-
if (e.type === "polar" && !
|
|
187
|
+
function xa(e, t) {
|
|
188
|
+
if (e.type === "polar" && !Pa(t)) return [{
|
|
189
189
|
scope: "series",
|
|
190
190
|
labelKey: "pieSlice"
|
|
191
191
|
}];
|
|
192
|
-
const i =
|
|
192
|
+
const i = Zr(t.data, t.mapping);
|
|
193
193
|
switch (t.geom) {
|
|
194
194
|
case "bar": {
|
|
195
195
|
const r = [{
|
|
@@ -197,10 +197,10 @@ function Ca(e, t) {
|
|
|
197
197
|
labelKey: "bar"
|
|
198
198
|
}];
|
|
199
199
|
if (i) {
|
|
200
|
-
const
|
|
200
|
+
const o = t.position === "stack" || t.position === "fill";
|
|
201
201
|
r.push({
|
|
202
202
|
scope: "x-value",
|
|
203
|
-
labelKey:
|
|
203
|
+
labelKey: o ? "barStack" : "barGroup"
|
|
204
204
|
}), r.push({
|
|
205
205
|
scope: "series",
|
|
206
206
|
labelKey: "barSeries"
|
|
@@ -233,10 +233,10 @@ function Ca(e, t) {
|
|
|
233
233
|
return [];
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
var
|
|
237
|
-
const t =
|
|
238
|
-
return t !== null && t !==
|
|
239
|
-
},
|
|
236
|
+
var Pa = (e) => {
|
|
237
|
+
const t = Kr(e.mapping.x);
|
|
238
|
+
return t !== null && t !== Bt.x;
|
|
239
|
+
}, Ia = (e) => /* @__PURE__ */ m(I, {
|
|
240
240
|
viewBox: "0 0 16 16",
|
|
241
241
|
...e,
|
|
242
242
|
children: [
|
|
@@ -275,7 +275,7 @@ var Sa = (e) => {
|
|
|
275
275
|
rx: ".533"
|
|
276
276
|
})
|
|
277
277
|
]
|
|
278
|
-
}),
|
|
278
|
+
}), Ta = (e) => /* @__PURE__ */ m(I, {
|
|
279
279
|
viewBox: "0 0 16 16",
|
|
280
280
|
...e,
|
|
281
281
|
children: [
|
|
@@ -314,7 +314,7 @@ var Sa = (e) => {
|
|
|
314
314
|
rx: ".533"
|
|
315
315
|
})
|
|
316
316
|
]
|
|
317
|
-
}),
|
|
317
|
+
}), Aa = (e) => /* @__PURE__ */ m(I, {
|
|
318
318
|
viewBox: "0 0 16 16",
|
|
319
319
|
...e,
|
|
320
320
|
children: [
|
|
@@ -353,7 +353,7 @@ var Sa = (e) => {
|
|
|
353
353
|
rx: ".533"
|
|
354
354
|
})
|
|
355
355
|
]
|
|
356
|
-
}),
|
|
356
|
+
}), La = (e) => /* @__PURE__ */ m(I, {
|
|
357
357
|
viewBox: "0 0 16 16",
|
|
358
358
|
...e,
|
|
359
359
|
children: [
|
|
@@ -373,7 +373,7 @@ var Sa = (e) => {
|
|
|
373
373
|
d: "M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
374
374
|
})
|
|
375
375
|
]
|
|
376
|
-
}),
|
|
376
|
+
}), Oa = (e) => /* @__PURE__ */ m(I, {
|
|
377
377
|
viewBox: "0 0 16 16",
|
|
378
378
|
...e,
|
|
379
379
|
children: [
|
|
@@ -407,7 +407,7 @@ var Sa = (e) => {
|
|
|
407
407
|
d: "M5.29 6.62a1.3 1.3 0 0 1-.424-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.262-.45 2.1 2.1 0 0 1-.096-.699q0-.389.082-.693.083-.304.238-.514a1.05 1.05 0 0 1 .374-.322q.22-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.321-.105.54.54 0 0 0-.485.273q-.168.273-.17.75h.021a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .813.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.571.134m-.003-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.07-.294.54.54 0 0 0-.484-.285.55.55 0 0 0-.403.173.596.596 0 0 0 .108.914.53.53 0 0 0 .288.08M6.88 6.579v-.396l1.05-1.03q.15-.15.25-.27a1 1 0 0 0 .151-.229.6.6 0 0 0 .05-.236.432.432 0 0 0-.244-.405.6.6 0 0 0-.258-.056q-.15 0-.261.062a.43.43 0 0 0-.175.173.56.56 0 0 0-.06.267H6.86q0-.288.132-.5a.9.9 0 0 1 .362-.33q.231-.117.532-.117.303 0 .534.114.23.114.358.312a.8.8 0 0 1 .128.452.9.9 0 0 1-.065.334q-.065.164-.229.363-.162.2-.456.483l-.522.53v.021h1.318v.458zM10.57 6.62a1.3 1.3 0 0 1-.423-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.263-.45 2.1 2.1 0 0 1-.096-.699q0-.389.083-.693t.238-.514a1.05 1.05 0 0 1 .374-.322q.219-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.322-.105.54.54 0 0 0-.484.273q-.168.273-.17.75h.02a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .814.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.572.134m-.002-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.071-.294.54.54 0 0 0-.483-.285.54.54 0 0 0-.403.173.597.597 0 0 0 .107.914.53.53 0 0 0 .289.08"
|
|
408
408
|
})
|
|
409
409
|
]
|
|
410
|
-
}),
|
|
410
|
+
}), Na = (e) => /* @__PURE__ */ m(I, {
|
|
411
411
|
viewBox: "0 0 16 16",
|
|
412
412
|
...e,
|
|
413
413
|
children: [
|
|
@@ -448,7 +448,7 @@ var Sa = (e) => {
|
|
|
448
448
|
fillOpacity: "0.8"
|
|
449
449
|
})
|
|
450
450
|
]
|
|
451
|
-
}),
|
|
451
|
+
}), ka = (e) => /* @__PURE__ */ m(I, {
|
|
452
452
|
viewBox: "0 0 16 16",
|
|
453
453
|
...e,
|
|
454
454
|
children: [
|
|
@@ -470,7 +470,7 @@ var Sa = (e) => {
|
|
|
470
470
|
d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
|
|
471
471
|
})
|
|
472
472
|
]
|
|
473
|
-
}),
|
|
473
|
+
}), Ma = (e) => /* @__PURE__ */ m(I, {
|
|
474
474
|
viewBox: "0 0 16 16",
|
|
475
475
|
...e,
|
|
476
476
|
children: [
|
|
@@ -531,7 +531,7 @@ var Sa = (e) => {
|
|
|
531
531
|
transform: "matrix(-1 0 0 1 15.933 .533)"
|
|
532
532
|
})
|
|
533
533
|
]
|
|
534
|
-
}),
|
|
534
|
+
}), Ea = (e) => /* @__PURE__ */ m(I, {
|
|
535
535
|
viewBox: "0 0 16 16",
|
|
536
536
|
...e,
|
|
537
537
|
children: [
|
|
@@ -592,20 +592,20 @@ var Sa = (e) => {
|
|
|
592
592
|
transform: "matrix(-1 0 0 1 15.933 .533)"
|
|
593
593
|
})
|
|
594
594
|
]
|
|
595
|
-
}),
|
|
596
|
-
bar:
|
|
597
|
-
barGroup:
|
|
598
|
-
barStack:
|
|
599
|
-
barSeries:
|
|
600
|
-
linePoint:
|
|
601
|
-
lineSeries:
|
|
602
|
-
scatterPoint:
|
|
603
|
-
scatterSeries:
|
|
604
|
-
pieSlice:
|
|
605
|
-
},
|
|
606
|
-
const t =
|
|
595
|
+
}), _a = {
|
|
596
|
+
bar: Ia,
|
|
597
|
+
barGroup: Ta,
|
|
598
|
+
barStack: La,
|
|
599
|
+
barSeries: Aa,
|
|
600
|
+
linePoint: Oa,
|
|
601
|
+
lineSeries: Na,
|
|
602
|
+
scatterPoint: Ma,
|
|
603
|
+
scatterSeries: Ea,
|
|
604
|
+
pieSlice: ka
|
|
605
|
+
}, Hn = ({ labelKey: e }) => {
|
|
606
|
+
const t = _a[e];
|
|
607
607
|
return /* @__PURE__ */ n(t, {});
|
|
608
|
-
},
|
|
608
|
+
}, Vn = (e) => /* @__PURE__ */ m(I, {
|
|
609
609
|
viewBox: "0 0 16 16",
|
|
610
610
|
...e,
|
|
611
611
|
children: [/* @__PURE__ */ n("path", {
|
|
@@ -618,70 +618,70 @@ var Sa = (e) => {
|
|
|
618
618
|
fill: "currentColor",
|
|
619
619
|
fillOpacity: "0.8"
|
|
620
620
|
})]
|
|
621
|
-
}),
|
|
622
|
-
const r =
|
|
623
|
-
return /* @__PURE__ */ n(
|
|
621
|
+
}), Ra = ({ label: e, options: t, onSelect: i }) => {
|
|
622
|
+
const r = A();
|
|
623
|
+
return /* @__PURE__ */ n(Be, {
|
|
624
624
|
label: e,
|
|
625
|
-
icon: /* @__PURE__ */ n(
|
|
626
|
-
children: t.map((
|
|
625
|
+
icon: /* @__PURE__ */ n(Vn, {}),
|
|
626
|
+
children: t.map((o) => /* @__PURE__ */ m(X.Item, {
|
|
627
627
|
className: ee,
|
|
628
|
-
onClick: () => i(
|
|
629
|
-
children: [/* @__PURE__ */ n(
|
|
628
|
+
onClick: () => i(o.scope),
|
|
629
|
+
children: [/* @__PURE__ */ n(Hn, { labelKey: o.labelKey }), /* @__PURE__ */ n("span", {
|
|
630
630
|
className: ne,
|
|
631
|
-
children: r(`graph.annotations.highlights.labels.${
|
|
631
|
+
children: r(`graph.annotations.highlights.labels.${o.labelKey}`)
|
|
632
632
|
})]
|
|
633
|
-
},
|
|
633
|
+
}, o.scope))
|
|
634
634
|
});
|
|
635
|
-
},
|
|
636
|
-
const
|
|
637
|
-
const
|
|
638
|
-
return u.filter((g) => !
|
|
635
|
+
}, Da = ({ label: e, layer: t, observation: i, highlights: r, onRequestClose: o }) => {
|
|
636
|
+
const a = A(), { dispatch: l } = J(), c = K((p) => p.coordSystem), s = k(() => zr(t, i), [t, i]), u = k(() => xa(c, t), [c, t]), d = k(() => {
|
|
637
|
+
const p = new Set(r.map((g) => g.scope));
|
|
638
|
+
return u.filter((g) => !p.has(g.scope));
|
|
639
639
|
}, [u, r]), [h] = d;
|
|
640
640
|
if (s === null || h === void 0) return null;
|
|
641
|
-
const v = (
|
|
641
|
+
const v = (p) => {
|
|
642
642
|
l(new Ft({
|
|
643
643
|
predicate: s,
|
|
644
|
-
scope:
|
|
644
|
+
scope: p,
|
|
645
645
|
layerId: t.id
|
|
646
|
-
})),
|
|
646
|
+
})), o();
|
|
647
647
|
};
|
|
648
648
|
if (d.length === 1) {
|
|
649
|
-
const
|
|
650
|
-
return /* @__PURE__ */
|
|
649
|
+
const p = u.length === 1 ? e : a("graph.annotations.baseMenu.highlightWithLabel", { label: a(`graph.annotations.highlights.labels.${h.labelKey}`) });
|
|
650
|
+
return /* @__PURE__ */ m(X.Item, {
|
|
651
651
|
className: ee,
|
|
652
652
|
onClick: () => v(h.scope),
|
|
653
|
-
children: [/* @__PURE__ */ n(
|
|
653
|
+
children: [/* @__PURE__ */ n(Hn, { labelKey: h.labelKey }), /* @__PURE__ */ n("span", {
|
|
654
654
|
className: ne,
|
|
655
|
-
children:
|
|
655
|
+
children: p
|
|
656
656
|
})]
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
return /* @__PURE__ */ n(
|
|
659
|
+
return /* @__PURE__ */ n(Ra, {
|
|
660
660
|
label: e,
|
|
661
661
|
options: d,
|
|
662
662
|
onSelect: v
|
|
663
663
|
});
|
|
664
|
-
},
|
|
665
|
-
className:
|
|
664
|
+
}, za = "_1aafi1g0", Ha = "_1aafi1g1", Fn = ({ children: e }) => /* @__PURE__ */ m("span", {
|
|
665
|
+
className: za,
|
|
666
666
|
"aria-hidden": "true",
|
|
667
|
-
children: [e, /* @__PURE__ */ n("span", { className:
|
|
668
|
-
}),
|
|
669
|
-
const { dispatch: r } = J(),
|
|
670
|
-
if (
|
|
671
|
-
const
|
|
672
|
-
r(new
|
|
667
|
+
children: [e, /* @__PURE__ */ n("span", { className: Ha })]
|
|
668
|
+
}), Va = ({ label: e, highlights: t, onRequestClose: i }) => {
|
|
669
|
+
const { dispatch: r } = J(), o = t.at(-1);
|
|
670
|
+
if (o === void 0) return null;
|
|
671
|
+
const a = () => {
|
|
672
|
+
r(new Zt({ id: o.id })), i();
|
|
673
673
|
};
|
|
674
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ m(_.Item, {
|
|
675
675
|
className: ee,
|
|
676
|
-
onClick:
|
|
677
|
-
children: [/* @__PURE__ */ n(Fn, { children: /* @__PURE__ */ n(
|
|
676
|
+
onClick: a,
|
|
677
|
+
children: [/* @__PURE__ */ n(Fn, { children: /* @__PURE__ */ n(Vn, {}) }), /* @__PURE__ */ n("span", {
|
|
678
678
|
className: ne,
|
|
679
679
|
children: e
|
|
680
680
|
})]
|
|
681
681
|
});
|
|
682
|
-
},
|
|
683
|
-
const i =
|
|
684
|
-
return
|
|
682
|
+
}, Fa = (e, t) => {
|
|
683
|
+
const i = K((o) => o.spec.highlights), r = K((o) => o.config.parsingLocale);
|
|
684
|
+
return k(() => Gr({
|
|
685
685
|
layer: e,
|
|
686
686
|
highlights: i,
|
|
687
687
|
observation: t,
|
|
@@ -692,7 +692,7 @@ var Sa = (e) => {
|
|
|
692
692
|
t,
|
|
693
693
|
r
|
|
694
694
|
]);
|
|
695
|
-
},
|
|
695
|
+
}, Bn = (e) => /* @__PURE__ */ m(I, {
|
|
696
696
|
viewBox: "0 0 16 16",
|
|
697
697
|
...e,
|
|
698
698
|
children: [
|
|
@@ -715,22 +715,22 @@ var Sa = (e) => {
|
|
|
715
715
|
fillOpacity: "0.8"
|
|
716
716
|
})
|
|
717
717
|
]
|
|
718
|
-
}),
|
|
719
|
-
const { dispatch: r } = J(),
|
|
720
|
-
r(new
|
|
718
|
+
}), Ba = ({ label: e, at: t, onRequestClose: i }) => {
|
|
719
|
+
const { dispatch: r } = J(), o = () => {
|
|
720
|
+
r(new we({
|
|
721
721
|
kind: "pinnedNumber",
|
|
722
722
|
annotation: { at: t }
|
|
723
723
|
})), i();
|
|
724
724
|
};
|
|
725
|
-
return /* @__PURE__ */
|
|
725
|
+
return /* @__PURE__ */ m(_.Item, {
|
|
726
726
|
className: ee,
|
|
727
|
-
onClick:
|
|
728
|
-
children: [/* @__PURE__ */ n(
|
|
727
|
+
onClick: o,
|
|
728
|
+
children: [/* @__PURE__ */ n(Bn, {}), /* @__PURE__ */ n("span", {
|
|
729
729
|
className: ne,
|
|
730
730
|
children: e
|
|
731
731
|
})]
|
|
732
732
|
});
|
|
733
|
-
},
|
|
733
|
+
}, Kn = (e) => /* @__PURE__ */ m(I, {
|
|
734
734
|
viewBox: "0 0 16 16",
|
|
735
735
|
...e,
|
|
736
736
|
children: [
|
|
@@ -763,69 +763,69 @@ var Sa = (e) => {
|
|
|
763
763
|
fillOpacity: "0.8"
|
|
764
764
|
})
|
|
765
765
|
]
|
|
766
|
-
}),
|
|
766
|
+
}), Gn = {
|
|
767
767
|
pinnedNumber: {
|
|
768
|
-
icon:
|
|
768
|
+
icon: Bn,
|
|
769
769
|
labelKey: "graph.annotations.baseMenu.unpinNumber"
|
|
770
770
|
},
|
|
771
771
|
comment: {
|
|
772
|
-
icon:
|
|
772
|
+
icon: Rn,
|
|
773
773
|
labelKey: "graph.annotations.baseMenu.removeAnnotation"
|
|
774
774
|
},
|
|
775
775
|
sticker: {
|
|
776
|
-
icon:
|
|
776
|
+
icon: Kn,
|
|
777
777
|
labelKey: "graph.annotations.baseMenu.removeSticker"
|
|
778
778
|
},
|
|
779
779
|
image: null
|
|
780
|
-
},
|
|
781
|
-
const i =
|
|
782
|
-
r(new
|
|
780
|
+
}, Ka = (e) => Xr(e.kind) && Gn[e.kind] !== null, Ga = ({ attachment: e, onRequestClose: t }) => {
|
|
781
|
+
const i = A(), { dispatch: r } = J(), { icon: o, labelKey: a } = Gn[e.kind], l = () => {
|
|
782
|
+
r(new ze({ id: e.annotation.id })), t();
|
|
783
783
|
};
|
|
784
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ m(_.Item, {
|
|
785
785
|
className: ee,
|
|
786
786
|
onClick: l,
|
|
787
|
-
children: [/* @__PURE__ */ n(Fn, { children: /* @__PURE__ */ n(
|
|
787
|
+
children: [/* @__PURE__ */ n(Fn, { children: /* @__PURE__ */ n(o, {}) }), /* @__PURE__ */ n("span", {
|
|
788
788
|
className: ne,
|
|
789
|
-
children: i(
|
|
789
|
+
children: i(a)
|
|
790
790
|
})]
|
|
791
791
|
});
|
|
792
|
-
},
|
|
793
|
-
const { dispatch: r } = J(),
|
|
794
|
-
r(new
|
|
792
|
+
}, Ua = "ceeojg0", Wa = "ceeojg1", qa = "ceeojg2", $a = ({ label: e, at: t, onRequestClose: i }) => {
|
|
793
|
+
const { dispatch: r } = J(), o = (a) => {
|
|
794
|
+
r(new we({
|
|
795
795
|
kind: "sticker",
|
|
796
796
|
annotation: {
|
|
797
797
|
at: {
|
|
798
798
|
anchorType: "observation",
|
|
799
799
|
...t
|
|
800
800
|
},
|
|
801
|
-
sticker:
|
|
801
|
+
sticker: a
|
|
802
802
|
}
|
|
803
803
|
})), i();
|
|
804
804
|
};
|
|
805
|
-
return /* @__PURE__ */ n(
|
|
805
|
+
return /* @__PURE__ */ n(Be, {
|
|
806
806
|
label: e,
|
|
807
|
-
icon: /* @__PURE__ */ n(
|
|
807
|
+
icon: /* @__PURE__ */ n(Kn, {}),
|
|
808
808
|
children: /* @__PURE__ */ n("div", {
|
|
809
|
-
className:
|
|
810
|
-
children: Object.entries(
|
|
811
|
-
className:
|
|
812
|
-
"aria-label":
|
|
813
|
-
onClick: () => a
|
|
809
|
+
className: Ua,
|
|
810
|
+
children: Object.entries(Dt).map(([a, l]) => /* @__PURE__ */ n(X.Item, {
|
|
811
|
+
className: Wa,
|
|
812
|
+
"aria-label": a,
|
|
813
|
+
onClick: () => o(a),
|
|
814
814
|
children: /* @__PURE__ */ n("img", {
|
|
815
|
-
className:
|
|
815
|
+
className: qa,
|
|
816
816
|
src: l.src,
|
|
817
|
-
alt:
|
|
817
|
+
alt: a
|
|
818
818
|
})
|
|
819
|
-
},
|
|
819
|
+
}, a))
|
|
820
820
|
})
|
|
821
821
|
});
|
|
822
|
-
},
|
|
823
|
-
const i =
|
|
822
|
+
}, Za = ({ interaction: e, panelOrigin: t }) => {
|
|
823
|
+
const i = q(), r = ve((a) => a.menuTrigger);
|
|
824
824
|
if (e.kind !== "menu" || r === null) return null;
|
|
825
|
-
const
|
|
825
|
+
const o = () => {
|
|
826
826
|
i.getState().releaseInteraction("menu");
|
|
827
827
|
};
|
|
828
|
-
return /* @__PURE__ */ n(
|
|
828
|
+
return /* @__PURE__ */ n(ja, {
|
|
829
829
|
trigger: {
|
|
830
830
|
x: t.x + r.center.x,
|
|
831
831
|
y: t.y + r.center.y,
|
|
@@ -834,104 +834,104 @@ var Sa = (e) => {
|
|
|
834
834
|
layer: e.anchor.layer,
|
|
835
835
|
at: e.anchor.at,
|
|
836
836
|
observation: e.anchor.observation,
|
|
837
|
-
onClose:
|
|
837
|
+
onClose: o
|
|
838
838
|
});
|
|
839
|
-
},
|
|
840
|
-
const
|
|
839
|
+
}, ja = ({ trigger: e, layer: t, at: i, observation: r, onClose: o }) => {
|
|
840
|
+
const a = A(), l = Fe(), c = K((f) => f.spec.annotations), s = K((f) => f.config.parsingLocale), u = Ya(), { x: d, y: h, radius: v } = e, p = k(() => Xa(d, h, v), [
|
|
841
841
|
d,
|
|
842
842
|
h,
|
|
843
843
|
v
|
|
844
|
-
]), g =
|
|
845
|
-
!f &&
|
|
844
|
+
]), g = Ur(c, i, k(() => Fr(t, s), [t, s])), S = g !== null && Ka(g) ? g : null, P = Fa(t, r), y = (f, x) => {
|
|
845
|
+
!f && Qa(x.reason) && o();
|
|
846
846
|
};
|
|
847
|
-
return /* @__PURE__ */ n(
|
|
847
|
+
return /* @__PURE__ */ n(_.Root, {
|
|
848
848
|
open: u,
|
|
849
849
|
modal: !1,
|
|
850
|
-
onOpenChange:
|
|
851
|
-
children: /* @__PURE__ */ n(
|
|
850
|
+
onOpenChange: y,
|
|
851
|
+
children: /* @__PURE__ */ n(_.Portal, {
|
|
852
852
|
container: l,
|
|
853
|
-
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(
|
|
854
|
-
anchor:
|
|
853
|
+
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(_.Positioner, {
|
|
854
|
+
anchor: p,
|
|
855
855
|
side: "right",
|
|
856
856
|
align: "start",
|
|
857
857
|
sideOffset: 8,
|
|
858
|
-
className:
|
|
859
|
-
...
|
|
860
|
-
children: /* @__PURE__ */
|
|
861
|
-
className:
|
|
858
|
+
className: Dn,
|
|
859
|
+
...Mn,
|
|
860
|
+
children: /* @__PURE__ */ m(_.Popup, {
|
|
861
|
+
className: zn,
|
|
862
862
|
"data-testid": "observation-menu",
|
|
863
863
|
children: [
|
|
864
|
-
|
|
865
|
-
attachment:
|
|
866
|
-
onRequestClose:
|
|
864
|
+
S !== null && /* @__PURE__ */ n(Ga, {
|
|
865
|
+
attachment: S,
|
|
866
|
+
onRequestClose: o
|
|
867
867
|
}),
|
|
868
|
-
/* @__PURE__ */ n(
|
|
869
|
-
label:
|
|
870
|
-
highlights:
|
|
871
|
-
onRequestClose:
|
|
868
|
+
/* @__PURE__ */ n(Va, {
|
|
869
|
+
label: a("graph.annotations.baseMenu.removeHighlight"),
|
|
870
|
+
highlights: P,
|
|
871
|
+
onRequestClose: o
|
|
872
872
|
}),
|
|
873
|
-
/* @__PURE__ */ n(
|
|
874
|
-
|
|
875
|
-
/* @__PURE__ */ n(
|
|
876
|
-
label:
|
|
873
|
+
/* @__PURE__ */ n(_.Separator, { className: ha }),
|
|
874
|
+
S === null && /* @__PURE__ */ m(W, { children: [
|
|
875
|
+
/* @__PURE__ */ n(Ba, {
|
|
876
|
+
label: a("graph.annotations.baseMenu.pinNumber"),
|
|
877
877
|
at: i,
|
|
878
|
-
onRequestClose:
|
|
878
|
+
onRequestClose: o
|
|
879
879
|
}),
|
|
880
|
-
/* @__PURE__ */ n(
|
|
881
|
-
label:
|
|
882
|
-
placeholder:
|
|
883
|
-
addLabel:
|
|
880
|
+
/* @__PURE__ */ n(Ca, {
|
|
881
|
+
label: a("graph.annotations.baseMenu.annotate"),
|
|
882
|
+
placeholder: a("graph.annotations.textMenu.placeholder"),
|
|
883
|
+
addLabel: a("graph.annotations.textMenu.addButton"),
|
|
884
884
|
at: i,
|
|
885
|
-
onRequestClose:
|
|
885
|
+
onRequestClose: o
|
|
886
886
|
}),
|
|
887
|
-
/* @__PURE__ */ n(
|
|
888
|
-
label:
|
|
887
|
+
/* @__PURE__ */ n($a, {
|
|
888
|
+
label: a("graph.annotations.baseMenu.addSticker"),
|
|
889
889
|
at: i,
|
|
890
|
-
onRequestClose:
|
|
890
|
+
onRequestClose: o
|
|
891
891
|
})
|
|
892
892
|
] }),
|
|
893
|
-
t.highlight !== null && /* @__PURE__ */ n(
|
|
894
|
-
label:
|
|
893
|
+
t.highlight !== null && /* @__PURE__ */ n(Da, {
|
|
894
|
+
label: a("graph.annotations.baseMenu.highlight"),
|
|
895
895
|
layer: t,
|
|
896
896
|
observation: r,
|
|
897
|
-
highlights:
|
|
898
|
-
onRequestClose:
|
|
897
|
+
highlights: P,
|
|
898
|
+
onRequestClose: o
|
|
899
899
|
}),
|
|
900
|
-
/* @__PURE__ */ n(
|
|
901
|
-
label:
|
|
900
|
+
/* @__PURE__ */ n(wa, {
|
|
901
|
+
label: a("graph.annotations.baseMenu.differenceArrow"),
|
|
902
902
|
layer: t,
|
|
903
903
|
at: i,
|
|
904
|
-
onRequestClose:
|
|
904
|
+
onRequestClose: o
|
|
905
905
|
})
|
|
906
906
|
]
|
|
907
907
|
})
|
|
908
908
|
}) })
|
|
909
909
|
})
|
|
910
910
|
});
|
|
911
|
-
},
|
|
911
|
+
}, Xa = (e, t, i) => ({ getBoundingClientRect: () => new DOMRect(e - i, t - i, i * 2, i * 2) }), Ya = () => {
|
|
912
912
|
const [e, t] = $(!1);
|
|
913
|
-
return
|
|
913
|
+
return V(() => {
|
|
914
914
|
t(!0);
|
|
915
915
|
}, []), e;
|
|
916
|
-
},
|
|
917
|
-
const e =
|
|
918
|
-
return
|
|
919
|
-
},
|
|
916
|
+
}, Qa = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", Ja = () => {
|
|
917
|
+
const e = wn();
|
|
918
|
+
return Un(e);
|
|
919
|
+
}, Un = (e) => {
|
|
920
920
|
if (e.length !== 1) return null;
|
|
921
921
|
const [t] = e;
|
|
922
922
|
return t?.kind === "annotation" ? t.id : null;
|
|
923
|
-
},
|
|
923
|
+
}, eo = (e) => /* @__PURE__ */ n(I, {
|
|
924
924
|
...e,
|
|
925
|
-
children: /* @__PURE__ */
|
|
925
|
+
children: /* @__PURE__ */ m("g", {
|
|
926
926
|
stroke: "currentColor",
|
|
927
927
|
strokeWidth: 2,
|
|
928
928
|
strokeLinecap: "round",
|
|
929
929
|
strokeLinejoin: "round",
|
|
930
930
|
children: [/* @__PURE__ */ n("path", { d: "M4 9h16m-4-4 4 4" }), /* @__PURE__ */ n("path", { d: "M20 15H4m4 4-4-4" })]
|
|
931
931
|
})
|
|
932
|
-
}),
|
|
932
|
+
}), no = (e) => /* @__PURE__ */ n(I, {
|
|
933
933
|
...e,
|
|
934
|
-
children: /* @__PURE__ */
|
|
934
|
+
children: /* @__PURE__ */ m("g", {
|
|
935
935
|
stroke: "currentColor",
|
|
936
936
|
strokeWidth: 2,
|
|
937
937
|
strokeLinecap: "round",
|
|
@@ -943,43 +943,43 @@ var Sa = (e) => {
|
|
|
943
943
|
/* @__PURE__ */ n("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" })
|
|
944
944
|
]
|
|
945
945
|
})
|
|
946
|
-
}),
|
|
947
|
-
var
|
|
948
|
-
var
|
|
946
|
+
}), to = { kind: "chrome-popup" }, ro = "var(--q7gcrz0)", ao = "var(--q7gcrz1)", oo = "q7gcrz2", io = "q7gcrz3";
|
|
947
|
+
var lo = "q7gcrz5", so = "q7gcrz6", co = "q7gcrz7", ho = "q7gcrz8", Wn = "q7gcrz9", uo = "q7gcrza";
|
|
948
|
+
var nn = "q7gcrzd q7gcrzc", qn = "q7gcrze q7gcrzc", mo = [
|
|
949
949
|
"absolute-difference",
|
|
950
950
|
"relative-difference",
|
|
951
951
|
"proportion"
|
|
952
|
-
],
|
|
952
|
+
], tn = ["absolute-difference", "relative-difference"], po = ["relative-difference", "proportion"], go = {
|
|
953
953
|
"absolute-difference": "graph.annotations.differenceArrowToolbar.labelKind.absoluteDifference",
|
|
954
954
|
"relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
|
|
955
955
|
proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
|
|
956
|
-
},
|
|
957
|
-
const { formattingLocale: t } =
|
|
958
|
-
return
|
|
959
|
-
const
|
|
960
|
-
return
|
|
961
|
-
kind:
|
|
962
|
-
nameKey:
|
|
963
|
-
preview:
|
|
956
|
+
}, vo = (e) => {
|
|
957
|
+
const { formattingLocale: t } = G(), i = K((o) => o.config.parsingLocale), r = t ?? i;
|
|
958
|
+
return k(() => {
|
|
959
|
+
const o = Er(e.start, e.end);
|
|
960
|
+
return mo.filter((a) => o || !tn.includes(a) || a === e.label).map((a) => ({
|
|
961
|
+
kind: a,
|
|
962
|
+
nameKey: go[a],
|
|
963
|
+
preview: qr({
|
|
964
964
|
locale: r,
|
|
965
|
-
kind:
|
|
965
|
+
kind: a,
|
|
966
966
|
startValue: e.start.measurementValue,
|
|
967
967
|
endValue: e.end.measurementValue,
|
|
968
968
|
valueFormat: e.start.valueFormat
|
|
969
969
|
}),
|
|
970
|
-
isPickable:
|
|
971
|
-
isSuspect:
|
|
970
|
+
isPickable: o || !tn.includes(a),
|
|
971
|
+
isSuspect: po.includes(a) && e.start.measurementValue === 0
|
|
972
972
|
}));
|
|
973
973
|
}, [e, r]);
|
|
974
|
-
}, ie = 8,
|
|
975
|
-
const
|
|
974
|
+
}, ie = 8, fo = ({ labelBox: e, panelRect: t, frameWidth: i, frameHeight: r }) => {
|
|
975
|
+
const o = t.y + e.y, a = o + e.height, l = o - 8 - 36, c = a + 8, s = Co(ie, l >= ie ? l : c, r - ie - 36), u = ie;
|
|
976
976
|
return {
|
|
977
977
|
top: s,
|
|
978
978
|
left: u,
|
|
979
979
|
available: Math.max(0, i - ie * 2),
|
|
980
980
|
centre: t.x + e.x + e.width / 2 - u
|
|
981
981
|
};
|
|
982
|
-
},
|
|
982
|
+
}, Co = (e, t, i) => Math.max(e, Math.min(t, i)), Te = [
|
|
983
983
|
{
|
|
984
984
|
id: "small",
|
|
985
985
|
nameKey: "graph.annotations.differenceArrowToolbar.size.small"
|
|
@@ -992,93 +992,93 @@ var Je = "q7gcrzd q7gcrzc", Un = "q7gcrze q7gcrzc", so = [
|
|
|
992
992
|
id: "large",
|
|
993
993
|
nameKey: "graph.annotations.differenceArrowToolbar.size.large"
|
|
994
994
|
}
|
|
995
|
-
],
|
|
996
|
-
const l =
|
|
995
|
+
], bo = ({ arrow: e, labelBox: t, panelRect: i, frameWidth: r, frameHeight: o, frameElement: a }) => {
|
|
996
|
+
const l = A(), { chartId: c, commands: s } = G(), u = q(), [d, h] = $(null), v = vo(e), p = fo({
|
|
997
997
|
labelBox: t,
|
|
998
998
|
panelRect: i,
|
|
999
999
|
frameWidth: r,
|
|
1000
|
-
frameHeight:
|
|
1001
|
-
}), g = (
|
|
1002
|
-
s.dispatch(new
|
|
1000
|
+
frameHeight: o
|
|
1001
|
+
}), g = (y, f) => {
|
|
1002
|
+
s.dispatch(new Pn({
|
|
1003
1003
|
kind: "differenceArrow",
|
|
1004
1004
|
id: e.id,
|
|
1005
|
-
patch:
|
|
1005
|
+
patch: y
|
|
1006
1006
|
}), f);
|
|
1007
1007
|
};
|
|
1008
|
-
|
|
1009
|
-
const { claimInteraction:
|
|
1010
|
-
return d === null ? f("chrome-popup") :
|
|
1008
|
+
V(() => () => s.seal(), [s]), V(() => {
|
|
1009
|
+
const { claimInteraction: y, releaseInteraction: f } = u.getState();
|
|
1010
|
+
return d === null ? f("chrome-popup") : y(to), () => f("chrome-popup");
|
|
1011
1011
|
}, [u, d]);
|
|
1012
|
-
const
|
|
1013
|
-
h(
|
|
1014
|
-
},
|
|
1015
|
-
s.dispatch(new
|
|
1012
|
+
const S = (y) => {
|
|
1013
|
+
h(y ? "color" : null), y || s.seal();
|
|
1014
|
+
}, P = () => {
|
|
1015
|
+
s.dispatch(new ze({ id: e.id })), a.focus({ preventScroll: !0 });
|
|
1016
1016
|
};
|
|
1017
1017
|
return /* @__PURE__ */ n("div", {
|
|
1018
|
-
className:
|
|
1018
|
+
className: oo,
|
|
1019
1019
|
style: {
|
|
1020
|
-
top:
|
|
1021
|
-
left:
|
|
1022
|
-
width:
|
|
1020
|
+
top: p.top,
|
|
1021
|
+
left: p.left,
|
|
1022
|
+
width: p.available
|
|
1023
1023
|
},
|
|
1024
|
-
children: /* @__PURE__ */
|
|
1024
|
+
children: /* @__PURE__ */ m(j.Root, {
|
|
1025
1025
|
"aria-label": l("graph.annotations.differenceArrowToolbar.label"),
|
|
1026
|
-
className:
|
|
1026
|
+
className: io,
|
|
1027
1027
|
"data-testid": "difference-arrow-toolbar",
|
|
1028
|
-
...
|
|
1029
|
-
style:
|
|
1030
|
-
[
|
|
1031
|
-
[
|
|
1028
|
+
...be(c),
|
|
1029
|
+
style: On({
|
|
1030
|
+
[ro]: `${p.centre}px`,
|
|
1031
|
+
[ao]: `${p.available}px`
|
|
1032
1032
|
}),
|
|
1033
1033
|
children: [
|
|
1034
|
-
/* @__PURE__ */ n(
|
|
1034
|
+
/* @__PURE__ */ n(yo, {
|
|
1035
1035
|
options: v,
|
|
1036
1036
|
current: e.label,
|
|
1037
1037
|
isOpen: d === "labelKind",
|
|
1038
|
-
onOpenChange: (
|
|
1039
|
-
onPick: (
|
|
1040
|
-
g({ label:
|
|
1038
|
+
onOpenChange: (y) => h(y ? "labelKind" : null),
|
|
1039
|
+
onPick: (y) => {
|
|
1040
|
+
g({ label: y }), h(null);
|
|
1041
1041
|
}
|
|
1042
1042
|
}),
|
|
1043
|
-
/* @__PURE__ */ n(
|
|
1044
|
-
/* @__PURE__ */ n(
|
|
1043
|
+
/* @__PURE__ */ n(j.Separator, {}),
|
|
1044
|
+
/* @__PURE__ */ n(j.ColorPicker, {
|
|
1045
1045
|
color: e.color,
|
|
1046
1046
|
label: l("graph.annotations.differenceArrowToolbar.color"),
|
|
1047
|
-
onChange: (
|
|
1047
|
+
onChange: (y) => g({ color: y }, { transient: !0 }),
|
|
1048
1048
|
isOpen: d === "color",
|
|
1049
|
-
onOpenChange:
|
|
1050
|
-
popupAttributes:
|
|
1049
|
+
onOpenChange: S,
|
|
1050
|
+
popupAttributes: be(c),
|
|
1051
1051
|
children: /* @__PURE__ */ n("span", {
|
|
1052
|
-
className:
|
|
1052
|
+
className: so,
|
|
1053
1053
|
style: { background: e.color ?? "transparent" }
|
|
1054
1054
|
})
|
|
1055
1055
|
}),
|
|
1056
|
-
/* @__PURE__ */ n(
|
|
1056
|
+
/* @__PURE__ */ n(So, {
|
|
1057
1057
|
current: e.size,
|
|
1058
1058
|
isOpen: d === "size",
|
|
1059
|
-
onOpenChange: (
|
|
1060
|
-
onPick: (
|
|
1061
|
-
g({ size:
|
|
1059
|
+
onOpenChange: (y) => h(y ? "size" : null),
|
|
1060
|
+
onPick: (y) => {
|
|
1061
|
+
g({ size: y }), h(null);
|
|
1062
1062
|
}
|
|
1063
1063
|
}),
|
|
1064
|
-
/* @__PURE__ */ n(
|
|
1065
|
-
/* @__PURE__ */ n(
|
|
1064
|
+
/* @__PURE__ */ n(j.Separator, {}),
|
|
1065
|
+
/* @__PURE__ */ n(j.Button, {
|
|
1066
1066
|
"aria-label": l("graph.annotations.differenceArrowToolbar.swap"),
|
|
1067
|
-
className:
|
|
1067
|
+
className: nn,
|
|
1068
1068
|
onClick: () => g({
|
|
1069
1069
|
start: e.end.anchor,
|
|
1070
1070
|
end: e.start.anchor
|
|
1071
1071
|
}),
|
|
1072
|
-
children: /* @__PURE__ */ n(
|
|
1072
|
+
children: /* @__PURE__ */ n(eo, {
|
|
1073
1073
|
size: "sm",
|
|
1074
1074
|
title: ""
|
|
1075
1075
|
})
|
|
1076
1076
|
}),
|
|
1077
|
-
/* @__PURE__ */ n(
|
|
1077
|
+
/* @__PURE__ */ n(j.Button, {
|
|
1078
1078
|
"aria-label": l("graph.annotations.differenceArrowToolbar.remove"),
|
|
1079
|
-
className:
|
|
1080
|
-
onClick:
|
|
1081
|
-
children: /* @__PURE__ */ n(
|
|
1079
|
+
className: nn,
|
|
1080
|
+
onClick: P,
|
|
1081
|
+
children: /* @__PURE__ */ n(no, {
|
|
1082
1082
|
size: "sm",
|
|
1083
1083
|
title: ""
|
|
1084
1084
|
})
|
|
@@ -1086,24 +1086,24 @@ var Je = "q7gcrzd q7gcrzc", Un = "q7gcrze q7gcrzc", so = [
|
|
|
1086
1086
|
]
|
|
1087
1087
|
})
|
|
1088
1088
|
});
|
|
1089
|
-
},
|
|
1090
|
-
const
|
|
1091
|
-
return /* @__PURE__ */
|
|
1089
|
+
}, yo = ({ options: e, current: t, isOpen: i, onOpenChange: r, onPick: o }) => {
|
|
1090
|
+
const a = A(), l = e.find((s) => s.kind === t), c = e.some((s) => s.isPickable && s.kind !== t);
|
|
1091
|
+
return /* @__PURE__ */ m(_.Root, {
|
|
1092
1092
|
open: i,
|
|
1093
1093
|
modal: !1,
|
|
1094
1094
|
onOpenChange: r,
|
|
1095
|
-
children: [/* @__PURE__ */
|
|
1096
|
-
render: /* @__PURE__ */ n(
|
|
1097
|
-
"aria-label":
|
|
1098
|
-
className:
|
|
1095
|
+
children: [/* @__PURE__ */ m(_.Trigger, {
|
|
1096
|
+
render: /* @__PURE__ */ n(j.Button, {}),
|
|
1097
|
+
"aria-label": a("graph.annotations.differenceArrowToolbar.labelKind.ariaLabel"),
|
|
1098
|
+
className: qn,
|
|
1099
1099
|
disabled: !c,
|
|
1100
1100
|
onMouseDown: (s) => s.preventDefault(),
|
|
1101
1101
|
children: [
|
|
1102
1102
|
/* @__PURE__ */ n("span", {
|
|
1103
|
-
className:
|
|
1104
|
-
children: l === void 0 ? "" :
|
|
1103
|
+
className: lo,
|
|
1104
|
+
children: l === void 0 ? "" : a(l.nameKey)
|
|
1105
1105
|
}),
|
|
1106
|
-
l !== void 0 && /* @__PURE__ */
|
|
1106
|
+
l !== void 0 && /* @__PURE__ */ m("span", {
|
|
1107
1107
|
className: "q7gcrz4",
|
|
1108
1108
|
children: [
|
|
1109
1109
|
"(",
|
|
@@ -1113,89 +1113,89 @@ var Je = "q7gcrzd q7gcrzc", Un = "q7gcrze q7gcrzc", so = [
|
|
|
1113
1113
|
}),
|
|
1114
1114
|
/* @__PURE__ */ n(Se, { size: "sm" })
|
|
1115
1115
|
]
|
|
1116
|
-
}), /* @__PURE__ */ n(
|
|
1117
|
-
className:
|
|
1116
|
+
}), /* @__PURE__ */ n($n, { children: e.map((s) => /* @__PURE__ */ m(_.Item, {
|
|
1117
|
+
className: Wn,
|
|
1118
1118
|
"data-selected": s.kind === t,
|
|
1119
1119
|
disabled: !s.isPickable,
|
|
1120
|
-
onClick: () =>
|
|
1120
|
+
onClick: () => o(s.kind),
|
|
1121
1121
|
children: [
|
|
1122
|
-
/* @__PURE__ */ n("span", { children:
|
|
1122
|
+
/* @__PURE__ */ n("span", { children: a(s.nameKey) }),
|
|
1123
1123
|
(s.isSuspect || !s.isPickable) && /* @__PURE__ */ n("span", {
|
|
1124
|
-
"aria-label":
|
|
1124
|
+
"aria-label": a(s.isPickable ? "graph.annotations.differenceArrowToolbar.labelKind.suspectValue" : "graph.annotations.differenceArrowToolbar.labelKind.incomparableEnds"),
|
|
1125
1125
|
className: "q7gcrzb",
|
|
1126
1126
|
role: "img",
|
|
1127
1127
|
children: "⚠"
|
|
1128
1128
|
}),
|
|
1129
1129
|
/* @__PURE__ */ n("span", {
|
|
1130
|
-
className:
|
|
1130
|
+
className: uo,
|
|
1131
1131
|
children: s.preview
|
|
1132
1132
|
})
|
|
1133
1133
|
]
|
|
1134
1134
|
}, s.kind)) })]
|
|
1135
1135
|
});
|
|
1136
|
-
},
|
|
1137
|
-
const
|
|
1138
|
-
return /* @__PURE__ */
|
|
1136
|
+
}, So = ({ current: e, isOpen: t, onOpenChange: i, onPick: r }) => {
|
|
1137
|
+
const o = A(), a = Te.find((l) => l.id === e) ?? Te[0];
|
|
1138
|
+
return /* @__PURE__ */ m(_.Root, {
|
|
1139
1139
|
open: t,
|
|
1140
1140
|
modal: !1,
|
|
1141
1141
|
onOpenChange: i,
|
|
1142
|
-
children: [/* @__PURE__ */
|
|
1143
|
-
render: /* @__PURE__ */ n(
|
|
1144
|
-
"aria-label":
|
|
1145
|
-
className:
|
|
1142
|
+
children: [/* @__PURE__ */ m(_.Trigger, {
|
|
1143
|
+
render: /* @__PURE__ */ n(j.Button, {}),
|
|
1144
|
+
"aria-label": o("graph.annotations.differenceArrowToolbar.size.ariaLabel"),
|
|
1145
|
+
className: qn,
|
|
1146
1146
|
onMouseDown: (l) => l.preventDefault(),
|
|
1147
|
-
children: [/* @__PURE__ */ n("span", { children:
|
|
1148
|
-
}), /* @__PURE__ */ n(
|
|
1149
|
-
className:
|
|
1147
|
+
children: [/* @__PURE__ */ n("span", { children: a === void 0 ? "" : o(a.nameKey) }), /* @__PURE__ */ n(Se, { size: "sm" })]
|
|
1148
|
+
}), /* @__PURE__ */ n($n, { children: Te.map((l) => /* @__PURE__ */ n(_.Item, {
|
|
1149
|
+
className: Wn,
|
|
1150
1150
|
"data-selected": l.id === e,
|
|
1151
1151
|
onClick: () => r(l.id),
|
|
1152
|
-
children:
|
|
1152
|
+
children: o(l.nameKey)
|
|
1153
1153
|
}, l.id)) })]
|
|
1154
1154
|
});
|
|
1155
|
-
},
|
|
1156
|
-
const { chartId: t } =
|
|
1157
|
-
return /* @__PURE__ */ n(
|
|
1158
|
-
container:
|
|
1159
|
-
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(
|
|
1155
|
+
}, $n = ({ children: e }) => {
|
|
1156
|
+
const { chartId: t } = G();
|
|
1157
|
+
return /* @__PURE__ */ n(_.Portal, {
|
|
1158
|
+
container: Re(),
|
|
1159
|
+
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(_.Positioner, {
|
|
1160
1160
|
side: "bottom",
|
|
1161
1161
|
align: "start",
|
|
1162
1162
|
sideOffset: 6,
|
|
1163
|
-
className:
|
|
1164
|
-
children: /* @__PURE__ */ n(
|
|
1165
|
-
className:
|
|
1163
|
+
className: co,
|
|
1164
|
+
children: /* @__PURE__ */ n(_.Popup, {
|
|
1165
|
+
className: ho,
|
|
1166
1166
|
onMouseDown: (i) => i.preventDefault(),
|
|
1167
|
-
...
|
|
1167
|
+
...be(t),
|
|
1168
1168
|
children: e
|
|
1169
1169
|
})
|
|
1170
1170
|
}) })
|
|
1171
1171
|
});
|
|
1172
1172
|
};
|
|
1173
|
-
var
|
|
1174
|
-
|
|
1173
|
+
var wo = "ydgo3h0", xo = "ydgo3h1", Po = "ydgo3h2", Zn = (e) => e === "start" ? "end" : "start", jn = ({ dispatch: e, arrow: t, endpoint: i, anchor: r }) => {
|
|
1174
|
+
In(r, t[i].anchor) || e(new Pn({
|
|
1175
1175
|
kind: "differenceArrow",
|
|
1176
1176
|
id: t.id,
|
|
1177
1177
|
patch: { [i]: r }
|
|
1178
1178
|
}));
|
|
1179
|
-
},
|
|
1180
|
-
const u =
|
|
1179
|
+
}, Io = ({ clientPoint: e, panelOrigin: t, panelRect: i, engine: r, layers: o, coordSystem: a, resolver: l, fixedAnchor: c, align: s }) => {
|
|
1180
|
+
const u = To({
|
|
1181
1181
|
x: e.x - t.x,
|
|
1182
1182
|
y: e.y - t.y
|
|
1183
|
-
}, i), { primary: d } = r.query(
|
|
1183
|
+
}, i), { primary: d } = r.query(He(u, i));
|
|
1184
1184
|
if (d === null) return null;
|
|
1185
|
-
const h =
|
|
1185
|
+
const h = o.find((p) => p.id === d.layerId);
|
|
1186
1186
|
if (h === void 0) return null;
|
|
1187
1187
|
const v = Ne({
|
|
1188
1188
|
resolver: l,
|
|
1189
1189
|
layer: h,
|
|
1190
1190
|
observation: d.observation,
|
|
1191
|
-
coordSystem:
|
|
1191
|
+
coordSystem: a,
|
|
1192
1192
|
align: s
|
|
1193
1193
|
});
|
|
1194
|
-
return v === null ||
|
|
1195
|
-
},
|
|
1194
|
+
return v === null || In(v.anchor, c) ? null : v;
|
|
1195
|
+
}, To = (e, t) => ({
|
|
1196
1196
|
x: Math.max(0, Math.min(e.x, t.width)),
|
|
1197
1197
|
y: Math.max(0, Math.min(e.y, t.height))
|
|
1198
|
-
}),
|
|
1198
|
+
}), Ao = class {
|
|
1199
1199
|
constructor(e) {
|
|
1200
1200
|
this.params = e, this.listeners = new AbortController(), this.pendingEvent = null, this.scheduledFrame = null, this.hasMoved = !1, this.hasPublished = !1, this.handleMove = (t) => {
|
|
1201
1201
|
t.pointerId === this.params.pointerId && (this.pendingEvent = t, this.hasMoved = !0, this.scheduledFrame === null && (this.scheduledFrame = requestAnimationFrame(this.runFrame)));
|
|
@@ -1207,9 +1207,9 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1207
1207
|
this.scheduledFrame = null;
|
|
1208
1208
|
const t = this.pendingEvent;
|
|
1209
1209
|
if (this.pendingEvent = null, t === null) return;
|
|
1210
|
-
const { editorStore: i, engine: r, anchorResolver:
|
|
1211
|
-
if (this.hasPublished &&
|
|
1212
|
-
const
|
|
1210
|
+
const { editorStore: i, engine: r, anchorResolver: o, endpoint: a, readInputs: l } = this.params, { arrow: c, panelOrigin: s, panelRect: u, layers: d, coordSystem: h } = l(), v = i.getState();
|
|
1211
|
+
if (this.hasPublished && Le(ge(v, "endpoint-drag"), c.id, a) === null) return;
|
|
1212
|
+
const p = Io({
|
|
1213
1213
|
clientPoint: {
|
|
1214
1214
|
x: t.clientX,
|
|
1215
1215
|
y: t.clientY
|
|
@@ -1219,11 +1219,11 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1219
1219
|
engine: r,
|
|
1220
1220
|
layers: d,
|
|
1221
1221
|
coordSystem: h,
|
|
1222
|
-
resolver:
|
|
1223
|
-
fixedAnchor: c[
|
|
1224
|
-
align: c[
|
|
1222
|
+
resolver: o,
|
|
1223
|
+
fixedAnchor: c[Zn(a)].anchor,
|
|
1224
|
+
align: c[a].anchor.align
|
|
1225
1225
|
});
|
|
1226
|
-
|
|
1226
|
+
p !== null && this.publish(p);
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
1229
|
start() {
|
|
@@ -1232,10 +1232,10 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1232
1232
|
}
|
|
1233
1233
|
finish(e) {
|
|
1234
1234
|
this.params.onSettled(), this.listeners.abort(), this.cancelFrame(), e && this.hasMoved && this.runFrame(), this.pendingEvent = null;
|
|
1235
|
-
const { editorStore: t, endpoint: i, readInputs: r, dispatch:
|
|
1236
|
-
c !== null && (l.releaseInteraction("endpoint-drag"), e &&
|
|
1237
|
-
dispatch:
|
|
1238
|
-
arrow:
|
|
1235
|
+
const { editorStore: t, endpoint: i, readInputs: r, dispatch: o } = this.params, { arrow: a } = r(), l = t.getState(), c = Le(ge(l, "endpoint-drag"), a.id, i);
|
|
1236
|
+
c !== null && (l.releaseInteraction("endpoint-drag"), e && jn({
|
|
1237
|
+
dispatch: o,
|
|
1238
|
+
arrow: a,
|
|
1239
1239
|
endpoint: i,
|
|
1240
1240
|
anchor: c.point.anchor
|
|
1241
1241
|
}));
|
|
@@ -1252,17 +1252,17 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1252
1252
|
cancelFrame() {
|
|
1253
1253
|
this.scheduledFrame !== null && (cancelAnimationFrame(this.scheduledFrame), this.scheduledFrame = null);
|
|
1254
1254
|
}
|
|
1255
|
-
},
|
|
1256
|
-
const { commands: r, anchorResolver:
|
|
1255
|
+
}, Lo = ({ arrow: e, panelOrigin: t, panelRect: i }) => {
|
|
1256
|
+
const { commands: r, anchorResolver: o } = G(), { engine: a } = _e(), l = q(), c = se({
|
|
1257
1257
|
arrow: e,
|
|
1258
1258
|
panelOrigin: t,
|
|
1259
1259
|
panelRect: i,
|
|
1260
|
-
...
|
|
1260
|
+
...K(Ve((u) => ({
|
|
1261
1261
|
layers: u.layers,
|
|
1262
1262
|
coordSystem: u.coordSystem
|
|
1263
1263
|
})))
|
|
1264
|
-
}), s =
|
|
1265
|
-
return
|
|
1264
|
+
}), s = Ce(null);
|
|
1265
|
+
return V(() => () => s.current?.finish(!1), []), fe((u) => ({
|
|
1266
1266
|
onClick: (d) => d.stopPropagation(),
|
|
1267
1267
|
onPointerDown: (d) => {
|
|
1268
1268
|
if (d.button !== 0 || s.current !== null) return;
|
|
@@ -1272,14 +1272,14 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1272
1272
|
return;
|
|
1273
1273
|
}
|
|
1274
1274
|
d.currentTarget.focus({ preventScroll: !0 }), d.preventDefault();
|
|
1275
|
-
const h = new
|
|
1275
|
+
const h = new Ao({
|
|
1276
1276
|
handle: d.currentTarget,
|
|
1277
1277
|
pointerId: d.pointerId,
|
|
1278
1278
|
endpoint: u,
|
|
1279
1279
|
readInputs: () => c.current,
|
|
1280
1280
|
editorStore: l,
|
|
1281
|
-
engine:
|
|
1282
|
-
anchorResolver:
|
|
1281
|
+
engine: a,
|
|
1282
|
+
anchorResolver: o,
|
|
1283
1283
|
dispatch: r.dispatch,
|
|
1284
1284
|
onSettled: () => {
|
|
1285
1285
|
s.current = null;
|
|
@@ -1290,23 +1290,23 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1290
1290
|
}), [
|
|
1291
1291
|
c,
|
|
1292
1292
|
l,
|
|
1293
|
-
o,
|
|
1294
1293
|
a,
|
|
1294
|
+
o,
|
|
1295
1295
|
r
|
|
1296
1296
|
]);
|
|
1297
|
-
},
|
|
1298
|
-
const { commands: t, anchorResolver: i } =
|
|
1297
|
+
}, Oo = [" ", "Enter"], No = ({ arrow: e }) => {
|
|
1298
|
+
const { commands: t, anchorResolver: i } = G(), r = q(), { layers: o, coordSystem: a, mainAxis: l } = K(Ve((s) => ({
|
|
1299
1299
|
layers: s.layers,
|
|
1300
1300
|
coordSystem: s.coordSystem,
|
|
1301
1301
|
mainAxis: s.coordSystem.type === "cartesian" ? s.coordSystem.mainAxis : "x"
|
|
1302
1302
|
}))), c = e.id;
|
|
1303
|
-
return
|
|
1303
|
+
return V(() => () => {
|
|
1304
1304
|
const s = r.getState();
|
|
1305
1305
|
ge(s, "endpoint-drag")?.annotationId === c && s.releaseInteraction("endpoint-drag");
|
|
1306
1306
|
}, [r, c]), fe((s) => ({ onKeyDown: (u) => {
|
|
1307
1307
|
if (u.altKey || u.ctrlKey || u.metaKey || u.shiftKey) return;
|
|
1308
|
-
const d = r.getState(), h =
|
|
1309
|
-
if (
|
|
1308
|
+
const d = r.getState(), h = Le(ge(d, "endpoint-drag"), e.id, s);
|
|
1309
|
+
if (Oo.includes(u.key)) {
|
|
1310
1310
|
if (u.preventDefault(), u.repeat) return;
|
|
1311
1311
|
if (h === null) return d.claimInteraction({
|
|
1312
1312
|
kind: "endpoint-drag",
|
|
@@ -1314,7 +1314,7 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1314
1314
|
endpoint: s,
|
|
1315
1315
|
point: e[s]
|
|
1316
1316
|
});
|
|
1317
|
-
d.releaseInteraction("endpoint-drag"),
|
|
1317
|
+
d.releaseInteraction("endpoint-drag"), jn({
|
|
1318
1318
|
dispatch: t.dispatch,
|
|
1319
1319
|
arrow: e,
|
|
1320
1320
|
endpoint: s,
|
|
@@ -1323,53 +1323,53 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1323
1323
|
return;
|
|
1324
1324
|
}
|
|
1325
1325
|
if (h === null) return;
|
|
1326
|
-
const v =
|
|
1326
|
+
const v = ko(u.key, l);
|
|
1327
1327
|
if (v === null) return;
|
|
1328
1328
|
u.preventDefault();
|
|
1329
|
-
const
|
|
1329
|
+
const p = Mo({
|
|
1330
1330
|
arrow: e,
|
|
1331
1331
|
endpoint: s,
|
|
1332
1332
|
from: h.point.anchor,
|
|
1333
1333
|
move: v,
|
|
1334
|
-
layers:
|
|
1335
|
-
coordSystem:
|
|
1334
|
+
layers: o,
|
|
1335
|
+
coordSystem: a,
|
|
1336
1336
|
resolver: i
|
|
1337
1337
|
});
|
|
1338
|
-
|
|
1338
|
+
p !== null && d.claimInteraction({
|
|
1339
1339
|
kind: "endpoint-drag",
|
|
1340
1340
|
annotationId: e.id,
|
|
1341
1341
|
endpoint: s,
|
|
1342
|
-
point:
|
|
1342
|
+
point: p
|
|
1343
1343
|
});
|
|
1344
1344
|
} }), [
|
|
1345
1345
|
e,
|
|
1346
1346
|
r,
|
|
1347
1347
|
t,
|
|
1348
1348
|
i,
|
|
1349
|
-
a,
|
|
1350
1349
|
o,
|
|
1350
|
+
a,
|
|
1351
1351
|
l
|
|
1352
1352
|
]);
|
|
1353
|
-
},
|
|
1353
|
+
}, ko = (e, t) => {
|
|
1354
1354
|
const i = e === "ArrowUp" || e === "ArrowDown";
|
|
1355
1355
|
return !i && !(e === "ArrowLeft" || e === "ArrowRight") ? null : {
|
|
1356
1356
|
axis: t === "x" === i ? "cross" : "main",
|
|
1357
1357
|
step: e === "ArrowDown" || e === "ArrowRight" ? 1 : -1
|
|
1358
1358
|
};
|
|
1359
|
-
},
|
|
1360
|
-
const c =
|
|
1359
|
+
}, Mo = ({ arrow: e, endpoint: t, from: i, move: r, layers: o, coordSystem: a, resolver: l }) => {
|
|
1360
|
+
const c = o.find((u) => u.id === i.layerId);
|
|
1361
1361
|
if (c === void 0) return null;
|
|
1362
|
-
const s =
|
|
1362
|
+
const s = ta({
|
|
1363
1363
|
layer: c,
|
|
1364
1364
|
from: i,
|
|
1365
|
-
partner: e[
|
|
1365
|
+
partner: e[Zn(t)].anchor,
|
|
1366
1366
|
axis: r.axis,
|
|
1367
1367
|
step: r.step,
|
|
1368
1368
|
canLandOn: (u) => Ne({
|
|
1369
1369
|
resolver: l,
|
|
1370
1370
|
layer: c,
|
|
1371
1371
|
observation: u,
|
|
1372
|
-
coordSystem:
|
|
1372
|
+
coordSystem: a,
|
|
1373
1373
|
align: e[t].anchor.align
|
|
1374
1374
|
}) !== null
|
|
1375
1375
|
});
|
|
@@ -1377,18 +1377,18 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1377
1377
|
resolver: l,
|
|
1378
1378
|
layer: c,
|
|
1379
1379
|
observation: s.observation,
|
|
1380
|
-
coordSystem:
|
|
1380
|
+
coordSystem: a,
|
|
1381
1381
|
align: e[t].anchor.align
|
|
1382
1382
|
});
|
|
1383
|
-
},
|
|
1384
|
-
const t =
|
|
1385
|
-
return t === null ? null : /* @__PURE__ */ n(
|
|
1383
|
+
}, Eo = (e) => {
|
|
1384
|
+
const t = Ja();
|
|
1385
|
+
return t === null ? null : /* @__PURE__ */ n(_o, {
|
|
1386
1386
|
annotationId: t,
|
|
1387
1387
|
...e
|
|
1388
1388
|
});
|
|
1389
|
-
},
|
|
1390
|
-
const i =
|
|
1391
|
-
return r === void 0 ? null : /* @__PURE__ */ n(
|
|
1389
|
+
}, _o = ({ annotationId: e, ...t }) => {
|
|
1390
|
+
const i = Nt(), r = k(() => i.find((o) => o.id === e), [i, e]);
|
|
1391
|
+
return r === void 0 ? null : /* @__PURE__ */ n(Ro, {
|
|
1392
1392
|
committedArrow: r.committedArrow,
|
|
1393
1393
|
committedLabelBox: r.committedLabelBox,
|
|
1394
1394
|
labelBox: r.labelBox,
|
|
@@ -1397,52 +1397,52 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1397
1397
|
isDragged: r.isDragged,
|
|
1398
1398
|
...t
|
|
1399
1399
|
});
|
|
1400
|
-
},
|
|
1401
|
-
const d =
|
|
1400
|
+
}, Ro = ({ committedArrow: e, committedLabelBox: t, labelBox: i, start: r, end: o, panelRect: a, panelOrigin: l, frameRect: c, frameElement: s, isDragged: u }) => {
|
|
1401
|
+
const d = Lo({
|
|
1402
1402
|
arrow: e,
|
|
1403
1403
|
panelOrigin: l,
|
|
1404
|
-
panelRect:
|
|
1405
|
-
}), h =
|
|
1406
|
-
return /* @__PURE__ */
|
|
1404
|
+
panelRect: a
|
|
1405
|
+
}), h = No({ arrow: e });
|
|
1406
|
+
return /* @__PURE__ */ m("div", {
|
|
1407
1407
|
"data-testid": "difference-arrow-selection",
|
|
1408
1408
|
children: [
|
|
1409
|
-
!u && /* @__PURE__ */ n(
|
|
1409
|
+
!u && /* @__PURE__ */ n(bo, {
|
|
1410
1410
|
arrow: e,
|
|
1411
1411
|
labelBox: t,
|
|
1412
|
-
panelRect:
|
|
1412
|
+
panelRect: a,
|
|
1413
1413
|
frameWidth: c.width,
|
|
1414
1414
|
frameHeight: c.height,
|
|
1415
1415
|
frameElement: s
|
|
1416
1416
|
}),
|
|
1417
1417
|
/* @__PURE__ */ n("div", {
|
|
1418
1418
|
"aria-hidden": "true",
|
|
1419
|
-
className:
|
|
1419
|
+
className: Po,
|
|
1420
1420
|
"data-testid": "difference-arrow-selection-label",
|
|
1421
1421
|
style: {
|
|
1422
|
-
left:
|
|
1423
|
-
top:
|
|
1422
|
+
left: a.x + i.x - 2,
|
|
1423
|
+
top: a.y + i.y - 2,
|
|
1424
1424
|
width: i.width + 4,
|
|
1425
1425
|
height: i.height + 4
|
|
1426
1426
|
}
|
|
1427
1427
|
}),
|
|
1428
|
-
/* @__PURE__ */ n(
|
|
1428
|
+
/* @__PURE__ */ n(rn, {
|
|
1429
1429
|
endpoint: "start",
|
|
1430
1430
|
point: r,
|
|
1431
|
-
panelRect:
|
|
1431
|
+
panelRect: a,
|
|
1432
1432
|
dragHandlers: d("start"),
|
|
1433
1433
|
keyboardHandlers: h("start")
|
|
1434
1434
|
}),
|
|
1435
|
-
/* @__PURE__ */ n(
|
|
1435
|
+
/* @__PURE__ */ n(rn, {
|
|
1436
1436
|
endpoint: "end",
|
|
1437
|
-
point:
|
|
1438
|
-
panelRect:
|
|
1437
|
+
point: o,
|
|
1438
|
+
panelRect: a,
|
|
1439
1439
|
dragHandlers: d("end"),
|
|
1440
1440
|
keyboardHandlers: h("end")
|
|
1441
1441
|
})
|
|
1442
1442
|
]
|
|
1443
1443
|
});
|
|
1444
|
-
},
|
|
1445
|
-
className:
|
|
1444
|
+
}, rn = ({ endpoint: e, point: t, panelRect: i, dragHandlers: r, keyboardHandlers: o }) => /* @__PURE__ */ n("div", {
|
|
1445
|
+
className: wo,
|
|
1446
1446
|
"data-testid": "difference-arrow-selection-handle",
|
|
1447
1447
|
"data-endpoint": e,
|
|
1448
1448
|
role: "button",
|
|
@@ -1452,93 +1452,93 @@ var bo = "ydgo3h0", Co = "ydgo3h1", So = "ydgo3h2", Wn = (e) => e === "start" ?
|
|
|
1452
1452
|
},
|
|
1453
1453
|
tabIndex: 0,
|
|
1454
1454
|
...r,
|
|
1455
|
-
...
|
|
1455
|
+
...o,
|
|
1456
1456
|
children: /* @__PURE__ */ n("span", {
|
|
1457
1457
|
"aria-hidden": "true",
|
|
1458
|
-
className:
|
|
1458
|
+
className: xo
|
|
1459
1459
|
})
|
|
1460
|
-
}),
|
|
1460
|
+
}), Do = (e) => /* @__PURE__ */ n(I, {
|
|
1461
1461
|
...e,
|
|
1462
|
-
children: /* @__PURE__ */
|
|
1462
|
+
children: /* @__PURE__ */ m("g", {
|
|
1463
1463
|
stroke: "currentColor",
|
|
1464
1464
|
strokeWidth: 2,
|
|
1465
1465
|
strokeLinecap: "round",
|
|
1466
1466
|
strokeLinejoin: "round",
|
|
1467
1467
|
children: [/* @__PURE__ */ n("path", { d: "M12 5v14" }), /* @__PURE__ */ n("path", { d: "M5 12h14" })]
|
|
1468
1468
|
})
|
|
1469
|
-
}),
|
|
1469
|
+
}), zo = "var(--_1tyillx0)", Ho = {
|
|
1470
1470
|
rest: 0.5,
|
|
1471
1471
|
hovered: 0.75,
|
|
1472
1472
|
open: 1
|
|
1473
1473
|
};
|
|
1474
|
-
var
|
|
1474
|
+
var Vo = "_1tyillx1", Fo = {
|
|
1475
1475
|
rest: "_1tyillx2",
|
|
1476
1476
|
hovered: "_1tyillx3",
|
|
1477
1477
|
open: "_1tyillx4"
|
|
1478
|
-
},
|
|
1478
|
+
}, Bo = "_1tyillx5", Ko = {
|
|
1479
1479
|
closed: "_1tyillx6",
|
|
1480
1480
|
open: "_1tyillx7"
|
|
1481
|
-
},
|
|
1482
|
-
const i =
|
|
1483
|
-
if (
|
|
1484
|
-
const c =
|
|
1481
|
+
}, Go = ({ interaction: e, panelRect: t }) => {
|
|
1482
|
+
const i = q(), r = K((c) => c.coordSystem), o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, a = Uo(e), l = k(() => {
|
|
1483
|
+
if (o === null) return null;
|
|
1484
|
+
const c = Qr(o.position, t, r);
|
|
1485
1485
|
return {
|
|
1486
1486
|
center: c,
|
|
1487
|
-
radius: 19 *
|
|
1487
|
+
radius: 19 * Ho[a],
|
|
1488
1488
|
target: {
|
|
1489
1489
|
kind: "observation",
|
|
1490
|
-
cursor:
|
|
1490
|
+
cursor: He(c, t)
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
1493
|
}, [
|
|
1494
|
-
|
|
1494
|
+
o,
|
|
1495
1495
|
t,
|
|
1496
1496
|
r,
|
|
1497
|
-
|
|
1497
|
+
a
|
|
1498
1498
|
]);
|
|
1499
|
-
return
|
|
1499
|
+
return V(() => {
|
|
1500
1500
|
i.getState().setMenuTrigger(l);
|
|
1501
|
-
}, [i, l]),
|
|
1501
|
+
}, [i, l]), V(() => () => i.getState().setMenuTrigger(null), [i]), o === null || l === null ? null : /* @__PURE__ */ n("div", {
|
|
1502
1502
|
"aria-hidden": "true",
|
|
1503
1503
|
"data-testid": "observation-menu-trigger",
|
|
1504
|
-
"data-state":
|
|
1505
|
-
className: re(
|
|
1504
|
+
"data-state": a,
|
|
1505
|
+
className: re(Vo, Fo[a]),
|
|
1506
1506
|
style: {
|
|
1507
1507
|
left: t.x + l.center.x,
|
|
1508
1508
|
top: t.y + l.center.y,
|
|
1509
|
-
...
|
|
1509
|
+
...On({ [zo]: o.color ?? Vt.border50 })
|
|
1510
1510
|
},
|
|
1511
1511
|
children: /* @__PURE__ */ n("span", {
|
|
1512
|
-
className: re(
|
|
1513
|
-
children: /* @__PURE__ */ n(
|
|
1512
|
+
className: re(Bo, Ko[a === "open" ? "open" : "closed"]),
|
|
1513
|
+
children: /* @__PURE__ */ n(Do, { size: "lg" })
|
|
1514
1514
|
})
|
|
1515
1515
|
});
|
|
1516
|
-
},
|
|
1517
|
-
const { chartId: i } =
|
|
1518
|
-
|
|
1516
|
+
}, Uo = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.isEngaged ? "hovered" : "rest", Wo = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', qo = (e, t) => {
|
|
1517
|
+
const { chartId: i } = G(), r = q();
|
|
1518
|
+
V(() => {
|
|
1519
1519
|
if (t === null) return;
|
|
1520
|
-
const
|
|
1521
|
-
if (
|
|
1522
|
-
const l = [...t.querySelectorAll(
|
|
1520
|
+
const o = (a) => {
|
|
1521
|
+
if (a.key !== "Tab" || a.defaultPrevented || !ce(a.target, e, i) || r.getState().standingInteraction?.kind === "chrome-popup") return;
|
|
1522
|
+
const l = [...t.querySelectorAll(Wo)];
|
|
1523
1523
|
if (l.length === 0) return;
|
|
1524
|
-
|
|
1524
|
+
a.preventDefault();
|
|
1525
1525
|
const c = l.findIndex((s) => s === document.activeElement);
|
|
1526
|
-
l[c === -1 ?
|
|
1526
|
+
l[c === -1 ? a.shiftKey ? l.length - 1 : 0 : (c + (a.shiftKey ? -1 : 1) + l.length) % l.length]?.focus();
|
|
1527
1527
|
};
|
|
1528
|
-
return document.addEventListener("keydown",
|
|
1528
|
+
return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
|
|
1529
1529
|
}, [
|
|
1530
1530
|
e,
|
|
1531
1531
|
t,
|
|
1532
1532
|
i,
|
|
1533
1533
|
r
|
|
1534
1534
|
]);
|
|
1535
|
-
},
|
|
1536
|
-
const { selectionStore: t, chartId: i } =
|
|
1537
|
-
|
|
1535
|
+
}, $o = (e) => {
|
|
1536
|
+
const { selectionStore: t, chartId: i } = G();
|
|
1537
|
+
V(() => {
|
|
1538
1538
|
let r = null;
|
|
1539
|
-
const
|
|
1539
|
+
const o = () => {
|
|
1540
1540
|
e.focus({ preventScroll: !0 });
|
|
1541
|
-
},
|
|
1541
|
+
}, a = (c) => {
|
|
1542
1542
|
const { selection: s, clearSelection: u } = t.getState();
|
|
1543
1543
|
s.length !== 0 && (ce(c.target, e, i) || u());
|
|
1544
1544
|
}, l = (c) => {
|
|
@@ -1546,24 +1546,24 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1546
1546
|
r = null, document.hasFocus() && (ce(document.activeElement, e, i) || t.getState().clearSelection());
|
|
1547
1547
|
}));
|
|
1548
1548
|
};
|
|
1549
|
-
return e.addEventListener("pointerdown",
|
|
1550
|
-
r !== null && cancelAnimationFrame(r), e.removeEventListener("pointerdown",
|
|
1549
|
+
return e.addEventListener("pointerdown", o), document.addEventListener("focusin", a), document.addEventListener("focusout", l), () => {
|
|
1550
|
+
r !== null && cancelAnimationFrame(r), e.removeEventListener("pointerdown", o), document.removeEventListener("focusin", a), document.removeEventListener("focusout", l);
|
|
1551
1551
|
};
|
|
1552
1552
|
}, [
|
|
1553
1553
|
e,
|
|
1554
1554
|
t,
|
|
1555
1555
|
i
|
|
1556
1556
|
]);
|
|
1557
|
-
},
|
|
1558
|
-
const { selectionStore: t, commands: i, chartId: r } =
|
|
1559
|
-
const { selection: s } = t.getState(), u =
|
|
1560
|
-
u !== null && (c.preventDefault(), i.dispatch(new
|
|
1557
|
+
}, Zo = (e) => {
|
|
1558
|
+
const { selectionStore: t, commands: i, chartId: r } = G(), o = q(), a = fe((c) => {
|
|
1559
|
+
const { selection: s } = t.getState(), u = Un(s);
|
|
1560
|
+
u !== null && (c.preventDefault(), i.dispatch(new ze({ id: u })), e.focus({ preventScroll: !0 }));
|
|
1561
1561
|
}, [
|
|
1562
1562
|
e,
|
|
1563
1563
|
i,
|
|
1564
1564
|
t
|
|
1565
1565
|
]), l = fe((c) => {
|
|
1566
|
-
const s =
|
|
1566
|
+
const s = o.getState();
|
|
1567
1567
|
switch (s.standingInteraction?.kind) {
|
|
1568
1568
|
case "endpoint-drag":
|
|
1569
1569
|
s.releaseInteraction("endpoint-drag");
|
|
@@ -1582,20 +1582,20 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
1584
|
}, [
|
|
1585
|
-
|
|
1585
|
+
o,
|
|
1586
1586
|
t,
|
|
1587
1587
|
e,
|
|
1588
1588
|
r
|
|
1589
1589
|
]);
|
|
1590
|
-
|
|
1590
|
+
V(() => {
|
|
1591
1591
|
const c = (s) => {
|
|
1592
|
-
if (ce(s.target, e, r) && !
|
|
1592
|
+
if (ce(s.target, e, r) && !jo(s.target) && !la(s.target))
|
|
1593
1593
|
switch (s.key) {
|
|
1594
1594
|
case "Escape":
|
|
1595
1595
|
return l(s);
|
|
1596
1596
|
case "Delete":
|
|
1597
1597
|
case "Backspace":
|
|
1598
|
-
return
|
|
1598
|
+
return a(s);
|
|
1599
1599
|
default:
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
@@ -1603,50 +1603,50 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1603
1603
|
return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
|
|
1604
1604
|
}, [
|
|
1605
1605
|
e,
|
|
1606
|
-
|
|
1606
|
+
a,
|
|
1607
1607
|
l,
|
|
1608
1608
|
r
|
|
1609
1609
|
]);
|
|
1610
|
-
},
|
|
1610
|
+
}, jo = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Xo = `[${Sn}]`, Xn = (e, t, i) => {
|
|
1611
1611
|
if (typeof document.elementsFromPoint != "function") return null;
|
|
1612
1612
|
const r = document.elementsFromPoint(e, t);
|
|
1613
|
-
return
|
|
1614
|
-
},
|
|
1613
|
+
return Yo(r, i);
|
|
1614
|
+
}, Yo = (e, t) => {
|
|
1615
1615
|
for (const i of e) {
|
|
1616
|
-
const r = i.closest(
|
|
1616
|
+
const r = i.closest(Xo);
|
|
1617
1617
|
if (r === null || !t.contains(r)) continue;
|
|
1618
|
-
const
|
|
1619
|
-
if (
|
|
1618
|
+
const o = Qo(r);
|
|
1619
|
+
if (o !== null) return o;
|
|
1620
1620
|
}
|
|
1621
1621
|
return null;
|
|
1622
|
-
},
|
|
1623
|
-
const t = e.getAttribute(
|
|
1622
|
+
}, Qo = (e) => {
|
|
1623
|
+
const t = e.getAttribute(Sn);
|
|
1624
1624
|
if (t !== "annotation") return null;
|
|
1625
1625
|
const i = e.getAttribute(_t);
|
|
1626
1626
|
return i === null || i === "" ? null : {
|
|
1627
1627
|
kind: t,
|
|
1628
1628
|
id: i
|
|
1629
1629
|
};
|
|
1630
|
-
},
|
|
1631
|
-
const e =
|
|
1632
|
-
layers:
|
|
1633
|
-
coordSystem:
|
|
1634
|
-
}))), { anchorResolver: r } =
|
|
1635
|
-
return
|
|
1630
|
+
}, Jo = () => {
|
|
1631
|
+
const e = It((o) => o.hover.primary), { layers: t, coordSystem: i } = K(Ve((o) => ({
|
|
1632
|
+
layers: o.layers,
|
|
1633
|
+
coordSystem: o.coordSystem
|
|
1634
|
+
}))), { anchorResolver: r } = G();
|
|
1635
|
+
return k(() => {
|
|
1636
1636
|
if (e === null) return null;
|
|
1637
|
-
const
|
|
1638
|
-
if (
|
|
1639
|
-
const
|
|
1637
|
+
const o = t.find((c) => c.id === e.layerId);
|
|
1638
|
+
if (o === void 0) return null;
|
|
1639
|
+
const a = r.resolve(o.geom, e.observation, {
|
|
1640
1640
|
coordSystem: i,
|
|
1641
|
-
position:
|
|
1641
|
+
position: o.position,
|
|
1642
1642
|
purpose: "pin"
|
|
1643
1643
|
});
|
|
1644
|
-
if (
|
|
1645
|
-
const l =
|
|
1644
|
+
if (a === null) return null;
|
|
1645
|
+
const l = Dr(o, e.observation);
|
|
1646
1646
|
return l === null ? null : {
|
|
1647
|
-
position:
|
|
1648
|
-
color:
|
|
1649
|
-
layer:
|
|
1647
|
+
position: a,
|
|
1648
|
+
color: $r(e.observation),
|
|
1649
|
+
layer: o,
|
|
1650
1650
|
at: l,
|
|
1651
1651
|
observation: e.observation
|
|
1652
1652
|
};
|
|
@@ -1656,9 +1656,9 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1656
1656
|
i,
|
|
1657
1657
|
r
|
|
1658
1658
|
]);
|
|
1659
|
-
},
|
|
1660
|
-
const e = ve((r) => r.standingInteraction), t = ve((r) => r.chromeUnderPointer), i =
|
|
1661
|
-
return
|
|
1659
|
+
}, ei = { kind: "idle" }, Yn = () => {
|
|
1660
|
+
const e = ve((r) => r.standingInteraction), t = ve((r) => r.chromeUnderPointer), i = Jo();
|
|
1661
|
+
return k(() => e !== null ? e : i === null ? ei : {
|
|
1662
1662
|
kind: "trigger",
|
|
1663
1663
|
anchor: i,
|
|
1664
1664
|
isEngaged: t === "menu-trigger"
|
|
@@ -1667,92 +1667,92 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1667
1667
|
i,
|
|
1668
1668
|
t
|
|
1669
1669
|
]);
|
|
1670
|
-
},
|
|
1671
|
-
const i =
|
|
1672
|
-
|
|
1673
|
-
let
|
|
1670
|
+
}, ni = (e, t) => {
|
|
1671
|
+
const i = q(), r = se(t);
|
|
1672
|
+
V(() => {
|
|
1673
|
+
let o = null, a = null;
|
|
1674
1674
|
const l = (h) => {
|
|
1675
1675
|
const { menuTrigger: v } = i.getState();
|
|
1676
|
-
return v === null ? null :
|
|
1676
|
+
return v === null ? null : Ln(h, v) ? "menu-trigger" : null;
|
|
1677
1677
|
}, c = () => {
|
|
1678
|
-
|
|
1679
|
-
const h =
|
|
1680
|
-
if (
|
|
1681
|
-
const v = r.current,
|
|
1682
|
-
|
|
1678
|
+
o = null;
|
|
1679
|
+
const h = a;
|
|
1680
|
+
if (a = null, h === null) return;
|
|
1681
|
+
const v = r.current, p = i.getState();
|
|
1682
|
+
p.setChromeUnderPointer(l({
|
|
1683
1683
|
x: h.x - v.x,
|
|
1684
1684
|
y: h.y - v.y
|
|
1685
|
-
})),
|
|
1685
|
+
})), p.standingInteraction?.kind !== "menu" && p.setEditTargetUnderPointer(Xn(h.x, h.y, e));
|
|
1686
1686
|
}, s = () => {
|
|
1687
1687
|
const h = i.getState();
|
|
1688
1688
|
h.setChromeUnderPointer(null), h.setEditTargetUnderPointer(null);
|
|
1689
1689
|
}, u = (h) => {
|
|
1690
|
-
|
|
1690
|
+
a = {
|
|
1691
1691
|
x: h.clientX,
|
|
1692
1692
|
y: h.clientY
|
|
1693
|
-
},
|
|
1693
|
+
}, o === null && (o = requestAnimationFrame(c));
|
|
1694
1694
|
}, d = () => {
|
|
1695
|
-
|
|
1695
|
+
a = null, o !== null && (cancelAnimationFrame(o), o = null), s();
|
|
1696
1696
|
};
|
|
1697
1697
|
return e.addEventListener("pointermove", u), e.addEventListener("pointerleave", d), () => {
|
|
1698
|
-
|
|
1698
|
+
o !== null && cancelAnimationFrame(o), e.removeEventListener("pointermove", u), e.removeEventListener("pointerleave", d), s();
|
|
1699
1699
|
};
|
|
1700
1700
|
}, [
|
|
1701
1701
|
e,
|
|
1702
1702
|
i,
|
|
1703
1703
|
r
|
|
1704
1704
|
]);
|
|
1705
|
-
},
|
|
1706
|
-
const
|
|
1707
|
-
|
|
1708
|
-
|
|
1705
|
+
}, an = "editor", on = [], ti = (e, t, i, r) => {
|
|
1706
|
+
const o = Yn(), { store: a } = _e(), l = wn().length > 0, c = ve((d) => d.menuTrigger), s = o.kind === "menu", u = k(() => c === null ? on : [_r(c)], [c]);
|
|
1707
|
+
ni(e, t), ri(o, e, t, i), $o(e), Zo(e), qo(e, r), V(() => (a.getState().publishPointerRegions(an, u), () => a.getState().publishPointerRegions(an, on)), [a, u]), V(() => (a.getState().setPointerSuspended(s || l), () => a.getState().setPointerSuspended(!1)), [
|
|
1708
|
+
a,
|
|
1709
1709
|
s,
|
|
1710
1710
|
l
|
|
1711
|
-
]),
|
|
1711
|
+
]), V(() => {
|
|
1712
1712
|
if (!l) return;
|
|
1713
|
-
const d =
|
|
1714
|
-
d.setHoverState(
|
|
1715
|
-
}, [
|
|
1716
|
-
},
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1719
|
-
const h = (
|
|
1720
|
-
const { menuTrigger: f } =
|
|
1721
|
-
return f === null ? !1 :
|
|
1722
|
-
}, v = (
|
|
1723
|
-
if (h(
|
|
1724
|
-
const f = d.current,
|
|
1725
|
-
l.getState().setHoverState(
|
|
1713
|
+
const d = a.getState();
|
|
1714
|
+
d.setHoverState(xn), d.setTooltipAnchor(null);
|
|
1715
|
+
}, [a, l]);
|
|
1716
|
+
}, ri = (e, t, i, r) => {
|
|
1717
|
+
const o = q(), { selectionStore: a } = G(), { store: l, engine: c } = _e(), s = se(e), u = se(i), d = se(r);
|
|
1718
|
+
V(() => {
|
|
1719
|
+
const h = (y) => {
|
|
1720
|
+
const { menuTrigger: f } = o.getState();
|
|
1721
|
+
return f === null ? !1 : Ln(ln(y, u.current), f);
|
|
1722
|
+
}, v = (y) => {
|
|
1723
|
+
if (h(y) || a.getState().selection.length > 0) return;
|
|
1724
|
+
const f = d.current, x = ln(y, u.current), T = ai(x, f) ? c.query(He(x, f)) : xn;
|
|
1725
|
+
l.getState().setHoverState(T);
|
|
1726
1726
|
};
|
|
1727
|
-
let
|
|
1727
|
+
let p = !1;
|
|
1728
1728
|
const g = () => {
|
|
1729
|
-
|
|
1730
|
-
},
|
|
1731
|
-
const f =
|
|
1729
|
+
p = s.current.kind === "menu";
|
|
1730
|
+
}, S = (y) => {
|
|
1731
|
+
const f = Xn(y.clientX, y.clientY, t), x = a.getState();
|
|
1732
1732
|
if (f === null) {
|
|
1733
|
-
|
|
1733
|
+
x.clearSelection();
|
|
1734
1734
|
return;
|
|
1735
1735
|
}
|
|
1736
|
-
|
|
1737
|
-
},
|
|
1738
|
-
if (
|
|
1739
|
-
const { claimInteraction: f, releaseInteraction:
|
|
1740
|
-
if (!
|
|
1741
|
-
|
|
1736
|
+
x.setSelection([f]);
|
|
1737
|
+
}, P = (y) => {
|
|
1738
|
+
if (sa(y.target)) return;
|
|
1739
|
+
const { claimInteraction: f, releaseInteraction: x } = o.getState(), T = h(y);
|
|
1740
|
+
if (!T || p) {
|
|
1741
|
+
x("menu"), T || S(y), p && v(y);
|
|
1742
1742
|
return;
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1745
|
-
|
|
1744
|
+
const z = s.current;
|
|
1745
|
+
z.kind === "trigger" && f({
|
|
1746
1746
|
kind: "menu",
|
|
1747
|
-
anchor:
|
|
1747
|
+
anchor: z.anchor
|
|
1748
1748
|
});
|
|
1749
1749
|
};
|
|
1750
|
-
return document.addEventListener("pointerdown", g, !0), document.addEventListener("click",
|
|
1751
|
-
document.removeEventListener("pointerdown", g, !0), document.removeEventListener("click",
|
|
1750
|
+
return document.addEventListener("pointerdown", g, !0), document.addEventListener("click", P), () => {
|
|
1751
|
+
document.removeEventListener("pointerdown", g, !0), document.removeEventListener("click", P);
|
|
1752
1752
|
};
|
|
1753
1753
|
}, [
|
|
1754
|
-
a,
|
|
1755
1754
|
o,
|
|
1755
|
+
a,
|
|
1756
1756
|
t,
|
|
1757
1757
|
s,
|
|
1758
1758
|
l,
|
|
@@ -1760,18 +1760,18 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1760
1760
|
u,
|
|
1761
1761
|
d
|
|
1762
1762
|
]);
|
|
1763
|
-
},
|
|
1763
|
+
}, ln = (e, t) => ({
|
|
1764
1764
|
x: e.clientX - t.x,
|
|
1765
1765
|
y: e.clientY - t.y
|
|
1766
|
-
}),
|
|
1767
|
-
const { measureRef: i, screenRect: r } =
|
|
1768
|
-
return
|
|
1766
|
+
}), ai = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, oi = ({ frameElement: e, panelRect: t }) => {
|
|
1767
|
+
const { measureRef: i, screenRect: r } = Tt(), o = q();
|
|
1768
|
+
return V(() => (i(e), () => i(null)), [i, e]), V(() => () => o.getState().releaseInteraction("menu"), [o]), r === null ? null : /* @__PURE__ */ n(da, { children: /* @__PURE__ */ n(ii, {
|
|
1769
1769
|
frameElement: e,
|
|
1770
1770
|
frameRect: r,
|
|
1771
1771
|
panelRect: t
|
|
1772
1772
|
}) });
|
|
1773
|
-
},
|
|
1774
|
-
const r =
|
|
1773
|
+
}, ii = ({ frameElement: e, frameRect: t, panelRect: i }) => {
|
|
1774
|
+
const r = k(() => ({
|
|
1775
1775
|
x: t.left + i.x,
|
|
1776
1776
|
y: t.top + i.y
|
|
1777
1777
|
}), [
|
|
@@ -1779,79 +1779,79 @@ var Ro = "_1tyillx1", Do = {
|
|
|
1779
1779
|
t.top,
|
|
1780
1780
|
i.x,
|
|
1781
1781
|
i.y
|
|
1782
|
-
]), [
|
|
1783
|
-
return
|
|
1782
|
+
]), [o, a] = $(null);
|
|
1783
|
+
return ti(e, r, i, o), /* @__PURE__ */ n(li, {
|
|
1784
1784
|
frameElement: e,
|
|
1785
1785
|
frameRect: t,
|
|
1786
1786
|
panelOrigin: r,
|
|
1787
1787
|
panelRect: i,
|
|
1788
|
-
boxRef:
|
|
1788
|
+
boxRef: a
|
|
1789
1789
|
});
|
|
1790
|
-
},
|
|
1791
|
-
const
|
|
1792
|
-
return /* @__PURE__ */ n(
|
|
1790
|
+
}, li = ({ frameElement: e, frameRect: t, panelOrigin: i, panelRect: r, boxRef: o }) => {
|
|
1791
|
+
const a = Fe(), l = Yn();
|
|
1792
|
+
return /* @__PURE__ */ n(At, {
|
|
1793
1793
|
rect: t,
|
|
1794
|
-
zIndex:
|
|
1795
|
-
container:
|
|
1794
|
+
zIndex: Lt.editorOverlay,
|
|
1795
|
+
container: a,
|
|
1796
1796
|
"data-testid": "editor-overlay",
|
|
1797
|
-
boxRef:
|
|
1798
|
-
children: /* @__PURE__ */
|
|
1799
|
-
/* @__PURE__ */ n(
|
|
1797
|
+
boxRef: o,
|
|
1798
|
+
children: /* @__PURE__ */ m(he, { children: [
|
|
1799
|
+
/* @__PURE__ */ n(Eo, {
|
|
1800
1800
|
panelRect: r,
|
|
1801
1801
|
panelOrigin: i,
|
|
1802
1802
|
frameRect: t,
|
|
1803
1803
|
frameElement: e
|
|
1804
1804
|
}),
|
|
1805
|
-
/* @__PURE__ */ n(
|
|
1805
|
+
/* @__PURE__ */ n(Go, {
|
|
1806
1806
|
interaction: l,
|
|
1807
1807
|
panelRect: r
|
|
1808
1808
|
}),
|
|
1809
|
-
/* @__PURE__ */ n(
|
|
1809
|
+
/* @__PURE__ */ n(Za, {
|
|
1810
1810
|
interaction: l,
|
|
1811
1811
|
panelOrigin: i
|
|
1812
1812
|
})
|
|
1813
1813
|
] })
|
|
1814
1814
|
});
|
|
1815
|
-
},
|
|
1816
|
-
slots:
|
|
1817
|
-
EditorSurface:
|
|
1815
|
+
}, Bs = ({ slots: e, ...t }) => /* @__PURE__ */ n(Et, { children: /* @__PURE__ */ n(Mt, {
|
|
1816
|
+
slots: k(() => ({
|
|
1817
|
+
EditorSurface: oi,
|
|
1818
1818
|
...e
|
|
1819
1819
|
}), [e]),
|
|
1820
1820
|
...t
|
|
1821
|
-
}) }),
|
|
1822
|
-
const r =
|
|
1823
|
-
let
|
|
1821
|
+
}) }), Qn = ue(null), Jn = ({ labelId: e, controlId: t, children: i }) => {
|
|
1822
|
+
const r = k(() => {
|
|
1823
|
+
let o = null;
|
|
1824
1824
|
return {
|
|
1825
1825
|
labelId: e,
|
|
1826
1826
|
controlId: t,
|
|
1827
|
-
claimControlId: (
|
|
1827
|
+
claimControlId: (a) => (o ??= a, o === a)
|
|
1828
1828
|
};
|
|
1829
1829
|
}, [e, t]);
|
|
1830
|
-
return /* @__PURE__ */ n(
|
|
1830
|
+
return /* @__PURE__ */ n(Qn.Provider, {
|
|
1831
1831
|
value: r,
|
|
1832
1832
|
children: i
|
|
1833
1833
|
});
|
|
1834
1834
|
}, Y = ({ id: e, ariaLabel: t, ariaLabelledBy: i }, r = !0) => {
|
|
1835
|
-
const
|
|
1835
|
+
const o = ae(Qn), a = de(), [l] = $(() => r ? o?.claimControlId(a) ?? !1 : !1), c = e ?? (l ? o?.controlId : void 0), s = i ?? (t === void 0 ? o?.labelId : void 0);
|
|
1836
1836
|
return {
|
|
1837
1837
|
...c !== void 0 && { id: c },
|
|
1838
1838
|
...t !== void 0 && { "aria-label": t },
|
|
1839
1839
|
...s !== void 0 && { "aria-labelledby": s }
|
|
1840
1840
|
};
|
|
1841
1841
|
};
|
|
1842
|
-
var
|
|
1842
|
+
var si = {
|
|
1843
1843
|
default: "woi4bh4 woi4bh3",
|
|
1844
1844
|
tile: "woi4bh5 woi4bh3"
|
|
1845
|
-
},
|
|
1845
|
+
}, ci = ({ label: e, icon: t, onClick: i, variant: r = "default", isDisabled: o, ariaLabel: a, ariaLabelledBy: l, id: c }) => {
|
|
1846
1846
|
const s = Y({
|
|
1847
1847
|
id: c,
|
|
1848
|
-
ariaLabel:
|
|
1848
|
+
ariaLabel: a,
|
|
1849
1849
|
ariaLabelledBy: l
|
|
1850
1850
|
}), u = r === "tile";
|
|
1851
|
-
return /* @__PURE__ */
|
|
1851
|
+
return /* @__PURE__ */ m("button", {
|
|
1852
1852
|
type: "button",
|
|
1853
|
-
className:
|
|
1854
|
-
disabled:
|
|
1853
|
+
className: si[r],
|
|
1854
|
+
disabled: o,
|
|
1855
1855
|
onClick: i,
|
|
1856
1856
|
...s,
|
|
1857
1857
|
children: [t !== void 0 && /* @__PURE__ */ n("span", {
|
|
@@ -1862,23 +1862,23 @@ var ai = {
|
|
|
1862
1862
|
children: e
|
|
1863
1863
|
})]
|
|
1864
1864
|
});
|
|
1865
|
-
},
|
|
1866
|
-
const e = ae(
|
|
1865
|
+
}, Ke = ue(null), M = () => {
|
|
1866
|
+
const e = ae(Ke);
|
|
1867
1867
|
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>.");
|
|
1868
1868
|
return e;
|
|
1869
|
-
},
|
|
1870
|
-
const r = ae(
|
|
1869
|
+
}, et = ({ children: e, onKeyDown: t, ...i }) => {
|
|
1870
|
+
const r = ae(Ke);
|
|
1871
1871
|
return /* @__PURE__ */ n("div", {
|
|
1872
|
-
onKeyDown: (
|
|
1873
|
-
if (t?.(
|
|
1874
|
-
const l =
|
|
1875
|
-
l && (
|
|
1872
|
+
onKeyDown: (a) => {
|
|
1873
|
+
if (t?.(a), !r || a.defaultPrevented) return;
|
|
1874
|
+
const l = zt(a.nativeEvent);
|
|
1875
|
+
l && (a.preventDefault(), l === "undo" ? r.undo() : r.redo());
|
|
1876
1876
|
},
|
|
1877
1877
|
...i,
|
|
1878
1878
|
children: e
|
|
1879
1879
|
});
|
|
1880
|
-
},
|
|
1881
|
-
const t =
|
|
1880
|
+
}, nt = "keyboard", Pe = (e) => {
|
|
1881
|
+
const t = Ce(!1), i = Ce(!1), r = () => {
|
|
1882
1882
|
t.current = !1, i.current && (i.current = !1, e?.());
|
|
1883
1883
|
};
|
|
1884
1884
|
return {
|
|
@@ -1889,8 +1889,8 @@ var ai = {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
e?.();
|
|
1891
1891
|
},
|
|
1892
|
-
commitUnlessHeldKey: (
|
|
1893
|
-
if (
|
|
1892
|
+
commitUnlessHeldKey: (o) => {
|
|
1893
|
+
if (o) {
|
|
1894
1894
|
i.current = !0;
|
|
1895
1895
|
return;
|
|
1896
1896
|
}
|
|
@@ -1901,31 +1901,31 @@ var ai = {
|
|
|
1901
1901
|
t.current = !0;
|
|
1902
1902
|
},
|
|
1903
1903
|
onKeyUp: r,
|
|
1904
|
-
onBlur: (
|
|
1905
|
-
|
|
1904
|
+
onBlur: (o) => {
|
|
1905
|
+
o.relatedTarget instanceof Node && o.currentTarget.contains(o.relatedTarget) || r();
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
};
|
|
1909
|
-
},
|
|
1910
|
-
var
|
|
1911
|
-
const
|
|
1909
|
+
}, di = "eh8dvc0", hi = "eh8dvc1 uz3g760", ui = "eh8dvc2 uz3g761";
|
|
1910
|
+
var mi = ({ value: e, onChange: t, onCommit: i, min: r, max: o, step: a, prefix: l, suffix: c, isDisabled: s, hasError: u, ariaLabel: d, ariaLabelledBy: h, id: v }) => {
|
|
1911
|
+
const p = Y({
|
|
1912
1912
|
id: v,
|
|
1913
1913
|
ariaLabel: d,
|
|
1914
1914
|
ariaLabelledBy: h
|
|
1915
|
-
}), { commitUnlessHeldKey: g, gestureHandlers:
|
|
1916
|
-
return /* @__PURE__ */ n(
|
|
1917
|
-
className:
|
|
1915
|
+
}), { commitUnlessHeldKey: g, gestureHandlers: S } = Pe(i);
|
|
1916
|
+
return /* @__PURE__ */ n(Je.Root, {
|
|
1917
|
+
className: di,
|
|
1918
1918
|
value: e,
|
|
1919
|
-
onValueChange: (
|
|
1920
|
-
onValueCommitted: (
|
|
1921
|
-
g(
|
|
1919
|
+
onValueChange: (P) => t(P),
|
|
1920
|
+
onValueCommitted: (P, y) => {
|
|
1921
|
+
g(y.reason === nt);
|
|
1922
1922
|
},
|
|
1923
1923
|
min: r,
|
|
1924
|
-
max:
|
|
1925
|
-
step:
|
|
1924
|
+
max: o,
|
|
1925
|
+
step: a,
|
|
1926
1926
|
disabled: s,
|
|
1927
|
-
children: /* @__PURE__ */
|
|
1928
|
-
className:
|
|
1927
|
+
children: /* @__PURE__ */ m(et, {
|
|
1928
|
+
className: hi,
|
|
1929
1929
|
"data-error": u === !0,
|
|
1930
1930
|
"data-disabled": s === !0 ? "" : void 0,
|
|
1931
1931
|
children: [
|
|
@@ -1933,11 +1933,11 @@ var ci = ({ value: e, onChange: t, onCommit: i, min: r, max: a, step: o, prefix:
|
|
|
1933
1933
|
className: "eh8dvc3",
|
|
1934
1934
|
children: l
|
|
1935
1935
|
}),
|
|
1936
|
-
/* @__PURE__ */ n(
|
|
1937
|
-
className:
|
|
1938
|
-
...
|
|
1936
|
+
/* @__PURE__ */ n(Je.Input, {
|
|
1937
|
+
className: ui,
|
|
1938
|
+
...S,
|
|
1939
1939
|
"aria-invalid": u === !0 ? !0 : void 0,
|
|
1940
|
-
...
|
|
1940
|
+
...p
|
|
1941
1941
|
}),
|
|
1942
1942
|
c !== void 0 && /* @__PURE__ */ n("span", {
|
|
1943
1943
|
className: "eh8dvc3",
|
|
@@ -1946,33 +1946,33 @@ var ci = ({ value: e, onChange: t, onCommit: i, min: r, max: a, step: o, prefix:
|
|
|
1946
1946
|
]
|
|
1947
1947
|
})
|
|
1948
1948
|
});
|
|
1949
|
-
},
|
|
1949
|
+
}, pi = "_1b7s5f0", te = {
|
|
1950
1950
|
1: "_1b7s5f1",
|
|
1951
1951
|
2: "_1b7s5f2",
|
|
1952
1952
|
3: "_1b7s5f3",
|
|
1953
1953
|
4: "_1b7s5f4",
|
|
1954
1954
|
5: "_1b7s5f5",
|
|
1955
1955
|
6: "_1b7s5f6"
|
|
1956
|
-
},
|
|
1957
|
-
var
|
|
1956
|
+
}, gi = "_1b7s5f7";
|
|
1957
|
+
var vi = 6, fi = ({ options: e, value: t, onChange: i, onCommit: r, columns: o, itemLayout: a = "tile", isDisabled: l, ariaLabel: c, ariaLabelledBy: s, id: u }) => {
|
|
1958
1958
|
const d = Y({
|
|
1959
1959
|
id: u,
|
|
1960
1960
|
ariaLabel: c,
|
|
1961
1961
|
ariaLabelledBy: s
|
|
1962
|
-
}), h =
|
|
1963
|
-
return /* @__PURE__ */ n(
|
|
1964
|
-
className: re(
|
|
1962
|
+
}), h = a === "swatch", { commitAfterChange: v, gestureHandlers: p } = Pe(r);
|
|
1963
|
+
return /* @__PURE__ */ n(kn, {
|
|
1964
|
+
className: re(pi, Ci(o ?? e.length)),
|
|
1965
1965
|
value: t,
|
|
1966
1966
|
onValueChange: (g) => {
|
|
1967
1967
|
i(g), v();
|
|
1968
1968
|
},
|
|
1969
|
-
...
|
|
1969
|
+
...p,
|
|
1970
1970
|
disabled: l,
|
|
1971
1971
|
...d,
|
|
1972
|
-
children: e.map((g) => /* @__PURE__ */
|
|
1972
|
+
children: e.map((g) => /* @__PURE__ */ m(Nn.Root, {
|
|
1973
1973
|
value: g.value,
|
|
1974
1974
|
disabled: g.isDisabled,
|
|
1975
|
-
className: re(
|
|
1975
|
+
className: re(gi, h && "_1b7s5f8"),
|
|
1976
1976
|
"aria-label": h ? g.label : void 0,
|
|
1977
1977
|
children: [g.icon, !h && /* @__PURE__ */ n("span", {
|
|
1978
1978
|
className: "_1b7s5f9",
|
|
@@ -1980,8 +1980,8 @@ var ui = 6, mi = ({ options: e, value: t, onChange: i, onCommit: r, columns: a,
|
|
|
1980
1980
|
})]
|
|
1981
1981
|
}, g.value))
|
|
1982
1982
|
});
|
|
1983
|
-
},
|
|
1984
|
-
switch (Math.min(Math.max(Math.round(e), 1),
|
|
1983
|
+
}, Ci = (e) => {
|
|
1984
|
+
switch (Math.min(Math.max(Math.round(e), 1), vi)) {
|
|
1985
1985
|
case 1:
|
|
1986
1986
|
return te[1];
|
|
1987
1987
|
case 2:
|
|
@@ -1995,56 +1995,56 @@ var ui = 6, mi = ({ options: e, value: t, onChange: i, onCommit: r, columns: a,
|
|
|
1995
1995
|
default:
|
|
1996
1996
|
return te[6];
|
|
1997
1997
|
}
|
|
1998
|
-
},
|
|
1999
|
-
var
|
|
1998
|
+
}, bi = "_1g5x15w0 uz3g760", yi = "_1g5x15w1", Si = "_1g5x15w2", sn = "_1g5x15w3", wi = "_1g5x15w4", xi = "_1g5x15w5", Pi = "_1g5x15w6", Ii = "_1g5x15w7";
|
|
1999
|
+
var Ti = ({ options: e, value: t, onChange: i, placeholder: r, isDisabled: o, hasError: a, ariaLabel: l, ariaLabelledBy: c, id: s }) => {
|
|
2000
2000
|
const u = Y({
|
|
2001
2001
|
id: s,
|
|
2002
2002
|
ariaLabel: l,
|
|
2003
2003
|
ariaLabelledBy: c
|
|
2004
2004
|
});
|
|
2005
|
-
return /* @__PURE__ */
|
|
2005
|
+
return /* @__PURE__ */ m(U.Root, {
|
|
2006
2006
|
value: t,
|
|
2007
2007
|
onValueChange: (d) => d !== null && i(d),
|
|
2008
|
-
disabled:
|
|
2008
|
+
disabled: o,
|
|
2009
2009
|
items: e.map((d) => ({
|
|
2010
2010
|
value: d.value,
|
|
2011
2011
|
label: d.label
|
|
2012
2012
|
})),
|
|
2013
|
-
children: [/* @__PURE__ */
|
|
2014
|
-
className:
|
|
2015
|
-
"data-error":
|
|
2013
|
+
children: [/* @__PURE__ */ m(U.Trigger, {
|
|
2014
|
+
className: bi,
|
|
2015
|
+
"data-error": a === !0,
|
|
2016
2016
|
...u,
|
|
2017
2017
|
children: [/* @__PURE__ */ n(U.Value, {
|
|
2018
|
-
className:
|
|
2019
|
-
children: (d) =>
|
|
2018
|
+
className: yi,
|
|
2019
|
+
children: (d) => Ai(e, d, r)
|
|
2020
2020
|
}), /* @__PURE__ */ n(U.Icon, {
|
|
2021
|
-
className:
|
|
2021
|
+
className: sn,
|
|
2022
2022
|
children: /* @__PURE__ */ n(Se, { size: "sm" })
|
|
2023
2023
|
})]
|
|
2024
2024
|
}), /* @__PURE__ */ n(U.Portal, {
|
|
2025
|
-
container:
|
|
2025
|
+
container: Re(),
|
|
2026
2026
|
children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(U.Positioner, {
|
|
2027
|
-
className:
|
|
2027
|
+
className: wi,
|
|
2028
2028
|
sideOffset: 4,
|
|
2029
2029
|
alignItemWithTrigger: !1,
|
|
2030
2030
|
children: /* @__PURE__ */ n(U.Popup, {
|
|
2031
|
-
className:
|
|
2032
|
-
children: e.map((d) => /* @__PURE__ */
|
|
2031
|
+
className: xi,
|
|
2032
|
+
children: e.map((d) => /* @__PURE__ */ m(U.Item, {
|
|
2033
2033
|
value: d.value,
|
|
2034
2034
|
disabled: d.isDisabled,
|
|
2035
|
-
className:
|
|
2035
|
+
className: Pi,
|
|
2036
2036
|
children: [
|
|
2037
2037
|
d.icon,
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
className:
|
|
2038
|
+
/* @__PURE__ */ m("span", {
|
|
2039
|
+
className: Ii,
|
|
2040
2040
|
children: [/* @__PURE__ */ n(U.ItemText, { children: d.label }), d.description !== void 0 && /* @__PURE__ */ n("span", {
|
|
2041
2041
|
className: "_1g5x15w8",
|
|
2042
2042
|
children: d.description
|
|
2043
2043
|
})]
|
|
2044
2044
|
}),
|
|
2045
2045
|
/* @__PURE__ */ n(U.ItemIndicator, {
|
|
2046
|
-
className:
|
|
2047
|
-
children: /* @__PURE__ */ n(
|
|
2046
|
+
className: sn,
|
|
2047
|
+
children: /* @__PURE__ */ n(Ht, { size: "sm" })
|
|
2048
2048
|
})
|
|
2049
2049
|
]
|
|
2050
2050
|
}, d.value))
|
|
@@ -2052,34 +2052,34 @@ var wi = ({ options: e, value: t, onChange: i, placeholder: r, isDisabled: a, ha
|
|
|
2052
2052
|
}) })
|
|
2053
2053
|
})]
|
|
2054
2054
|
});
|
|
2055
|
-
},
|
|
2056
|
-
className:
|
|
2055
|
+
}, Ai = (e, t, i) => t === null ? /* @__PURE__ */ n("span", {
|
|
2056
|
+
className: Si,
|
|
2057
2057
|
children: i
|
|
2058
|
-
}) :
|
|
2059
|
-
var
|
|
2058
|
+
}) : Li(e, t), Li = (e, t) => e.find((i) => i.value === t)?.label ?? t, Oi = "vod76w0", Ni = "vod76w1", ki = "vod76w2", Mi = "vod76w3", Ei = "vod76w4", _i = "vod76w5";
|
|
2059
|
+
var Ri = ({ value: e, onChange: t, onCommit: i, min: r, max: o, step: a, suffix: l, formatValue: c, isDisabled: s, ariaLabel: u, ariaLabelledBy: d }) => {
|
|
2060
2060
|
const h = Y({
|
|
2061
2061
|
ariaLabel: u,
|
|
2062
2062
|
ariaLabelledBy: d
|
|
2063
|
-
}, !1), v =
|
|
2064
|
-
return /* @__PURE__ */
|
|
2065
|
-
className:
|
|
2063
|
+
}, !1), v = Di(e, l, c), { commitUnlessHeldKey: p, gestureHandlers: g } = Pe(i);
|
|
2064
|
+
return /* @__PURE__ */ m("div", {
|
|
2065
|
+
className: Oi,
|
|
2066
2066
|
children: [/* @__PURE__ */ n(oe.Root, {
|
|
2067
|
-
className:
|
|
2067
|
+
className: Ni,
|
|
2068
2068
|
value: e,
|
|
2069
|
-
onValueChange: (
|
|
2070
|
-
onValueCommitted: (
|
|
2071
|
-
|
|
2069
|
+
onValueChange: (S) => t(S),
|
|
2070
|
+
onValueCommitted: (S, P) => {
|
|
2071
|
+
p(P.reason === nt);
|
|
2072
2072
|
},
|
|
2073
2073
|
min: r,
|
|
2074
|
-
max:
|
|
2075
|
-
step:
|
|
2074
|
+
max: o,
|
|
2075
|
+
step: a,
|
|
2076
2076
|
disabled: s,
|
|
2077
2077
|
children: /* @__PURE__ */ n(oe.Control, {
|
|
2078
|
-
className:
|
|
2079
|
-
children: /* @__PURE__ */
|
|
2080
|
-
className:
|
|
2081
|
-
children: [/* @__PURE__ */ n(oe.Indicator, { className:
|
|
2082
|
-
className:
|
|
2078
|
+
className: ki,
|
|
2079
|
+
children: /* @__PURE__ */ m(oe.Track, {
|
|
2080
|
+
className: Mi,
|
|
2081
|
+
children: [/* @__PURE__ */ n(oe.Indicator, { className: Ei }), /* @__PURE__ */ n(oe.Thumb, {
|
|
2082
|
+
className: _i,
|
|
2083
2083
|
...g,
|
|
2084
2084
|
...h
|
|
2085
2085
|
})]
|
|
@@ -2090,121 +2090,121 @@ var Ei = ({ value: e, onChange: t, onCommit: i, min: r, max: a, step: o, suffix:
|
|
|
2090
2090
|
children: v
|
|
2091
2091
|
})]
|
|
2092
2092
|
});
|
|
2093
|
-
},
|
|
2093
|
+
}, Di = (e, t, i) => i !== void 0 ? i(e) : t !== void 0 ? `${e}${t}` : null, zi = "_1hyrlw60", Hi = "_1hyrlw61", Vi = ({ isChecked: e, onChange: t, isDisabled: i, ariaLabel: r, ariaLabelledBy: o, id: a }) => {
|
|
2094
2094
|
const l = Y({
|
|
2095
|
-
id:
|
|
2095
|
+
id: a,
|
|
2096
2096
|
ariaLabel: r,
|
|
2097
|
-
ariaLabelledBy:
|
|
2097
|
+
ariaLabelledBy: o
|
|
2098
2098
|
});
|
|
2099
|
-
return /* @__PURE__ */ n(
|
|
2099
|
+
return /* @__PURE__ */ n(en.Root, {
|
|
2100
2100
|
checked: e,
|
|
2101
2101
|
onCheckedChange: (c) => t(c),
|
|
2102
2102
|
disabled: i,
|
|
2103
|
-
className:
|
|
2103
|
+
className: zi,
|
|
2104
2104
|
...l,
|
|
2105
|
-
children: /* @__PURE__ */ n(
|
|
2105
|
+
children: /* @__PURE__ */ n(en.Thumb, { className: Hi })
|
|
2106
2106
|
});
|
|
2107
|
-
},
|
|
2107
|
+
}, Fi = "uz3g761", Bi = "tpcnun0 uz3g760", Ki = ({ value: e, onChange: t, onCommit: i, placeholder: r, isDisabled: o, hasError: a, ariaLabel: l, ariaLabelledBy: c, id: s }) => {
|
|
2108
2108
|
const u = Y({
|
|
2109
2109
|
id: s,
|
|
2110
2110
|
ariaLabel: l,
|
|
2111
2111
|
ariaLabelledBy: c
|
|
2112
2112
|
});
|
|
2113
|
-
return /* @__PURE__ */ n(
|
|
2114
|
-
className:
|
|
2115
|
-
"data-error":
|
|
2116
|
-
children: /* @__PURE__ */ n(
|
|
2117
|
-
className:
|
|
2113
|
+
return /* @__PURE__ */ n(et, {
|
|
2114
|
+
className: Bi,
|
|
2115
|
+
"data-error": a === !0,
|
|
2116
|
+
children: /* @__PURE__ */ n(aa, {
|
|
2117
|
+
className: Fi,
|
|
2118
2118
|
value: e,
|
|
2119
2119
|
onValueChange: (d) => t(d),
|
|
2120
2120
|
onBlur: i,
|
|
2121
2121
|
placeholder: r,
|
|
2122
|
-
disabled:
|
|
2123
|
-
"aria-invalid":
|
|
2122
|
+
disabled: o,
|
|
2123
|
+
"aria-invalid": a === !0 ? !0 : void 0,
|
|
2124
2124
|
...u
|
|
2125
2125
|
})
|
|
2126
2126
|
});
|
|
2127
|
-
},
|
|
2128
|
-
var
|
|
2127
|
+
}, Gi = "cnu9yl0", Ui = "cnu9yl1";
|
|
2128
|
+
var Wi = ({ options: e, value: t, onChange: i, onCommit: r, itemLayout: o = "inline", isDisabled: a, ariaLabel: l, ariaLabelledBy: c, id: s }) => {
|
|
2129
2129
|
const u = Y({
|
|
2130
2130
|
id: s,
|
|
2131
2131
|
ariaLabel: l,
|
|
2132
2132
|
ariaLabelledBy: c
|
|
2133
|
-
}), d =
|
|
2134
|
-
return /* @__PURE__ */ n(
|
|
2135
|
-
className:
|
|
2133
|
+
}), d = o === "stacked", { commitAfterChange: h, gestureHandlers: v } = Pe(r);
|
|
2134
|
+
return /* @__PURE__ */ n(kn, {
|
|
2135
|
+
className: Gi,
|
|
2136
2136
|
value: t,
|
|
2137
|
-
onValueChange: (
|
|
2138
|
-
i(
|
|
2137
|
+
onValueChange: (p) => {
|
|
2138
|
+
i(p), h();
|
|
2139
2139
|
},
|
|
2140
2140
|
...v,
|
|
2141
|
-
disabled:
|
|
2141
|
+
disabled: a,
|
|
2142
2142
|
...u,
|
|
2143
|
-
children: e.map((
|
|
2144
|
-
value:
|
|
2145
|
-
disabled:
|
|
2146
|
-
className: re(
|
|
2147
|
-
"aria-label":
|
|
2148
|
-
children: [
|
|
2143
|
+
children: e.map((p) => /* @__PURE__ */ m(Nn.Root, {
|
|
2144
|
+
value: p.value,
|
|
2145
|
+
disabled: p.isDisabled,
|
|
2146
|
+
className: re(Ui, d && "cnu9yl2"),
|
|
2147
|
+
"aria-label": qi(p, d),
|
|
2148
|
+
children: [p.icon, tt(p, d) && /* @__PURE__ */ n("span", {
|
|
2149
2149
|
className: "cnu9yl3",
|
|
2150
|
-
children:
|
|
2150
|
+
children: p.label
|
|
2151
2151
|
})]
|
|
2152
|
-
},
|
|
2152
|
+
}, p.value))
|
|
2153
2153
|
});
|
|
2154
|
-
},
|
|
2155
|
-
if (!
|
|
2154
|
+
}, tt = (e, t) => e.icon === void 0 || t, qi = (e, t) => {
|
|
2155
|
+
if (!tt(e, t))
|
|
2156
2156
|
return e.label;
|
|
2157
|
-
},
|
|
2158
|
-
ToggleGroup:
|
|
2159
|
-
Switch:
|
|
2160
|
-
Slider:
|
|
2161
|
-
RadioGrid:
|
|
2162
|
-
Button:
|
|
2163
|
-
TextField:
|
|
2164
|
-
NumberField:
|
|
2165
|
-
Select:
|
|
2166
|
-
},
|
|
2167
|
-
const i =
|
|
2168
|
-
...
|
|
2157
|
+
}, rt = {
|
|
2158
|
+
ToggleGroup: Wi,
|
|
2159
|
+
Switch: Vi,
|
|
2160
|
+
Slider: Ri,
|
|
2161
|
+
RadioGrid: fi,
|
|
2162
|
+
Button: ci,
|
|
2163
|
+
TextField: Ki,
|
|
2164
|
+
NumberField: mi,
|
|
2165
|
+
Select: Ti
|
|
2166
|
+
}, at = ue(rt), $i = ({ controls: e, children: t }) => {
|
|
2167
|
+
const i = k(() => ({
|
|
2168
|
+
...rt,
|
|
2169
2169
|
...e
|
|
2170
2170
|
}), [e]);
|
|
2171
|
-
return /* @__PURE__ */ n(
|
|
2171
|
+
return /* @__PURE__ */ n(at.Provider, {
|
|
2172
2172
|
value: i,
|
|
2173
2173
|
children: t
|
|
2174
2174
|
});
|
|
2175
|
-
},
|
|
2176
|
-
className:
|
|
2175
|
+
}, E = () => ae(at), Zi = "_12lhx9e0", ji = ({ children: e }) => /* @__PURE__ */ n("div", {
|
|
2176
|
+
className: Zi,
|
|
2177
2177
|
children: e
|
|
2178
|
-
}),
|
|
2179
|
-
className:
|
|
2178
|
+
}), Xi = "_139ohwv0", F = ({ children: e }) => /* @__PURE__ */ n("div", {
|
|
2179
|
+
className: Xi,
|
|
2180
2180
|
children: e
|
|
2181
|
-
}),
|
|
2182
|
-
const e = ae(
|
|
2181
|
+
}), ot = ue(null), Yi = ot.Provider, Qi = () => {
|
|
2182
|
+
const e = ae(ot);
|
|
2183
2183
|
if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
|
|
2184
2184
|
return e;
|
|
2185
|
-
},
|
|
2186
|
-
List:
|
|
2187
|
-
Grid:
|
|
2185
|
+
}, Ji = "_1jlczkt0", el = "data-graphy-editor-panel", nl = {
|
|
2186
|
+
List: F,
|
|
2187
|
+
Grid: ji
|
|
2188
2188
|
};
|
|
2189
|
-
function
|
|
2189
|
+
function tl(e) {
|
|
2190
2190
|
if (e === void 0) return !1;
|
|
2191
2191
|
const t = e.split(/\s+/);
|
|
2192
2192
|
return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
|
|
2193
2193
|
}
|
|
2194
|
-
var
|
|
2195
|
-
const
|
|
2194
|
+
var rl = ({ handle: e, children: t, controls: i, defaultExpandedSection: r = void 0, className: o }) => {
|
|
2195
|
+
const a = Rt(e), { themeClass: l, inlineVarsStyle: c } = De(), [s, u] = $(() => r ? [r] : []), d = k(() => ({
|
|
2196
2196
|
expandSection: (h) => u([h]),
|
|
2197
2197
|
collapseAllSections: () => u([])
|
|
2198
2198
|
}), []);
|
|
2199
|
-
return /* @__PURE__ */ n(
|
|
2200
|
-
value:
|
|
2201
|
-
children: /* @__PURE__ */ n(
|
|
2199
|
+
return /* @__PURE__ */ n(Ke.Provider, {
|
|
2200
|
+
value: a,
|
|
2201
|
+
children: /* @__PURE__ */ n($i, {
|
|
2202
2202
|
controls: i,
|
|
2203
|
-
children: /* @__PURE__ */ n(
|
|
2203
|
+
children: /* @__PURE__ */ n(Yi, {
|
|
2204
2204
|
value: d,
|
|
2205
2205
|
children: /* @__PURE__ */ n(le.Root, {
|
|
2206
|
-
[
|
|
2207
|
-
className: re(
|
|
2206
|
+
[el]: "",
|
|
2207
|
+
className: re(Ji, o, { [l]: !tl(o) }),
|
|
2208
2208
|
style: c,
|
|
2209
2209
|
value: s,
|
|
2210
2210
|
onValueChange: (h) => u(h),
|
|
@@ -2213,37 +2213,37 @@ var Ji = ({ handle: e, children: t, controls: i, defaultExpandedSection: r = voi
|
|
|
2213
2213
|
})
|
|
2214
2214
|
})
|
|
2215
2215
|
});
|
|
2216
|
-
},
|
|
2217
|
-
Root:
|
|
2218
|
-
Controls:
|
|
2219
|
-
},
|
|
2216
|
+
}, it = {
|
|
2217
|
+
Root: rl,
|
|
2218
|
+
Controls: nl
|
|
2219
|
+
}, cn = {
|
|
2220
2220
|
stack: "pr583x0",
|
|
2221
2221
|
grid: "pr583x1"
|
|
2222
|
-
},
|
|
2223
|
-
const r = de(),
|
|
2222
|
+
}, dn = "pr583x2", al = "pr583x3", C = ({ label: e, layout: t = "grid", children: i }) => {
|
|
2223
|
+
const r = de(), o = de();
|
|
2224
2224
|
return e === void 0 ? /* @__PURE__ */ n("div", {
|
|
2225
|
-
className:
|
|
2225
|
+
className: cn[t],
|
|
2226
2226
|
children: /* @__PURE__ */ n("div", {
|
|
2227
|
-
className:
|
|
2227
|
+
className: dn,
|
|
2228
2228
|
children: i
|
|
2229
2229
|
})
|
|
2230
|
-
}) : /* @__PURE__ */
|
|
2231
|
-
className:
|
|
2230
|
+
}) : /* @__PURE__ */ m("div", {
|
|
2231
|
+
className: cn[t],
|
|
2232
2232
|
children: [/* @__PURE__ */ n("label", {
|
|
2233
2233
|
id: r,
|
|
2234
|
-
htmlFor:
|
|
2235
|
-
className:
|
|
2234
|
+
htmlFor: o,
|
|
2235
|
+
className: al,
|
|
2236
2236
|
children: e
|
|
2237
2237
|
}), /* @__PURE__ */ n("div", {
|
|
2238
|
-
className:
|
|
2239
|
-
children: /* @__PURE__ */ n(
|
|
2238
|
+
className: dn,
|
|
2239
|
+
children: /* @__PURE__ */ n(Jn, {
|
|
2240
2240
|
labelId: r,
|
|
2241
|
-
controlId:
|
|
2241
|
+
controlId: o,
|
|
2242
2242
|
children: i
|
|
2243
2243
|
})
|
|
2244
2244
|
})]
|
|
2245
2245
|
});
|
|
2246
|
-
},
|
|
2246
|
+
}, ol = (e) => /* @__PURE__ */ n(I, {
|
|
2247
2247
|
...e,
|
|
2248
2248
|
children: /* @__PURE__ */ n("g", {
|
|
2249
2249
|
stroke: "currentColor",
|
|
@@ -2252,25 +2252,25 @@ var Ji = ({ handle: e, children: t, controls: i, defaultExpandedSection: r = voi
|
|
|
2252
2252
|
strokeLinejoin: "round",
|
|
2253
2253
|
children: /* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" })
|
|
2254
2254
|
})
|
|
2255
|
-
}),
|
|
2256
|
-
var
|
|
2257
|
-
var
|
|
2255
|
+
}), Ge = "_40zvwv0", Ue = "_40zvwv1", il = "_40zvwv2", lt = "_40zvwv3", ll = "_40zvwv4 _40zvwv3";
|
|
2256
|
+
var sl = "_40zvwv6";
|
|
2257
|
+
var cl = "_40zvwv8", D = ({ title: e, layout: t = "fixed", preview: i, accessory: r, onOpenChange: o, children: a }) => t === "collapsible" ? /* @__PURE__ */ n(hl, {
|
|
2258
2258
|
title: e,
|
|
2259
2259
|
preview: i,
|
|
2260
2260
|
accessory: r,
|
|
2261
|
-
onOpenChange:
|
|
2262
|
-
children:
|
|
2263
|
-
}) : t === "inline" && i === void 0 ? /* @__PURE__ */ n(
|
|
2261
|
+
onOpenChange: o,
|
|
2262
|
+
children: a
|
|
2263
|
+
}) : t === "inline" && i === void 0 ? /* @__PURE__ */ n(dl, {
|
|
2264
2264
|
title: e,
|
|
2265
2265
|
accessory: r,
|
|
2266
|
-
children:
|
|
2267
|
-
}) : /* @__PURE__ */
|
|
2268
|
-
className:
|
|
2269
|
-
children: [/* @__PURE__ */
|
|
2270
|
-
className:
|
|
2266
|
+
children: a
|
|
2267
|
+
}) : /* @__PURE__ */ m("div", {
|
|
2268
|
+
className: Ge,
|
|
2269
|
+
children: [/* @__PURE__ */ m("div", {
|
|
2270
|
+
className: Ue,
|
|
2271
2271
|
children: [
|
|
2272
2272
|
/* @__PURE__ */ n("span", {
|
|
2273
|
-
className:
|
|
2273
|
+
className: lt,
|
|
2274
2274
|
children: e
|
|
2275
2275
|
}),
|
|
2276
2276
|
i !== void 0 && /* @__PURE__ */ n("span", {
|
|
@@ -2282,25 +2282,25 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2282
2282
|
children: r
|
|
2283
2283
|
})
|
|
2284
2284
|
]
|
|
2285
|
-
}), /* @__PURE__ */ n("div", { children:
|
|
2286
|
-
}),
|
|
2287
|
-
const r = de(),
|
|
2285
|
+
}), /* @__PURE__ */ n("div", { children: a })]
|
|
2286
|
+
}), dl = ({ title: e, accessory: t, children: i }) => {
|
|
2287
|
+
const r = de(), o = de();
|
|
2288
2288
|
return /* @__PURE__ */ n("div", {
|
|
2289
|
-
className:
|
|
2290
|
-
children: /* @__PURE__ */
|
|
2291
|
-
className:
|
|
2289
|
+
className: Ge,
|
|
2290
|
+
children: /* @__PURE__ */ m("div", {
|
|
2291
|
+
className: Ue,
|
|
2292
2292
|
children: [
|
|
2293
2293
|
/* @__PURE__ */ n("label", {
|
|
2294
2294
|
id: r,
|
|
2295
|
-
htmlFor:
|
|
2296
|
-
className:
|
|
2295
|
+
htmlFor: o,
|
|
2296
|
+
className: ll,
|
|
2297
2297
|
children: e
|
|
2298
2298
|
}),
|
|
2299
2299
|
/* @__PURE__ */ n("span", {
|
|
2300
|
-
className:
|
|
2301
|
-
children: /* @__PURE__ */ n(
|
|
2300
|
+
className: sl,
|
|
2301
|
+
children: /* @__PURE__ */ n(Jn, {
|
|
2302
2302
|
labelId: r,
|
|
2303
|
-
controlId:
|
|
2303
|
+
controlId: o,
|
|
2304
2304
|
children: i
|
|
2305
2305
|
})
|
|
2306
2306
|
}),
|
|
@@ -2311,22 +2311,22 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2311
2311
|
]
|
|
2312
2312
|
})
|
|
2313
2313
|
});
|
|
2314
|
-
},
|
|
2315
|
-
const
|
|
2316
|
-
return /* @__PURE__ */
|
|
2314
|
+
}, hl = ({ title: e, preview: t, accessory: i, onOpenChange: r, children: o }) => {
|
|
2315
|
+
const a = A();
|
|
2316
|
+
return /* @__PURE__ */ m(le.Item, {
|
|
2317
2317
|
value: e,
|
|
2318
|
-
className:
|
|
2318
|
+
className: Ge,
|
|
2319
2319
|
onOpenChange: r,
|
|
2320
|
-
children: [/* @__PURE__ */
|
|
2321
|
-
className:
|
|
2320
|
+
children: [/* @__PURE__ */ m(le.Header, {
|
|
2321
|
+
className: Ue,
|
|
2322
2322
|
render: /* @__PURE__ */ n("div", {}),
|
|
2323
2323
|
children: [
|
|
2324
2324
|
/* @__PURE__ */ n(le.Trigger, {
|
|
2325
|
-
className:
|
|
2326
|
-
"aria-label":
|
|
2325
|
+
className: il,
|
|
2326
|
+
"aria-label": a("editor.accessibility.toggleSection", { title: e })
|
|
2327
2327
|
}),
|
|
2328
2328
|
/* @__PURE__ */ n("span", {
|
|
2329
|
-
className:
|
|
2329
|
+
className: lt,
|
|
2330
2330
|
children: e
|
|
2331
2331
|
}),
|
|
2332
2332
|
t !== void 0 && /* @__PURE__ */ n("span", {
|
|
@@ -2338,18 +2338,18 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2338
2338
|
children: i
|
|
2339
2339
|
}),
|
|
2340
2340
|
/* @__PURE__ */ n("span", {
|
|
2341
|
-
className:
|
|
2342
|
-
children: /* @__PURE__ */ n(
|
|
2341
|
+
className: cl,
|
|
2342
|
+
children: /* @__PURE__ */ n(ol, { size: "sm" })
|
|
2343
2343
|
})
|
|
2344
2344
|
]
|
|
2345
|
-
}), /* @__PURE__ */ n(le.Panel, { children: /* @__PURE__ */ n("div", { children:
|
|
2345
|
+
}), /* @__PURE__ */ n(le.Panel, { children: /* @__PURE__ */ n("div", { children: o }) })]
|
|
2346
2346
|
});
|
|
2347
|
-
},
|
|
2348
|
-
const { expandSection: l, collapseAllSections: c } =
|
|
2349
|
-
return /* @__PURE__ */ n(
|
|
2347
|
+
}, Ks = ({ title: e, isChecked: t, onToggle: i, isDisabled: r, preview: o, children: a }) => {
|
|
2348
|
+
const { expandSection: l, collapseAllSections: c } = Qi(), { Switch: s } = E();
|
|
2349
|
+
return /* @__PURE__ */ n(D, {
|
|
2350
2350
|
title: e,
|
|
2351
2351
|
layout: "collapsible",
|
|
2352
|
-
preview:
|
|
2352
|
+
preview: o,
|
|
2353
2353
|
onOpenChange: (h) => {
|
|
2354
2354
|
h && !t && r !== !0 && i(!0);
|
|
2355
2355
|
},
|
|
@@ -2361,286 +2361,286 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2361
2361
|
isDisabled: r,
|
|
2362
2362
|
ariaLabel: e
|
|
2363
2363
|
}),
|
|
2364
|
-
children:
|
|
2364
|
+
children: a
|
|
2365
2365
|
});
|
|
2366
|
-
},
|
|
2366
|
+
}, ul = {
|
|
2367
2367
|
horizontal: ["bottom", "top"],
|
|
2368
2368
|
vertical: ["left", "right"]
|
|
2369
|
-
},
|
|
2369
|
+
}, ml = {
|
|
2370
2370
|
left: "editor.axesPanel.position.left",
|
|
2371
2371
|
right: "editor.axesPanel.position.right",
|
|
2372
2372
|
top: "editor.axesPanel.position.top",
|
|
2373
2373
|
bottom: "editor.axesPanel.position.bottom"
|
|
2374
|
-
},
|
|
2374
|
+
}, pl = {
|
|
2375
2375
|
x: "editor.axesPanel.mainAxisSection.xAxis",
|
|
2376
2376
|
y: "editor.axesPanel.mainAxisSection.yAxis"
|
|
2377
|
-
},
|
|
2378
|
-
const
|
|
2379
|
-
if (!
|
|
2380
|
-
const h =
|
|
2381
|
-
if (h === "circular" || h === "radial" &&
|
|
2382
|
-
const
|
|
2377
|
+
}, hn = ({ axis: e, title: t, layout: i = "collapsible", preview: r }) => {
|
|
2378
|
+
const o = M(), a = R(o), l = A(), { NumberField: c, Switch: s, TextField: u, ToggleGroup: d } = E();
|
|
2379
|
+
if (!a) return null;
|
|
2380
|
+
const h = a.coordSystem.type === "polar" ? a.coordSystem.axisMapping[e].geometry : "linear", v = a.config.axes[e], p = a.scales[e], g = p?.spec, S = g?.scaleType === "continuous" ? g : void 0;
|
|
2381
|
+
if (h === "circular" || h === "radial" && S === void 0) return null;
|
|
2382
|
+
const P = g !== void 0 && "reverse" in g ? g : void 0, y = g?.scaleType === "continuous" || g?.scaleType === "datetime", f = e === "y" && S !== void 0 && a.layers.some((b) => b.yScaleType === "primary" && b.geom === "bar"), x = S?.transform === "log", T = S?.domainMax ?? null, z = gl(S), B = (b, Z) => b.map((me) => ({
|
|
2383
2383
|
value: me,
|
|
2384
2384
|
label: Z(me)
|
|
2385
|
-
})), N =
|
|
2386
|
-
value:
|
|
2387
|
-
label: l(
|
|
2388
|
-
})),
|
|
2385
|
+
})), N = a.guides.axes.find((b) => b.scaleAestheticKey === e)?.position, H = ul[N === "bottom" || N === "top" || N === void 0 && e === "x" ? "horizontal" : "vertical"], L = a.guides.legends.drawn.some((b) => H.some((Z) => Z === b.position)), w = H.map((b) => ({
|
|
2386
|
+
value: b,
|
|
2387
|
+
label: l(ml[b])
|
|
2388
|
+
})), O = B(["auto", "edges"], (b) => l(b === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), Q = B(["linear", "log"], (b) => l(b === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), ht = B([
|
|
2389
2389
|
"auto",
|
|
2390
2390
|
"zero",
|
|
2391
2391
|
"custom"
|
|
2392
|
-
], (
|
|
2393
|
-
|
|
2392
|
+
], (b) => l(b === "zero" ? "editor.axesPanel.startFrom.zero" : b === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), ut = B(["auto", "custom"], (b) => l(b === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), mt = B(["no", "yes"], (b) => l(b === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), pt = (b) => {
|
|
2393
|
+
o.commands.dispatch(new nr({
|
|
2394
2394
|
axis: e,
|
|
2395
|
-
isVisible:
|
|
2395
|
+
isVisible: b
|
|
2396
2396
|
}));
|
|
2397
|
-
},
|
|
2398
|
-
|
|
2397
|
+
}, gt = (b) => {
|
|
2398
|
+
o.commands.dispatch(new Yt({
|
|
2399
2399
|
axis: e,
|
|
2400
|
-
label:
|
|
2400
|
+
label: b === "" ? null : b
|
|
2401
2401
|
}), { transient: !0 });
|
|
2402
|
-
},
|
|
2403
|
-
|
|
2402
|
+
}, vt = (b) => {
|
|
2403
|
+
o.commands.dispatch(new er({
|
|
2404
2404
|
axis: e,
|
|
2405
|
-
isVisible:
|
|
2405
|
+
isVisible: b
|
|
2406
2406
|
}));
|
|
2407
|
-
},
|
|
2408
|
-
|
|
2407
|
+
}, ft = (b) => {
|
|
2408
|
+
o.commands.dispatch(new Jt({
|
|
2409
2409
|
axis: e,
|
|
2410
|
-
tickMode:
|
|
2410
|
+
tickMode: b === "edges" ? "edges" : "auto"
|
|
2411
2411
|
}));
|
|
2412
|
-
},
|
|
2413
|
-
|
|
2412
|
+
}, Ct = (b) => {
|
|
2413
|
+
o.commands.dispatch(new Tr({
|
|
2414
2414
|
scaledAesthetic: e,
|
|
2415
|
-
reverse:
|
|
2415
|
+
reverse: b === "yes"
|
|
2416
2416
|
}));
|
|
2417
|
-
},
|
|
2418
|
-
|
|
2417
|
+
}, bt = (b) => {
|
|
2418
|
+
o.commands.dispatch(new Ar({
|
|
2419
2419
|
scaledAesthetic: e,
|
|
2420
|
-
transform:
|
|
2420
|
+
transform: b === "log" ? "log" : "linear"
|
|
2421
2421
|
}));
|
|
2422
|
-
},
|
|
2423
|
-
|
|
2422
|
+
}, $e = (b) => {
|
|
2423
|
+
o.commands.dispatch(new pe({
|
|
2424
2424
|
scaledAesthetic: e,
|
|
2425
|
-
...
|
|
2425
|
+
...b
|
|
2426
2426
|
}), { transient: !0 });
|
|
2427
|
-
},
|
|
2428
|
-
|
|
2429
|
-
},
|
|
2430
|
-
|
|
2431
|
-
},
|
|
2432
|
-
if (
|
|
2433
|
-
if (
|
|
2434
|
-
|
|
2427
|
+
}, yt = (b) => {
|
|
2428
|
+
b !== null && $e({ domainMin: b });
|
|
2429
|
+
}, St = (b) => {
|
|
2430
|
+
b !== null && $e({ domainMax: b });
|
|
2431
|
+
}, wt = (b) => {
|
|
2432
|
+
if (S) {
|
|
2433
|
+
if (b === "custom") {
|
|
2434
|
+
S.zero && o.commands.dispatch(new Qe({
|
|
2435
2435
|
scaledAesthetic: e,
|
|
2436
2436
|
zero: !1
|
|
2437
|
-
})),
|
|
2437
|
+
})), o.commands.dispatch(new pe({
|
|
2438
2438
|
scaledAesthetic: e,
|
|
2439
|
-
domainMin:
|
|
2439
|
+
domainMin: un(p?.domain, "start")
|
|
2440
2440
|
}));
|
|
2441
2441
|
return;
|
|
2442
2442
|
}
|
|
2443
|
-
|
|
2443
|
+
S.domainMin !== null && o.commands.dispatch(new pe({
|
|
2444
2444
|
scaledAesthetic: e,
|
|
2445
2445
|
domainMin: null
|
|
2446
|
-
})),
|
|
2446
|
+
})), o.commands.dispatch(new Qe({
|
|
2447
2447
|
scaledAesthetic: e,
|
|
2448
|
-
zero:
|
|
2448
|
+
zero: b === "zero"
|
|
2449
2449
|
}));
|
|
2450
2450
|
}
|
|
2451
|
-
},
|
|
2452
|
-
const Z =
|
|
2453
|
-
|
|
2451
|
+
}, xt = (b) => {
|
|
2452
|
+
const Z = b === "custom" ? un(p?.domain, "end") : null;
|
|
2453
|
+
o.commands.dispatch(new pe({
|
|
2454
2454
|
scaledAesthetic: e,
|
|
2455
2455
|
domainMax: Z
|
|
2456
2456
|
}));
|
|
2457
|
-
},
|
|
2458
|
-
const Z =
|
|
2459
|
-
Z &&
|
|
2457
|
+
}, Pt = (b) => {
|
|
2458
|
+
const Z = H.find((me) => me === b);
|
|
2459
|
+
Z && o.commands.dispatch(new Qt({
|
|
2460
2460
|
axis: e,
|
|
2461
2461
|
position: Z
|
|
2462
2462
|
}));
|
|
2463
2463
|
};
|
|
2464
|
-
return /* @__PURE__ */ n(
|
|
2465
|
-
title: t ?? l(
|
|
2464
|
+
return /* @__PURE__ */ n(D, {
|
|
2465
|
+
title: t ?? l(pl[e]),
|
|
2466
2466
|
layout: i,
|
|
2467
2467
|
preview: r,
|
|
2468
|
-
children: /* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */ n(
|
|
2468
|
+
children: /* @__PURE__ */ m(F, { children: [
|
|
2469
|
+
/* @__PURE__ */ n(C, {
|
|
2470
2470
|
label: l("editor.axesPanel.controls.visible"),
|
|
2471
2471
|
children: /* @__PURE__ */ n(s, {
|
|
2472
2472
|
isChecked: v.isVisible,
|
|
2473
|
-
onChange:
|
|
2473
|
+
onChange: pt
|
|
2474
2474
|
})
|
|
2475
2475
|
}),
|
|
2476
|
-
h === "linear" && /* @__PURE__ */
|
|
2476
|
+
h === "linear" && /* @__PURE__ */ m(W, { children: [/* @__PURE__ */ n(C, {
|
|
2477
2477
|
label: l("editor.axesPanel.controls.title"),
|
|
2478
2478
|
children: /* @__PURE__ */ n(u, {
|
|
2479
2479
|
value: v.label ?? "",
|
|
2480
|
-
onChange:
|
|
2481
|
-
onCommit:
|
|
2480
|
+
onChange: gt,
|
|
2481
|
+
onCommit: o.commands.seal
|
|
2482
2482
|
})
|
|
2483
|
-
}), /* @__PURE__ */ n(
|
|
2483
|
+
}), /* @__PURE__ */ n(C, {
|
|
2484
2484
|
label: l("editor.axesPanel.controls.ticks"),
|
|
2485
2485
|
children: /* @__PURE__ */ n(s, {
|
|
2486
2486
|
isChecked: v.ticks.isVisible,
|
|
2487
|
-
onChange:
|
|
2487
|
+
onChange: vt
|
|
2488
2488
|
})
|
|
2489
2489
|
})] }),
|
|
2490
|
-
|
|
2490
|
+
y && /* @__PURE__ */ n(C, {
|
|
2491
2491
|
label: l("editor.axesPanel.controls.labels"),
|
|
2492
2492
|
children: /* @__PURE__ */ n(d, {
|
|
2493
2493
|
value: v.ticks.mode,
|
|
2494
|
-
options:
|
|
2495
|
-
onChange:
|
|
2494
|
+
options: O,
|
|
2495
|
+
onChange: ft
|
|
2496
2496
|
})
|
|
2497
2497
|
}),
|
|
2498
|
-
|
|
2498
|
+
S && h === "linear" && !L && /* @__PURE__ */ n(C, {
|
|
2499
2499
|
label: l("editor.axesPanel.controls.position"),
|
|
2500
2500
|
children: /* @__PURE__ */ n(d, {
|
|
2501
2501
|
value: N ?? v.position,
|
|
2502
2502
|
options: w,
|
|
2503
|
-
onChange:
|
|
2503
|
+
onChange: Pt
|
|
2504
2504
|
})
|
|
2505
2505
|
}),
|
|
2506
|
-
|
|
2506
|
+
P !== void 0 && /* @__PURE__ */ n(C, {
|
|
2507
2507
|
label: l("editor.axesPanel.controls.reverse"),
|
|
2508
2508
|
children: /* @__PURE__ */ n(d, {
|
|
2509
|
-
value:
|
|
2510
|
-
options:
|
|
2511
|
-
onChange:
|
|
2509
|
+
value: P.reverse === !0 ? "yes" : "no",
|
|
2510
|
+
options: mt,
|
|
2511
|
+
onChange: Ct
|
|
2512
2512
|
})
|
|
2513
2513
|
}),
|
|
2514
|
-
|
|
2514
|
+
S && !f && /* @__PURE__ */ n(C, {
|
|
2515
2515
|
label: l("editor.axesPanel.controls.scale"),
|
|
2516
2516
|
children: /* @__PURE__ */ n(d, {
|
|
2517
|
-
value:
|
|
2517
|
+
value: x ? "log" : "linear",
|
|
2518
2518
|
options: Q,
|
|
2519
|
-
onChange:
|
|
2519
|
+
onChange: bt
|
|
2520
2520
|
})
|
|
2521
2521
|
}),
|
|
2522
|
-
|
|
2523
|
-
!f && /* @__PURE__ */
|
|
2522
|
+
S && !x && /* @__PURE__ */ m(W, { children: [
|
|
2523
|
+
!f && /* @__PURE__ */ m(W, { children: [/* @__PURE__ */ n(C, {
|
|
2524
2524
|
label: l("editor.axesPanel.controls.startFrom"),
|
|
2525
2525
|
children: /* @__PURE__ */ n(d, {
|
|
2526
|
-
value:
|
|
2527
|
-
options:
|
|
2528
|
-
onChange:
|
|
2526
|
+
value: z,
|
|
2527
|
+
options: ht,
|
|
2528
|
+
onChange: wt
|
|
2529
2529
|
})
|
|
2530
|
-
}),
|
|
2530
|
+
}), z === "custom" && /* @__PURE__ */ n(C, {
|
|
2531
2531
|
label: l("editor.axesPanel.controls.value"),
|
|
2532
2532
|
children: /* @__PURE__ */ n(c, {
|
|
2533
|
-
value:
|
|
2534
|
-
onChange:
|
|
2535
|
-
onCommit:
|
|
2533
|
+
value: S.domainMin ?? null,
|
|
2534
|
+
onChange: yt,
|
|
2535
|
+
onCommit: o.commands.seal
|
|
2536
2536
|
})
|
|
2537
2537
|
})] }),
|
|
2538
|
-
/* @__PURE__ */ n(
|
|
2538
|
+
/* @__PURE__ */ n(C, {
|
|
2539
2539
|
label: l("editor.axesPanel.controls.endAt"),
|
|
2540
2540
|
children: /* @__PURE__ */ n(d, {
|
|
2541
|
-
value:
|
|
2542
|
-
options:
|
|
2543
|
-
onChange:
|
|
2541
|
+
value: T === null ? "auto" : "custom",
|
|
2542
|
+
options: ut,
|
|
2543
|
+
onChange: xt
|
|
2544
2544
|
})
|
|
2545
2545
|
}),
|
|
2546
|
-
|
|
2546
|
+
T !== null && /* @__PURE__ */ n(C, {
|
|
2547
2547
|
label: l("editor.axesPanel.controls.value"),
|
|
2548
2548
|
children: /* @__PURE__ */ n(c, {
|
|
2549
|
-
value:
|
|
2550
|
-
onChange:
|
|
2551
|
-
onCommit:
|
|
2549
|
+
value: T,
|
|
2550
|
+
onChange: St,
|
|
2551
|
+
onCommit: o.commands.seal
|
|
2552
2552
|
})
|
|
2553
2553
|
})
|
|
2554
2554
|
] })
|
|
2555
2555
|
] })
|
|
2556
2556
|
});
|
|
2557
|
-
},
|
|
2557
|
+
}, gl = (e) => e === void 0 ? "auto" : e.domainMin !== null && e.domainMin !== void 0 ? "custom" : e.zero === !0 ? "zero" : "auto", un = (e, t) => {
|
|
2558
2558
|
const i = t === "start" ? e?.[0] : e?.[e.length - 1];
|
|
2559
2559
|
return typeof i == "number" ? i : 0;
|
|
2560
|
-
},
|
|
2561
|
-
const i =
|
|
2562
|
-
return /* @__PURE__ */ n(
|
|
2560
|
+
}, We = ({ value: e, onChange: t }) => {
|
|
2561
|
+
const i = M(), r = A(), { TextField: o } = E(), a = e !== null && typeof e != "string", l = (c) => t(c === "" ? null : c);
|
|
2562
|
+
return /* @__PURE__ */ n(C, {
|
|
2563
2563
|
label: r("editor.elementsPanel.contentValue"),
|
|
2564
|
-
children: /* @__PURE__ */ n(
|
|
2564
|
+
children: /* @__PURE__ */ n(o, {
|
|
2565
2565
|
value: typeof e == "string" ? e : "",
|
|
2566
2566
|
onChange: l,
|
|
2567
2567
|
onCommit: i.commands.seal,
|
|
2568
|
-
isDisabled:
|
|
2568
|
+
isDisabled: a
|
|
2569
2569
|
})
|
|
2570
2570
|
});
|
|
2571
|
-
},
|
|
2572
|
-
const r =
|
|
2573
|
-
if (!
|
|
2574
|
-
const c =
|
|
2575
|
-
r.commands.dispatch(new
|
|
2571
|
+
}, vl = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2572
|
+
const r = M(), o = R(r), a = A(), { Switch: l } = E();
|
|
2573
|
+
if (!o) return null;
|
|
2574
|
+
const c = o.config.content, s = (d) => {
|
|
2575
|
+
r.commands.dispatch(new xe({
|
|
2576
2576
|
slot: "caption",
|
|
2577
2577
|
isVisible: d
|
|
2578
2578
|
}));
|
|
2579
2579
|
}, u = (d) => {
|
|
2580
|
-
r.commands.dispatch(new
|
|
2580
|
+
r.commands.dispatch(new or({ caption: d }), { transient: !0 });
|
|
2581
2581
|
};
|
|
2582
|
-
return /* @__PURE__ */ n(
|
|
2583
|
-
title: e ??
|
|
2582
|
+
return /* @__PURE__ */ n(D, {
|
|
2583
|
+
title: e ?? a("editor.elementsPanel.footerSection.caption"),
|
|
2584
2584
|
layout: t,
|
|
2585
2585
|
preview: i,
|
|
2586
|
-
children: /* @__PURE__ */
|
|
2587
|
-
label:
|
|
2586
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
2587
|
+
label: a("editor.elementsPanel.contentVisible"),
|
|
2588
2588
|
children: /* @__PURE__ */ n(l, {
|
|
2589
2589
|
isChecked: c.isCaptionVisible,
|
|
2590
2590
|
onChange: s
|
|
2591
2591
|
})
|
|
2592
|
-
}), /* @__PURE__ */ n(
|
|
2592
|
+
}), /* @__PURE__ */ n(We, {
|
|
2593
2593
|
value: c.caption,
|
|
2594
2594
|
onChange: u
|
|
2595
2595
|
})] })
|
|
2596
2596
|
});
|
|
2597
|
-
},
|
|
2598
|
-
const r =
|
|
2599
|
-
if (!
|
|
2600
|
-
const c =
|
|
2601
|
-
r.commands.dispatch(new
|
|
2597
|
+
}, mn = /^[a-z][a-z\d+.-]*:/i, fl = {}, Cl = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2598
|
+
const r = M(), o = R(r), a = A(), { Switch: l } = E();
|
|
2599
|
+
if (!o) return null;
|
|
2600
|
+
const c = o.config.content, s = (u) => {
|
|
2601
|
+
r.commands.dispatch(new xe({
|
|
2602
2602
|
slot: "source",
|
|
2603
2603
|
isVisible: u
|
|
2604
2604
|
}));
|
|
2605
2605
|
};
|
|
2606
|
-
return /* @__PURE__ */ n(
|
|
2607
|
-
title: e ??
|
|
2606
|
+
return /* @__PURE__ */ n(D, {
|
|
2607
|
+
title: e ?? a("editor.elementsPanel.sourceSection.title"),
|
|
2608
2608
|
layout: t,
|
|
2609
2609
|
preview: i,
|
|
2610
|
-
children: /* @__PURE__ */
|
|
2611
|
-
label:
|
|
2610
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
2611
|
+
label: a("editor.elementsPanel.contentVisible"),
|
|
2612
2612
|
children: /* @__PURE__ */ n(l, {
|
|
2613
2613
|
isChecked: c.isSourceVisible,
|
|
2614
2614
|
onChange: s
|
|
2615
2615
|
})
|
|
2616
|
-
}), /* @__PURE__ */ n(
|
|
2616
|
+
}), /* @__PURE__ */ n(bl, { source: c.source ?? fl })] })
|
|
2617
2617
|
});
|
|
2618
|
-
},
|
|
2619
|
-
const t =
|
|
2618
|
+
}, bl = ({ source: e }) => {
|
|
2619
|
+
const t = M(), i = A(), { TextField: r } = E(), o = (s) => {
|
|
2620
2620
|
const u = (s.label ?? "") !== "" || (s.url ?? "") !== "";
|
|
2621
|
-
t.commands.dispatch(new
|
|
2622
|
-
},
|
|
2621
|
+
t.commands.dispatch(new ir({ source: u ? s : null }), { transient: !0 });
|
|
2622
|
+
}, a = () => {
|
|
2623
2623
|
const s = e.url ?? "";
|
|
2624
|
-
s !== "" && !
|
|
2624
|
+
s !== "" && !mn.test(s) && o({
|
|
2625
2625
|
...e,
|
|
2626
2626
|
url: `https://${s}`
|
|
2627
2627
|
}), t.commands.seal();
|
|
2628
|
-
}, l = (s) =>
|
|
2628
|
+
}, l = (s) => o({
|
|
2629
2629
|
...e,
|
|
2630
2630
|
url: s
|
|
2631
|
-
}), c = (s) =>
|
|
2631
|
+
}), c = (s) => o({
|
|
2632
2632
|
...e,
|
|
2633
2633
|
label: s
|
|
2634
2634
|
});
|
|
2635
|
-
return /* @__PURE__ */
|
|
2635
|
+
return /* @__PURE__ */ m(W, { children: [/* @__PURE__ */ n(C, {
|
|
2636
2636
|
label: i("editor.elementsPanel.sourceSection.url"),
|
|
2637
2637
|
children: /* @__PURE__ */ n(r, {
|
|
2638
2638
|
value: e.url ?? "",
|
|
2639
2639
|
onChange: l,
|
|
2640
|
-
onCommit:
|
|
2641
|
-
hasError:
|
|
2640
|
+
onCommit: a,
|
|
2641
|
+
hasError: mn.test(e.url ?? "") && !Yr(e.url)
|
|
2642
2642
|
})
|
|
2643
|
-
}), /* @__PURE__ */ n(
|
|
2643
|
+
}), /* @__PURE__ */ n(C, {
|
|
2644
2644
|
label: i("editor.elementsPanel.sourceSection.name"),
|
|
2645
2645
|
children: /* @__PURE__ */ n(r, {
|
|
2646
2646
|
value: e.label ?? "",
|
|
@@ -2648,33 +2648,33 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2648
2648
|
onCommit: t.commands.seal
|
|
2649
2649
|
})
|
|
2650
2650
|
})] });
|
|
2651
|
-
},
|
|
2652
|
-
const r =
|
|
2653
|
-
if (!
|
|
2654
|
-
const c =
|
|
2655
|
-
r.commands.dispatch(new
|
|
2651
|
+
}, yl = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2652
|
+
const r = M(), o = R(r), a = A(), { Switch: l } = E();
|
|
2653
|
+
if (!o) return null;
|
|
2654
|
+
const c = o.config.content, s = (d) => {
|
|
2655
|
+
r.commands.dispatch(new xe({
|
|
2656
2656
|
slot: "subtitle",
|
|
2657
2657
|
isVisible: d
|
|
2658
2658
|
}));
|
|
2659
2659
|
}, u = (d) => {
|
|
2660
|
-
r.commands.dispatch(new
|
|
2660
|
+
r.commands.dispatch(new lr({ subtitle: d }), { transient: !0 });
|
|
2661
2661
|
};
|
|
2662
|
-
return /* @__PURE__ */ n(
|
|
2663
|
-
title: e ??
|
|
2662
|
+
return /* @__PURE__ */ n(D, {
|
|
2663
|
+
title: e ?? a("editor.elementsPanel.headerSection.subtitle"),
|
|
2664
2664
|
layout: t,
|
|
2665
2665
|
preview: i,
|
|
2666
|
-
children: /* @__PURE__ */
|
|
2667
|
-
label:
|
|
2666
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
2667
|
+
label: a("editor.elementsPanel.contentVisible"),
|
|
2668
2668
|
children: /* @__PURE__ */ n(l, {
|
|
2669
2669
|
isChecked: c.isSubtitleVisible,
|
|
2670
2670
|
onChange: s
|
|
2671
2671
|
})
|
|
2672
|
-
}), /* @__PURE__ */ n(
|
|
2672
|
+
}), /* @__PURE__ */ n(We, {
|
|
2673
2673
|
value: c.subtitle,
|
|
2674
2674
|
onChange: u
|
|
2675
2675
|
})] })
|
|
2676
2676
|
});
|
|
2677
|
-
},
|
|
2677
|
+
}, ke = [
|
|
2678
2678
|
0.8,
|
|
2679
2679
|
1,
|
|
2680
2680
|
1.2,
|
|
@@ -2685,95 +2685,95 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2685
2685
|
2.5,
|
|
2686
2686
|
3,
|
|
2687
2687
|
4
|
|
2688
|
-
],
|
|
2689
|
-
const r =
|
|
2690
|
-
if (!
|
|
2691
|
-
const { textScale: c } =
|
|
2688
|
+
], Sl = ke.length / 2, wl = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2689
|
+
const r = M(), o = R(r), a = A(), { RadioGrid: l } = E();
|
|
2690
|
+
if (!o) return null;
|
|
2691
|
+
const { textScale: c } = o.config.appearance, s = (h) => a("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${h}` }), u = ke.map((h) => ({
|
|
2692
2692
|
value: `${h}`,
|
|
2693
2693
|
label: s(h)
|
|
2694
2694
|
})), d = (h) => {
|
|
2695
|
-
const v =
|
|
2696
|
-
v !== void 0 && r.commands.dispatch(new
|
|
2695
|
+
const v = ke.find((p) => `${p}` === h);
|
|
2696
|
+
v !== void 0 && r.commands.dispatch(new Xt({ textScale: v }));
|
|
2697
2697
|
};
|
|
2698
|
-
return /* @__PURE__ */ n(
|
|
2699
|
-
title: e ??
|
|
2698
|
+
return /* @__PURE__ */ n(D, {
|
|
2699
|
+
title: e ?? a("editor.elementsPanel.textSizeSection.title"),
|
|
2700
2700
|
layout: t,
|
|
2701
2701
|
preview: i ?? s(c),
|
|
2702
2702
|
children: /* @__PURE__ */ n(l, {
|
|
2703
2703
|
value: `${c}`,
|
|
2704
2704
|
options: u,
|
|
2705
|
-
columns:
|
|
2705
|
+
columns: Sl,
|
|
2706
2706
|
onChange: d,
|
|
2707
|
-
ariaLabel:
|
|
2707
|
+
ariaLabel: a("editor.elementsPanel.textSizeSection.title")
|
|
2708
2708
|
})
|
|
2709
2709
|
});
|
|
2710
|
-
},
|
|
2711
|
-
const r =
|
|
2712
|
-
if (!
|
|
2713
|
-
const c =
|
|
2714
|
-
r.commands.dispatch(new
|
|
2710
|
+
}, xl = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2711
|
+
const r = M(), o = R(r), a = A(), { Switch: l } = E();
|
|
2712
|
+
if (!o) return null;
|
|
2713
|
+
const c = o.config.content, s = (d) => {
|
|
2714
|
+
r.commands.dispatch(new xe({
|
|
2715
2715
|
slot: "title",
|
|
2716
2716
|
isVisible: d
|
|
2717
2717
|
}));
|
|
2718
2718
|
}, u = (d) => {
|
|
2719
|
-
r.commands.dispatch(new
|
|
2719
|
+
r.commands.dispatch(new sr({ title: d }), { transient: !0 });
|
|
2720
2720
|
};
|
|
2721
|
-
return /* @__PURE__ */ n(
|
|
2722
|
-
title: e ??
|
|
2721
|
+
return /* @__PURE__ */ n(D, {
|
|
2722
|
+
title: e ?? a("editor.elementsPanel.headerSection.toggleTitle"),
|
|
2723
2723
|
layout: t,
|
|
2724
2724
|
preview: i,
|
|
2725
|
-
children: /* @__PURE__ */
|
|
2726
|
-
label:
|
|
2725
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
2726
|
+
label: a("editor.elementsPanel.contentVisible"),
|
|
2727
2727
|
children: /* @__PURE__ */ n(l, {
|
|
2728
2728
|
isChecked: c.isTitleVisible,
|
|
2729
2729
|
onChange: s
|
|
2730
2730
|
})
|
|
2731
|
-
}), /* @__PURE__ */ n(
|
|
2731
|
+
}), /* @__PURE__ */ n(We, {
|
|
2732
2732
|
value: c.title,
|
|
2733
2733
|
onChange: u
|
|
2734
2734
|
})] })
|
|
2735
2735
|
});
|
|
2736
|
-
},
|
|
2736
|
+
}, Gs = ({ children: e, ...t }) => /* @__PURE__ */ n(it.Root, {
|
|
2737
2737
|
...t,
|
|
2738
|
-
children: e ?? /* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */ n(
|
|
2738
|
+
children: e ?? /* @__PURE__ */ m(W, { children: [
|
|
2739
|
+
/* @__PURE__ */ n(xl, {}),
|
|
2740
|
+
/* @__PURE__ */ n(yl, {}),
|
|
2740
2741
|
/* @__PURE__ */ n(vl, {}),
|
|
2741
|
-
/* @__PURE__ */ n(
|
|
2742
|
-
/* @__PURE__ */ n(
|
|
2743
|
-
/* @__PURE__ */ n(bl, {})
|
|
2742
|
+
/* @__PURE__ */ n(Cl, {}),
|
|
2743
|
+
/* @__PURE__ */ n(wl, {})
|
|
2744
2744
|
] })
|
|
2745
|
-
}),
|
|
2745
|
+
}), Us = ({ children: e, ...t }) => /* @__PURE__ */ n(it.Root, {
|
|
2746
2746
|
...t,
|
|
2747
|
-
children: e ?? /* @__PURE__ */
|
|
2748
|
-
}), Ie = (e) => `${e}px`,
|
|
2749
|
-
const r =
|
|
2750
|
-
if (!
|
|
2751
|
-
const { cornerRadius: s } =
|
|
2752
|
-
value:
|
|
2753
|
-
label:
|
|
2754
|
-
})), h = (
|
|
2755
|
-
r.commands.dispatch(new
|
|
2756
|
-
}, v = (
|
|
2757
|
-
const g =
|
|
2758
|
-
g && r.commands.dispatch(new
|
|
2747
|
+
children: e ?? /* @__PURE__ */ m(W, { children: [/* @__PURE__ */ n(hn, { axis: "x" }), /* @__PURE__ */ n(hn, { axis: "y" })] })
|
|
2748
|
+
}), Ie = (e) => `${e}px`, st = (e) => `${Math.round(e * 100)}%`, Pl = (e) => `${e}°`, Il = 24, pn = ["dim", "desaturate"], Ws = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2749
|
+
const r = M(), o = R(r), a = A(), { Slider: l, ToggleGroup: c } = E();
|
|
2750
|
+
if (!o) return null;
|
|
2751
|
+
const { cornerRadius: s } = o.config.appearance, u = ea(o.spec), d = pn.map((p) => ({
|
|
2752
|
+
value: p,
|
|
2753
|
+
label: a(p === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.grey")
|
|
2754
|
+
})), h = (p) => {
|
|
2755
|
+
r.commands.dispatch(new jt({ cornerRadius: p }), { transient: !0 });
|
|
2756
|
+
}, v = (p) => {
|
|
2757
|
+
const g = pn.find((S) => S === p);
|
|
2758
|
+
g && r.commands.dispatch(new vr({ dimStyle: g }));
|
|
2759
2759
|
};
|
|
2760
|
-
return /* @__PURE__ */ n(
|
|
2761
|
-
title: e ??
|
|
2760
|
+
return /* @__PURE__ */ n(D, {
|
|
2761
|
+
title: e ?? a("editor.colorPanel.appearanceSection.title"),
|
|
2762
2762
|
layout: t,
|
|
2763
2763
|
preview: i,
|
|
2764
|
-
children: /* @__PURE__ */
|
|
2765
|
-
label:
|
|
2764
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
2765
|
+
label: a("editor.colorPanel.borderSection.cornerRadius"),
|
|
2766
2766
|
children: /* @__PURE__ */ n(l, {
|
|
2767
2767
|
value: s,
|
|
2768
2768
|
min: 0,
|
|
2769
|
-
max:
|
|
2769
|
+
max: Il,
|
|
2770
2770
|
step: 1,
|
|
2771
2771
|
formatValue: Ie,
|
|
2772
2772
|
onChange: h,
|
|
2773
2773
|
onCommit: r.commands.seal
|
|
2774
2774
|
})
|
|
2775
|
-
}), /* @__PURE__ */ n(
|
|
2776
|
-
label:
|
|
2775
|
+
}), /* @__PURE__ */ n(C, {
|
|
2776
|
+
label: a("editor.colorPanel.appearanceSection.highlightStyle"),
|
|
2777
2777
|
children: /* @__PURE__ */ n(c, {
|
|
2778
2778
|
value: u,
|
|
2779
2779
|
options: d,
|
|
@@ -2781,481 +2781,939 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
2781
2781
|
})
|
|
2782
2782
|
})] })
|
|
2783
2783
|
});
|
|
2784
|
-
},
|
|
2785
|
-
const { colorScheme: i } =
|
|
2786
|
-
return
|
|
2787
|
-
const r = e?.layers.find((
|
|
2788
|
-
return r === void 0 ? null :
|
|
2784
|
+
}, qe = (e, t) => {
|
|
2785
|
+
const { colorScheme: i } = De();
|
|
2786
|
+
return k(() => {
|
|
2787
|
+
const r = e?.layers.find((o) => o.id === t);
|
|
2788
|
+
return r === void 0 ? null : Br({ colorScheme: i }).geomReaders(r);
|
|
2789
2789
|
}, [
|
|
2790
2790
|
e,
|
|
2791
2791
|
t,
|
|
2792
2792
|
i
|
|
2793
2793
|
]);
|
|
2794
|
-
},
|
|
2795
|
-
const r =
|
|
2796
|
-
if (!
|
|
2797
|
-
const d = (
|
|
2798
|
-
r.commands.dispatch(new
|
|
2794
|
+
}, Tl = 0.05, qs = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
2795
|
+
const r = M(), o = R(r), a = A(), { Slider: l, ToggleGroup: c } = E(), s = o ? Tn(o.spec.layers, "bar") : void 0, u = qe(o, s?.id ?? null);
|
|
2796
|
+
if (!o || !s || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
|
|
2797
|
+
const d = (p) => {
|
|
2798
|
+
r.commands.dispatch(new rr({
|
|
2799
2799
|
layerId: s.id,
|
|
2800
|
-
width:
|
|
2800
|
+
width: p
|
|
2801
2801
|
}), { transient: !0 });
|
|
2802
|
-
}, h = (
|
|
2803
|
-
const g =
|
|
2804
|
-
g && r.commands.dispatch(new
|
|
2802
|
+
}, h = (p) => {
|
|
2803
|
+
const g = Ze.find((S) => S === p);
|
|
2804
|
+
g && r.commands.dispatch(new tr({
|
|
2805
2805
|
layerId: s.id,
|
|
2806
2806
|
borderRadius: g
|
|
2807
2807
|
}));
|
|
2808
|
-
}, v =
|
|
2809
|
-
value:
|
|
2810
|
-
label:
|
|
2808
|
+
}, v = Ze.map((p) => ({
|
|
2809
|
+
value: p,
|
|
2810
|
+
label: a(`editor.graphPanel.barSection.roundingOptions.${p}`)
|
|
2811
2811
|
}));
|
|
2812
|
-
return /* @__PURE__ */ n(
|
|
2813
|
-
title: e ??
|
|
2812
|
+
return /* @__PURE__ */ n(D, {
|
|
2813
|
+
title: e ?? a("editor.graphPanel.barSection.title"),
|
|
2814
2814
|
layout: t,
|
|
2815
2815
|
preview: i,
|
|
2816
|
-
children: /* @__PURE__ */
|
|
2817
|
-
label:
|
|
2816
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
2817
|
+
label: a("editor.graphPanel.barSection.thickness"),
|
|
2818
2818
|
children: /* @__PURE__ */ n(l, {
|
|
2819
2819
|
value: s.params.width,
|
|
2820
|
-
min:
|
|
2821
|
-
max:
|
|
2822
|
-
step:
|
|
2823
|
-
formatValue:
|
|
2820
|
+
min: $t,
|
|
2821
|
+
max: qt,
|
|
2822
|
+
step: Tl,
|
|
2823
|
+
formatValue: st,
|
|
2824
2824
|
onChange: d,
|
|
2825
2825
|
onCommit: r.commands.seal
|
|
2826
2826
|
})
|
|
2827
|
-
}), /* @__PURE__ */ n(
|
|
2828
|
-
label:
|
|
2827
|
+
}), /* @__PURE__ */ n(C, {
|
|
2828
|
+
label: a("editor.graphPanel.barSection.rounding"),
|
|
2829
2829
|
layout: "stack",
|
|
2830
2830
|
children: /* @__PURE__ */ n(c, {
|
|
2831
|
-
value: u?.get("borderRadius") ??
|
|
2831
|
+
value: u?.get("borderRadius") ?? Kt,
|
|
2832
2832
|
options: v,
|
|
2833
2833
|
onChange: h
|
|
2834
2834
|
})
|
|
2835
2835
|
})] })
|
|
2836
2836
|
});
|
|
2837
|
-
},
|
|
2838
|
-
const
|
|
2839
|
-
if (!
|
|
2840
|
-
const s = e === void 0 ?
|
|
2837
|
+
}, $s = ({ layerId: e, title: t, layout: i = "collapsible", preview: r }) => {
|
|
2838
|
+
const o = M(), a = R(o), l = A(), { Switch: c } = E();
|
|
2839
|
+
if (!a) return null;
|
|
2840
|
+
const s = e === void 0 ? a.spec.layers[0] : a.spec.layers.find((N) => N.id === e);
|
|
2841
2841
|
if (!s) return null;
|
|
2842
|
-
const { showDataLabels: u, format: d, showStackTotals: h, showCategoryLabels: v } = s.dataLabels,
|
|
2843
|
-
if (!
|
|
2844
|
-
const
|
|
2845
|
-
const
|
|
2842
|
+
const { showDataLabels: u, format: d, showStackTotals: h, showCategoryLabels: v } = s.dataLabels, p = a.coordSystem.type === "polar", g = s.geom === "bar", S = s.position === "stack" || s.position === "fill", P = g && !p && s.position === "stack", y = g && (!p || u), f = g || s.geom === "area" && S;
|
|
2843
|
+
if (!Vr(s.geom, a.coordSystem.type)) return null;
|
|
2844
|
+
const x = (N) => {
|
|
2845
|
+
const H = new Or({
|
|
2846
2846
|
layerId: s.id,
|
|
2847
2847
|
showDataLabels: N
|
|
2848
2848
|
});
|
|
2849
|
-
|
|
2850
|
-
},
|
|
2851
|
-
const
|
|
2849
|
+
o.commands.dispatch(H);
|
|
2850
|
+
}, T = (N) => {
|
|
2851
|
+
const H = new cr({
|
|
2852
2852
|
layerId: s.id,
|
|
2853
2853
|
format: N ? "percentage" : "absolute"
|
|
2854
2854
|
});
|
|
2855
|
-
|
|
2856
|
-
},
|
|
2857
|
-
const
|
|
2855
|
+
o.commands.dispatch(H);
|
|
2856
|
+
}, z = (N) => {
|
|
2857
|
+
const H = new Mr({
|
|
2858
2858
|
layerId: s.id,
|
|
2859
2859
|
showStackTotals: N
|
|
2860
2860
|
});
|
|
2861
|
-
|
|
2862
|
-
},
|
|
2863
|
-
const
|
|
2861
|
+
o.commands.dispatch(H);
|
|
2862
|
+
}, B = (N) => {
|
|
2863
|
+
const H = new Lr({
|
|
2864
2864
|
layerId: s.id,
|
|
2865
2865
|
showCategoryLabels: N
|
|
2866
2866
|
});
|
|
2867
|
-
|
|
2867
|
+
o.commands.dispatch(H);
|
|
2868
2868
|
};
|
|
2869
|
-
return /* @__PURE__ */ n(
|
|
2869
|
+
return /* @__PURE__ */ n(D, {
|
|
2870
2870
|
title: t ?? l("editor.graphPanel.graphOptionsSection.title"),
|
|
2871
2871
|
layout: i,
|
|
2872
2872
|
preview: r,
|
|
2873
|
-
children: /* @__PURE__ */
|
|
2874
|
-
/* @__PURE__ */ n(
|
|
2873
|
+
children: /* @__PURE__ */ m(F, { children: [
|
|
2874
|
+
/* @__PURE__ */ n(C, {
|
|
2875
2875
|
label: l("editor.graphPanel.graphOptions.dataLabels"),
|
|
2876
2876
|
children: /* @__PURE__ */ n(c, {
|
|
2877
2877
|
isChecked: u,
|
|
2878
|
-
onChange:
|
|
2878
|
+
onChange: x
|
|
2879
2879
|
})
|
|
2880
2880
|
}),
|
|
2881
|
-
u && f && /* @__PURE__ */ n(
|
|
2881
|
+
u && f && /* @__PURE__ */ n(C, {
|
|
2882
2882
|
label: l("editor.graphPanel.graphOptions.showPercentages"),
|
|
2883
2883
|
children: /* @__PURE__ */ n(c, {
|
|
2884
2884
|
isChecked: d === "percentage",
|
|
2885
|
-
onChange:
|
|
2885
|
+
onChange: T
|
|
2886
2886
|
})
|
|
2887
2887
|
}),
|
|
2888
|
-
|
|
2888
|
+
P && /* @__PURE__ */ n(C, {
|
|
2889
2889
|
label: l("editor.graphPanel.graphOptions.stackTotals"),
|
|
2890
2890
|
children: /* @__PURE__ */ n(c, {
|
|
2891
2891
|
isChecked: h,
|
|
2892
|
-
onChange:
|
|
2892
|
+
onChange: z
|
|
2893
2893
|
})
|
|
2894
2894
|
}),
|
|
2895
|
-
|
|
2895
|
+
y && /* @__PURE__ */ n(C, {
|
|
2896
2896
|
label: l("editor.graphPanel.graphOptions.categoryLabels"),
|
|
2897
2897
|
children: /* @__PURE__ */ n(c, {
|
|
2898
2898
|
isChecked: v,
|
|
2899
|
-
onChange:
|
|
2899
|
+
onChange: B
|
|
2900
2900
|
})
|
|
2901
2901
|
})
|
|
2902
2902
|
] })
|
|
2903
2903
|
});
|
|
2904
|
-
},
|
|
2904
|
+
}, Al = (e) => /* @__PURE__ */ m(I, {
|
|
2905
|
+
viewBox: "0 0 16 16",
|
|
2906
|
+
...e,
|
|
2907
|
+
children: [/* @__PURE__ */ n("path", {
|
|
2908
|
+
fill: "currentColor",
|
|
2909
|
+
fillOpacity: "0.8",
|
|
2910
|
+
d: "M10.394 12.734 5.63 7.652 0 13.822V16h16V8.741z"
|
|
2911
|
+
}), /* @__PURE__ */ n("path", {
|
|
2912
|
+
fill: "currentColor",
|
|
2913
|
+
fillOpacity: "0.3",
|
|
2914
|
+
d: "M5.744 5.565 0 11.826V8l5.744-6.957 4.718 2.087L16 0v6.957l-5.538 4z"
|
|
2915
|
+
})]
|
|
2916
|
+
}), Ll = (e) => /* @__PURE__ */ n(I, {
|
|
2917
|
+
viewBox: "0 0 16 16",
|
|
2918
|
+
...e,
|
|
2919
|
+
children: /* @__PURE__ */ m("g", {
|
|
2920
|
+
transform: "rotate(90 8 8)",
|
|
2921
|
+
children: [
|
|
2922
|
+
/* @__PURE__ */ n("rect", {
|
|
2923
|
+
width: "3.2",
|
|
2924
|
+
height: "7.704",
|
|
2925
|
+
y: "8.296",
|
|
2926
|
+
fill: "currentColor",
|
|
2927
|
+
fillOpacity: "0.8",
|
|
2928
|
+
rx: ".533"
|
|
2929
|
+
}),
|
|
2930
|
+
/* @__PURE__ */ n("rect", {
|
|
2931
|
+
width: "3.2",
|
|
2932
|
+
height: "11.259",
|
|
2933
|
+
x: "4.267",
|
|
2934
|
+
y: "4.741",
|
|
2935
|
+
fill: "currentColor",
|
|
2936
|
+
fillOpacity: "0.3",
|
|
2937
|
+
rx: ".533"
|
|
2938
|
+
}),
|
|
2939
|
+
/* @__PURE__ */ n("rect", {
|
|
2940
|
+
width: "3.2",
|
|
2941
|
+
height: "4.741",
|
|
2942
|
+
x: "8.533",
|
|
2943
|
+
y: "11.259",
|
|
2944
|
+
fill: "currentColor",
|
|
2945
|
+
fillOpacity: "0.8",
|
|
2946
|
+
rx: ".533"
|
|
2947
|
+
}),
|
|
2948
|
+
/* @__PURE__ */ n("rect", {
|
|
2949
|
+
width: "3.2",
|
|
2950
|
+
height: "16",
|
|
2951
|
+
x: "12.8",
|
|
2952
|
+
fill: "currentColor",
|
|
2953
|
+
fillOpacity: "0.3",
|
|
2954
|
+
rx: ".533"
|
|
2955
|
+
})
|
|
2956
|
+
]
|
|
2957
|
+
})
|
|
2958
|
+
}), Ol = (e) => /* @__PURE__ */ n(I, {
|
|
2959
|
+
viewBox: "0 0 16 16",
|
|
2960
|
+
...e,
|
|
2961
|
+
children: /* @__PURE__ */ m("g", {
|
|
2962
|
+
transform: "rotate(90 8 8)",
|
|
2963
|
+
children: [/* @__PURE__ */ n("path", {
|
|
2964
|
+
fill: "currentColor",
|
|
2965
|
+
fillOpacity: "0.8",
|
|
2966
|
+
d: "M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518zM11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518z"
|
|
2967
|
+
}), /* @__PURE__ */ n("path", {
|
|
2968
|
+
fill: "currentColor",
|
|
2969
|
+
fillOpacity: "0.3",
|
|
2970
|
+
d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
2971
|
+
})]
|
|
2972
|
+
})
|
|
2973
|
+
}), Nl = (e) => /* @__PURE__ */ n(I, {
|
|
2974
|
+
viewBox: "0 0 16 16",
|
|
2975
|
+
...e,
|
|
2976
|
+
children: /* @__PURE__ */ m("g", {
|
|
2977
|
+
transform: "rotate(90 8 8)",
|
|
2978
|
+
children: [/* @__PURE__ */ n("path", {
|
|
2979
|
+
fill: "currentColor",
|
|
2980
|
+
fillOpacity: "0.8",
|
|
2981
|
+
d: "M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518zM11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518z"
|
|
2982
|
+
}), /* @__PURE__ */ n("path", {
|
|
2983
|
+
fill: "currentColor",
|
|
2984
|
+
fillOpacity: "0.3",
|
|
2985
|
+
d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
2986
|
+
})]
|
|
2987
|
+
})
|
|
2988
|
+
}), kl = (e) => /* @__PURE__ */ m(I, {
|
|
2989
|
+
viewBox: "0 0 16 16",
|
|
2990
|
+
...e,
|
|
2991
|
+
children: [
|
|
2992
|
+
/* @__PURE__ */ n("rect", {
|
|
2993
|
+
width: "3.2",
|
|
2994
|
+
height: "7.704",
|
|
2995
|
+
y: "8.296",
|
|
2996
|
+
fill: "currentColor",
|
|
2997
|
+
fillOpacity: "0.8",
|
|
2998
|
+
rx: ".533"
|
|
2999
|
+
}),
|
|
3000
|
+
/* @__PURE__ */ n("rect", {
|
|
3001
|
+
width: "3.2",
|
|
3002
|
+
height: "11.259",
|
|
3003
|
+
x: "4.267",
|
|
3004
|
+
y: "4.741",
|
|
3005
|
+
fill: "currentColor",
|
|
3006
|
+
fillOpacity: "0.3",
|
|
3007
|
+
rx: ".533"
|
|
3008
|
+
}),
|
|
3009
|
+
/* @__PURE__ */ n("rect", {
|
|
3010
|
+
width: "3.2",
|
|
3011
|
+
height: "4.741",
|
|
3012
|
+
x: "8.533",
|
|
3013
|
+
y: "11.259",
|
|
3014
|
+
fill: "currentColor",
|
|
3015
|
+
fillOpacity: "0.8",
|
|
3016
|
+
rx: ".533"
|
|
3017
|
+
}),
|
|
3018
|
+
/* @__PURE__ */ n("rect", {
|
|
3019
|
+
width: "3.2",
|
|
3020
|
+
height: "16",
|
|
3021
|
+
x: "12.8",
|
|
3022
|
+
fill: "currentColor",
|
|
3023
|
+
fillOpacity: "0.3",
|
|
3024
|
+
rx: ".533"
|
|
3025
|
+
})
|
|
3026
|
+
]
|
|
3027
|
+
}), Ml = (e) => /* @__PURE__ */ m(I, {
|
|
3028
|
+
viewBox: "0 0 16 16",
|
|
3029
|
+
...e,
|
|
3030
|
+
children: [/* @__PURE__ */ n("path", {
|
|
3031
|
+
fill: "currentColor",
|
|
3032
|
+
fillOpacity: "0.8",
|
|
3033
|
+
d: "M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518zM11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518z"
|
|
3034
|
+
}), /* @__PURE__ */ n("path", {
|
|
3035
|
+
fill: "currentColor",
|
|
3036
|
+
fillOpacity: "0.3",
|
|
3037
|
+
d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
3038
|
+
})]
|
|
3039
|
+
}), El = (e) => /* @__PURE__ */ m(I, {
|
|
3040
|
+
viewBox: "0 0 16 16",
|
|
3041
|
+
...e,
|
|
3042
|
+
children: [/* @__PURE__ */ n("path", {
|
|
3043
|
+
fill: "currentColor",
|
|
3044
|
+
fillOpacity: "0.8",
|
|
3045
|
+
d: "M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518zM11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518z"
|
|
3046
|
+
}), /* @__PURE__ */ n("path", {
|
|
3047
|
+
fill: "currentColor",
|
|
3048
|
+
fillOpacity: "0.3",
|
|
3049
|
+
d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
3050
|
+
})]
|
|
3051
|
+
}), _l = (e) => /* @__PURE__ */ n(I, {
|
|
3052
|
+
viewBox: "0 0 16 16",
|
|
3053
|
+
...e,
|
|
3054
|
+
children: /* @__PURE__ */ m("g", {
|
|
3055
|
+
fill: "none",
|
|
3056
|
+
stroke: "currentColor",
|
|
3057
|
+
strokeWidth: "5",
|
|
3058
|
+
transform: "rotate(-90 8 8)",
|
|
3059
|
+
children: [
|
|
3060
|
+
/* @__PURE__ */ n("circle", {
|
|
3061
|
+
cx: "8",
|
|
3062
|
+
cy: "8",
|
|
3063
|
+
r: "5.5",
|
|
3064
|
+
pathLength: "100",
|
|
3065
|
+
strokeOpacity: "0.3"
|
|
3066
|
+
}),
|
|
3067
|
+
/* @__PURE__ */ n("circle", {
|
|
3068
|
+
cx: "8",
|
|
3069
|
+
cy: "8",
|
|
3070
|
+
r: "5.5",
|
|
3071
|
+
pathLength: "100",
|
|
3072
|
+
strokeOpacity: "0.6",
|
|
3073
|
+
strokeDasharray: "25 100"
|
|
3074
|
+
}),
|
|
3075
|
+
/* @__PURE__ */ n("circle", {
|
|
3076
|
+
cx: "8",
|
|
3077
|
+
cy: "8",
|
|
3078
|
+
r: "5.5",
|
|
3079
|
+
pathLength: "100",
|
|
3080
|
+
strokeOpacity: "0.8",
|
|
3081
|
+
strokeDasharray: "25 100",
|
|
3082
|
+
strokeDashoffset: "-25"
|
|
3083
|
+
})
|
|
3084
|
+
]
|
|
3085
|
+
})
|
|
3086
|
+
}), Rl = (e) => /* @__PURE__ */ n(I, {
|
|
3087
|
+
viewBox: "0 0 16 16",
|
|
3088
|
+
...e,
|
|
3089
|
+
children: /* @__PURE__ */ m("g", {
|
|
3090
|
+
fill: "currentColor",
|
|
3091
|
+
stroke: "currentColor",
|
|
3092
|
+
strokeLinecap: "round",
|
|
3093
|
+
strokeLinejoin: "round",
|
|
3094
|
+
strokeWidth: ".993",
|
|
3095
|
+
children: [/* @__PURE__ */ m("g", {
|
|
3096
|
+
fillOpacity: "0.3",
|
|
3097
|
+
strokeOpacity: "0.3",
|
|
3098
|
+
children: [
|
|
3099
|
+
/* @__PURE__ */ n("path", {
|
|
3100
|
+
fill: "none",
|
|
3101
|
+
d: "M1.4 12.2 6 6.4l4.2 1.2 4.4-4.2"
|
|
3102
|
+
}),
|
|
3103
|
+
/* @__PURE__ */ n("circle", {
|
|
3104
|
+
cx: "1.4",
|
|
3105
|
+
cy: "12.2",
|
|
3106
|
+
r: ".9",
|
|
3107
|
+
stroke: "none"
|
|
3108
|
+
}),
|
|
3109
|
+
/* @__PURE__ */ n("circle", {
|
|
3110
|
+
cx: "6",
|
|
3111
|
+
cy: "6.4",
|
|
3112
|
+
r: ".9",
|
|
3113
|
+
stroke: "none"
|
|
3114
|
+
}),
|
|
3115
|
+
/* @__PURE__ */ n("circle", {
|
|
3116
|
+
cx: "10.2",
|
|
3117
|
+
cy: "7.6",
|
|
3118
|
+
r: ".9",
|
|
3119
|
+
stroke: "none"
|
|
3120
|
+
}),
|
|
3121
|
+
/* @__PURE__ */ n("circle", {
|
|
3122
|
+
cx: "14.6",
|
|
3123
|
+
cy: "3.4",
|
|
3124
|
+
r: ".9",
|
|
3125
|
+
stroke: "none"
|
|
3126
|
+
})
|
|
3127
|
+
]
|
|
3128
|
+
}), /* @__PURE__ */ m("g", {
|
|
3129
|
+
fillOpacity: "0.8",
|
|
3130
|
+
strokeOpacity: "0.8",
|
|
3131
|
+
children: [
|
|
3132
|
+
/* @__PURE__ */ n("path", {
|
|
3133
|
+
fill: "none",
|
|
3134
|
+
d: "M1.4 5.6 6 11.4l4.2-1.2 4.4 1.2"
|
|
3135
|
+
}),
|
|
3136
|
+
/* @__PURE__ */ n("circle", {
|
|
3137
|
+
cx: "1.4",
|
|
3138
|
+
cy: "5.6",
|
|
3139
|
+
r: ".9",
|
|
3140
|
+
stroke: "none"
|
|
3141
|
+
}),
|
|
3142
|
+
/* @__PURE__ */ n("circle", {
|
|
3143
|
+
cx: "6",
|
|
3144
|
+
cy: "11.4",
|
|
3145
|
+
r: ".9",
|
|
3146
|
+
stroke: "none"
|
|
3147
|
+
}),
|
|
3148
|
+
/* @__PURE__ */ n("circle", {
|
|
3149
|
+
cx: "10.2",
|
|
3150
|
+
cy: "10.2",
|
|
3151
|
+
r: ".9",
|
|
3152
|
+
stroke: "none"
|
|
3153
|
+
}),
|
|
3154
|
+
/* @__PURE__ */ n("circle", {
|
|
3155
|
+
cx: "14.6",
|
|
3156
|
+
cy: "11.4",
|
|
3157
|
+
r: ".9",
|
|
3158
|
+
stroke: "none"
|
|
3159
|
+
})
|
|
3160
|
+
]
|
|
3161
|
+
})]
|
|
3162
|
+
})
|
|
3163
|
+
}), Dl = (e) => /* @__PURE__ */ m(I, {
|
|
3164
|
+
viewBox: "0 0 16 16",
|
|
3165
|
+
...e,
|
|
3166
|
+
children: [
|
|
3167
|
+
/* @__PURE__ */ n("rect", {
|
|
3168
|
+
width: "16",
|
|
3169
|
+
height: "16",
|
|
3170
|
+
fill: "currentColor",
|
|
3171
|
+
fillOpacity: "0.3",
|
|
3172
|
+
rx: "8"
|
|
3173
|
+
}),
|
|
3174
|
+
/* @__PURE__ */ n("path", {
|
|
3175
|
+
fill: "currentColor",
|
|
3176
|
+
fillOpacity: "0.6",
|
|
3177
|
+
d: "m7.999 16 .412-.01A8 8 0 0 0 8 0z"
|
|
3178
|
+
}),
|
|
3179
|
+
/* @__PURE__ */ n("path", {
|
|
3180
|
+
fill: "currentColor",
|
|
3181
|
+
fillOpacity: "0.8",
|
|
3182
|
+
d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
|
|
3183
|
+
})
|
|
3184
|
+
]
|
|
3185
|
+
}), zl = (e) => /* @__PURE__ */ n(I, {
|
|
3186
|
+
viewBox: "0 0 16 16",
|
|
3187
|
+
...e,
|
|
3188
|
+
children: /* @__PURE__ */ m("g", {
|
|
3189
|
+
fill: "currentColor",
|
|
3190
|
+
fillOpacity: "0.8",
|
|
3191
|
+
children: [
|
|
3192
|
+
/* @__PURE__ */ n("circle", {
|
|
3193
|
+
cx: "1.028",
|
|
3194
|
+
cy: "13.897",
|
|
3195
|
+
r: "1.028"
|
|
3196
|
+
}),
|
|
3197
|
+
/* @__PURE__ */ n("circle", {
|
|
3198
|
+
cx: "2.57",
|
|
3199
|
+
cy: "8.243",
|
|
3200
|
+
r: "1.028"
|
|
3201
|
+
}),
|
|
3202
|
+
/* @__PURE__ */ n("circle", {
|
|
3203
|
+
cx: "5.653",
|
|
3204
|
+
cy: "12.355",
|
|
3205
|
+
r: "1.028"
|
|
3206
|
+
}),
|
|
3207
|
+
/* @__PURE__ */ n("circle", {
|
|
3208
|
+
cx: "8.223",
|
|
3209
|
+
cy: "8.243",
|
|
3210
|
+
r: "1.028"
|
|
3211
|
+
}),
|
|
3212
|
+
/* @__PURE__ */ n("circle", {
|
|
3213
|
+
cx: "9.252",
|
|
3214
|
+
cy: "3.618",
|
|
3215
|
+
r: "1.028"
|
|
3216
|
+
}),
|
|
3217
|
+
/* @__PURE__ */ n("circle", {
|
|
3218
|
+
cx: "12.849",
|
|
3219
|
+
cy: "7.215",
|
|
3220
|
+
r: "1.028"
|
|
3221
|
+
}),
|
|
3222
|
+
/* @__PURE__ */ n("circle", {
|
|
3223
|
+
cx: "14.905",
|
|
3224
|
+
cy: "1.561",
|
|
3225
|
+
r: "1.028"
|
|
3226
|
+
})
|
|
3227
|
+
]
|
|
3228
|
+
})
|
|
3229
|
+
}), Hl = 0.55, Me = [
|
|
3230
|
+
{
|
|
3231
|
+
name: "column",
|
|
3232
|
+
icon: kl,
|
|
3233
|
+
summary: {
|
|
3234
|
+
coordType: "cartesian",
|
|
3235
|
+
geom: "bar",
|
|
3236
|
+
position: "dodge"
|
|
3237
|
+
}
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
name: "columnStacked",
|
|
3241
|
+
icon: El,
|
|
3242
|
+
summary: {
|
|
3243
|
+
coordType: "cartesian",
|
|
3244
|
+
geom: "bar",
|
|
3245
|
+
position: "stack"
|
|
3246
|
+
}
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
name: "columnStackedFill",
|
|
3250
|
+
icon: Ml,
|
|
3251
|
+
summary: {
|
|
3252
|
+
coordType: "cartesian",
|
|
3253
|
+
geom: "bar",
|
|
3254
|
+
position: "fill"
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
name: "bar",
|
|
3259
|
+
icon: Ll,
|
|
3260
|
+
summary: {
|
|
3261
|
+
coordType: "flip",
|
|
3262
|
+
geom: "bar",
|
|
3263
|
+
position: "dodge"
|
|
3264
|
+
}
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
name: "barStacked",
|
|
3268
|
+
icon: Nl,
|
|
3269
|
+
summary: {
|
|
3270
|
+
coordType: "flip",
|
|
3271
|
+
geom: "bar",
|
|
3272
|
+
position: "stack"
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
name: "barStackedFill",
|
|
3277
|
+
icon: Ol,
|
|
3278
|
+
summary: {
|
|
3279
|
+
coordType: "flip",
|
|
3280
|
+
geom: "bar",
|
|
3281
|
+
position: "fill"
|
|
3282
|
+
}
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
name: "line",
|
|
3286
|
+
icon: Rl,
|
|
3287
|
+
summary: {
|
|
3288
|
+
coordType: "cartesian",
|
|
3289
|
+
geom: "line",
|
|
3290
|
+
position: "identity"
|
|
3291
|
+
}
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
name: "areaStacked",
|
|
3295
|
+
icon: Al,
|
|
3296
|
+
summary: {
|
|
3297
|
+
coordType: "cartesian",
|
|
3298
|
+
geom: "area",
|
|
3299
|
+
position: "stack"
|
|
3300
|
+
}
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
name: "scatter",
|
|
3304
|
+
icon: zl,
|
|
3305
|
+
summary: {
|
|
3306
|
+
coordType: "cartesian",
|
|
3307
|
+
geom: "point",
|
|
3308
|
+
position: "identity"
|
|
3309
|
+
}
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
name: "pie",
|
|
3313
|
+
icon: Dl,
|
|
3314
|
+
summary: {
|
|
3315
|
+
coordType: "polar",
|
|
3316
|
+
geom: "bar",
|
|
3317
|
+
position: "fill",
|
|
3318
|
+
theta: "y",
|
|
3319
|
+
innerRadius: 0
|
|
3320
|
+
}
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
name: "donut",
|
|
3324
|
+
icon: _l,
|
|
3325
|
+
summary: {
|
|
3326
|
+
coordType: "polar",
|
|
3327
|
+
geom: "bar",
|
|
3328
|
+
position: "fill",
|
|
3329
|
+
theta: "y",
|
|
3330
|
+
innerRadius: Hl
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
], Vl = 0.05, Fl = (e) => e === null ? null : Me.find((t) => Kl(t.summary, e)) ?? null, Bl = (e, t) => {
|
|
3334
|
+
const { summary: i } = e;
|
|
3335
|
+
return i.coordType !== "polar" || !ye(i.innerRadius) || t === null || t.coordType !== "polar" || !ye(t.innerRadius) ? i : {
|
|
3336
|
+
...i,
|
|
3337
|
+
innerRadius: t.innerRadius
|
|
3338
|
+
};
|
|
3339
|
+
}, Kl = (e, t) => e.coordType !== t.coordType || e.geom !== t.geom || e.position !== t.position ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && ye(e.innerRadius) === ye(t.innerRadius), ye = (e) => e >= Vl, Gl = 3, Zs = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3340
|
+
const r = M(), o = R(r), a = A(), { RadioGrid: l } = E(), c = k(() => Me.map(({ name: h, icon: v }) => ({
|
|
3341
|
+
value: h,
|
|
3342
|
+
label: a(`editor.graphTypes.${h}`),
|
|
3343
|
+
icon: /* @__PURE__ */ n(v, { size: "md" })
|
|
3344
|
+
})), [a]);
|
|
3345
|
+
if (!o) return null;
|
|
3346
|
+
const s = Jr(o.spec), u = Fl(s), d = (h) => {
|
|
3347
|
+
const v = Me.find((p) => p.name === h);
|
|
3348
|
+
v && r.commands.dispatch(new ar(Bl(v, s)));
|
|
3349
|
+
};
|
|
3350
|
+
return /* @__PURE__ */ n(D, {
|
|
3351
|
+
title: e ?? a("editor.graphPanel.graphTypeSection.title"),
|
|
3352
|
+
layout: t,
|
|
3353
|
+
preview: i ?? a(u === null ? "editor.graphTypes.combo" : `editor.graphTypes.${u.name}`),
|
|
3354
|
+
children: /* @__PURE__ */ n(l, {
|
|
3355
|
+
value: u?.name ?? "",
|
|
3356
|
+
options: c,
|
|
3357
|
+
columns: Gl,
|
|
3358
|
+
onChange: d,
|
|
3359
|
+
ariaLabel: a("editor.graphPanel.graphTypeSection.title")
|
|
3360
|
+
})
|
|
3361
|
+
});
|
|
3362
|
+
}, gn = [
|
|
2905
3363
|
"solid",
|
|
2906
3364
|
"dashed",
|
|
2907
3365
|
"dotted"
|
|
2908
|
-
],
|
|
2909
|
-
const r =
|
|
2910
|
-
if (!
|
|
2911
|
-
const d =
|
|
3366
|
+
], Ul = Number.parseFloat(kt.gridLineWidth), Wl = 8, ql = 0, js = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3367
|
+
const r = M(), o = R(r), a = A(), { Slider: l, Switch: c, ToggleGroup: s } = E(), { themeValues: u } = De();
|
|
3368
|
+
if (!o) return null;
|
|
3369
|
+
const d = o.guides.axes.filter($l);
|
|
2912
3370
|
if (d.length === 0) return null;
|
|
2913
|
-
const h =
|
|
3371
|
+
const h = o.coordSystem.type !== "polar", v = d.some((f) => f.gridVisible), p = o.config.axes.y.grid, g = gn.map((f) => ({
|
|
2914
3372
|
value: f,
|
|
2915
|
-
label:
|
|
2916
|
-
})),
|
|
2917
|
-
r.commands.dispatch(new
|
|
3373
|
+
label: a(`editor.graphPanel.gridSection.lineStyles.${f}`)
|
|
3374
|
+
})), S = (f) => (x) => {
|
|
3375
|
+
r.commands.dispatch(new ur({
|
|
2918
3376
|
axis: f,
|
|
2919
|
-
isVisible:
|
|
3377
|
+
isVisible: x
|
|
2920
3378
|
}));
|
|
2921
|
-
},
|
|
2922
|
-
const
|
|
2923
|
-
|
|
3379
|
+
}, P = (f) => {
|
|
3380
|
+
const x = gn.find((T) => T === f);
|
|
3381
|
+
x && r.commands.dispatch(new dr({
|
|
2924
3382
|
axis: "both",
|
|
2925
|
-
lineStyle:
|
|
3383
|
+
lineStyle: x
|
|
2926
3384
|
}));
|
|
2927
|
-
},
|
|
2928
|
-
r.commands.dispatch(new
|
|
3385
|
+
}, y = (f) => {
|
|
3386
|
+
r.commands.dispatch(new hr({
|
|
2929
3387
|
axis: "both",
|
|
2930
3388
|
lineWidth: f
|
|
2931
3389
|
}), { transient: !0 });
|
|
2932
3390
|
};
|
|
2933
|
-
return /* @__PURE__ */ n(
|
|
2934
|
-
title: e ??
|
|
3391
|
+
return /* @__PURE__ */ n(D, {
|
|
3392
|
+
title: e ?? a("editor.graphPanel.gridSection.title"),
|
|
2935
3393
|
layout: t,
|
|
2936
3394
|
preview: i,
|
|
2937
|
-
children: /* @__PURE__ */
|
|
2938
|
-
label:
|
|
3395
|
+
children: /* @__PURE__ */ m(F, { children: [d.map((f) => /* @__PURE__ */ n(C, {
|
|
3396
|
+
label: a(Zl(f)),
|
|
2939
3397
|
children: /* @__PURE__ */ n(c, {
|
|
2940
3398
|
isChecked: f.gridVisible,
|
|
2941
|
-
onChange:
|
|
3399
|
+
onChange: S(f.scaleAestheticKey)
|
|
2942
3400
|
})
|
|
2943
|
-
}, f.scaleAestheticKey)), h && v && /* @__PURE__ */
|
|
2944
|
-
label:
|
|
3401
|
+
}, f.scaleAestheticKey)), h && v && /* @__PURE__ */ m(W, { children: [/* @__PURE__ */ n(C, {
|
|
3402
|
+
label: a("editor.graphPanel.gridSection.gridStyle"),
|
|
2945
3403
|
children: /* @__PURE__ */ n(s, {
|
|
2946
|
-
value:
|
|
3404
|
+
value: p.lineStyle,
|
|
2947
3405
|
options: g,
|
|
2948
|
-
onChange:
|
|
3406
|
+
onChange: P
|
|
2949
3407
|
})
|
|
2950
|
-
}), /* @__PURE__ */ n(
|
|
2951
|
-
label:
|
|
3408
|
+
}), /* @__PURE__ */ n(C, {
|
|
3409
|
+
label: a("editor.graphPanel.gridSection.gridThickness"),
|
|
2952
3410
|
children: /* @__PURE__ */ n(l, {
|
|
2953
|
-
value:
|
|
2954
|
-
min:
|
|
2955
|
-
max:
|
|
3411
|
+
value: p.lineWidth ?? Ot(u.gridLineWidth, Ul),
|
|
3412
|
+
min: ql,
|
|
3413
|
+
max: Wl,
|
|
2956
3414
|
step: 0.5,
|
|
2957
3415
|
formatValue: Ie,
|
|
2958
|
-
onChange:
|
|
3416
|
+
onChange: y,
|
|
2959
3417
|
onCommit: r.commands.seal
|
|
2960
3418
|
})
|
|
2961
3419
|
})] })] })
|
|
2962
3420
|
});
|
|
2963
|
-
},
|
|
3421
|
+
}, $l = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Zl = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaleAestheticKey === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", jl = "total", ct = [
|
|
2964
3422
|
"total",
|
|
2965
3423
|
"average",
|
|
2966
3424
|
"current"
|
|
2967
|
-
],
|
|
3425
|
+
], Xl = ["total"], vn = ["previous", "first"], fn = [
|
|
2968
3426
|
"auto",
|
|
2969
3427
|
"small",
|
|
2970
3428
|
"medium",
|
|
2971
3429
|
"large"
|
|
2972
|
-
],
|
|
2973
|
-
const r =
|
|
2974
|
-
if (!
|
|
2975
|
-
const s =
|
|
2976
|
-
if (h && !
|
|
2977
|
-
const g = h ?
|
|
3430
|
+
], Xs = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3431
|
+
const r = M(), o = R(r), a = A(), { Switch: l, ToggleGroup: c } = E();
|
|
3432
|
+
if (!o) return null;
|
|
3433
|
+
const s = o.config.headline, u = s.show !== "none", d = o.coordSystem, h = d.type === "polar", v = d.type === "polar" && d.innerRadius > 0, p = o.layers.some((w) => w.summary.grandTotal !== void 0);
|
|
3434
|
+
if (h && !p) return null;
|
|
3435
|
+
const g = h ? Xl : ct, S = o.guides.headline, P = S?.kind === "perGroup" && S.items.some((w) => w.comparison !== null), y = g.map((w) => ({
|
|
2978
3436
|
value: w,
|
|
2979
|
-
label:
|
|
2980
|
-
})), f =
|
|
3437
|
+
label: a(`editor.graphPanel.headlineNumberSection.metrics.${w}`)
|
|
3438
|
+
})), f = vn.map((w) => ({
|
|
2981
3439
|
value: w,
|
|
2982
|
-
label:
|
|
2983
|
-
})),
|
|
3440
|
+
label: a(`editor.graphPanel.headlineNumberSection.comparison.${w}`)
|
|
3441
|
+
})), x = fn.map((w) => ({
|
|
2984
3442
|
value: w,
|
|
2985
|
-
label:
|
|
2986
|
-
})),
|
|
3443
|
+
label: a(w === "auto" ? "editor.graphPanel.numberFormat.options.auto" : `editor.graphPanel.headlineNumberSize.sizes.${w}`)
|
|
3444
|
+
})), T = [{
|
|
2987
3445
|
value: "above",
|
|
2988
|
-
label:
|
|
3446
|
+
label: a("editor.graphPanel.headlineNumberSection.position.above")
|
|
2989
3447
|
}, {
|
|
2990
3448
|
value: "center",
|
|
2991
|
-
label:
|
|
2992
|
-
}],
|
|
2993
|
-
r.commands.dispatch(new
|
|
2994
|
-
},
|
|
2995
|
-
const
|
|
2996
|
-
|
|
3449
|
+
label: a("editor.graphPanel.headlineNumberSection.position.center")
|
|
3450
|
+
}], z = (w) => {
|
|
3451
|
+
r.commands.dispatch(new je({ show: w ? jl : "none" }));
|
|
3452
|
+
}, B = (w) => {
|
|
3453
|
+
const O = g.find((Q) => Q === w);
|
|
3454
|
+
O && r.commands.dispatch(new je({ show: O }));
|
|
2997
3455
|
}, N = (w) => {
|
|
2998
|
-
const
|
|
2999
|
-
|
|
3000
|
-
},
|
|
3001
|
-
const
|
|
3002
|
-
|
|
3003
|
-
},
|
|
3004
|
-
r.commands.dispatch(new
|
|
3456
|
+
const O = vn.find((Q) => Q === w);
|
|
3457
|
+
O && r.commands.dispatch(new mr({ compareWith: O }));
|
|
3458
|
+
}, H = (w) => {
|
|
3459
|
+
const O = fn.find((Q) => Q === w);
|
|
3460
|
+
O && r.commands.dispatch(new gr({ size: O }));
|
|
3461
|
+
}, L = (w) => {
|
|
3462
|
+
r.commands.dispatch(new pr({ position: w === "center" ? "center" : "above" }));
|
|
3005
3463
|
};
|
|
3006
|
-
return /* @__PURE__ */ n(
|
|
3007
|
-
title: e ??
|
|
3464
|
+
return /* @__PURE__ */ n(D, {
|
|
3465
|
+
title: e ?? a("editor.graphPanel.headlineNumberSection.title"),
|
|
3008
3466
|
layout: t,
|
|
3009
|
-
preview: i ??
|
|
3010
|
-
children: /* @__PURE__ */
|
|
3011
|
-
label:
|
|
3467
|
+
preview: i ?? Yl(a, s.show),
|
|
3468
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
3469
|
+
label: a("editor.graphPanel.headlineNumberSection.toggle"),
|
|
3012
3470
|
children: /* @__PURE__ */ n(l, {
|
|
3013
3471
|
isChecked: u,
|
|
3014
|
-
onChange:
|
|
3472
|
+
onChange: z
|
|
3015
3473
|
})
|
|
3016
|
-
}), u && /* @__PURE__ */
|
|
3017
|
-
|
|
3018
|
-
label:
|
|
3474
|
+
}), u && /* @__PURE__ */ m(W, { children: [
|
|
3475
|
+
y.length > 1 && /* @__PURE__ */ n(C, {
|
|
3476
|
+
label: a("editor.graphPanel.headlineNumberSection.metricLabel"),
|
|
3019
3477
|
layout: "stack",
|
|
3020
3478
|
children: /* @__PURE__ */ n(c, {
|
|
3021
3479
|
value: s.show,
|
|
3022
|
-
options:
|
|
3023
|
-
onChange:
|
|
3480
|
+
options: y,
|
|
3481
|
+
onChange: B
|
|
3024
3482
|
})
|
|
3025
3483
|
}),
|
|
3026
|
-
|
|
3027
|
-
label:
|
|
3484
|
+
P && /* @__PURE__ */ n(C, {
|
|
3485
|
+
label: a("editor.graphPanel.headlineNumberSection.compareWithLabel"),
|
|
3028
3486
|
layout: "stack",
|
|
3029
3487
|
children: /* @__PURE__ */ n(c, {
|
|
3030
|
-
value:
|
|
3488
|
+
value: na(s.compareWith),
|
|
3031
3489
|
options: f,
|
|
3032
3490
|
onChange: N
|
|
3033
3491
|
})
|
|
3034
3492
|
}),
|
|
3035
|
-
/* @__PURE__ */ n(
|
|
3036
|
-
label:
|
|
3493
|
+
/* @__PURE__ */ n(C, {
|
|
3494
|
+
label: a("editor.graphPanel.headlineNumberSize.sizeLabel"),
|
|
3037
3495
|
children: /* @__PURE__ */ n(c, {
|
|
3038
3496
|
value: s.size,
|
|
3039
|
-
options:
|
|
3040
|
-
onChange:
|
|
3497
|
+
options: x,
|
|
3498
|
+
onChange: H
|
|
3041
3499
|
})
|
|
3042
3500
|
}),
|
|
3043
|
-
v && /* @__PURE__ */ n(
|
|
3044
|
-
label:
|
|
3501
|
+
v && /* @__PURE__ */ n(C, {
|
|
3502
|
+
label: a("editor.axesPanel.controls.position"),
|
|
3045
3503
|
children: /* @__PURE__ */ n(c, {
|
|
3046
3504
|
value: s.position,
|
|
3047
|
-
options:
|
|
3048
|
-
onChange:
|
|
3505
|
+
options: T,
|
|
3506
|
+
onChange: L
|
|
3049
3507
|
})
|
|
3050
3508
|
})
|
|
3051
3509
|
] })] })
|
|
3052
3510
|
});
|
|
3053
|
-
},
|
|
3054
|
-
const i =
|
|
3511
|
+
}, Yl = (e, t) => {
|
|
3512
|
+
const i = ct.find((r) => r === t);
|
|
3055
3513
|
return i && e(`editor.graphPanel.headlineNumberSection.metrics.${i}`);
|
|
3056
|
-
},
|
|
3514
|
+
}, Ae = [
|
|
3057
3515
|
"top",
|
|
3058
3516
|
"bottom",
|
|
3059
3517
|
"left",
|
|
3060
3518
|
"right",
|
|
3061
3519
|
"none"
|
|
3062
|
-
],
|
|
3520
|
+
], Cn = [
|
|
3063
3521
|
"auto",
|
|
3064
3522
|
"start",
|
|
3065
3523
|
"center",
|
|
3066
3524
|
"end"
|
|
3067
|
-
],
|
|
3525
|
+
], bn = [
|
|
3068
3526
|
"auto",
|
|
3069
3527
|
"pill",
|
|
3070
3528
|
"direct"
|
|
3071
|
-
],
|
|
3072
|
-
const
|
|
3073
|
-
if (!
|
|
3074
|
-
const s =
|
|
3075
|
-
legendPosition:
|
|
3076
|
-
coordSystem:
|
|
3077
|
-
layers:
|
|
3078
|
-
}), v =
|
|
3079
|
-
if (s === "auto" && d === void 0 && !h && (v || !
|
|
3080
|
-
const g = d?.position ?? "none",
|
|
3081
|
-
value:
|
|
3082
|
-
label: l(`editor.graphPanel.legendSection.${
|
|
3083
|
-
})),
|
|
3084
|
-
const w =
|
|
3085
|
-
w &&
|
|
3086
|
-
}, f = (
|
|
3087
|
-
const w =
|
|
3088
|
-
w &&
|
|
3089
|
-
},
|
|
3090
|
-
const w =
|
|
3091
|
-
w &&
|
|
3092
|
-
},
|
|
3093
|
-
value:
|
|
3094
|
-
label: l(`editor.graphPanel.legendSection.align.${
|
|
3095
|
-
})),
|
|
3096
|
-
value:
|
|
3097
|
-
label: l(`editor.graphPanel.legendSection.display.${
|
|
3098
|
-
})),
|
|
3099
|
-
return /* @__PURE__ */ n(
|
|
3100
|
-
title:
|
|
3529
|
+
], Ys = ({ positions: e, title: t, layout: i = "collapsible", preview: r }) => {
|
|
3530
|
+
const o = M(), a = R(o), l = A(), { ToggleGroup: c } = E();
|
|
3531
|
+
if (!a) return null;
|
|
3532
|
+
const s = a.config.legend.position, u = e ?? Ae, d = a.guides.legends.drawn[0], h = Hr({
|
|
3533
|
+
legendPosition: a.guides.legends.position,
|
|
3534
|
+
coordSystem: a.coordSystem,
|
|
3535
|
+
layers: a.layers
|
|
3536
|
+
}), v = a.guides.headline?.kind === "perGroup", p = a.guides.colorGroups.length > 0;
|
|
3537
|
+
if (s === "auto" && d === void 0 && !h && (v || !p)) return null;
|
|
3538
|
+
const g = d?.position ?? "none", S = s === "auto" ? g : s, P = Ae.filter((L) => L === S || u.includes(L)).map((L) => ({
|
|
3539
|
+
value: L,
|
|
3540
|
+
label: l(`editor.graphPanel.legendSection.${L}`)
|
|
3541
|
+
})), y = (L) => {
|
|
3542
|
+
const w = Ae.find((O) => O === L);
|
|
3543
|
+
w && o.commands.dispatch(new br({ position: w }));
|
|
3544
|
+
}, f = (L) => {
|
|
3545
|
+
const w = Cn.find((O) => O === L);
|
|
3546
|
+
w && o.commands.dispatch(new fr({ align: w }));
|
|
3547
|
+
}, x = (L) => {
|
|
3548
|
+
const w = bn.find((O) => O === L);
|
|
3549
|
+
w && o.commands.dispatch(new Cr({ display: w }));
|
|
3550
|
+
}, T = Cn.map((L) => ({
|
|
3551
|
+
value: L,
|
|
3552
|
+
label: l(`editor.graphPanel.legendSection.align.${L}`)
|
|
3553
|
+
})), z = bn.map((L) => ({
|
|
3554
|
+
value: L,
|
|
3555
|
+
label: l(`editor.graphPanel.legendSection.display.${L}`)
|
|
3556
|
+
})), B = t ?? l("editor.graphPanel.legendSection.title"), N = P.find((L) => L.value === S)?.label, H = d !== void 0;
|
|
3557
|
+
return /* @__PURE__ */ n(D, {
|
|
3558
|
+
title: B,
|
|
3101
3559
|
layout: i,
|
|
3102
3560
|
preview: r ?? N,
|
|
3103
|
-
children: /* @__PURE__ */
|
|
3104
|
-
/* @__PURE__ */ n(
|
|
3561
|
+
children: /* @__PURE__ */ m(F, { children: [
|
|
3562
|
+
/* @__PURE__ */ n(C, {
|
|
3105
3563
|
label: l("editor.axesPanel.controls.position"),
|
|
3106
3564
|
layout: "stack",
|
|
3107
3565
|
children: /* @__PURE__ */ n(c, {
|
|
3108
|
-
value:
|
|
3109
|
-
options:
|
|
3110
|
-
onChange:
|
|
3566
|
+
value: S,
|
|
3567
|
+
options: P,
|
|
3568
|
+
onChange: y
|
|
3111
3569
|
})
|
|
3112
3570
|
}),
|
|
3113
|
-
|
|
3571
|
+
H && /* @__PURE__ */ n(C, {
|
|
3114
3572
|
label: l("editor.graphPanel.legendSection.alignLabel"),
|
|
3115
3573
|
layout: "stack",
|
|
3116
3574
|
children: /* @__PURE__ */ n(c, {
|
|
3117
|
-
value:
|
|
3118
|
-
options:
|
|
3575
|
+
value: a.config.legend.align,
|
|
3576
|
+
options: T,
|
|
3119
3577
|
onChange: f
|
|
3120
3578
|
})
|
|
3121
3579
|
}),
|
|
3122
|
-
h && /* @__PURE__ */ n(
|
|
3580
|
+
h && /* @__PURE__ */ n(C, {
|
|
3123
3581
|
label: l("editor.graphPanel.legendSection.displayLabel"),
|
|
3124
3582
|
layout: "stack",
|
|
3125
3583
|
children: /* @__PURE__ */ n(c, {
|
|
3126
|
-
value:
|
|
3127
|
-
options:
|
|
3128
|
-
onChange:
|
|
3584
|
+
value: a.config.legend.display,
|
|
3585
|
+
options: z,
|
|
3586
|
+
onChange: x
|
|
3129
3587
|
})
|
|
3130
3588
|
})
|
|
3131
3589
|
] })
|
|
3132
3590
|
});
|
|
3133
|
-
},
|
|
3134
|
-
const t =
|
|
3591
|
+
}, Ql = 1, Jl = 20, es = 0.5, dt = ({ layerId: e }) => {
|
|
3592
|
+
const t = M(), i = R(t), { Slider: r } = E(), o = qe(i, e);
|
|
3135
3593
|
if (!i) return null;
|
|
3136
|
-
const
|
|
3137
|
-
const c = new
|
|
3594
|
+
const a = (l) => {
|
|
3595
|
+
const c = new xr({
|
|
3138
3596
|
layerId: e,
|
|
3139
3597
|
size: l
|
|
3140
3598
|
});
|
|
3141
3599
|
t.commands.dispatch(c, { transient: !0 });
|
|
3142
3600
|
};
|
|
3143
3601
|
return /* @__PURE__ */ n(r, {
|
|
3144
|
-
value:
|
|
3145
|
-
min:
|
|
3146
|
-
max:
|
|
3147
|
-
step:
|
|
3602
|
+
value: o?.get("size") ?? Gt,
|
|
3603
|
+
min: Ql,
|
|
3604
|
+
max: Jl,
|
|
3605
|
+
step: es,
|
|
3148
3606
|
formatValue: Ie,
|
|
3149
|
-
onChange:
|
|
3607
|
+
onChange: a,
|
|
3150
3608
|
onCommit: t.commands.seal
|
|
3151
3609
|
});
|
|
3152
|
-
},
|
|
3610
|
+
}, ns = 1, ts = 10, rs = 0.1, as = [
|
|
3153
3611
|
"gap",
|
|
3154
3612
|
"zero",
|
|
3155
3613
|
"connect"
|
|
3156
|
-
],
|
|
3157
|
-
const r =
|
|
3158
|
-
if (!
|
|
3159
|
-
const
|
|
3614
|
+
], Qs = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3615
|
+
const r = M(), o = R(r), a = A(), { Select: l, Slider: c, Switch: s, ToggleGroup: u } = E(), d = o?.spec.layers ?? [], h = Tn(d, "line", "area"), v = qe(o, h?.id ?? null);
|
|
3616
|
+
if (!o || !h) return null;
|
|
3617
|
+
const p = o.coordSystem.type === "polar", g = ls(a, h), S = is(h, d), P = yn(o.spec, h.geom, "strokeWidth", h.id), y = typeof P == "number", f = h.geom === "line" ? h : void 0, x = [{
|
|
3160
3618
|
value: "auto",
|
|
3161
|
-
label:
|
|
3619
|
+
label: a("editor.graphPanel.numberFormat.options.auto")
|
|
3162
3620
|
}, {
|
|
3163
3621
|
value: "custom",
|
|
3164
|
-
label:
|
|
3165
|
-
}],
|
|
3166
|
-
r.commands.dispatch(new
|
|
3622
|
+
label: a("editor.graphPanel.numberFormat.options.custom")
|
|
3623
|
+
}], T = (w) => {
|
|
3624
|
+
r.commands.dispatch(new kr({
|
|
3167
3625
|
layerId: h.id,
|
|
3168
3626
|
showPoints: w
|
|
3169
3627
|
}));
|
|
3170
|
-
},
|
|
3171
|
-
f && r.commands.dispatch(new
|
|
3628
|
+
}, z = (w) => {
|
|
3629
|
+
f && r.commands.dispatch(new Nr({
|
|
3172
3630
|
layerId: f.id,
|
|
3173
3631
|
showFill: w
|
|
3174
3632
|
}));
|
|
3175
|
-
},
|
|
3176
|
-
r.commands.dispatch(new
|
|
3633
|
+
}, B = (w) => {
|
|
3634
|
+
r.commands.dispatch(new yr({
|
|
3177
3635
|
layerId: h.id,
|
|
3178
3636
|
interpolate: w ? "catmull-rom" : "linear"
|
|
3179
3637
|
}));
|
|
3180
3638
|
}, N = (w) => {
|
|
3181
|
-
const
|
|
3182
|
-
r.commands.dispatch(new
|
|
3639
|
+
const O = v?.get("strokeWidth") ?? Ut;
|
|
3640
|
+
r.commands.dispatch(new Xe({
|
|
3183
3641
|
layerId: h.id,
|
|
3184
|
-
lineWidth: w === "custom" ?
|
|
3642
|
+
lineWidth: w === "custom" ? O : null
|
|
3185
3643
|
}));
|
|
3186
|
-
},
|
|
3187
|
-
r.commands.dispatch(new
|
|
3644
|
+
}, H = (w) => {
|
|
3645
|
+
r.commands.dispatch(new Xe({
|
|
3188
3646
|
layerId: h.id,
|
|
3189
3647
|
lineWidth: w
|
|
3190
3648
|
}), { transient: !0 });
|
|
3191
|
-
},
|
|
3192
|
-
const
|
|
3193
|
-
|
|
3649
|
+
}, L = (w) => {
|
|
3650
|
+
const O = os(w);
|
|
3651
|
+
O && r.commands.dispatch(new Sr({
|
|
3194
3652
|
layerId: h.id,
|
|
3195
|
-
missingValues:
|
|
3653
|
+
missingValues: O
|
|
3196
3654
|
}));
|
|
3197
3655
|
};
|
|
3198
|
-
return /* @__PURE__ */ n(
|
|
3199
|
-
title: e ??
|
|
3656
|
+
return /* @__PURE__ */ n(D, {
|
|
3657
|
+
title: e ?? a("editor.fineTunePanel.lineStyleSection.title"),
|
|
3200
3658
|
layout: t,
|
|
3201
3659
|
preview: i,
|
|
3202
|
-
children: /* @__PURE__ */
|
|
3203
|
-
/* @__PURE__ */ n(
|
|
3204
|
-
label:
|
|
3660
|
+
children: /* @__PURE__ */ m(F, { children: [
|
|
3661
|
+
/* @__PURE__ */ n(C, {
|
|
3662
|
+
label: a("editor.graphPanel.graphOptions.showPoints"),
|
|
3205
3663
|
children: /* @__PURE__ */ n(s, {
|
|
3206
|
-
isChecked:
|
|
3207
|
-
onChange:
|
|
3664
|
+
isChecked: S !== void 0,
|
|
3665
|
+
onChange: T
|
|
3208
3666
|
})
|
|
3209
3667
|
}),
|
|
3210
|
-
|
|
3211
|
-
label:
|
|
3212
|
-
children: /* @__PURE__ */ n(
|
|
3668
|
+
S && /* @__PURE__ */ n(C, {
|
|
3669
|
+
label: a("editor.graphPanel.pointSize.label"),
|
|
3670
|
+
children: /* @__PURE__ */ n(dt, { layerId: S.id })
|
|
3213
3671
|
}),
|
|
3214
|
-
f && !
|
|
3215
|
-
label:
|
|
3672
|
+
f && !p && /* @__PURE__ */ n(C, {
|
|
3673
|
+
label: a("editor.graphPanel.graphOptions.lineFill"),
|
|
3216
3674
|
children: /* @__PURE__ */ n(s, {
|
|
3217
|
-
isChecked:
|
|
3218
|
-
onChange:
|
|
3675
|
+
isChecked: yn(o.spec, "line", "fillAlpha", f.id) !== void 0,
|
|
3676
|
+
onChange: z
|
|
3219
3677
|
})
|
|
3220
3678
|
}),
|
|
3221
|
-
!
|
|
3222
|
-
label:
|
|
3679
|
+
!p && /* @__PURE__ */ n(C, {
|
|
3680
|
+
label: a("editor.graphPanel.graphOptions.smoothLines"),
|
|
3223
3681
|
children: /* @__PURE__ */ n(s, {
|
|
3224
3682
|
isChecked: h.params.interpolate === "catmull-rom",
|
|
3225
|
-
onChange:
|
|
3683
|
+
onChange: B
|
|
3226
3684
|
})
|
|
3227
3685
|
}),
|
|
3228
|
-
/* @__PURE__ */ n(
|
|
3229
|
-
label:
|
|
3686
|
+
/* @__PURE__ */ n(C, {
|
|
3687
|
+
label: a("editor.graphPanel.lineThickness.label"),
|
|
3230
3688
|
children: /* @__PURE__ */ n(u, {
|
|
3231
|
-
value:
|
|
3232
|
-
options:
|
|
3689
|
+
value: y ? "custom" : "auto",
|
|
3690
|
+
options: x,
|
|
3233
3691
|
onChange: N
|
|
3234
3692
|
})
|
|
3235
3693
|
}),
|
|
3236
|
-
|
|
3237
|
-
label:
|
|
3694
|
+
y && /* @__PURE__ */ n(C, {
|
|
3695
|
+
label: a("editor.graphPanel.numberFormat.valueLabel"),
|
|
3238
3696
|
children: /* @__PURE__ */ n(c, {
|
|
3239
|
-
value:
|
|
3240
|
-
min:
|
|
3241
|
-
max:
|
|
3242
|
-
step:
|
|
3697
|
+
value: P,
|
|
3698
|
+
min: ns,
|
|
3699
|
+
max: ts,
|
|
3700
|
+
step: rs,
|
|
3243
3701
|
formatValue: Ie,
|
|
3244
|
-
onChange:
|
|
3702
|
+
onChange: H,
|
|
3245
3703
|
onCommit: r.commands.seal
|
|
3246
3704
|
})
|
|
3247
3705
|
}),
|
|
3248
|
-
!
|
|
3249
|
-
label:
|
|
3706
|
+
!p && g.length > 1 && /* @__PURE__ */ n(C, {
|
|
3707
|
+
label: a("editor.fineTunePanel.detailSection.missingValues"),
|
|
3250
3708
|
children: /* @__PURE__ */ n(l, {
|
|
3251
3709
|
value: h.params.missingValues,
|
|
3252
3710
|
options: g,
|
|
3253
|
-
onChange:
|
|
3711
|
+
onChange: L
|
|
3254
3712
|
})
|
|
3255
3713
|
})
|
|
3256
3714
|
] })
|
|
3257
3715
|
});
|
|
3258
|
-
},
|
|
3716
|
+
}, os = (e) => as.find((t) => t === e), yn = (e, t, i, r) => Wr(e.styles.overrides, Rr(t, r))?.declarations?.[i], is = (e, t) => Oe(t, "point").find((i) => An(i, [e])), ls = (e, t) => {
|
|
3259
3717
|
const i = [{
|
|
3260
3718
|
value: "gap",
|
|
3261
3719
|
label: e("editor.graphPanel.treatEmptyValues.leaveGap.label")
|
|
@@ -3267,7 +3725,7 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
3267
3725
|
value: "connect",
|
|
3268
3726
|
label: e("editor.graphPanel.treatEmptyValues.connectGaps.label")
|
|
3269
3727
|
}), t.geom === "area" ? i.filter((r) => r.value !== "gap") : i;
|
|
3270
|
-
},
|
|
3728
|
+
}, ss = "k", cs = 2, ds = 0, hs = 5, Ee = [
|
|
3271
3729
|
{
|
|
3272
3730
|
value: "k",
|
|
3273
3731
|
labelKey: "thousands"
|
|
@@ -3280,35 +3738,35 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
3280
3738
|
value: "b",
|
|
3281
3739
|
labelKey: "billions"
|
|
3282
3740
|
}
|
|
3283
|
-
],
|
|
3284
|
-
const r =
|
|
3285
|
-
if (!
|
|
3286
|
-
const { abbreviation: s, decimals: u } =
|
|
3741
|
+
], us = ["auto", "none"], Js = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3742
|
+
const r = M(), o = R(r), a = A(), { NumberField: l, ToggleGroup: c } = E();
|
|
3743
|
+
if (!o) return null;
|
|
3744
|
+
const { abbreviation: s, decimals: u } = o.config.numberFormat, d = ms(s) !== void 0, h = u !== "auto", v = (x) => x.map((T) => ({
|
|
3745
|
+
value: T,
|
|
3746
|
+
label: a(`editor.graphPanel.numberFormat.options.${T}`)
|
|
3747
|
+
})), p = Ee.map(({ value: x, labelKey: T }) => ({
|
|
3287
3748
|
value: x,
|
|
3288
|
-
label:
|
|
3289
|
-
})),
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
},
|
|
3295
|
-
const
|
|
3296
|
-
g(
|
|
3297
|
-
},
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
r.commands.dispatch(new Xe({ decimals: P === "custom" ? Gl : "auto" }));
|
|
3302
|
-
}, f = (P) => {
|
|
3303
|
-
P !== null && r.commands.dispatch(new Xe({ decimals: P }), { transient: !0 });
|
|
3749
|
+
label: a(`common.abbreviations.${T}`)
|
|
3750
|
+
})), g = (x) => {
|
|
3751
|
+
r.commands.dispatch(new wr({ abbreviation: x }));
|
|
3752
|
+
}, S = (x) => {
|
|
3753
|
+
const T = us.find((z) => z === x);
|
|
3754
|
+
g(T ?? ss);
|
|
3755
|
+
}, P = (x) => {
|
|
3756
|
+
const T = Ee.find((z) => z.value === x);
|
|
3757
|
+
T && g(T.value);
|
|
3758
|
+
}, y = (x) => {
|
|
3759
|
+
r.commands.dispatch(new Ye({ decimals: x === "custom" ? cs : "auto" }));
|
|
3760
|
+
}, f = (x) => {
|
|
3761
|
+
x !== null && r.commands.dispatch(new Ye({ decimals: x }), { transient: !0 });
|
|
3304
3762
|
};
|
|
3305
|
-
return /* @__PURE__ */ n(
|
|
3306
|
-
title: e ??
|
|
3763
|
+
return /* @__PURE__ */ n(D, {
|
|
3764
|
+
title: e ?? a("editor.graphPanel.numberFormatSection.title"),
|
|
3307
3765
|
layout: t,
|
|
3308
3766
|
preview: i,
|
|
3309
|
-
children: /* @__PURE__ */
|
|
3310
|
-
/* @__PURE__ */ n(
|
|
3311
|
-
label:
|
|
3767
|
+
children: /* @__PURE__ */ m(F, { children: [
|
|
3768
|
+
/* @__PURE__ */ n(C, {
|
|
3769
|
+
label: a("editor.graphPanel.numberFormat.abbreviationLabel"),
|
|
3312
3770
|
children: /* @__PURE__ */ n(c, {
|
|
3313
3771
|
value: d ? "custom" : s,
|
|
3314
3772
|
options: v([
|
|
@@ -3316,84 +3774,84 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
3316
3774
|
"none",
|
|
3317
3775
|
"custom"
|
|
3318
3776
|
]),
|
|
3319
|
-
onChange:
|
|
3777
|
+
onChange: S
|
|
3320
3778
|
})
|
|
3321
3779
|
}),
|
|
3322
|
-
d && /* @__PURE__ */ n(
|
|
3323
|
-
label:
|
|
3780
|
+
d && /* @__PURE__ */ n(C, {
|
|
3781
|
+
label: a("editor.graphPanel.numberFormat.valueLabel"),
|
|
3324
3782
|
children: /* @__PURE__ */ n(c, {
|
|
3325
3783
|
value: s,
|
|
3326
|
-
options:
|
|
3327
|
-
onChange:
|
|
3784
|
+
options: p,
|
|
3785
|
+
onChange: P
|
|
3328
3786
|
})
|
|
3329
3787
|
}),
|
|
3330
|
-
/* @__PURE__ */ n(
|
|
3331
|
-
label:
|
|
3788
|
+
/* @__PURE__ */ n(C, {
|
|
3789
|
+
label: a("editor.graphPanel.numberFormat.decimalPlacesLabel"),
|
|
3332
3790
|
children: /* @__PURE__ */ n(c, {
|
|
3333
3791
|
value: h ? "custom" : "auto",
|
|
3334
3792
|
options: v(["auto", "custom"]),
|
|
3335
|
-
onChange:
|
|
3793
|
+
onChange: y
|
|
3336
3794
|
})
|
|
3337
3795
|
}),
|
|
3338
|
-
h && /* @__PURE__ */ n(
|
|
3339
|
-
label:
|
|
3796
|
+
h && /* @__PURE__ */ n(C, {
|
|
3797
|
+
label: a("editor.graphPanel.numberFormat.valueLabel"),
|
|
3340
3798
|
children: /* @__PURE__ */ n(l, {
|
|
3341
3799
|
value: u,
|
|
3342
|
-
min:
|
|
3343
|
-
max:
|
|
3800
|
+
min: ds,
|
|
3801
|
+
max: hs,
|
|
3344
3802
|
onChange: f,
|
|
3345
3803
|
onCommit: r.commands.seal
|
|
3346
3804
|
})
|
|
3347
3805
|
})
|
|
3348
3806
|
] })
|
|
3349
3807
|
});
|
|
3350
|
-
},
|
|
3351
|
-
const r =
|
|
3808
|
+
}, ms = (e) => Ee.find((t) => t.value === e), ec = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3809
|
+
const r = R(M()), o = A();
|
|
3352
3810
|
if (!r) return null;
|
|
3353
|
-
const
|
|
3354
|
-
return
|
|
3355
|
-
title: e ??
|
|
3811
|
+
const a = ps(r.spec.layers);
|
|
3812
|
+
return a ? /* @__PURE__ */ n(D, {
|
|
3813
|
+
title: e ?? o("editor.graphPanel.pointSize.label"),
|
|
3356
3814
|
layout: t,
|
|
3357
3815
|
preview: i,
|
|
3358
|
-
children: /* @__PURE__ */ n(
|
|
3359
|
-
label:
|
|
3360
|
-
children: /* @__PURE__ */ n(
|
|
3816
|
+
children: /* @__PURE__ */ n(F, { children: /* @__PURE__ */ n(C, {
|
|
3817
|
+
label: o("editor.graphPanel.numberFormat.valueLabel"),
|
|
3818
|
+
children: /* @__PURE__ */ n(dt, { layerId: a.id })
|
|
3361
3819
|
}) })
|
|
3362
3820
|
}) : null;
|
|
3363
|
-
},
|
|
3364
|
-
const t =
|
|
3365
|
-
return
|
|
3366
|
-
},
|
|
3367
|
-
const r =
|
|
3368
|
-
if (!
|
|
3369
|
-
const { innerRadius: c, startAngle: s } =
|
|
3370
|
-
r.commands.dispatch(new
|
|
3821
|
+
}, ps = (e) => {
|
|
3822
|
+
const t = Oe(e, "line", "area");
|
|
3823
|
+
return Oe(e, "point").find((i) => !An(i, t));
|
|
3824
|
+
}, gs = 0.9, vs = 360, fs = 0.05, Cs = 15, nc = ({ title: e, layout: t = "collapsible", preview: i }) => {
|
|
3825
|
+
const r = M(), o = R(r), a = A(), { Slider: l } = E();
|
|
3826
|
+
if (!o || o.spec.coords.coordType !== "polar") return null;
|
|
3827
|
+
const { innerRadius: c, startAngle: s } = o.spec.coords.params, u = (h) => {
|
|
3828
|
+
r.commands.dispatch(new Pr({ innerRadius: h }), { transient: !0 });
|
|
3371
3829
|
}, d = (h) => {
|
|
3372
|
-
r.commands.dispatch(new
|
|
3830
|
+
r.commands.dispatch(new Ir({ startAngle: h }), { transient: !0 });
|
|
3373
3831
|
};
|
|
3374
|
-
return /* @__PURE__ */ n(
|
|
3375
|
-
title: e ??
|
|
3832
|
+
return /* @__PURE__ */ n(D, {
|
|
3833
|
+
title: e ?? a("editor.graphPanel.polarSection.title"),
|
|
3376
3834
|
layout: t,
|
|
3377
3835
|
preview: i,
|
|
3378
|
-
children: /* @__PURE__ */
|
|
3379
|
-
label:
|
|
3836
|
+
children: /* @__PURE__ */ m(F, { children: [/* @__PURE__ */ n(C, {
|
|
3837
|
+
label: a("editor.graphPanel.polarSection.innerRadius"),
|
|
3380
3838
|
children: /* @__PURE__ */ n(l, {
|
|
3381
3839
|
value: c,
|
|
3382
3840
|
min: 0,
|
|
3383
|
-
max:
|
|
3384
|
-
step:
|
|
3385
|
-
formatValue:
|
|
3841
|
+
max: gs,
|
|
3842
|
+
step: fs,
|
|
3843
|
+
formatValue: st,
|
|
3386
3844
|
onChange: u,
|
|
3387
3845
|
onCommit: r.commands.seal
|
|
3388
3846
|
})
|
|
3389
|
-
}), /* @__PURE__ */ n(
|
|
3390
|
-
label:
|
|
3847
|
+
}), /* @__PURE__ */ n(C, {
|
|
3848
|
+
label: a("editor.graphPanel.polarSection.startAngle"),
|
|
3391
3849
|
children: /* @__PURE__ */ n(l, {
|
|
3392
3850
|
value: s,
|
|
3393
3851
|
min: 0,
|
|
3394
|
-
max:
|
|
3395
|
-
step:
|
|
3396
|
-
formatValue:
|
|
3852
|
+
max: vs - 1,
|
|
3853
|
+
step: Cs,
|
|
3854
|
+
formatValue: Pl,
|
|
3397
3855
|
onChange: d,
|
|
3398
3856
|
onCommit: r.commands.seal
|
|
3399
3857
|
})
|
|
@@ -3401,40 +3859,41 @@ var ol = "_40zvwv8", H = ({ title: e, layout: t = "fixed", preview: i, accessory
|
|
|
3401
3859
|
});
|
|
3402
3860
|
};
|
|
3403
3861
|
export {
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3862
|
+
Ws as AppearanceSection,
|
|
3863
|
+
Us as AxesPanel,
|
|
3864
|
+
hn as AxisSection,
|
|
3865
|
+
qs as BarSection,
|
|
3866
|
+
ci as Button,
|
|
3867
|
+
vl as CaptionSection,
|
|
3868
|
+
Bs as EditableGraphRenderer,
|
|
3869
|
+
it as EditorPanel,
|
|
3870
|
+
Gs as ElementsPanel,
|
|
3871
|
+
$s as GraphOptionsSection,
|
|
3872
|
+
Zs as GraphTypeSection,
|
|
3873
|
+
js as GridSection,
|
|
3874
|
+
Xs as HeadlineSection,
|
|
3875
|
+
Ss as IntlProvider,
|
|
3876
|
+
Ys as LegendSection,
|
|
3877
|
+
Qs as LineSection,
|
|
3878
|
+
mi as NumberField,
|
|
3879
|
+
Js as NumberFormatSection,
|
|
3880
|
+
el as PANEL_ROOT_ATTRIBUTE,
|
|
3881
|
+
ec as PointSection,
|
|
3882
|
+
nc as PolarSection,
|
|
3883
|
+
fi as RadioGrid,
|
|
3884
|
+
C as Row,
|
|
3885
|
+
D as Section,
|
|
3886
|
+
Ti as Select,
|
|
3887
|
+
Ri as Slider,
|
|
3888
|
+
Cl as SourceSection,
|
|
3889
|
+
yl as SubtitleSection,
|
|
3890
|
+
Vi as Switch,
|
|
3891
|
+
Ki as TextField,
|
|
3892
|
+
wl as TextSizeSection,
|
|
3893
|
+
xl as TitleSection,
|
|
3894
|
+
Wi as ToggleGroup,
|
|
3895
|
+
Ks as ToggledSection,
|
|
3896
|
+
E as useControls,
|
|
3897
|
+
Qi as usePanelExpansion,
|
|
3898
|
+
M as usePanelGraph
|
|
3440
3899
|
};
|