@graphysdk/react-renderer 2.0.0-beta.1788529798467 → 2.0.0-beta.1788534616557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +1 -1
- package/dist/{history-chords-DJSNTqVI.cjs → history-chords-Dn-_MJlI.cjs} +1 -1
- package/dist/{history-chords-BCaeGipa.js → history-chords-WjboHZs5.js} +579 -568
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +41 -4
- package/dist/index.mjs +38 -37
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as Vr, c as oa, f as
|
|
2
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Vt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Ut, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Qt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as Ha, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Oa, findPointerRegion as gr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Zr, getAngleExtent as Yt, getBarRectBounds as Ke, getBoundingRect as $r, getChromeDashArray as ft, getColor as _r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as en, getPolarHoverGuideArcProps as Ka, getRadiusExtent as mt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as q, getXMax as Za, getY as te, getYMax as tn, isAnnotationMovable as $a, isDefined as rn, isFullTurnSweep as nn, isSafeUrl as Kt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as on, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as an, prepareLineObservations as sn, projectAnchorToPanel as Qe, projectRegionToPanel as zt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as ln, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as cn, resolveGridLineStyle as Lt, resolveHeadlineFigure as dn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as un, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as hn, resolvePolarBarCornerRadiusUnit as vn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as gn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as
|
|
3
|
-
import { Fragment as jt, createContext as
|
|
4
|
-
import { Fragment as B, jsx as s, jsxs as
|
|
1
|
+
import { a as Vr, c as oa, f as y, i as aa, l as Ur, n as Qr, o as ia, r as sa, s as Yr, t as la, u as Kr } from "./dev.utils-CzXWvwtn.js";
|
|
2
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Vt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Ut, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Qt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as Ha, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Oa, findPointerRegion as gr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Zr, getAngleExtent as Yt, getBarRectBounds as Ke, getBoundingRect as $r, getChromeDashArray as ft, getColor as _r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as en, getPolarHoverGuideArcProps as Ka, getRadiusExtent as mt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as q, getXMax as Za, getY as te, getYMax as tn, isAnnotationMovable as $a, isDefined as rn, isFullTurnSweep as nn, isSafeUrl as Kt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as on, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as an, prepareLineObservations as sn, projectAnchorToPanel as Qe, projectRegionToPanel as zt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as ln, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as cn, resolveGridLineStyle as Lt, resolveHeadlineFigure as dn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as un, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as hn, resolvePolarBarCornerRadiusUnit as vn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as gn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as z, toPanelCursor as Si, toPercent as k, toViewBoxX as fn, toViewBoxY as pn, truncateToWidth as ki } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as jt, createContext as Q, memo as Z, useCallback as se, useContext as D, useEffect as F, useId as U, useMemo as A, useRef as T, useState as G, useSyncExternalStore as Ri } from "react";
|
|
4
|
+
import { Fragment as B, jsx as s, jsxs as w } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as je } from "zustand";
|
|
6
6
|
import { animate as ie, motion as H, useMotionValue as _, useReducedMotion as Ci, useTransform as tt } from "motion/react";
|
|
7
7
|
import { interpolatePath as Ei } from "d3-interpolate-path";
|
|
8
|
-
import { useShallow as
|
|
8
|
+
import { useShallow as j } from "zustand/react/shallow";
|
|
9
9
|
import { parseFontLength as Pi, parseFontWeight as Bi, parseUnitlessLineHeight as Ii } from "@graphysdk/viz-engine/graph-config";
|
|
10
10
|
import { createStore as mn } from "zustand/vanilla";
|
|
11
11
|
import { createPortal as An } from "react-dom";
|
|
@@ -24,21 +24,21 @@ import './history-chords.css';var fr = Object.defineProperty, Mi = (e, t) => {
|
|
|
24
24
|
});
|
|
25
25
|
return t || fr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
26
26
|
};
|
|
27
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.
|
|
28
|
-
var bn =
|
|
27
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.1788534616557");
|
|
28
|
+
var bn = Q(null), W = () => {
|
|
29
29
|
const e = D(bn);
|
|
30
30
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|
|
31
31
|
return e;
|
|
32
32
|
}, C = (e) => {
|
|
33
|
-
const { store: t } =
|
|
33
|
+
const { store: t } = W();
|
|
34
34
|
return je(t, (r) => e(r.compiled));
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
const { colorScheme: t } =
|
|
36
|
+
function I(e) {
|
|
37
|
+
const { colorScheme: t } = W();
|
|
38
38
|
return A(() => gt({ colorScheme: t }).geomReaders(e), [e, t]);
|
|
39
39
|
}
|
|
40
40
|
var wn = (e) => {
|
|
41
|
-
const { colorScheme: t } =
|
|
41
|
+
const { colorScheme: t } = W(), r = C((n) => n.layers);
|
|
42
42
|
return A(() => {
|
|
43
43
|
const n = r.find((o) => o.id === e);
|
|
44
44
|
return n === void 0 ? null : gt({ colorScheme: t }).geomReaders(n);
|
|
@@ -48,7 +48,7 @@ var wn = (e) => {
|
|
|
48
48
|
t
|
|
49
49
|
]);
|
|
50
50
|
}, Sn = () => {
|
|
51
|
-
const { colorScheme: e } =
|
|
51
|
+
const { colorScheme: e } = W(), t = C((r) => r.layers);
|
|
52
52
|
return A(() => {
|
|
53
53
|
const r = gt({ colorScheme: e });
|
|
54
54
|
return (n) => {
|
|
@@ -88,8 +88,8 @@ var wn = (e) => {
|
|
|
88
88
|
if (!e.anchored) return null;
|
|
89
89
|
const n = r?.get("color", e.observation) ?? zr, o = (Zr(e.observation) ?? 1) * Hi, a = (r?.get("size", e.observation) ?? 8) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y);
|
|
90
90
|
return /* @__PURE__ */ s("circle", {
|
|
91
|
-
cx:
|
|
92
|
-
cy:
|
|
91
|
+
cx: k(l.x),
|
|
92
|
+
cy: k(l.y),
|
|
93
93
|
r: a,
|
|
94
94
|
fill: n,
|
|
95
95
|
opacity: o,
|
|
@@ -118,7 +118,7 @@ var wn = (e) => {
|
|
|
118
118
|
e,
|
|
119
119
|
r
|
|
120
120
|
]), r;
|
|
121
|
-
}, Rn = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(Wi, { ...t }) : /* @__PURE__ */ s(Gi, { ...t }), Gi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => /* @__PURE__ */
|
|
121
|
+
}, Rn = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(Wi, { ...t }) : /* @__PURE__ */ s(Gi, { ...t }), Gi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s("path", {
|
|
122
122
|
d: e,
|
|
123
123
|
fill: r,
|
|
124
124
|
fillOpacity: n,
|
|
@@ -133,7 +133,7 @@ var wn = (e) => {
|
|
|
133
133
|
vectorEffect: "non-scaling-stroke"
|
|
134
134
|
})] }), Wi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => {
|
|
135
135
|
const c = Dt(e, ne), u = Dt(t, ne);
|
|
136
|
-
return /* @__PURE__ */
|
|
136
|
+
return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(H.path, {
|
|
137
137
|
d: c,
|
|
138
138
|
fill: r,
|
|
139
139
|
fillOpacity: n,
|
|
@@ -169,8 +169,8 @@ var wn = (e) => {
|
|
|
169
169
|
return 0;
|
|
170
170
|
}
|
|
171
171
|
}, pr = 1.1, mr = 1.5, Cn = ({ intro: e, children: t }) => {
|
|
172
|
-
const r =
|
|
173
|
-
return /* @__PURE__ */
|
|
172
|
+
const r = U();
|
|
173
|
+
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("clipPath", {
|
|
174
174
|
id: r,
|
|
175
175
|
children: /* @__PURE__ */ s(H.rect, {
|
|
176
176
|
...Ki(e.axis),
|
|
@@ -193,23 +193,23 @@ var wn = (e) => {
|
|
|
193
193
|
initial: { height: 0 },
|
|
194
194
|
animate: { height: pr }
|
|
195
195
|
}, zi = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
196
|
-
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = A(() => Xr(r, t.params), [t.params, r]), c =
|
|
196
|
+
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = A(() => Xr(r, t.params), [t.params, r]), c = I(t), u = A(() => {
|
|
197
197
|
const d = oe(t.data, t.mapping, t.id), v = [];
|
|
198
198
|
return t.data.groupBy(ce.group).forEach((g) => {
|
|
199
199
|
const h = an([...g], t.params.missingValues), f = l(h), m = i(h);
|
|
200
200
|
if (!f || !m) return;
|
|
201
201
|
const p = h[0];
|
|
202
202
|
if (!p) return;
|
|
203
|
-
const
|
|
203
|
+
const x = c.get("color", p), b = c.get("strokeWidth", p), R = Ee(c.get("lineType", p));
|
|
204
204
|
v.push({
|
|
205
205
|
key: d(p),
|
|
206
206
|
areaPath: f,
|
|
207
207
|
linePath: m,
|
|
208
|
-
color:
|
|
208
|
+
color: x,
|
|
209
209
|
fillOpacity: c.get("alpha", p),
|
|
210
|
-
strokeWidth:
|
|
210
|
+
strokeWidth: b,
|
|
211
211
|
strokeOpacity: c.get("strokeAlpha", p),
|
|
212
|
-
strokeDasharray:
|
|
212
|
+
strokeDasharray: R
|
|
213
213
|
});
|
|
214
214
|
}), v;
|
|
215
215
|
}, [
|
|
@@ -255,8 +255,8 @@ var wn = (e) => {
|
|
|
255
255
|
}), Xi = "_324dw20", Rt = 1, qi = 2, Ji = 1, Zi = 12 / 2, $i = 2.25, Pe = ({ hit: e, project: t = Xt, ...r }) => {
|
|
256
256
|
const n = wn(e.layerId);
|
|
257
257
|
if (!e.anchored) return null;
|
|
258
|
-
const o = n?.get("color", e.observation) ?? zr, a = Zr(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y), c =
|
|
259
|
-
return /* @__PURE__ */
|
|
258
|
+
const o = n?.get("color", e.observation) ?? zr, a = Zr(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y), c = k(l.x), u = k(l.y), d = _i(e.observation), v = d + Rt / 2 + Ji + Rt / 2;
|
|
259
|
+
return /* @__PURE__ */ w("g", {
|
|
260
260
|
...r,
|
|
261
261
|
className: Xi,
|
|
262
262
|
children: [/* @__PURE__ */ s("circle", {
|
|
@@ -280,7 +280,7 @@ var wn = (e) => {
|
|
|
280
280
|
const t = Xa(e);
|
|
281
281
|
return rn(t) ? t / $i : Zi;
|
|
282
282
|
}, es = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
283
|
-
const o =
|
|
283
|
+
const o = I(e), a = pt(r.observation), i = A(() => an([...e.data.filter(ce.group, "eq", a)], e.params.missingValues), [
|
|
284
284
|
e.data,
|
|
285
285
|
e.params.missingValues,
|
|
286
286
|
a
|
|
@@ -297,10 +297,10 @@ var wn = (e) => {
|
|
|
297
297
|
]);
|
|
298
298
|
if (!l || !c) return null;
|
|
299
299
|
const u = o.get("color", r.observation), d = o.get("alpha", r.observation), v = o.get("strokeWidth", r.observation), g = Ee(o.get("lineType", r.observation));
|
|
300
|
-
return /* @__PURE__ */
|
|
300
|
+
return /* @__PURE__ */ w("g", {
|
|
301
301
|
"data-testid": "hovered-area",
|
|
302
302
|
children: [
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ w("svg", {
|
|
304
304
|
viewBox: "0 0 1 1",
|
|
305
305
|
preserveAspectRatio: "none",
|
|
306
306
|
width: "100%",
|
|
@@ -364,13 +364,13 @@ var wn = (e) => {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
}, Ht = (e, t, r) => {
|
|
367
|
-
const n = r === void 0 ? e.activeIntro : r, o =
|
|
367
|
+
const n = r === void 0 ? e.activeIntro : r, o = T(n ? Jt(n, t) : null), a = T(e.shouldAnimateTransitions);
|
|
368
368
|
return a.current = e.shouldAnimateTransitions, se(() => {
|
|
369
369
|
const i = o.current;
|
|
370
370
|
return o.current = null, i ?? qt(a.current);
|
|
371
371
|
}, []);
|
|
372
372
|
}, At = (e, t) => {
|
|
373
|
-
const r =
|
|
373
|
+
const r = T(!0);
|
|
374
374
|
F(() => {
|
|
375
375
|
r.current = !1;
|
|
376
376
|
}, []);
|
|
@@ -401,7 +401,7 @@ var wn = (e) => {
|
|
|
401
401
|
width: e.width,
|
|
402
402
|
height: 0
|
|
403
403
|
}, rs = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
404
|
-
const a =
|
|
404
|
+
const a = U(), i = I(t), l = At(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n);
|
|
405
405
|
return /* @__PURE__ */ s(B, { children: A(() => {
|
|
406
406
|
const c = oe(t.data, t.mapping, t.id), u = /* @__PURE__ */ new Map();
|
|
407
407
|
for (const d of t.data) {
|
|
@@ -473,7 +473,7 @@ var wn = (e) => {
|
|
|
473
473
|
const [v] = n;
|
|
474
474
|
if (!v) return null;
|
|
475
475
|
const { key: g, ...h } = v;
|
|
476
|
-
return /* @__PURE__ */
|
|
476
|
+
return /* @__PURE__ */ w(B, { children: [d, /* @__PURE__ */ s("g", {
|
|
477
477
|
clipPath: `url(#${r})`,
|
|
478
478
|
children: /* @__PURE__ */ s(lt, {
|
|
479
479
|
...h,
|
|
@@ -484,7 +484,7 @@ var wn = (e) => {
|
|
|
484
484
|
}, g)
|
|
485
485
|
})] });
|
|
486
486
|
}
|
|
487
|
-
return /* @__PURE__ */
|
|
487
|
+
return /* @__PURE__ */ w(B, { children: [d, /* @__PURE__ */ w("g", {
|
|
488
488
|
clipPath: `url(#${r})`,
|
|
489
489
|
children: [n.map((v) => {
|
|
490
490
|
const { key: g, ...h } = v;
|
|
@@ -520,7 +520,7 @@ var wn = (e) => {
|
|
|
520
520
|
});
|
|
521
521
|
if (n.length === 1) {
|
|
522
522
|
const [h] = n;
|
|
523
|
-
return /* @__PURE__ */
|
|
523
|
+
return /* @__PURE__ */ w(B, { children: [g, /* @__PURE__ */ s("g", {
|
|
524
524
|
clipPath: `url(#${r})`,
|
|
525
525
|
children: /* @__PURE__ */ s(H.rect, {
|
|
526
526
|
...v,
|
|
@@ -531,7 +531,7 @@ var wn = (e) => {
|
|
|
531
531
|
})
|
|
532
532
|
})] });
|
|
533
533
|
}
|
|
534
|
-
return /* @__PURE__ */
|
|
534
|
+
return /* @__PURE__ */ w(B, { children: [g, /* @__PURE__ */ w("g", {
|
|
535
535
|
clipPath: `url(#${r})`,
|
|
536
536
|
children: [n.map((h) => {
|
|
537
537
|
const { key: f, ...m } = h;
|
|
@@ -556,10 +556,10 @@ var wn = (e) => {
|
|
|
556
556
|
const d = c ? En(i, c) : null;
|
|
557
557
|
return /* @__PURE__ */ s(H.rect, {
|
|
558
558
|
initial: d ? {
|
|
559
|
-
x:
|
|
560
|
-
y:
|
|
561
|
-
width:
|
|
562
|
-
height:
|
|
559
|
+
x: k(d.x),
|
|
560
|
+
y: k(d.y),
|
|
561
|
+
width: k(d.width),
|
|
562
|
+
height: k(d.height),
|
|
563
563
|
opacity: i.opacity
|
|
564
564
|
} : !1,
|
|
565
565
|
style: { transformBox: "view-box" },
|
|
@@ -571,20 +571,20 @@ var wn = (e) => {
|
|
|
571
571
|
stroke: o,
|
|
572
572
|
strokeWidth: a,
|
|
573
573
|
animate: {
|
|
574
|
-
x:
|
|
575
|
-
y:
|
|
576
|
-
width:
|
|
577
|
-
height:
|
|
574
|
+
x: k(i.x),
|
|
575
|
+
y: k(i.y),
|
|
576
|
+
width: k(i.width),
|
|
577
|
+
height: k(i.height),
|
|
578
578
|
opacity: i.opacity
|
|
579
579
|
}
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
return /* @__PURE__ */ s("rect", {
|
|
583
583
|
style: { transformBox: "view-box" },
|
|
584
|
-
x:
|
|
585
|
-
y:
|
|
586
|
-
width:
|
|
587
|
-
height:
|
|
584
|
+
x: k(i.x),
|
|
585
|
+
y: k(i.y),
|
|
586
|
+
width: k(i.width),
|
|
587
|
+
height: k(i.height),
|
|
588
588
|
fill: i.fill,
|
|
589
589
|
opacity: i.opacity,
|
|
590
590
|
rx: r,
|
|
@@ -593,10 +593,10 @@ var wn = (e) => {
|
|
|
593
593
|
strokeWidth: a
|
|
594
594
|
});
|
|
595
595
|
}, Ar = ({ bounds: e, radii: t, fill: r, stroke: n, strokeWidth: o, opacity: a }) => /* @__PURE__ */ s("rect", {
|
|
596
|
-
x:
|
|
597
|
-
y:
|
|
598
|
-
width:
|
|
599
|
-
height:
|
|
596
|
+
x: k(e.x),
|
|
597
|
+
y: k(e.y),
|
|
598
|
+
width: k(e.width),
|
|
599
|
+
height: k(e.height),
|
|
600
600
|
rx: t.rx,
|
|
601
601
|
ry: t.ry,
|
|
602
602
|
fill: r,
|
|
@@ -626,17 +626,17 @@ var wn = (e) => {
|
|
|
626
626
|
e.height,
|
|
627
627
|
c
|
|
628
628
|
]), {
|
|
629
|
-
x: tt(o,
|
|
630
|
-
y: tt(a,
|
|
631
|
-
width: tt(i,
|
|
632
|
-
height: tt(l,
|
|
629
|
+
x: tt(o, k),
|
|
630
|
+
y: tt(a, k),
|
|
631
|
+
width: tt(i, k),
|
|
632
|
+
height: tt(l, k)
|
|
633
633
|
};
|
|
634
634
|
};
|
|
635
635
|
function is(e) {
|
|
636
636
|
const t = li(e);
|
|
637
637
|
if (e.borderRadius !== "full") return t;
|
|
638
638
|
const r = {};
|
|
639
|
-
return t.rx !== void 0 && (r.rx =
|
|
639
|
+
return t.rx !== void 0 && (r.rx = k(t.rx)), t.ry !== void 0 && (r.ry = k(t.ry)), r;
|
|
640
640
|
}
|
|
641
641
|
var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
642
642
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -686,14 +686,14 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
686
686
|
"Z"
|
|
687
687
|
].join("");
|
|
688
688
|
}, ls = ({ observation: e, mainAxis: t, styleReaders: r, column: n, panelRect: o }) => {
|
|
689
|
-
const a =
|
|
689
|
+
const a = U(), i = U(), l = Ke(t, e);
|
|
690
690
|
if (!l) return null;
|
|
691
691
|
const c = ct(l, o), u = ct(n.bounds, o), { borderColor: d, borderWidth: v, borderRadius: g, borderAlpha: h } = n.style, f = ln({
|
|
692
692
|
borderRadius: g,
|
|
693
693
|
mainAxis: t,
|
|
694
694
|
bounds: u
|
|
695
|
-
}), m = ke(c, 0), p = ke(u, f),
|
|
696
|
-
return /* @__PURE__ */
|
|
695
|
+
}), m = ke(c, 0), p = ke(u, f), x = r.get("color", e), b = r.get("alpha", e), R = ze(v);
|
|
696
|
+
return /* @__PURE__ */ w("g", {
|
|
697
697
|
clipPath: `url(#${a})`,
|
|
698
698
|
children: [
|
|
699
699
|
/* @__PURE__ */ s("clipPath", {
|
|
@@ -704,32 +704,32 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
704
704
|
id: i,
|
|
705
705
|
children: /* @__PURE__ */ s("path", { d: p })
|
|
706
706
|
}),
|
|
707
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ w("g", {
|
|
708
708
|
clipPath: `url(#${i})`,
|
|
709
709
|
children: [/* @__PURE__ */ s("path", {
|
|
710
710
|
d: m,
|
|
711
|
-
fill:
|
|
712
|
-
opacity:
|
|
711
|
+
fill: x,
|
|
712
|
+
opacity: b,
|
|
713
713
|
"data-testid": "highlight-bar-segment"
|
|
714
|
-
}), d !== void 0 && /* @__PURE__ */
|
|
714
|
+
}), d !== void 0 && /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("path", {
|
|
715
715
|
d: m,
|
|
716
716
|
fill: "none",
|
|
717
717
|
stroke: d,
|
|
718
|
-
strokeWidth:
|
|
719
|
-
opacity:
|
|
718
|
+
strokeWidth: R.separatorWidth,
|
|
719
|
+
opacity: b,
|
|
720
720
|
"data-testid": "highlight-bar-segment-border"
|
|
721
721
|
}), /* @__PURE__ */ s("path", {
|
|
722
722
|
d: p,
|
|
723
723
|
fill: "none",
|
|
724
724
|
stroke: d,
|
|
725
|
-
strokeWidth:
|
|
725
|
+
strokeWidth: R.outlineWidth,
|
|
726
726
|
opacity: h
|
|
727
727
|
})] })]
|
|
728
728
|
})
|
|
729
729
|
]
|
|
730
730
|
});
|
|
731
731
|
}, cs = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
732
|
-
const o =
|
|
732
|
+
const o = I(t), a = A(() => Pn(t, r.mainAxis, o), [
|
|
733
733
|
t,
|
|
734
734
|
r.mainAxis,
|
|
735
735
|
o
|
|
@@ -746,18 +746,18 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
746
746
|
}
|
|
747
747
|
return l;
|
|
748
748
|
}, Ct = 3, ds = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
749
|
-
const o =
|
|
749
|
+
const o = I(e), a = U(), i = U(), l = U(), c = A(() => Pn(e, t.mainAxis, o), [
|
|
750
750
|
e,
|
|
751
751
|
t.mainAxis,
|
|
752
752
|
o
|
|
753
753
|
]), u = Ke(t.mainAxis, r.observation), d = Bn(c, t.mainAxis, o, r.observation);
|
|
754
754
|
if (!u || d === null) return null;
|
|
755
|
-
const v = ct(u, n), g = ct(d.bounds, n), { borderColor: h, borderWidth: f, borderRadius: m, borderAlpha: p } = d.style,
|
|
755
|
+
const v = ct(u, n), g = ct(d.bounds, n), { borderColor: h, borderWidth: f, borderRadius: m, borderAlpha: p } = d.style, x = ln({
|
|
756
756
|
borderRadius: m,
|
|
757
757
|
mainAxis: t.mainAxis,
|
|
758
758
|
bounds: g
|
|
759
|
-
}),
|
|
760
|
-
return /* @__PURE__ */
|
|
759
|
+
}), b = ke(v, 0), R = ke(g, x), S = ke(yr(v, Ct), 0), P = ke(yr(g, Ct), x > 0 ? x + Ct : 0), E = o.get("color", r.observation), N = o.get("alpha", r.observation), M = o.get("borderColor", r.observation, "hovered") ?? vt, V = ze(f);
|
|
760
|
+
return /* @__PURE__ */ w("g", {
|
|
761
761
|
"data-testid": "hovered-bar",
|
|
762
762
|
children: [
|
|
763
763
|
/* @__PURE__ */ s("clipPath", {
|
|
@@ -766,18 +766,18 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
766
766
|
}),
|
|
767
767
|
/* @__PURE__ */ s("clipPath", {
|
|
768
768
|
id: i,
|
|
769
|
-
children: /* @__PURE__ */ s("path", { d:
|
|
769
|
+
children: /* @__PURE__ */ s("path", { d: b })
|
|
770
770
|
}),
|
|
771
771
|
/* @__PURE__ */ s("clipPath", {
|
|
772
772
|
id: l,
|
|
773
|
-
children: /* @__PURE__ */ s("path", { d:
|
|
773
|
+
children: /* @__PURE__ */ s("path", { d: R })
|
|
774
774
|
}),
|
|
775
775
|
/* @__PURE__ */ s("g", {
|
|
776
776
|
className: ss,
|
|
777
777
|
children: /* @__PURE__ */ s("g", {
|
|
778
778
|
clipPath: `url(#${a})`,
|
|
779
779
|
children: /* @__PURE__ */ s("path", {
|
|
780
|
-
d:
|
|
780
|
+
d: S,
|
|
781
781
|
fill: M,
|
|
782
782
|
"data-testid": "hovered-bar-border"
|
|
783
783
|
})
|
|
@@ -785,25 +785,25 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
785
785
|
}),
|
|
786
786
|
/* @__PURE__ */ s("g", {
|
|
787
787
|
clipPath: `url(#${i})`,
|
|
788
|
-
children: /* @__PURE__ */
|
|
788
|
+
children: /* @__PURE__ */ w("g", {
|
|
789
789
|
clipPath: `url(#${l})`,
|
|
790
790
|
children: [/* @__PURE__ */ s("path", {
|
|
791
|
-
d:
|
|
791
|
+
d: b,
|
|
792
792
|
fill: E,
|
|
793
|
-
opacity:
|
|
793
|
+
opacity: N,
|
|
794
794
|
"data-testid": "hovered-bar-fill"
|
|
795
|
-
}), h !== void 0 && /* @__PURE__ */
|
|
796
|
-
d:
|
|
795
|
+
}), h !== void 0 && /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("path", {
|
|
796
|
+
d: b,
|
|
797
797
|
fill: "none",
|
|
798
798
|
stroke: h,
|
|
799
|
-
strokeWidth:
|
|
800
|
-
opacity:
|
|
799
|
+
strokeWidth: V.separatorWidth,
|
|
800
|
+
opacity: N,
|
|
801
801
|
"data-testid": "hovered-bar-inner-border"
|
|
802
802
|
}), /* @__PURE__ */ s("path", {
|
|
803
|
-
d:
|
|
803
|
+
d: R,
|
|
804
804
|
fill: "none",
|
|
805
805
|
stroke: h,
|
|
806
|
-
strokeWidth:
|
|
806
|
+
strokeWidth: V.outlineWidth,
|
|
807
807
|
opacity: p
|
|
808
808
|
})] })]
|
|
809
809
|
})
|
|
@@ -835,23 +835,23 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
835
835
|
}),
|
|
836
836
|
renderHoverCompanions: () => null
|
|
837
837
|
}, hs = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
838
|
-
const o = n?.type === "wipe" ? n : null, a = A(() => Jr(t.params), [t.params]), i = A(() => Fa(t.params), [t.params]), l =
|
|
838
|
+
const o = n?.type === "wipe" ? n : null, a = A(() => Jr(t.params), [t.params]), i = A(() => Fa(t.params), [t.params]), l = I(t), c = A(() => {
|
|
839
839
|
const u = oe(t.data, t.mapping, t.id), d = [];
|
|
840
840
|
return t.data.groupBy(ce.group).forEach((v) => {
|
|
841
841
|
const g = sn([...v], t.params.missingValues), h = a(g);
|
|
842
842
|
if (!h) return;
|
|
843
843
|
const f = g[0];
|
|
844
844
|
if (!f) return;
|
|
845
|
-
const m = l.get("fillAlpha", f), p = m === void 0 ? void 0 : i(g) ?? void 0,
|
|
845
|
+
const m = l.get("fillAlpha", f), p = m === void 0 ? void 0 : i(g) ?? void 0, x = l.get("color", f), b = l.get("strokeWidth", f), R = Ee(l.get("lineType", f));
|
|
846
846
|
d.push({
|
|
847
847
|
key: u(f),
|
|
848
848
|
pathData: h,
|
|
849
849
|
fillPath: p,
|
|
850
850
|
fillAlpha: m,
|
|
851
|
-
color:
|
|
851
|
+
color: x,
|
|
852
852
|
opacity: l.get("alpha", f),
|
|
853
|
-
strokeWidth:
|
|
854
|
-
strokeDasharray:
|
|
853
|
+
strokeWidth: b,
|
|
854
|
+
strokeDasharray: R
|
|
855
855
|
});
|
|
856
856
|
}), d;
|
|
857
857
|
}, [
|
|
@@ -908,8 +908,8 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
908
908
|
strokeDasharray: i,
|
|
909
909
|
vectorEffect: "non-scaling-stroke"
|
|
910
910
|
}), gs = ({ fillPath: e, fillAlpha: t, linePath: r, color: n, strokeWidth: o, opacity: a, strokeDasharray: i, shouldAnimateTransitions: l }) => {
|
|
911
|
-
const c = `line_fill_gradient_${
|
|
912
|
-
return /* @__PURE__ */
|
|
911
|
+
const c = `line_fill_gradient_${U()}`;
|
|
912
|
+
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ w("linearGradient", {
|
|
913
913
|
id: c,
|
|
914
914
|
gradientTransform: "rotate(90 0.5 0.5)",
|
|
915
915
|
children: [
|
|
@@ -951,14 +951,14 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
951
951
|
vectorEffect: "non-scaling-stroke"
|
|
952
952
|
});
|
|
953
953
|
}, ps = ({ layer: e, primary: t, companions: r }) => {
|
|
954
|
-
const n =
|
|
954
|
+
const n = I(e), o = pt(t.observation), a = A(() => sn([...e.data.filter(ce.group, "eq", o)], e.params.missingValues), [
|
|
955
955
|
e.data,
|
|
956
956
|
e.params.missingValues,
|
|
957
957
|
o
|
|
958
958
|
]), i = A(() => Jr(e.params)(a), [e.params, a]);
|
|
959
959
|
if (!i) return null;
|
|
960
960
|
const l = n.get("color", t.observation), c = n.get("alpha", t.observation), u = n.get("strokeWidth", t.observation), d = Ee(n.get("lineType", t.observation));
|
|
961
|
-
return /* @__PURE__ */
|
|
961
|
+
return /* @__PURE__ */ w("g", {
|
|
962
962
|
"data-testid": "hovered-line",
|
|
963
963
|
children: [
|
|
964
964
|
/* @__PURE__ */ s("svg", {
|
|
@@ -1012,7 +1012,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1012
1012
|
}, In = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: o }) => {
|
|
1013
1013
|
const a = q(e), i = te(e);
|
|
1014
1014
|
if (a === null || i === null) return null;
|
|
1015
|
-
const l = t(a, i), c =
|
|
1015
|
+
const l = t(a, i), c = k(l.x), u = k(l.y), d = r.get("size", e) / 2, v = r.get("color", e), g = r.get("alpha", e), h = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: m, activeIntro: p, shouldAnimateTransitions: x } = n;
|
|
1016
1016
|
return m ? /* @__PURE__ */ s(H.circle, {
|
|
1017
1017
|
initial: p ? {
|
|
1018
1018
|
cx: c,
|
|
@@ -1020,7 +1020,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1020
1020
|
r: 0,
|
|
1021
1021
|
opacity: 0
|
|
1022
1022
|
} : !1,
|
|
1023
|
-
transition: p ? Jt(p, o) : qt(
|
|
1023
|
+
transition: p ? Jt(p, o) : qt(x),
|
|
1024
1024
|
fill: v,
|
|
1025
1025
|
stroke: h,
|
|
1026
1026
|
strokeWidth: f,
|
|
@@ -1040,7 +1040,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1040
1040
|
strokeWidth: f
|
|
1041
1041
|
});
|
|
1042
1042
|
}, As = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1043
|
-
const o =
|
|
1043
|
+
const o = I(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1044
1044
|
return A(() => {
|
|
1045
1045
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
1046
1046
|
let c = 0;
|
|
@@ -1060,7 +1060,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1060
1060
|
a
|
|
1061
1061
|
]);
|
|
1062
1062
|
}), xr = ({ primary: e, companions: t }) => {
|
|
1063
|
-
const r = /* @__PURE__ */
|
|
1063
|
+
const r = /* @__PURE__ */ w(B, { children: [t.map((n) => /* @__PURE__ */ s(he, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(Pe, { hit: e }) : null] });
|
|
1064
1064
|
return e ? /* @__PURE__ */ s("g", {
|
|
1065
1065
|
"data-testid": "hovered-point",
|
|
1066
1066
|
children: r
|
|
@@ -1158,45 +1158,45 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1158
1158
|
purple30: "#E093FE",
|
|
1159
1159
|
greyGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
|
|
1160
1160
|
}, ks = {
|
|
1161
|
-
textPrimary:
|
|
1162
|
-
textSecondary: O(
|
|
1163
|
-
textDisabled: O(
|
|
1161
|
+
textPrimary: y.black,
|
|
1162
|
+
textSecondary: O(y.textPrimary, 0.6),
|
|
1163
|
+
textDisabled: O(y.textPrimary, 0.5),
|
|
1164
1164
|
iconPrimary: "currentColor",
|
|
1165
|
-
iconSecondary: O(
|
|
1166
|
-
iconStickerBackground:
|
|
1167
|
-
brand:
|
|
1168
|
-
success:
|
|
1169
|
-
warning:
|
|
1170
|
-
alert:
|
|
1171
|
-
border100:
|
|
1172
|
-
border50: O(
|
|
1173
|
-
border10: O(
|
|
1174
|
-
sunkenBackground:
|
|
1175
|
-
defaultBackground:
|
|
1176
|
-
raisedBackground:
|
|
1177
|
-
overlayBackground:
|
|
1178
|
-
overlayBorderGradient:
|
|
1165
|
+
iconSecondary: O(y.textPrimary, 0.6),
|
|
1166
|
+
iconStickerBackground: y.grey100,
|
|
1167
|
+
brand: y.purple50,
|
|
1168
|
+
success: y.green50,
|
|
1169
|
+
warning: y.amber50,
|
|
1170
|
+
alert: y.red50,
|
|
1171
|
+
border100: y.grey0,
|
|
1172
|
+
border50: O(y.grey0, 0.5),
|
|
1173
|
+
border10: O(y.grey0, 0.1),
|
|
1174
|
+
sunkenBackground: y.grey90,
|
|
1175
|
+
defaultBackground: y.grey100,
|
|
1176
|
+
raisedBackground: y.grey85,
|
|
1177
|
+
overlayBackground: y.grey100,
|
|
1178
|
+
overlayBorderGradient: y.border10
|
|
1179
1179
|
}, Rs = {
|
|
1180
|
-
graphBackground:
|
|
1181
|
-
gridLineColor:
|
|
1182
|
-
axisTickColor:
|
|
1183
|
-
originLineColor:
|
|
1184
|
-
legendBackground:
|
|
1185
|
-
legendBorderColor:
|
|
1186
|
-
legendFocusOutlineColor:
|
|
1187
|
-
legendTextColor:
|
|
1188
|
-
toolbarBackgroundColor:
|
|
1180
|
+
graphBackground: y.grey100,
|
|
1181
|
+
gridLineColor: y.border10,
|
|
1182
|
+
axisTickColor: y.border10,
|
|
1183
|
+
originLineColor: y.grey0,
|
|
1184
|
+
legendBackground: y.defaultBackground,
|
|
1185
|
+
legendBorderColor: y.border10,
|
|
1186
|
+
legendFocusOutlineColor: y.border50,
|
|
1187
|
+
legendTextColor: y.textPrimary,
|
|
1188
|
+
toolbarBackgroundColor: y.overlayBackground,
|
|
1189
1189
|
toolbarButtonBackgroundColor: "transparent",
|
|
1190
|
-
toolbarButtonBackgroundColorHovered:
|
|
1191
|
-
toolbarButtonBackgroundColorSelected:
|
|
1192
|
-
toolbarSeparatorColor:
|
|
1193
|
-
tooltipBackground:
|
|
1194
|
-
tooltipBorderColor:
|
|
1195
|
-
tooltipValueTextColor:
|
|
1196
|
-
hoverGuideLineColor: O(
|
|
1197
|
-
hoverGuideFillColor: O(
|
|
1198
|
-
heatmapEmptyTileBackground:
|
|
1199
|
-
annotationFrameBorderColor:
|
|
1190
|
+
toolbarButtonBackgroundColorHovered: y.grey80,
|
|
1191
|
+
toolbarButtonBackgroundColorSelected: y.grey60,
|
|
1192
|
+
toolbarSeparatorColor: y.grey60,
|
|
1193
|
+
tooltipBackground: y.white,
|
|
1194
|
+
tooltipBorderColor: y.border10,
|
|
1195
|
+
tooltipValueTextColor: y.textPrimary,
|
|
1196
|
+
hoverGuideLineColor: O(y.black, 0.2),
|
|
1197
|
+
hoverGuideFillColor: O(y.black, 0.04),
|
|
1198
|
+
heatmapEmptyTileBackground: y.grey80,
|
|
1199
|
+
annotationFrameBorderColor: y.blue60,
|
|
1200
1200
|
editMenuTriggerIconColor: "#3d414c"
|
|
1201
1201
|
}, Cs = {
|
|
1202
1202
|
canvasDefault: "#000000",
|
|
@@ -1286,46 +1286,46 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1286
1286
|
purple30: "#E093FE",
|
|
1287
1287
|
greyGradient80: "linear-gradient(to top, #222429, #31353f)"
|
|
1288
1288
|
}, Ts = {
|
|
1289
|
-
textPrimary:
|
|
1290
|
-
textSecondary: O(
|
|
1291
|
-
textDisabled: O(
|
|
1289
|
+
textPrimary: y.grey0,
|
|
1290
|
+
textSecondary: O(y.textPrimary, 0.8),
|
|
1291
|
+
textDisabled: O(y.textPrimary, 0.5),
|
|
1292
1292
|
iconPrimary: "currentColor",
|
|
1293
|
-
iconSecondary: O(
|
|
1294
|
-
iconStickerBackground:
|
|
1295
|
-
border100:
|
|
1296
|
-
border50: O(
|
|
1297
|
-
border10: O(
|
|
1298
|
-
brand:
|
|
1299
|
-
success:
|
|
1300
|
-
warning:
|
|
1301
|
-
alert:
|
|
1302
|
-
sunkenBackground:
|
|
1303
|
-
defaultBackground:
|
|
1304
|
-
raisedBackground:
|
|
1305
|
-
overlayBackground:
|
|
1306
|
-
overlayBorderGradient:
|
|
1293
|
+
iconSecondary: O(y.textPrimary, 0.6),
|
|
1294
|
+
iconStickerBackground: y.grey70,
|
|
1295
|
+
border100: y.grey0,
|
|
1296
|
+
border50: O(y.grey0, 0.5),
|
|
1297
|
+
border10: O(y.grey0, 0.1),
|
|
1298
|
+
brand: y.purple50,
|
|
1299
|
+
success: y.green50,
|
|
1300
|
+
warning: y.amber50,
|
|
1301
|
+
alert: y.red50,
|
|
1302
|
+
sunkenBackground: y.grey100,
|
|
1303
|
+
defaultBackground: y.grey90,
|
|
1304
|
+
raisedBackground: y.grey80,
|
|
1305
|
+
overlayBackground: y.grey90,
|
|
1306
|
+
overlayBorderGradient: y.greyGradient80
|
|
1307
1307
|
}, Ls = {
|
|
1308
|
-
graphBackground:
|
|
1309
|
-
gridLineColor:
|
|
1310
|
-
axisTickColor:
|
|
1311
|
-
originLineColor:
|
|
1312
|
-
legendBackground:
|
|
1313
|
-
legendBorderColor:
|
|
1314
|
-
legendFocusOutlineColor:
|
|
1315
|
-
legendTextColor:
|
|
1316
|
-
toolbarBackgroundColor:
|
|
1308
|
+
graphBackground: y.grey90,
|
|
1309
|
+
gridLineColor: y.border10,
|
|
1310
|
+
axisTickColor: y.border10,
|
|
1311
|
+
originLineColor: y.grey0,
|
|
1312
|
+
legendBackground: y.defaultBackground,
|
|
1313
|
+
legendBorderColor: y.border10,
|
|
1314
|
+
legendFocusOutlineColor: y.border50,
|
|
1315
|
+
legendTextColor: y.textPrimary,
|
|
1316
|
+
toolbarBackgroundColor: y.overlayBackground,
|
|
1317
1317
|
toolbarButtonBackgroundColor: "transparent",
|
|
1318
|
-
toolbarButtonBackgroundColorHovered:
|
|
1319
|
-
toolbarButtonBackgroundColorSelected:
|
|
1320
|
-
toolbarSeparatorColor:
|
|
1321
|
-
tooltipBackground:
|
|
1322
|
-
tooltipBorderColor:
|
|
1323
|
-
tooltipValueTextColor:
|
|
1324
|
-
hoverGuideLineColor: O(
|
|
1325
|
-
hoverGuideFillColor: O(
|
|
1326
|
-
heatmapEmptyTileBackground:
|
|
1327
|
-
annotationFrameBorderColor:
|
|
1328
|
-
editMenuTriggerIconColor:
|
|
1318
|
+
toolbarButtonBackgroundColorHovered: y.grey80,
|
|
1319
|
+
toolbarButtonBackgroundColorSelected: y.grey60,
|
|
1320
|
+
toolbarSeparatorColor: y.grey60,
|
|
1321
|
+
tooltipBackground: y.grey70,
|
|
1322
|
+
tooltipBorderColor: y.grey60,
|
|
1323
|
+
tooltipValueTextColor: y.textPrimary,
|
|
1324
|
+
hoverGuideLineColor: O(y.white, 0.2),
|
|
1325
|
+
hoverGuideFillColor: O(y.white, 0.06),
|
|
1326
|
+
heatmapEmptyTileBackground: y.grey80,
|
|
1327
|
+
annotationFrameBorderColor: y.blue60,
|
|
1328
|
+
editMenuTriggerIconColor: y.white
|
|
1329
1329
|
}, Ns = {
|
|
1330
1330
|
canvasDefault: "#FFFFFF",
|
|
1331
1331
|
canvasBlue: "#60a5fa",
|
|
@@ -1385,14 +1385,14 @@ function Fe(e, t) {
|
|
|
1385
1385
|
const n = Number.parseFloat(r);
|
|
1386
1386
|
return Number.isFinite(n) ? n : t;
|
|
1387
1387
|
}
|
|
1388
|
-
var Qn =
|
|
1388
|
+
var Qn = Q(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provider, {
|
|
1389
1389
|
value: e,
|
|
1390
1390
|
children: t
|
|
1391
|
-
}), Ie = () => D(Qn),
|
|
1392
|
-
const { colorScheme: e } =
|
|
1391
|
+
}), Ie = () => D(Qn), L = () => {
|
|
1392
|
+
const { colorScheme: e } = W(), t = C((r) => r.chrome);
|
|
1393
1393
|
return A(() => gt({ colorScheme: e }).chromeReaders(t), [t, e]);
|
|
1394
1394
|
}, Hs = (e) => {
|
|
1395
|
-
const t =
|
|
1395
|
+
const t = L(), r = C((n) => n.config.appearance.textScale);
|
|
1396
1396
|
return A(() => Ai(t, e, r), [
|
|
1397
1397
|
t,
|
|
1398
1398
|
e,
|
|
@@ -1446,7 +1446,7 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1446
1446
|
}, Vs = (e) => {
|
|
1447
1447
|
const t = Us();
|
|
1448
1448
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
1449
|
-
}, Us = () => typeof document > "u" ? null : (ae || (ae = document.createElement("span"), ae.style.position = "absolute", ae.style.visibility = "hidden", ae.style.whiteSpace = "nowrap", ae.style.left = "-9999px", ae.textContent = Yn, document.body.appendChild(ae)), ae), zn =
|
|
1449
|
+
}, Us = () => typeof document > "u" ? null : (ae || (ae = document.createElement("span"), ae.style.position = "absolute", ae.style.visibility = "hidden", ae.style.whiteSpace = "nowrap", ae.style.left = "-9999px", ae.textContent = Yn, document.body.appendChild(ae)), ae), zn = Q(null), Qs = ({ children: e, measurer: t }) => {
|
|
1450
1450
|
const [r, n] = G(null);
|
|
1451
1451
|
F(() => {
|
|
1452
1452
|
if (t !== void 0) return;
|
|
@@ -1473,8 +1473,8 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1473
1473
|
} catch {
|
|
1474
1474
|
return new ur(new ha());
|
|
1475
1475
|
}
|
|
1476
|
-
}, jn =
|
|
1477
|
-
const r =
|
|
1476
|
+
}, jn = Q(null), mf = jn.Provider, Ks = null, de = () => D(jn) ?? (Ks ??= Wl()), zs = "_16vokpr0", js = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Xs = (e, t) => {
|
|
1477
|
+
const r = k(e ? 1 - t : t);
|
|
1478
1478
|
return e ? {
|
|
1479
1479
|
x1: "0%",
|
|
1480
1480
|
y1: r,
|
|
@@ -1493,7 +1493,7 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1493
1493
|
strokeLinecap: "round",
|
|
1494
1494
|
...e === "dashed" ? { strokeMiterlimit: 16 } : {}
|
|
1495
1495
|
};
|
|
1496
|
-
}, Js = (e, t) => rt(e) && rt(t) ? `${e}: ${t}` : rt(e) ? e : rt(t) ? t : null, rt = (e) => e != null && e.trim() !== "", Xn = Object.freeze({}), Zt =
|
|
1496
|
+
}, Js = (e, t) => rt(e) && rt(t) ? `${e}: ${t}` : rt(e) ? e : rt(t) ? t : null, rt = (e) => e != null && e.trim() !== "", Xn = Object.freeze({}), Zt = Q(Xn), Zs = ({ slots: e, children: t }) => /* @__PURE__ */ s(Zt.Provider, {
|
|
1497
1497
|
value: e ?? Xn,
|
|
1498
1498
|
children: t
|
|
1499
1499
|
});
|
|
@@ -1564,7 +1564,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1564
1564
|
}
|
|
1565
1565
|
case "area": {
|
|
1566
1566
|
const l = o / 2 - 1;
|
|
1567
|
-
return /* @__PURE__ */
|
|
1567
|
+
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("rect", {
|
|
1568
1568
|
x: 1,
|
|
1569
1569
|
y: l,
|
|
1570
1570
|
width: n - 2,
|
|
@@ -1614,7 +1614,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1614
1614
|
lineHeight: e.lineHeight,
|
|
1615
1615
|
color: e.textColor
|
|
1616
1616
|
}), ll = 11.7, Sr = 21.6, cl = "0 0 10 18", dl = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", ul = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
|
|
1617
|
-
const l = e === "start", c = l ? -13 : -(n - 13), u = l ? c + n - 5 : c + 5 - 12, d = l ? void 0 : `rotate(180 ${u + 12 / 2} ${o / 2})`, v = l ? "0%" : "100%", g =
|
|
1617
|
+
const l = e === "start", c = l ? -13 : -(n - 13), u = l ? c + n - 5 : c + 5 - 12, d = l ? void 0 : `rotate(180 ${u + 12 / 2} ${o / 2})`, v = l ? "0%" : "100%", g = k(1 - t), h = /* @__PURE__ */ w("g", {
|
|
1618
1618
|
transform: `translate(0, ${-o / 2})`,
|
|
1619
1619
|
pointerEvents: "none",
|
|
1620
1620
|
children: [
|
|
@@ -1661,7 +1661,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1661
1661
|
children: h
|
|
1662
1662
|
});
|
|
1663
1663
|
}, hl = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
|
|
1664
|
-
const l = e === "start", c = l ? -13 : -(o - 13), u =
|
|
1664
|
+
const l = e === "start", c = l ? -13 : -(o - 13), u = k(t), d = l ? "100%" : "0%", v = /* @__PURE__ */ w("g", {
|
|
1665
1665
|
transform: `translate(${-n / 2}, 0)`,
|
|
1666
1666
|
pointerEvents: "none",
|
|
1667
1667
|
children: [/* @__PURE__ */ s("rect", {
|
|
@@ -1690,7 +1690,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1690
1690
|
children: v
|
|
1691
1691
|
});
|
|
1692
1692
|
}, vl = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, isHorizontalLine: o, position: a, color: i, textColor: l, symbolShape: c, symbolColor: u, shouldAnimateTransitions: d }) => {
|
|
1693
|
-
const v = c === null ? 0 : 14, g = r + v + 10, h = Math.max(ll, fe(t)) + 10, f = /* @__PURE__ */
|
|
1693
|
+
const v = c === null ? 0 : 14, g = r + v + 10, h = Math.max(ll, fe(t)) + 10, f = /* @__PURE__ */ w(B, { children: [c !== null && u !== null && /* @__PURE__ */ s("g", {
|
|
1694
1694
|
transform: `translate(0, ${-10 / 2})`,
|
|
1695
1695
|
children: /* @__PURE__ */ s(Xe, {
|
|
1696
1696
|
shape: c,
|
|
@@ -1747,7 +1747,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1747
1747
|
vectorEffect: "non-scaling-stroke"
|
|
1748
1748
|
});
|
|
1749
1749
|
}, fl = Z(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o }) {
|
|
1750
|
-
const a = pe(), i = de(), { guides: l, numberFormat: c, layers: u, colorScale: d } = C(
|
|
1750
|
+
const a = pe(), i = de(), { guides: l, numberFormat: c, layers: u, colorScale: d } = C(j((M) => ({
|
|
1751
1751
|
guides: M.guides,
|
|
1752
1752
|
numberFormat: M.config.numberFormat,
|
|
1753
1753
|
layers: M.spec.layers,
|
|
@@ -1766,31 +1766,31 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1766
1766
|
c,
|
|
1767
1767
|
n,
|
|
1768
1768
|
t
|
|
1769
|
-
]), { fonts: f } = Ie(), m = Hs(t.id), p = A(() =>
|
|
1769
|
+
]), { fonts: f } = Ie(), m = Hs(t.id), p = A(() => z(m, f.familyDefault), [m, f.familyDefault]), x = A(() => h === null ? 0 : a.measureText(h, p).width, [
|
|
1770
1770
|
h,
|
|
1771
1771
|
p,
|
|
1772
1772
|
a
|
|
1773
|
-
]),
|
|
1774
|
-
if (!
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1773
|
+
]), b = I(t), R = t.data.getFirst();
|
|
1774
|
+
if (!R) return null;
|
|
1775
|
+
const S = b.get("color", R), P = on(S), E = js(t, r), N = E ? te(R) : q(R);
|
|
1776
|
+
return N === null ? null : /* @__PURE__ */ w("g", {
|
|
1777
1777
|
"data-geom": "rule",
|
|
1778
1778
|
className: zs,
|
|
1779
1779
|
children: [/* @__PURE__ */ s(gl, {
|
|
1780
|
-
strokeWidth:
|
|
1781
|
-
lineType:
|
|
1780
|
+
strokeWidth: b.get("strokeWidth", R),
|
|
1781
|
+
lineType: b.get("lineType", R),
|
|
1782
1782
|
isHorizontalLine: E,
|
|
1783
|
-
position:
|
|
1784
|
-
lineColor:
|
|
1783
|
+
position: N,
|
|
1784
|
+
lineColor: S,
|
|
1785
1785
|
shouldAnimateTransitions: o
|
|
1786
1786
|
}), h !== null && /* @__PURE__ */ s(vl, {
|
|
1787
1787
|
label: h,
|
|
1788
1788
|
textStyle: m,
|
|
1789
|
-
textWidth:
|
|
1789
|
+
textWidth: x,
|
|
1790
1790
|
labelPosition: t.params.labelPosition,
|
|
1791
1791
|
isHorizontalLine: E,
|
|
1792
|
-
position:
|
|
1793
|
-
color:
|
|
1792
|
+
position: N,
|
|
1793
|
+
color: S,
|
|
1794
1794
|
textColor: P,
|
|
1795
1795
|
symbolShape: g,
|
|
1796
1796
|
symbolColor: v?.color ?? null,
|
|
@@ -1809,7 +1809,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1809
1809
|
renderHover: () => null,
|
|
1810
1810
|
renderHoverCompanions: () => null
|
|
1811
1811
|
}, ml = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1812
|
-
const o = n?.type === "fade" ? n : null, a =
|
|
1812
|
+
const o = n?.type === "fade" ? n : null, a = I(t), i = A(() => {
|
|
1813
1813
|
const l = Ha(t.data, t.mapping, t.id), c = [];
|
|
1814
1814
|
for (const u of t.data) {
|
|
1815
1815
|
const d = en(u);
|
|
@@ -1843,25 +1843,25 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1843
1843
|
opacity: t.opacity,
|
|
1844
1844
|
rx: 8,
|
|
1845
1845
|
animate: {
|
|
1846
|
-
x:
|
|
1847
|
-
y:
|
|
1848
|
-
width:
|
|
1849
|
-
height:
|
|
1846
|
+
x: k(t.x),
|
|
1847
|
+
y: k(t.y),
|
|
1848
|
+
width: k(t.width),
|
|
1849
|
+
height: k(t.height)
|
|
1850
1850
|
}
|
|
1851
1851
|
}) : /* @__PURE__ */ s("rect", {
|
|
1852
1852
|
style: { transformBox: "view-box" },
|
|
1853
|
-
x:
|
|
1854
|
-
y:
|
|
1855
|
-
width:
|
|
1856
|
-
height:
|
|
1853
|
+
x: k(t.x),
|
|
1854
|
+
y: k(t.y),
|
|
1855
|
+
width: k(t.width),
|
|
1856
|
+
height: k(t.height),
|
|
1857
1857
|
fill: t.fill,
|
|
1858
1858
|
opacity: t.opacity,
|
|
1859
1859
|
rx: 8
|
|
1860
1860
|
}), De = 2, yl = ({ layer: e, primary: t, panelRect: r }) => {
|
|
1861
|
-
const n =
|
|
1861
|
+
const n = I(e), o = en(t.observation);
|
|
1862
1862
|
if (!o || !_r(t.observation)) return null;
|
|
1863
1863
|
const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? vt, c = o.x * r.width, u = o.y * r.height, d = o.width * r.width, v = o.height * r.height;
|
|
1864
|
-
return /* @__PURE__ */
|
|
1864
|
+
return /* @__PURE__ */ w("g", {
|
|
1865
1865
|
"data-testid": "hovered-tile",
|
|
1866
1866
|
children: [/* @__PURE__ */ s("rect", {
|
|
1867
1867
|
x: c - De,
|
|
@@ -1872,10 +1872,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1872
1872
|
fill: l,
|
|
1873
1873
|
"data-testid": "hovered-tile-border"
|
|
1874
1874
|
}), /* @__PURE__ */ s("rect", {
|
|
1875
|
-
x:
|
|
1876
|
-
y:
|
|
1877
|
-
width:
|
|
1878
|
-
height:
|
|
1875
|
+
x: k(o.x),
|
|
1876
|
+
y: k(o.y),
|
|
1877
|
+
width: k(o.width),
|
|
1878
|
+
height: k(o.height),
|
|
1879
1879
|
rx: 8,
|
|
1880
1880
|
fill: a,
|
|
1881
1881
|
opacity: i,
|
|
@@ -1899,7 +1899,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1899
1899
|
}),
|
|
1900
1900
|
renderHoverCompanions: () => null
|
|
1901
1901
|
}, dt = ({ primary: e, companions: t }) => {
|
|
1902
|
-
const r = /* @__PURE__ */
|
|
1902
|
+
const r = /* @__PURE__ */ w(B, { children: [t.map((n) => /* @__PURE__ */ s(he, {
|
|
1903
1903
|
hit: n,
|
|
1904
1904
|
project: re
|
|
1905
1905
|
}, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(Pe, {
|
|
@@ -1916,7 +1916,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1916
1916
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
1917
1917
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
1918
1918
|
}, bl = Z(function({ layer: t }) {
|
|
1919
|
-
const r =
|
|
1919
|
+
const r = I(t), n = A(() => {
|
|
1920
1920
|
const o = oe(t.data, t.mapping, t.id), a = [];
|
|
1921
1921
|
return t.data.groupBy(ce.group).forEach((i) => {
|
|
1922
1922
|
const l = [...i], c = qn(l);
|
|
@@ -1945,7 +1945,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1945
1945
|
height: "100%",
|
|
1946
1946
|
"data-geom": "area",
|
|
1947
1947
|
className: $,
|
|
1948
|
-
children: n.map((o) => /* @__PURE__ */
|
|
1948
|
+
children: n.map((o) => /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s("path", {
|
|
1949
1949
|
d: o.fillPath,
|
|
1950
1950
|
fill: o.color,
|
|
1951
1951
|
fillOpacity: o.fillOpacity,
|
|
@@ -1977,11 +1977,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1977
1977
|
outlinePath: o
|
|
1978
1978
|
};
|
|
1979
1979
|
}, wl = ({ layer: e, primary: t, companions: r }) => {
|
|
1980
|
-
const n =
|
|
1980
|
+
const n = I(e), o = pt(t.observation), a = A(() => qn([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
|
|
1981
1981
|
if (!a) return null;
|
|
1982
1982
|
const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeAlpha", t.observation), u = n.get("strokeWidth", t.observation);
|
|
1983
|
-
return /* @__PURE__ */
|
|
1984
|
-
/* @__PURE__ */
|
|
1983
|
+
return /* @__PURE__ */ w(B, { children: [
|
|
1984
|
+
/* @__PURE__ */ w("svg", {
|
|
1985
1985
|
viewBox: "-1 -1 2 2",
|
|
1986
1986
|
preserveAspectRatio: "xMidYMid meet",
|
|
1987
1987
|
width: "100%",
|
|
@@ -2041,22 +2041,22 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2041
2041
|
strokeWidth: t,
|
|
2042
2042
|
vectorEffect: "non-scaling-stroke"
|
|
2043
2043
|
}), kl = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
2044
|
-
const a =
|
|
2044
|
+
const a = U(), i = At(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c = I(t), u = A(() => {
|
|
2045
2045
|
const d = oe(t.data, t.mapping, t.id), v = /* @__PURE__ */ new Map();
|
|
2046
2046
|
for (const g of t.data) {
|
|
2047
|
-
const h = d(g), { startAngle: f, endAngle: m } = Yt(g), { innerRadius: p, outerRadius:
|
|
2048
|
-
if (f === null || m === null || p === null ||
|
|
2049
|
-
const
|
|
2047
|
+
const h = d(g), { startAngle: f, endAngle: m } = Yt(g), { innerRadius: p, outerRadius: x } = mt(g);
|
|
2048
|
+
if (f === null || m === null || p === null || x === null) continue;
|
|
2049
|
+
const b = {
|
|
2050
2050
|
key: h,
|
|
2051
2051
|
startAngle: f,
|
|
2052
2052
|
endAngle: m,
|
|
2053
2053
|
innerRadius: p,
|
|
2054
|
-
outerRadius:
|
|
2054
|
+
outerRadius: x,
|
|
2055
2055
|
fill: c.get("color", g),
|
|
2056
2056
|
opacity: c.get("alpha", g)
|
|
2057
|
-
},
|
|
2058
|
-
|
|
2059
|
-
items: [
|
|
2057
|
+
}, R = Qt(r.bandAxis, b), S = v.get(R);
|
|
2058
|
+
S ? S.items.push(b) : v.set(R, {
|
|
2059
|
+
items: [b],
|
|
2060
2060
|
style: Be(c, g)
|
|
2061
2061
|
});
|
|
2062
2062
|
}
|
|
@@ -2081,26 +2081,26 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2081
2081
|
"data-geom": "bar",
|
|
2082
2082
|
className: $,
|
|
2083
2083
|
children: u.map((d, v) => {
|
|
2084
|
-
const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: m } = d.style, p = g !== void 0,
|
|
2085
|
-
const { key:
|
|
2084
|
+
const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: m } = d.style, p = g !== void 0, x = ze(h), b = g === void 0 ? {} : Ge(g, x.separatorWidth), R = g === void 0 ? void 0 : Ge(g, x.outlineWidth), S = d.items.map((M) => {
|
|
2085
|
+
const { key: V, ...K } = M;
|
|
2086
2086
|
return i.isAnimated ? /* @__PURE__ */ s(Rl, {
|
|
2087
|
-
...
|
|
2087
|
+
...K,
|
|
2088
2088
|
animation: i,
|
|
2089
2089
|
sweepsInOnLateMount: l,
|
|
2090
|
-
introKey:
|
|
2090
|
+
introKey: V,
|
|
2091
2091
|
pathProps: {
|
|
2092
|
-
fill:
|
|
2093
|
-
opacity:
|
|
2094
|
-
...
|
|
2092
|
+
fill: K.fill,
|
|
2093
|
+
opacity: K.opacity,
|
|
2094
|
+
...b
|
|
2095
2095
|
}
|
|
2096
|
-
},
|
|
2097
|
-
d: ge(
|
|
2098
|
-
fill:
|
|
2099
|
-
opacity:
|
|
2100
|
-
...
|
|
2101
|
-
},
|
|
2096
|
+
}, V) : /* @__PURE__ */ s("path", {
|
|
2097
|
+
d: ge(K) ?? void 0,
|
|
2098
|
+
fill: K.fill,
|
|
2099
|
+
opacity: K.opacity,
|
|
2100
|
+
...b
|
|
2101
|
+
}, V);
|
|
2102
2102
|
}), P = vn(f, d.union.outerRadius - d.union.innerRadius);
|
|
2103
|
-
if (!p && P <= 0) return /* @__PURE__ */ s(jt, { children:
|
|
2103
|
+
if (!p && P <= 0) return /* @__PURE__ */ s(jt, { children: S }, d.key);
|
|
2104
2104
|
const E = `${a}${v}`;
|
|
2105
2105
|
if (i.isAnimated) return /* @__PURE__ */ s("g", {
|
|
2106
2106
|
clipPath: `url(#${E})`,
|
|
@@ -2111,93 +2111,93 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2111
2111
|
sweepsInOnLateMount: l,
|
|
2112
2112
|
introKey: d.items[0]?.key,
|
|
2113
2113
|
clipId: E,
|
|
2114
|
-
outlineProps:
|
|
2114
|
+
outlineProps: R,
|
|
2115
2115
|
outlineOpacity: m,
|
|
2116
|
-
children:
|
|
2116
|
+
children: S
|
|
2117
2117
|
})
|
|
2118
2118
|
}, d.key);
|
|
2119
|
-
const
|
|
2119
|
+
const N = ge({
|
|
2120
2120
|
...d.union,
|
|
2121
2121
|
cornerRadius: P
|
|
2122
2122
|
});
|
|
2123
|
-
return /* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ w("g", {
|
|
2124
2124
|
clipPath: `url(#${E})`,
|
|
2125
2125
|
children: [
|
|
2126
2126
|
/* @__PURE__ */ s("clipPath", {
|
|
2127
2127
|
id: E,
|
|
2128
|
-
children: /* @__PURE__ */ s("path", { d:
|
|
2128
|
+
children: /* @__PURE__ */ s("path", { d: N })
|
|
2129
2129
|
}),
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
d:
|
|
2130
|
+
S,
|
|
2131
|
+
R !== void 0 && /* @__PURE__ */ s("path", {
|
|
2132
|
+
d: N,
|
|
2133
2133
|
fill: "none",
|
|
2134
2134
|
opacity: m,
|
|
2135
|
-
...
|
|
2135
|
+
...R
|
|
2136
2136
|
})
|
|
2137
2137
|
]
|
|
2138
2138
|
}, d.key);
|
|
2139
2139
|
})
|
|
2140
2140
|
});
|
|
2141
2141
|
}), Jn = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: a, sweepsInOnLateMount: i, introKey: l }) => {
|
|
2142
|
-
const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, u = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, d = i && !a.isLayerEntrance, v = c?.baseline ?? (d ? hr : e), g = c?.baseline ?? (d ? hr : t), h = u ? u.baseline : r, f = u ? u.baseline : n, m = _(v), p = _(g),
|
|
2142
|
+
const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, u = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, d = i && !a.isLayerEntrance, v = c?.baseline ?? (d ? hr : e), g = c?.baseline ?? (d ? hr : t), h = u ? u.baseline : r, f = u ? u.baseline : n, m = _(v), p = _(g), x = _(h), b = _(f), R = _(ge({
|
|
2143
2143
|
startAngle: v,
|
|
2144
2144
|
endAngle: g,
|
|
2145
2145
|
innerRadius: h,
|
|
2146
2146
|
outerRadius: f,
|
|
2147
2147
|
cornerRadius: o
|
|
2148
|
-
}) ?? ""),
|
|
2148
|
+
}) ?? ""), S = Ht(a, l, c);
|
|
2149
2149
|
F(() => {
|
|
2150
|
-
const E =
|
|
2150
|
+
const E = S(), N = [ie(m, e, E), ie(p, t, E)];
|
|
2151
2151
|
return () => {
|
|
2152
|
-
for (const M of
|
|
2152
|
+
for (const M of N) M.stop();
|
|
2153
2153
|
};
|
|
2154
2154
|
}, [
|
|
2155
2155
|
m,
|
|
2156
2156
|
p,
|
|
2157
2157
|
e,
|
|
2158
2158
|
t,
|
|
2159
|
-
|
|
2159
|
+
S
|
|
2160
2160
|
]);
|
|
2161
2161
|
const P = Ht(a, l, u);
|
|
2162
2162
|
return F(() => {
|
|
2163
|
-
const E = P(),
|
|
2163
|
+
const E = P(), N = [ie(x, r, E), ie(b, n, E)];
|
|
2164
2164
|
return () => {
|
|
2165
|
-
for (const M of
|
|
2165
|
+
for (const M of N) M.stop();
|
|
2166
2166
|
};
|
|
2167
2167
|
}, [
|
|
2168
|
-
|
|
2169
|
-
|
|
2168
|
+
x,
|
|
2169
|
+
b,
|
|
2170
2170
|
r,
|
|
2171
2171
|
n,
|
|
2172
2172
|
P
|
|
2173
2173
|
]), F(() => {
|
|
2174
2174
|
const E = () => {
|
|
2175
|
-
|
|
2175
|
+
R.set(ge({
|
|
2176
2176
|
startAngle: m.get(),
|
|
2177
2177
|
endAngle: p.get(),
|
|
2178
|
-
innerRadius:
|
|
2179
|
-
outerRadius:
|
|
2178
|
+
innerRadius: x.get(),
|
|
2179
|
+
outerRadius: b.get(),
|
|
2180
2180
|
cornerRadius: o
|
|
2181
2181
|
}) ?? "");
|
|
2182
2182
|
};
|
|
2183
2183
|
E();
|
|
2184
|
-
const
|
|
2184
|
+
const N = [
|
|
2185
2185
|
m,
|
|
2186
2186
|
p,
|
|
2187
|
-
|
|
2188
|
-
|
|
2187
|
+
x,
|
|
2188
|
+
b
|
|
2189
2189
|
].map((M) => M.on("change", E));
|
|
2190
2190
|
return () => {
|
|
2191
|
-
for (const M of
|
|
2191
|
+
for (const M of N) M();
|
|
2192
2192
|
};
|
|
2193
2193
|
}, [
|
|
2194
2194
|
m,
|
|
2195
2195
|
p,
|
|
2196
|
-
|
|
2197
|
-
|
|
2196
|
+
x,
|
|
2197
|
+
b,
|
|
2198
2198
|
o,
|
|
2199
|
-
|
|
2200
|
-
]),
|
|
2199
|
+
R
|
|
2200
|
+
]), R;
|
|
2201
2201
|
}, Rl = ({ pathProps: e, ...t }) => {
|
|
2202
2202
|
const r = Jn(t);
|
|
2203
2203
|
return /* @__PURE__ */ s(H.path, {
|
|
@@ -2207,7 +2207,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2207
2207
|
});
|
|
2208
2208
|
}, Cl = ({ clipId: e, outlineProps: t, outlineOpacity: r, children: n, ...o }) => {
|
|
2209
2209
|
const a = Jn(o);
|
|
2210
|
-
return /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ w(B, { children: [
|
|
2211
2211
|
/* @__PURE__ */ s("clipPath", {
|
|
2212
2212
|
id: e,
|
|
2213
2213
|
children: /* @__PURE__ */ s(H.path, { d: a })
|
|
@@ -2259,7 +2259,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2259
2259
|
radialSpan: o === null ? 0 : o.outerRadius - o.innerRadius
|
|
2260
2260
|
};
|
|
2261
2261
|
}, _n = ({ observation: e, bandAxis: t, styleReaders: r, group: n }) => {
|
|
2262
|
-
const o =
|
|
2262
|
+
const o = U(), a = U(), { startAngle: i, endAngle: l } = Yt(e), { innerRadius: c, outerRadius: u } = mt(e);
|
|
2263
2263
|
if (i === null || l === null || c === null || u === null) return null;
|
|
2264
2264
|
const d = {
|
|
2265
2265
|
startAngle: i,
|
|
@@ -2268,21 +2268,21 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2268
2268
|
outerRadius: u
|
|
2269
2269
|
}, v = ge(d);
|
|
2270
2270
|
if (v === void 0) return null;
|
|
2271
|
-
const g = r.get("color", e), h = r.get("alpha", e), { borderColor: f, borderWidth: m, borderRadius: p, borderAlpha:
|
|
2272
|
-
if (f === void 0 && !
|
|
2271
|
+
const g = r.get("color", e), h = r.get("alpha", e), { borderColor: f, borderWidth: m, borderRadius: p, borderAlpha: x } = n.style, b = vn(p, n.radialSpan), R = b > 0;
|
|
2272
|
+
if (f === void 0 && !R) return /* @__PURE__ */ s("path", {
|
|
2273
2273
|
d: v,
|
|
2274
2274
|
fill: g,
|
|
2275
2275
|
opacity: h,
|
|
2276
2276
|
"data-testid": "arc-segment"
|
|
2277
2277
|
});
|
|
2278
|
-
const
|
|
2279
|
-
...Bl(d,
|
|
2280
|
-
cornerRadius:
|
|
2278
|
+
const S = El(qa(e), t), P = R ? ge({
|
|
2279
|
+
...Bl(d, S, b),
|
|
2280
|
+
cornerRadius: b
|
|
2281
2281
|
}) ?? v : v, E = f === void 0 ? null : {
|
|
2282
2282
|
color: f,
|
|
2283
2283
|
...ze(m)
|
|
2284
|
-
},
|
|
2285
|
-
return /* @__PURE__ */
|
|
2284
|
+
}, N = E === null ? "" : Cr(d, Il(S));
|
|
2285
|
+
return /* @__PURE__ */ w("g", {
|
|
2286
2286
|
clipPath: `url(#${o})`,
|
|
2287
2287
|
"data-testid": "arc-segment",
|
|
2288
2288
|
children: [
|
|
@@ -2295,13 +2295,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2295
2295
|
fill: g,
|
|
2296
2296
|
opacity: h
|
|
2297
2297
|
}),
|
|
2298
|
-
E !== null &&
|
|
2299
|
-
d:
|
|
2298
|
+
E !== null && N !== "" && /* @__PURE__ */ s("path", {
|
|
2299
|
+
d: N,
|
|
2300
2300
|
fill: "none",
|
|
2301
2301
|
opacity: h,
|
|
2302
2302
|
...Ge(E.color, E.separatorWidth)
|
|
2303
2303
|
}),
|
|
2304
|
-
E !== null && (
|
|
2304
|
+
E !== null && (R ? /* @__PURE__ */ w("g", {
|
|
2305
2305
|
clipPath: `url(#${a})`,
|
|
2306
2306
|
children: [/* @__PURE__ */ s("clipPath", {
|
|
2307
2307
|
id: a,
|
|
@@ -2309,19 +2309,19 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2309
2309
|
}), /* @__PURE__ */ s("path", {
|
|
2310
2310
|
d: P,
|
|
2311
2311
|
fill: "none",
|
|
2312
|
-
opacity:
|
|
2312
|
+
opacity: x,
|
|
2313
2313
|
...Ge(E.color, E.outlineWidth)
|
|
2314
2314
|
})]
|
|
2315
2315
|
}) : /* @__PURE__ */ s("path", {
|
|
2316
|
-
d: Cr(d,
|
|
2316
|
+
d: Cr(d, S),
|
|
2317
2317
|
fill: "none",
|
|
2318
|
-
opacity:
|
|
2318
|
+
opacity: x,
|
|
2319
2319
|
...Ge(E.color, E.outlineWidth)
|
|
2320
2320
|
}))
|
|
2321
2321
|
]
|
|
2322
2322
|
});
|
|
2323
2323
|
}, Pl = ({ layer: e, sourceLayer: t, coordSystem: r }) => {
|
|
2324
|
-
const n =
|
|
2324
|
+
const n = I(t), o = A(() => Zn(t, r.bandAxis, n), [
|
|
2325
2325
|
t,
|
|
2326
2326
|
r.bandAxis,
|
|
2327
2327
|
n
|
|
@@ -2382,7 +2382,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2382
2382
|
startSpoke: !e.startSpoke,
|
|
2383
2383
|
endSpoke: !e.endSpoke
|
|
2384
2384
|
}), Tl = ({ layer: e, coordSystem: t, primary: r }) => {
|
|
2385
|
-
const n =
|
|
2385
|
+
const n = I(e), o = $n(A(() => Zn(e, t.bandAxis, n), [
|
|
2386
2386
|
e,
|
|
2387
2387
|
t.bandAxis,
|
|
2388
2388
|
n
|
|
@@ -2425,7 +2425,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2425
2425
|
}),
|
|
2426
2426
|
renderHoverCompanions: () => null
|
|
2427
2427
|
}, Nl = Z(function({ layer: t }) {
|
|
2428
|
-
const r =
|
|
2428
|
+
const r = I(t), n = A(() => {
|
|
2429
2429
|
const o = oe(t.data, t.mapping, t.id), a = [];
|
|
2430
2430
|
return t.data.groupBy(ce.group).forEach((i) => {
|
|
2431
2431
|
const l = [...i], c = to(l);
|
|
@@ -2474,10 +2474,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2474
2474
|
}
|
|
2475
2475
|
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Ot(t.map((r) => r.point)));
|
|
2476
2476
|
}, Ml = ({ layer: e, primary: t, companions: r }) => {
|
|
2477
|
-
const n =
|
|
2477
|
+
const n = I(e), o = pt(t.observation), a = A(() => to([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
|
|
2478
2478
|
if (!a) return null;
|
|
2479
2479
|
const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeWidth", t.observation), u = Ee(n.get("lineType", t.observation));
|
|
2480
|
-
return /* @__PURE__ */
|
|
2480
|
+
return /* @__PURE__ */ w(B, { children: [
|
|
2481
2481
|
/* @__PURE__ */ s("svg", {
|
|
2482
2482
|
viewBox: "-1 -1 2 2",
|
|
2483
2483
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -2529,7 +2529,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
}, Dl = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2532
|
-
const o =
|
|
2532
|
+
const o = I(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
2533
2533
|
return A(() => {
|
|
2534
2534
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
2535
2535
|
let c = 0;
|
|
@@ -2620,7 +2620,7 @@ function Wl(e = []) {
|
|
|
2620
2620
|
return (r, n) => t[r]?.[n] ?? null;
|
|
2621
2621
|
}
|
|
2622
2622
|
var Gt = (e) => {
|
|
2623
|
-
const t =
|
|
2623
|
+
const t = T(e);
|
|
2624
2624
|
return t.current = e, t;
|
|
2625
2625
|
}, Vl = () => {
|
|
2626
2626
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -2642,9 +2642,9 @@ var Gt = (e) => {
|
|
|
2642
2642
|
const r = A(() => ({
|
|
2643
2643
|
layers: e,
|
|
2644
2644
|
coordSystem: t
|
|
2645
|
-
}), [e, t]), n =
|
|
2645
|
+
}), [e, t]), n = T(null);
|
|
2646
2646
|
n.current === null && (n.current = new va(r));
|
|
2647
|
-
const o = n.current, a =
|
|
2647
|
+
const o = n.current, a = T(!1);
|
|
2648
2648
|
return F(() => {
|
|
2649
2649
|
if (!a.current) {
|
|
2650
2650
|
a.current = !0;
|
|
@@ -2652,11 +2652,11 @@ var Gt = (e) => {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
o.update(r);
|
|
2654
2654
|
}, [o, r]), o;
|
|
2655
|
-
}, ro =
|
|
2656
|
-
const { layers: t, coordSystem: r } = C(
|
|
2655
|
+
}, ro = Q(null), Yl = ({ children: e }) => {
|
|
2656
|
+
const { layers: t, coordSystem: r } = C(j((l) => ({
|
|
2657
2657
|
layers: l.layers,
|
|
2658
2658
|
coordSystem: l.coordSystem
|
|
2659
|
-
}))), n = Ql(t, r), [o] = G(() => Vl()), a =
|
|
2659
|
+
}))), n = Ql(t, r), [o] = G(() => Vl()), a = T(null), i = T(null);
|
|
2660
2660
|
return i.current === null && (i.current = {
|
|
2661
2661
|
engine: n,
|
|
2662
2662
|
store: o,
|
|
@@ -2671,7 +2671,7 @@ var Gt = (e) => {
|
|
|
2671
2671
|
return e;
|
|
2672
2672
|
};
|
|
2673
2673
|
function Kl(e, t) {
|
|
2674
|
-
const { engine: r } = me(), n =
|
|
2674
|
+
const { engine: r } = me(), n = T(t);
|
|
2675
2675
|
F(() => {
|
|
2676
2676
|
n.current = t;
|
|
2677
2677
|
}, [t]), F(() => (r.registerHitTester(e, (o) => n.current(o)), () => r.unregisterHitTester(e)), [r, e]);
|
|
@@ -2699,7 +2699,7 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2699
2699
|
children: t
|
|
2700
2700
|
});
|
|
2701
2701
|
}, Zl = (e, t) => {
|
|
2702
|
-
const r = Gt(e), n = Gt(t), o =
|
|
2702
|
+
const r = Gt(e), n = Gt(t), o = T(null), a = T(null), i = A(() => {
|
|
2703
2703
|
const l = () => {
|
|
2704
2704
|
a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
|
|
2705
2705
|
}, c = () => {
|
|
@@ -2727,13 +2727,13 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2727
2727
|
height: 0,
|
|
2728
2728
|
isDefault: !0
|
|
2729
2729
|
}, oo = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
2730
|
-
const [r, n] = G($l), o =
|
|
2730
|
+
const [r, n] = G($l), o = T(null), a = Zl((u) => {
|
|
2731
2731
|
const d = o.current;
|
|
2732
2732
|
d && d.width === u.width && d.height === u.height || (o.current = {
|
|
2733
2733
|
width: u.width,
|
|
2734
2734
|
height: u.height
|
|
2735
2735
|
}, t?.(u), n(u));
|
|
2736
|
-
}, e), i =
|
|
2736
|
+
}, e), i = T(null), l = T(null), c = se((u) => {
|
|
2737
2737
|
i.current !== u && (i.current && l.current?.unobserve(i.current), i.current = u, u && (l.current ??= new ResizeObserver(([d]) => {
|
|
2738
2738
|
if (!d) return;
|
|
2739
2739
|
const v = Math.round(d.contentBoxSize[0]?.inlineSize ?? d.contentRect.width), g = Math.round(d.contentBoxSize[0]?.blockSize ?? d.contentRect.height);
|
|
@@ -2750,7 +2750,7 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2750
2750
|
};
|
|
2751
2751
|
};
|
|
2752
2752
|
function _l() {
|
|
2753
|
-
const [e, t] = G(null), r =
|
|
2753
|
+
const [e, t] = G(null), r = T(null), n = T(null), o = T(null), a = se(() => {
|
|
2754
2754
|
o.current = null;
|
|
2755
2755
|
const u = n.current;
|
|
2756
2756
|
if (!u) return;
|
|
@@ -2799,7 +2799,7 @@ function ec(e) {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
var tc = ({ render: e, input: t }) => {
|
|
2801
2801
|
const r = ec(t.layer.id), { measureRef: n, screenRect: o } = _l();
|
|
2802
|
-
return F(() => () => r(null), [r]), /* @__PURE__ */
|
|
2802
|
+
return F(() => () => r(null), [r]), /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("rect", {
|
|
2803
2803
|
ref: n,
|
|
2804
2804
|
x: 0,
|
|
2805
2805
|
y: 0,
|
|
@@ -3037,7 +3037,7 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3037
3037
|
if (!e) return t;
|
|
3038
3038
|
const r = e.trim().replace("_", "-").toLowerCase();
|
|
3039
3039
|
return Object.keys($t).find((n) => n.toLowerCase() === r) ?? t;
|
|
3040
|
-
}, ao =
|
|
3040
|
+
}, ao = Q(null), pc = [$t], io = () => Ac().translator, mc = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = pc }) => {
|
|
3041
3041
|
const o = fc(e), a = A(() => ({
|
|
3042
3042
|
translator: hc({
|
|
3043
3043
|
locale: o,
|
|
@@ -3070,21 +3070,21 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3070
3070
|
if (e !== "none")
|
|
3071
3071
|
return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
|
|
3072
3072
|
}, xc = () => {
|
|
3073
|
-
const e =
|
|
3073
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3074
3074
|
return A(() => wi(e, t), [e, t]);
|
|
3075
|
-
}, bc = "bow4tg0", wc = "bow4tg1", Sc = "bow4tg2", kc = "bow4tg3", Rc = "bow4tg4", lo = "_1ii3bsb0", Cc = "_1ii3bsb1", co =
|
|
3075
|
+
}, bc = "bow4tg0", wc = "bow4tg1", Sc = "bow4tg2", kc = "bow4tg3", Rc = "bow4tg4", lo = "_1ii3bsb0", Cc = "_1ii3bsb1", co = Q({
|
|
3076
3076
|
colorScheme: "light",
|
|
3077
3077
|
themeClass: lo,
|
|
3078
3078
|
inlineVarsStyle: {},
|
|
3079
3079
|
themeValues: Vn("light", {})
|
|
3080
3080
|
}), _t = () => D(co), Ec = ({ colorScheme: e, themeOverrides: t = {}, textScale: r = 1, graphBackground: n, children: o }) => {
|
|
3081
3081
|
const a = A(() => Vn(e, t), [e, t]), i = A(() => {
|
|
3082
|
-
const c = { [
|
|
3082
|
+
const c = { [y.textScale]: String(r) };
|
|
3083
3083
|
for (const u of Object.keys(t)) {
|
|
3084
|
-
const d =
|
|
3084
|
+
const d = y[u];
|
|
3085
3085
|
typeof d == "string" && (c[d] = a[u]);
|
|
3086
3086
|
}
|
|
3087
|
-
return n !== void 0 && (c[
|
|
3087
|
+
return n !== void 0 && (c[y.graphBackground] = n), xn(c);
|
|
3088
3088
|
}, [
|
|
3089
3089
|
r,
|
|
3090
3090
|
n,
|
|
@@ -3235,7 +3235,7 @@ function Ve(e) {
|
|
|
3235
3235
|
}
|
|
3236
3236
|
var Gc = "_19519k80";
|
|
3237
3237
|
var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc = "_19519k87", Kc = "_19519k88", zc = (e) => {
|
|
3238
|
-
const { overlayRef: t } = me(), r =
|
|
3238
|
+
const { overlayRef: t } = me(), r = T(null), [n, o] = G(!1), a = Gt(e);
|
|
3239
3239
|
return F(() => {
|
|
3240
3240
|
const i = t.current;
|
|
3241
3241
|
if (!i) return;
|
|
@@ -3268,15 +3268,15 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3268
3268
|
boundary: [],
|
|
3269
3269
|
padding: Xc
|
|
3270
3270
|
}, Jc = () => {
|
|
3271
|
-
const e = C(
|
|
3272
|
-
layers:
|
|
3273
|
-
coordSystem:
|
|
3274
|
-
scales:
|
|
3275
|
-
guides:
|
|
3276
|
-
numberFormat:
|
|
3277
|
-
parsingLocale:
|
|
3278
|
-
comments:
|
|
3279
|
-
}))), { formattingLocale: t, colorScheme: r } =
|
|
3271
|
+
const e = C(j((b) => ({
|
|
3272
|
+
layers: b.layers,
|
|
3273
|
+
coordSystem: b.coordSystem,
|
|
3274
|
+
scales: b.scales,
|
|
3275
|
+
guides: b.guides,
|
|
3276
|
+
numberFormat: b.config.numberFormat,
|
|
3277
|
+
parsingLocale: b.config.parsingLocale,
|
|
3278
|
+
comments: b.annotations.comments
|
|
3279
|
+
}))), { formattingLocale: t, colorScheme: r } = W(), n = Ve((b) => b.hover), o = Ve((b) => b.tooltipAnchor), a = Ve((b) => b.isPointerSuspended), i = ee("Tooltip", Zc), l = T(() => {
|
|
3280
3280
|
}), { cursorRef: c, isInside: u } = zc(() => l.current()), d = A(() => Ea({
|
|
3281
3281
|
...e,
|
|
3282
3282
|
hover: n,
|
|
@@ -3291,8 +3291,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3291
3291
|
o
|
|
3292
3292
|
]), v = !a && d !== null && (u || o !== null), g = A(() => ({ getBoundingClientRect: () => {
|
|
3293
3293
|
if (o !== null) return ed(o);
|
|
3294
|
-
const
|
|
3295
|
-
return
|
|
3294
|
+
const b = c.current;
|
|
3295
|
+
return b === null ? qc : _c(b);
|
|
3296
3296
|
} }), [c, o]), { refs: h, floatingStyles: f, update: m } = yn(td({
|
|
3297
3297
|
isOpen: v,
|
|
3298
3298
|
tooltipAnchor: o,
|
|
@@ -3306,11 +3306,11 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3306
3306
|
style: f,
|
|
3307
3307
|
"data-testid": "chart-tooltip",
|
|
3308
3308
|
children: /* @__PURE__ */ s(i, { content: d })
|
|
3309
|
-
}),
|
|
3310
|
-
return
|
|
3309
|
+
}), x = no();
|
|
3310
|
+
return x ? An(/* @__PURE__ */ s(Pc, { children: p }), x) : p;
|
|
3311
3311
|
}, Zc = ({ content: e }) => {
|
|
3312
3312
|
const t = de(), r = C((c) => c.coordSystem), n = xc(), o = Pt(n.heading), a = Pt(n.label), i = Pt(n.value), l = { paddingInline: n.box.paddingInline };
|
|
3313
|
-
return /* @__PURE__ */
|
|
3313
|
+
return /* @__PURE__ */ w("div", {
|
|
3314
3314
|
className: Gc,
|
|
3315
3315
|
style: $c(n.box),
|
|
3316
3316
|
"data-testid": "chart-tooltip-body",
|
|
@@ -3393,7 +3393,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3393
3393
|
Ft(nt)
|
|
3394
3394
|
],
|
|
3395
3395
|
elements: { reference: r }
|
|
3396
|
-
}), rd = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */
|
|
3396
|
+
}), rd = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ w("div", {
|
|
3397
3397
|
className: Vc,
|
|
3398
3398
|
style: {
|
|
3399
3399
|
paddingInline: a,
|
|
@@ -3428,8 +3428,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3428
3428
|
plansByLayerId: null,
|
|
3429
3429
|
coordKey: null,
|
|
3430
3430
|
introEndsAtMs: 0
|
|
3431
|
-
}, er =
|
|
3432
|
-
const { layers: r, coordSystem: n, scales: o } = C(
|
|
3431
|
+
}, er = Q(it), nd = ({ intro: e, children: t }) => {
|
|
3432
|
+
const { layers: r, coordSystem: n, scales: o } = C(j((i) => ({
|
|
3433
3433
|
layers: i.layers,
|
|
3434
3434
|
coordSystem: i.coordSystem,
|
|
3435
3435
|
scales: i.scales
|
|
@@ -3473,14 +3473,14 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3473
3473
|
introEndsAtMs: performance.now() + i * 1e3
|
|
3474
3474
|
};
|
|
3475
3475
|
}, sd = (e) => Math.max(0, e - performance.now()), vo = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, go = () => {
|
|
3476
|
-
const e =
|
|
3476
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3477
3477
|
return A(() => {
|
|
3478
3478
|
const r = {};
|
|
3479
3479
|
for (const n of Vt) r[n] = si(e, n, t);
|
|
3480
3480
|
return r;
|
|
3481
3481
|
}, [e, t]);
|
|
3482
3482
|
}, bt = () => {
|
|
3483
|
-
const e =
|
|
3483
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3484
3484
|
return A(() => {
|
|
3485
3485
|
const r = {};
|
|
3486
3486
|
for (const n of ua) {
|
|
@@ -3491,30 +3491,30 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3491
3491
|
return r;
|
|
3492
3492
|
}, [e, t]);
|
|
3493
3493
|
}, fo = () => {
|
|
3494
|
-
const e =
|
|
3494
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3495
3495
|
return A(() => (r) => hi(e, r, t), [e, t]);
|
|
3496
3496
|
}, po = () => {
|
|
3497
|
-
const e =
|
|
3497
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3498
3498
|
return A(() => vi(e, t), [e, t]);
|
|
3499
3499
|
}, tr = () => {
|
|
3500
|
-
const e =
|
|
3500
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3501
3501
|
return A(() => pi(e, t), [e, t]);
|
|
3502
3502
|
}, rr = () => {
|
|
3503
|
-
const e =
|
|
3503
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
3504
3504
|
return A(() => {
|
|
3505
3505
|
const r = {};
|
|
3506
3506
|
for (const n of Vt) r[n] = xi(e, n, t);
|
|
3507
3507
|
return r;
|
|
3508
3508
|
}, [e, t]);
|
|
3509
3509
|
}, mo = () => {
|
|
3510
|
-
const e =
|
|
3510
|
+
const e = L();
|
|
3511
3511
|
return A(() => {
|
|
3512
3512
|
const t = {};
|
|
3513
3513
|
for (const r of Vt) t[r] = bi(e, r);
|
|
3514
3514
|
return t;
|
|
3515
3515
|
}, [e]);
|
|
3516
3516
|
}, ld = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
|
|
3517
|
-
const a = o.position === "top" || o.position === "bottom", i = Ce(o.scaleAestheticKey), { offset: l, ...c } = t[i], u = o.ticksVisible ? Math.max(l, r[i].length) : l, d =
|
|
3517
|
+
const a = o.position === "top" || o.position === "bottom", i = Ce(o.scaleAestheticKey), { offset: l, ...c } = t[i], u = o.ticksVisible ? Math.max(l, r[i].length) : l, d = z(c, n), v = o.ticks.map((h) => e.measureText(h.formattedLabel, d)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
|
|
3518
3518
|
if (a) {
|
|
3519
3519
|
if (o.labelRotation !== 0) {
|
|
3520
3520
|
const h = v.map((f) => f.width);
|
|
@@ -3524,13 +3524,13 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3524
3524
|
}
|
|
3525
3525
|
return Br(v.map((h) => h.width), g) + u;
|
|
3526
3526
|
}, Br = (e, t) => Math.min(Math.max(...e), t), cd = ({ axisLabelStyles: e }) => (t) => fe(e[Ce(t.scaleAestheticKey)]), Ao = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
|
|
3527
|
-
const i = t[n][o], l = e.measureText(a,
|
|
3527
|
+
const i = t[n][o], l = e.measureText(a, z(i, r));
|
|
3528
3528
|
return {
|
|
3529
3529
|
...l,
|
|
3530
3530
|
width: l.width + i.paddingInline * 2,
|
|
3531
3531
|
height: l.height + i.paddingBlock * 2
|
|
3532
3532
|
};
|
|
3533
|
-
}, dd = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r,
|
|
3533
|
+
}, dd = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, z(n, t)), ud = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (a, i) => {
|
|
3534
3534
|
const l = yo(a, o[i], e, t, r);
|
|
3535
3535
|
return {
|
|
3536
3536
|
width: xo(l.map((c) => c.width)) + Math.max(0, l.length - 1) * n,
|
|
@@ -3539,7 +3539,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3539
3539
|
}, hd = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, a) => yo(o, n[a], e, t, r).map((i) => i.width), vd = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
|
|
3540
3540
|
const i = dn(r[o], a);
|
|
3541
3541
|
return {
|
|
3542
|
-
width: e.measureText(n,
|
|
3542
|
+
width: e.measureText(n, z(i, t)).width,
|
|
3543
3543
|
height: fe(i)
|
|
3544
3544
|
};
|
|
3545
3545
|
}, gd = (e) => {
|
|
@@ -3558,7 +3558,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3558
3558
|
let o = 0, a = 0;
|
|
3559
3559
|
for (const i of e.segments) if (i.kind === "text") {
|
|
3560
3560
|
const l = pd(t, i.textRole);
|
|
3561
|
-
o += r.measureText(i.text,
|
|
3561
|
+
o += r.measureText(i.text, z(l, n)).width, a = Math.max(a, md(l));
|
|
3562
3562
|
} else
|
|
3563
3563
|
o += i.size, a = Math.max(a, i.size);
|
|
3564
3564
|
return {
|
|
@@ -3590,21 +3590,21 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3590
3590
|
if (a.display === "direct") {
|
|
3591
3591
|
const m = fe(n);
|
|
3592
3592
|
if (i) return m;
|
|
3593
|
-
const p =
|
|
3594
|
-
return Math.max(...
|
|
3593
|
+
const p = z(n, t), x = a.items.map((b) => e.measureText(b.formattedLabel, p).width);
|
|
3594
|
+
return Math.max(...x);
|
|
3595
3595
|
}
|
|
3596
|
-
const { item: l, swatch: c } = r, u = fe(l), d =
|
|
3596
|
+
const { item: l, swatch: c } = r, u = fe(l), d = z(l, t), v = 2 * (l.paddingBlock + l.borderWidth), g = 2 * (l.paddingInline + l.borderWidth), h = a.aesthetics.includes("size");
|
|
3597
3597
|
if (i) {
|
|
3598
3598
|
const m = h ? Math.max(0, ...a.items.map((p) => ht(p.visual, c.size, !0))) : c.size;
|
|
3599
3599
|
return Math.max(u, m) + v;
|
|
3600
3600
|
}
|
|
3601
3601
|
const f = a.items.map((m) => {
|
|
3602
|
-
const p = e.measureText(m.formattedLabel, d).width,
|
|
3603
|
-
return
|
|
3602
|
+
const p = e.measureText(m.formattedLabel, d).width, x = ht(m.visual, c.size, h);
|
|
3603
|
+
return x + (x > 0 ? o : 0) + p;
|
|
3604
3604
|
});
|
|
3605
3605
|
return Math.max(...f) + g;
|
|
3606
|
-
}, bd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n,
|
|
3607
|
-
const o = go(), a = bt(), i = po(), l = tr(), c = rr(), u = mo(), d =
|
|
3606
|
+
}, bd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, z(t[o], r)), wd = Object.freeze({}), Sd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = wd }) => {
|
|
3607
|
+
const o = go(), a = bt(), i = po(), l = tr(), c = rr(), u = mo(), d = L(), v = T(n);
|
|
3608
3608
|
return v.current = n, A(() => {
|
|
3609
3609
|
if (!e) return null;
|
|
3610
3610
|
const g = r.fonts.familyDefault, h = {
|
|
@@ -3628,27 +3628,27 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3628
3628
|
legendItemStyle: l,
|
|
3629
3629
|
directLabelStyle: i,
|
|
3630
3630
|
legendSwatchGap: r.legendSwatchGap
|
|
3631
|
-
}),
|
|
3632
|
-
measureText: (
|
|
3631
|
+
}), x = gd(h), b = hd(h), R = {
|
|
3632
|
+
measureText: (S, P) => e.measureText(S, P),
|
|
3633
3633
|
textScale: t
|
|
3634
3634
|
};
|
|
3635
3635
|
return {
|
|
3636
|
-
measureAxis: (
|
|
3637
|
-
if (Rd(
|
|
3636
|
+
measureAxis: (S) => {
|
|
3637
|
+
if (Rd(S)) return 0;
|
|
3638
3638
|
const P = v.current.measureAxis;
|
|
3639
|
-
return P ? P(
|
|
3639
|
+
return P ? P(S, R) : f(S);
|
|
3640
3640
|
},
|
|
3641
|
-
measureAxisLabel: (
|
|
3641
|
+
measureAxisLabel: (S) => {
|
|
3642
3642
|
const P = v.current.measureAxisLabel;
|
|
3643
|
-
return P ? P(
|
|
3643
|
+
return P ? P(S, R) : m(S);
|
|
3644
3644
|
},
|
|
3645
|
-
measureLegend: (
|
|
3646
|
-
if (Cd(
|
|
3645
|
+
measureLegend: (S) => {
|
|
3646
|
+
if (Cd(S)) return 0;
|
|
3647
3647
|
const P = v.current.measureLegend;
|
|
3648
|
-
return P ? P(
|
|
3648
|
+
return P ? P(S, R) : p(S);
|
|
3649
3649
|
},
|
|
3650
|
-
measureHeadline: (
|
|
3651
|
-
measureHeadlineItemWidths: (
|
|
3650
|
+
measureHeadline: (S, P, E) => (v.current.measureHeadline ?? x)(S, P, E),
|
|
3651
|
+
measureHeadlineItemWidths: (S, P) => (v.current.measureHeadlineItemWidths ?? b)(S, P),
|
|
3652
3652
|
measureTickLabel: bd({
|
|
3653
3653
|
textMeasurer: e,
|
|
3654
3654
|
tickLabelStyles: c,
|
|
@@ -3715,11 +3715,11 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3715
3715
|
e
|
|
3716
3716
|
]);
|
|
3717
3717
|
}, Rd = (e) => !e.isVisible || e.ticks.length === 0, Cd = (e) => e.items.length === 0, Ed = () => {
|
|
3718
|
-
const { formattingLocale: e } =
|
|
3718
|
+
const { formattingLocale: e } = W(), t = C((r) => r.config.parsingLocale);
|
|
3719
3719
|
return e ?? t;
|
|
3720
|
-
}, Ir = 0.5, bo =
|
|
3721
|
-
}), So =
|
|
3722
|
-
const [t, r] = G(() => /* @__PURE__ */ new Map()), [n] = G(() => /* @__PURE__ */ new Set()), o =
|
|
3720
|
+
}, Ir = 0.5, bo = Q(/* @__PURE__ */ new Map()), wo = Q(() => {
|
|
3721
|
+
}), So = Q(/* @__PURE__ */ new Set()), Pd = ({ children: e }) => {
|
|
3722
|
+
const [t, r] = G(() => /* @__PURE__ */ new Map()), [n] = G(() => /* @__PURE__ */ new Set()), o = T(/* @__PURE__ */ new Map()), a = se((i, l, c) => {
|
|
3723
3723
|
const u = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
3724
3724
|
if (c !== null) {
|
|
3725
3725
|
u.add(l), o.current.set(i, u), r((d) => Nd(d, i, c));
|
|
@@ -3738,7 +3738,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3738
3738
|
})
|
|
3739
3739
|
});
|
|
3740
3740
|
}, Bd = () => D(bo), Id = () => D(wo), Td = (e) => {
|
|
3741
|
-
const t = Id(), r =
|
|
3741
|
+
const t = Id(), r = U(), n = T(null);
|
|
3742
3742
|
return F(() => {
|
|
3743
3743
|
if (typeof ResizeObserver > "u") return;
|
|
3744
3744
|
const o = n.current;
|
|
@@ -3806,7 +3806,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3806
3806
|
...r.caret,
|
|
3807
3807
|
editor: t
|
|
3808
3808
|
} })
|
|
3809
|
-
})), nr =
|
|
3809
|
+
})), nr = Q(null), jd = Ro(), kf = ({ children: e }) => {
|
|
3810
3810
|
const [t] = G(() => Ro());
|
|
3811
3811
|
return /* @__PURE__ */ s(nr.Provider, {
|
|
3812
3812
|
value: t,
|
|
@@ -3820,7 +3820,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3820
3820
|
function ue(e) {
|
|
3821
3821
|
return je(D(nr) ?? jd, e);
|
|
3822
3822
|
}
|
|
3823
|
-
var Co =
|
|
3823
|
+
var Co = Q(null), Xd = ({ panelRect: e, children: t }) => {
|
|
3824
3824
|
const r = Jd(e);
|
|
3825
3825
|
return /* @__PURE__ */ s(Co.Provider, {
|
|
3826
3826
|
value: r,
|
|
@@ -3834,7 +3834,7 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
|
|
|
3834
3834
|
start: r(e.start),
|
|
3835
3835
|
end: r(e.end)
|
|
3836
3836
|
}) ?? t.color, Jd = (e) => {
|
|
3837
|
-
const { formattingLocale: t } =
|
|
3837
|
+
const { formattingLocale: t } = W(), r = pe(), { fonts: n } = Ie(), o = ue((p) => Ue(p, "difference-arrow-endpoint-drag")), a = Sn(), i = fo(), { differenceArrows: l, mainAxis: c, parsingLocale: u } = C(j((p) => ({
|
|
3838
3838
|
differenceArrows: p.annotations.differenceArrows,
|
|
3839
3839
|
mainAxis: p.coordSystem.type === "cartesian" ? p.coordSystem.mainAxis : "x",
|
|
3840
3840
|
parsingLocale: p.config.parsingLocale
|
|
@@ -3849,15 +3849,15 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
|
|
|
3849
3849
|
g,
|
|
3850
3850
|
d
|
|
3851
3851
|
]), f = A(() => Zd(r, n.familyDefault), [r, n.familyDefault]), m = A(() => l.map((p) => {
|
|
3852
|
-
const
|
|
3852
|
+
const x = i(p.id), b = Lr(p, x, h, f);
|
|
3853
3853
|
return {
|
|
3854
|
-
...
|
|
3854
|
+
...b,
|
|
3855
3855
|
arrow: p,
|
|
3856
|
-
style:
|
|
3857
|
-
color: Tr(p,
|
|
3856
|
+
style: x,
|
|
3857
|
+
color: Tr(p, x, a),
|
|
3858
3858
|
committedArrow: p,
|
|
3859
|
-
committedLabelBox:
|
|
3860
|
-
committedLabelText:
|
|
3859
|
+
committedLabelBox: b.labelBox,
|
|
3860
|
+
committedLabelText: b.labelText,
|
|
3861
3861
|
isDragged: !1,
|
|
3862
3862
|
hasComparableEndpoints: vr(p.start, p.end)
|
|
3863
3863
|
};
|
|
@@ -3870,17 +3870,17 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
|
|
|
3870
3870
|
]);
|
|
3871
3871
|
return A(() => o === null ? m : m.map((p) => {
|
|
3872
3872
|
if (p.id !== o.annotationId) return p;
|
|
3873
|
-
const
|
|
3873
|
+
const x = $d(p.committedArrow, o);
|
|
3874
3874
|
return {
|
|
3875
|
-
...Lr(
|
|
3875
|
+
...Lr(x, p.style, h, f),
|
|
3876
3876
|
style: p.style,
|
|
3877
|
-
color: Tr(
|
|
3878
|
-
arrow:
|
|
3877
|
+
color: Tr(x, p.style, a),
|
|
3878
|
+
arrow: x,
|
|
3879
3879
|
committedArrow: p.committedArrow,
|
|
3880
3880
|
committedLabelBox: p.committedLabelBox,
|
|
3881
3881
|
committedLabelText: p.committedLabelText,
|
|
3882
3882
|
isDragged: !0,
|
|
3883
|
-
hasComparableEndpoints: vr(
|
|
3883
|
+
hasComparableEndpoints: vr(x.start, x.end)
|
|
3884
3884
|
};
|
|
3885
3885
|
}), [
|
|
3886
3886
|
m,
|
|
@@ -3906,7 +3906,7 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
|
|
|
3906
3906
|
}, Zd = (e, t) => {
|
|
3907
3907
|
const r = /* @__PURE__ */ new Map();
|
|
3908
3908
|
return (n, o) => {
|
|
3909
|
-
const a =
|
|
3909
|
+
const a = z(o, t), i = `${a.family}|${a.size}|${a.weight}|${n}`, l = r.get(i);
|
|
3910
3910
|
if (l !== void 0) return l;
|
|
3911
3911
|
const { width: c } = e.measureText(n, a);
|
|
3912
3912
|
return r.set(i, c), c;
|
|
@@ -3951,8 +3951,8 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
|
|
|
3951
3951
|
};
|
|
3952
3952
|
return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r);
|
|
3953
3953
|
}, vu = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Eo = ({ visual: e, placement: t }) => {
|
|
3954
|
-
const { background: r } = cn(
|
|
3955
|
-
return /* @__PURE__ */
|
|
3954
|
+
const { background: r } = cn(L()), n = du(r);
|
|
3955
|
+
return /* @__PURE__ */ w("a", {
|
|
3956
3956
|
className: Ye(nu, e === "mini" && "vultop1", t === "footer" ? lu : cu),
|
|
3957
3957
|
href: tu,
|
|
3958
3958
|
target: "_blank",
|
|
@@ -3963,7 +3963,7 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
|
|
|
3963
3963
|
children: [/* @__PURE__ */ s("span", {
|
|
3964
3964
|
className: ou,
|
|
3965
3965
|
children: /* @__PURE__ */ s(eu, { className: au })
|
|
3966
|
-
}), /* @__PURE__ */
|
|
3966
|
+
}), /* @__PURE__ */ w("span", {
|
|
3967
3967
|
className: iu,
|
|
3968
3968
|
children: [/* @__PURE__ */ s("span", { children: "Made with" }), /* @__PURE__ */ s("span", {
|
|
3969
3969
|
className: su,
|
|
@@ -3971,7 +3971,7 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
|
|
|
3971
3971
|
})]
|
|
3972
3972
|
})]
|
|
3973
3973
|
});
|
|
3974
|
-
}, Po =
|
|
3974
|
+
}, Po = Q({
|
|
3975
3975
|
Title: null,
|
|
3976
3976
|
Caption: null,
|
|
3977
3977
|
TextAnnotation: null
|
|
@@ -3982,7 +3982,7 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
|
|
|
3982
3982
|
var gu = "_4dlrid1", fu = "xfz7dq0";
|
|
3983
3983
|
var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref: e, footerRect: t, mode: r = "readonly", caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, brandMark: l }) => {
|
|
3984
3984
|
const { Caption: c } = or(), u = r === "editable" ? c : null, d = o && (u !== null || n !== null), v = i && a !== null && ku(a), g = l !== "hidden";
|
|
3985
|
-
return !d && !v && !g ? null : /* @__PURE__ */
|
|
3985
|
+
return !d && !v && !g ? null : /* @__PURE__ */ w("div", {
|
|
3986
3986
|
ref: e,
|
|
3987
3987
|
className: fu,
|
|
3988
3988
|
style: {
|
|
@@ -3990,7 +3990,7 @@ var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref:
|
|
|
3990
3990
|
top: t.y,
|
|
3991
3991
|
width: t.width
|
|
3992
3992
|
},
|
|
3993
|
-
children: [d ? u ? /* @__PURE__ */ s(u, { caption: n }) : /* @__PURE__ */ s(bu, { caption: n }) : null, (v || g) && /* @__PURE__ */
|
|
3993
|
+
children: [d ? u ? /* @__PURE__ */ s(u, { caption: n }) : /* @__PURE__ */ s(bu, { caption: n }) : null, (v || g) && /* @__PURE__ */ w("div", {
|
|
3994
3994
|
className: "xfz7dq1",
|
|
3995
3995
|
children: [v && /* @__PURE__ */ s(wu, { source: a }), l !== "hidden" ? /* @__PURE__ */ s(Eo, {
|
|
3996
3996
|
visual: l,
|
|
@@ -4003,7 +4003,7 @@ var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref:
|
|
|
4003
4003
|
children: e
|
|
4004
4004
|
}) : /* @__PURE__ */ s(Re, { content: e }), wu = ({ source: e }) => {
|
|
4005
4005
|
const t = Kt(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ? Su(t) : "");
|
|
4006
|
-
return r === "" && t === void 0 ? null : /* @__PURE__ */
|
|
4006
|
+
return r === "" && t === void 0 ? null : /* @__PURE__ */ w("span", {
|
|
4007
4007
|
className: pu,
|
|
4008
4008
|
children: [/* @__PURE__ */ s("span", {
|
|
4009
4009
|
className: Au,
|
|
@@ -4028,7 +4028,7 @@ var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref:
|
|
|
4028
4028
|
}, ku = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Kt(e.url), Ru = "_1k4qtbg0";
|
|
4029
4029
|
var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, brandMark: l }) => {
|
|
4030
4030
|
const { Title: c } = or(), u = r === "editable" ? c : null, d = u !== null, v = o && (d || n !== null), g = i && (d || a !== null), h = l !== "hidden";
|
|
4031
|
-
return !v && !g && !h ? null : /* @__PURE__ */
|
|
4031
|
+
return !v && !g && !h ? null : /* @__PURE__ */ w("div", {
|
|
4032
4032
|
ref: e,
|
|
4033
4033
|
className: Ye(Ru, h && "_1k4qtbg1"),
|
|
4034
4034
|
style: {
|
|
@@ -4052,21 +4052,21 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4052
4052
|
placement: "header"
|
|
4053
4053
|
}) : null]
|
|
4054
4054
|
});
|
|
4055
|
-
}, Pu = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => /* @__PURE__ */
|
|
4055
|
+
}, Pu = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => /* @__PURE__ */ w(B, { children: [t && e !== null && (typeof e == "string" ? /* @__PURE__ */ s("h1", {
|
|
4056
4056
|
className: "_4dlrid0",
|
|
4057
4057
|
children: e
|
|
4058
4058
|
}) : /* @__PURE__ */ s(Re, { content: e })), r && n !== null && (typeof n == "string" ? /* @__PURE__ */ s("p", {
|
|
4059
4059
|
className: "_4dlrid1",
|
|
4060
4060
|
children: n
|
|
4061
4061
|
}) : /* @__PURE__ */ s(Re, { content: n }))] }), Bu = (e) => {
|
|
4062
|
-
const t =
|
|
4062
|
+
const t = L(), r = C((n) => n.config.appearance.textScale);
|
|
4063
4063
|
return A(() => at(t, r, e), [
|
|
4064
4064
|
t,
|
|
4065
4065
|
r,
|
|
4066
4066
|
e
|
|
4067
4067
|
]);
|
|
4068
4068
|
}, Bo = () => {
|
|
4069
|
-
const e =
|
|
4069
|
+
const e = L();
|
|
4070
4070
|
return A(() => un(e), [e]);
|
|
4071
4071
|
}, Iu = "_1u9qprb0", Tu = "_1u9qprb1", Lu = /* @__PURE__ */ Mi({
|
|
4072
4072
|
groupRow: () => Fu,
|
|
@@ -4084,8 +4084,8 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4084
4084
|
primary: "asohov1 asohov0",
|
|
4085
4085
|
secondary: "asohov2 asohov0"
|
|
4086
4086
|
}, To = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
4087
|
-
const a =
|
|
4088
|
-
return /* @__PURE__ */
|
|
4087
|
+
const a = U(), i = Du[n];
|
|
4088
|
+
return /* @__PURE__ */ w("svg", {
|
|
4089
4089
|
className: Hu[r],
|
|
4090
4090
|
"aria-labelledby": t ? a : void 0,
|
|
4091
4091
|
height: i,
|
|
@@ -4101,7 +4101,7 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4101
4101
|
});
|
|
4102
4102
|
}, Ou = (e) => /* @__PURE__ */ s(To, {
|
|
4103
4103
|
...e,
|
|
4104
|
-
children: /* @__PURE__ */
|
|
4104
|
+
children: /* @__PURE__ */ w("g", {
|
|
4105
4105
|
stroke: "currentColor",
|
|
4106
4106
|
strokeWidth: 2,
|
|
4107
4107
|
strokeLinecap: "round",
|
|
@@ -4133,7 +4133,7 @@ var Yu = ({ segment: e, itemStyle: t }) => {
|
|
|
4133
4133
|
className: Oe(Qu, e.direction === "down" && "n7clvo4"),
|
|
4134
4134
|
style: {
|
|
4135
4135
|
color: a,
|
|
4136
|
-
backgroundColor: e.direction === "flat" ? O(
|
|
4136
|
+
backgroundColor: e.direction === "flat" ? O(y.textPrimary, 0.1) : O(a, 0.2)
|
|
4137
4137
|
},
|
|
4138
4138
|
children: e.direction === "flat" ? /* @__PURE__ */ s(Gu, {
|
|
4139
4139
|
size: "xs",
|
|
@@ -4247,7 +4247,7 @@ var $u = "_1oj6yix2", _u = 8, eh = 16, th = 2, rh = ({ legends: e, containerRect
|
|
|
4247
4247
|
const r = po(), n = fe(r), { placements: o, hasOverlap: a } = nh(e, t, n), i = ah(r);
|
|
4248
4248
|
if (o.length === 0) return null;
|
|
4249
4249
|
const l = a ? eh : _u, c = l - th, u = ft(r.lineType);
|
|
4250
|
-
return /* @__PURE__ */
|
|
4250
|
+
return /* @__PURE__ */ w("div", {
|
|
4251
4251
|
className: Zu,
|
|
4252
4252
|
children: [a && /* @__PURE__ */ s("svg", {
|
|
4253
4253
|
className: "_1oj6yix1",
|
|
@@ -4311,7 +4311,7 @@ var $u = "_1oj6yix2", _u = 8, eh = 16, th = 2, rh = ({ legends: e, containerRect
|
|
|
4311
4311
|
...le(e),
|
|
4312
4312
|
lineHeight: e.lineHeight
|
|
4313
4313
|
}), ih = "_6a636s0", sh = () => {
|
|
4314
|
-
const e =
|
|
4314
|
+
const e = L();
|
|
4315
4315
|
return A(() => mi(e), [e]);
|
|
4316
4316
|
}, lh = "_1kjk02r0", ch = "_1kjk02r1", dh = "_1kjk02r2", uh = "_1kjk02r3", hh = "_1kjk02r4", vh = "_1kjk02r5", gh = "_1kjk02r6", fh = "_1kjk02r7", ph = "_1kjk02r8";
|
|
4317
4317
|
var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
@@ -4346,14 +4346,14 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4346
4346
|
height: o.size,
|
|
4347
4347
|
strokeWidth: o.strokeWidth
|
|
4348
4348
|
}) : null;
|
|
4349
|
-
}, bh = ({ pill: e }) => /* @__PURE__ */
|
|
4349
|
+
}, bh = ({ pill: e }) => /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s(xh, {
|
|
4350
4350
|
color: e.visual.color,
|
|
4351
4351
|
lineType: e.primaryLineType,
|
|
4352
4352
|
shape: e.swatchShape,
|
|
4353
4353
|
label: e.formattedLabel
|
|
4354
4354
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), wh = ({ pill: e }) => {
|
|
4355
4355
|
const t = Number(e.visual.size);
|
|
4356
|
-
return /* @__PURE__ */
|
|
4356
|
+
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("span", {
|
|
4357
4357
|
className: mh,
|
|
4358
4358
|
style: {
|
|
4359
4359
|
width: t,
|
|
@@ -4390,7 +4390,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4390
4390
|
a.reference
|
|
4391
4391
|
]);
|
|
4392
4392
|
const l = t === "left" || t === "right", c = Math.min(e.length - 1, 2), u = Array.from({ length: c }, (d, v) => c - v);
|
|
4393
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ w("div", {
|
|
4394
4394
|
ref: a.setReference,
|
|
4395
4395
|
className: Oe(lh, {
|
|
4396
4396
|
[dh]: l,
|
|
@@ -4410,7 +4410,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4410
4410
|
"aria-haspopup": "dialog",
|
|
4411
4411
|
"aria-expanded": n,
|
|
4412
4412
|
"aria-label": `Show ${e.length} hidden legend ${e.length === 1 ? "item" : "items"}`,
|
|
4413
|
-
children: /* @__PURE__ */
|
|
4413
|
+
children: /* @__PURE__ */ w("span", {
|
|
4414
4414
|
className: ph,
|
|
4415
4415
|
children: ["+", e.length]
|
|
4416
4416
|
})
|
|
@@ -4440,7 +4440,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4440
4440
|
right: "_1cecisi6",
|
|
4441
4441
|
left: "_1cecisi7"
|
|
4442
4442
|
}, Ih = "_1cecisi8", Th = ({ edge: e, formattedLegends: t, containerWidth: r, containerHeight: n, textScale: o }) => {
|
|
4443
|
-
const a = pe(), i = Ie(), l = sh(), c = tr(), u = de(), d = C((
|
|
4443
|
+
const a = pe(), i = Ie(), l = sh(), c = tr(), u = de(), d = C((S) => S.coordSystem.type), v = A(() => yh(t, (S) => u(S, d)?.swatchShape ?? "square"), [
|
|
4444
4444
|
t,
|
|
4445
4445
|
u,
|
|
4446
4446
|
d
|
|
@@ -4453,23 +4453,23 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4453
4453
|
visibleCount: v.length,
|
|
4454
4454
|
hasOverflow: !1
|
|
4455
4455
|
};
|
|
4456
|
-
const
|
|
4456
|
+
const S = z(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), N = 2 * (c.item.paddingBlock + c.item.borderWidth), M = (ye) => g ? Lh(ye, P, c.swatch.size, N) : Nr({
|
|
4457
4457
|
label: ye.formattedLabel,
|
|
4458
4458
|
swatchInlineSize: Nh(ye, c.swatch.size),
|
|
4459
4459
|
textMeasurer: a,
|
|
4460
|
-
font:
|
|
4460
|
+
font: S,
|
|
4461
4461
|
swatchGap: i.legendSwatchGap,
|
|
4462
4462
|
horizontalChrome: E
|
|
4463
|
-
}),
|
|
4463
|
+
}), V = v.map(M), K = On(i.fonts.legendLabel, o), Te = Ad(i.fonts.legendLabel, o), Ae = (g ? Te + i.legendPillVerticalChrome : Nr({
|
|
4464
4464
|
label: `+${v.length}`,
|
|
4465
4465
|
swatchInlineSize: 0,
|
|
4466
4466
|
textMeasurer: a,
|
|
4467
|
-
font:
|
|
4467
|
+
font: K,
|
|
4468
4468
|
swatchGap: i.legendSwatchGap,
|
|
4469
4469
|
horizontalChrome: i.legendPillHorizontalChrome
|
|
4470
4470
|
})) + 8;
|
|
4471
4471
|
return Fh({
|
|
4472
|
-
pillSizes:
|
|
4472
|
+
pillSizes: V,
|
|
4473
4473
|
overflowPillSize: Ae,
|
|
4474
4474
|
containerSize: h,
|
|
4475
4475
|
gap: l.gap
|
|
@@ -4485,20 +4485,20 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4485
4485
|
c
|
|
4486
4486
|
]);
|
|
4487
4487
|
if (v.length === 0) return null;
|
|
4488
|
-
const p = v.slice(0, m.visibleCount),
|
|
4489
|
-
return /* @__PURE__ */
|
|
4488
|
+
const p = v.slice(0, m.visibleCount), x = v.slice(m.visibleCount), b = m.hasOverflow && x.length > 0, R = Hh(c.item);
|
|
4489
|
+
return /* @__PURE__ */ w("div", {
|
|
4490
4490
|
className: Oe(Ph[f], Rh, {
|
|
4491
4491
|
[Eh]: g,
|
|
4492
4492
|
[Ch]: !g,
|
|
4493
4493
|
[Bh[e === "left" ? "left" : "right"]]: g
|
|
4494
4494
|
}),
|
|
4495
4495
|
style: { gap: l.gap },
|
|
4496
|
-
children: [p.map((
|
|
4496
|
+
children: [p.map((S) => /* @__PURE__ */ s("div", {
|
|
4497
4497
|
className: Ih,
|
|
4498
|
-
style:
|
|
4499
|
-
children: /* @__PURE__ */ s(No, { pill:
|
|
4500
|
-
},
|
|
4501
|
-
hiddenPills:
|
|
4498
|
+
style: R,
|
|
4499
|
+
children: /* @__PURE__ */ s(No, { pill: S })
|
|
4500
|
+
}, S.key)), b && /* @__PURE__ */ s(Sh, {
|
|
4501
|
+
hiddenPills: x,
|
|
4502
4502
|
placement: Dh(e)
|
|
4503
4503
|
})]
|
|
4504
4504
|
});
|
|
@@ -4564,7 +4564,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4564
4564
|
}, [t]);
|
|
4565
4565
|
return /* @__PURE__ */ s(B, { children: Array.from(o, ([a, i]) => {
|
|
4566
4566
|
const l = r[a];
|
|
4567
|
-
return l === void 0 ? null : /* @__PURE__ */
|
|
4567
|
+
return l === void 0 ? null : /* @__PURE__ */ w("div", {
|
|
4568
4568
|
className: ih,
|
|
4569
4569
|
style: {
|
|
4570
4570
|
left: l.x,
|
|
@@ -4590,7 +4590,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4590
4590
|
const a = n(o.geom, r.type);
|
|
4591
4591
|
return a ? a.guideMode ?? null : null;
|
|
4592
4592
|
}, Mo = 1, Fo = "4 3", Wh = ({ panelRect: e }) => {
|
|
4593
|
-
const { coordSystem: t, layers: r, scales: n } = C(
|
|
4593
|
+
const { coordSystem: t, layers: r, scales: n } = C(j((l) => ({
|
|
4594
4594
|
coordSystem: l.coordSystem,
|
|
4595
4595
|
layers: l.layers,
|
|
4596
4596
|
scales: l.scales
|
|
@@ -4626,7 +4626,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4626
4626
|
panelRect: r,
|
|
4627
4627
|
children: /* @__PURE__ */ s("line", {
|
|
4628
4628
|
...n,
|
|
4629
|
-
stroke:
|
|
4629
|
+
stroke: y.hoverGuideLineColor,
|
|
4630
4630
|
strokeWidth: Mo,
|
|
4631
4631
|
strokeDasharray: Fo,
|
|
4632
4632
|
strokeLinecap: "round",
|
|
@@ -4639,7 +4639,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4639
4639
|
panelRect: n,
|
|
4640
4640
|
children: /* @__PURE__ */ s("rect", {
|
|
4641
4641
|
...o,
|
|
4642
|
-
fill:
|
|
4642
|
+
fill: y.hoverGuideFillColor,
|
|
4643
4643
|
"data-testid": "hover-guide-rect"
|
|
4644
4644
|
})
|
|
4645
4645
|
});
|
|
@@ -4652,7 +4652,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4652
4652
|
y1: o.y,
|
|
4653
4653
|
x2: a.x,
|
|
4654
4654
|
y2: a.y,
|
|
4655
|
-
stroke:
|
|
4655
|
+
stroke: y.hoverGuideLineColor,
|
|
4656
4656
|
strokeWidth: Mo,
|
|
4657
4657
|
strokeDasharray: Fo,
|
|
4658
4658
|
strokeLinecap: "round",
|
|
@@ -4673,7 +4673,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4673
4673
|
style: { overflow: "visible" },
|
|
4674
4674
|
children: /* @__PURE__ */ s("path", {
|
|
4675
4675
|
d: o,
|
|
4676
|
-
fill:
|
|
4676
|
+
fill: y.hoverGuideFillColor,
|
|
4677
4677
|
"data-testid": "hover-guide-arc"
|
|
4678
4678
|
})
|
|
4679
4679
|
})
|
|
@@ -4788,13 +4788,13 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4788
4788
|
if (f === null) return;
|
|
4789
4789
|
const m = i(h, f), p = r.getState();
|
|
4790
4790
|
if (p.isPointerSuspended) return;
|
|
4791
|
-
const
|
|
4792
|
-
if (
|
|
4793
|
-
p.setHoverState(t.query(
|
|
4791
|
+
const x = gr(m, p.pointerRegions);
|
|
4792
|
+
if (x !== null) {
|
|
4793
|
+
p.setHoverState(t.query(x.cursor)), p.setTooltipAnchor(_h(x.tooltip, f));
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
|
-
const
|
|
4797
|
-
p.setHoverState(t.query(
|
|
4796
|
+
const b = Si(m, f);
|
|
4797
|
+
p.setHoverState(t.query(b)), p.setTooltipAnchor(null);
|
|
4798
4798
|
}, c = () => {
|
|
4799
4799
|
const h = r.getState();
|
|
4800
4800
|
h.hover.primary === null && h.tooltipAnchor === null || (h.setHoverState(st), h.setTooltipAnchor(null));
|
|
@@ -4854,7 +4854,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4854
4854
|
};
|
|
4855
4855
|
}, [e, r]);
|
|
4856
4856
|
}, ov = () => {
|
|
4857
|
-
const e =
|
|
4857
|
+
const e = L();
|
|
4858
4858
|
return A(() => (t) => ai(e, t), [e]);
|
|
4859
4859
|
}, St = () => ue((e) => Ue(e, "move-drag")?.annotationId ?? Ue(e, "shape-resize-drag")?.annotationId ?? Ue(e, "arrow-endpoint-drag")?.annotationId ?? null), Je = (e) => {
|
|
4860
4860
|
const t = C((i) => i.annotations), r = Bd(), n = Ld(), o = se((i) => Mr(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = se((i) => Mr(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
|
|
@@ -4890,11 +4890,11 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4890
4890
|
inverse: "#1D2129"
|
|
4891
4891
|
}
|
|
4892
4892
|
}, lv = ({ computed: e, style: t, isAddressable: r }) => {
|
|
4893
|
-
const n =
|
|
4893
|
+
const n = U(), { colorScheme: o } = _t(), a = e.dashArray ? {
|
|
4894
4894
|
strokeDasharray: e.dashArray,
|
|
4895
4895
|
strokeDashoffset: e.dashOffset
|
|
4896
4896
|
} : {}, i = t.shadow === "none" ? null : t.shadow, l = t.borderWidth > 0, c = sv[o], u = t.borderColor ?? uv(t.color, c.primary, c.inverse), d = i === null ? null : dv(e, t.borderWidth, i.blur);
|
|
4897
|
-
return /* @__PURE__ */
|
|
4897
|
+
return /* @__PURE__ */ w("g", {
|
|
4898
4898
|
pointerEvents: r ? void 0 : "none",
|
|
4899
4899
|
children: [
|
|
4900
4900
|
r && /* @__PURE__ */ s(Oo, {
|
|
@@ -4912,7 +4912,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4912
4912
|
floodColor: i.color
|
|
4913
4913
|
})
|
|
4914
4914
|
}) }),
|
|
4915
|
-
/* @__PURE__ */
|
|
4915
|
+
/* @__PURE__ */ w("g", {
|
|
4916
4916
|
filter: i === null ? void 0 : `url(#${n})`,
|
|
4917
4917
|
children: [
|
|
4918
4918
|
l && /* @__PURE__ */ s("path", {
|
|
@@ -5001,7 +5001,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5001
5001
|
}, i.id))
|
|
5002
5002
|
});
|
|
5003
5003
|
}, vv = () => {
|
|
5004
|
-
const { selectionStore: e } =
|
|
5004
|
+
const { selectionStore: e } = W();
|
|
5005
5005
|
return je(e, (t) => t.selection);
|
|
5006
5006
|
}, gv = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
|
|
5007
5007
|
const a = {
|
|
@@ -5010,7 +5010,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5010
5010
|
strokeLinecap: "round",
|
|
5011
5011
|
fill: "none"
|
|
5012
5012
|
};
|
|
5013
|
-
return /* @__PURE__ */
|
|
5013
|
+
return /* @__PURE__ */ w("g", {
|
|
5014
5014
|
pointerEvents: o ? void 0 : "none",
|
|
5015
5015
|
children: [
|
|
5016
5016
|
o && /* @__PURE__ */ s(Oo, {
|
|
@@ -5030,7 +5030,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5030
5030
|
});
|
|
5031
5031
|
}, fv = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a, isAddressable: i }) => {
|
|
5032
5032
|
const { fonts: l } = Ie();
|
|
5033
|
-
return /* @__PURE__ */
|
|
5033
|
+
return /* @__PURE__ */ w("g", {
|
|
5034
5034
|
pointerEvents: i ? void 0 : "none",
|
|
5035
5035
|
children: [/* @__PURE__ */ s("rect", {
|
|
5036
5036
|
x: n.x,
|
|
@@ -5064,10 +5064,10 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5064
5064
|
transform: `translate(${e.x}, ${e.y})`,
|
|
5065
5065
|
"data-testid": "difference-arrows",
|
|
5066
5066
|
children: r.map(({ color: i, style: l, id: c, linePath: u, arrowheadPath: d, labelPosition: v, labelBox: g, labelText: h, isDragged: f, hasComparableEndpoints: m }) => {
|
|
5067
|
-
const p = n === c || a.has(c),
|
|
5068
|
-
return /* @__PURE__ */
|
|
5067
|
+
const p = n === c || a.has(c), x = f && !m, b = x ? y.alert : i, R = p && !x ? yv(b) : b;
|
|
5068
|
+
return /* @__PURE__ */ w("g", {
|
|
5069
5069
|
className: n === c ? pv : void 0,
|
|
5070
|
-
"data-warning":
|
|
5070
|
+
"data-warning": x || void 0,
|
|
5071
5071
|
...qe({
|
|
5072
5072
|
kind: "annotation",
|
|
5073
5073
|
id: c
|
|
@@ -5075,7 +5075,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5075
5075
|
children: [/* @__PURE__ */ s(gv, {
|
|
5076
5076
|
linePath: u,
|
|
5077
5077
|
arrowheadPath: d,
|
|
5078
|
-
stroke:
|
|
5078
|
+
stroke: R,
|
|
5079
5079
|
strokeWidth: l.strokeWidth,
|
|
5080
5080
|
isAddressable: t
|
|
5081
5081
|
}), /* @__PURE__ */ s(fv, {
|
|
@@ -5084,22 +5084,22 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5084
5084
|
text: h,
|
|
5085
5085
|
box: g,
|
|
5086
5086
|
label: l.label,
|
|
5087
|
-
arrowColor:
|
|
5087
|
+
arrowColor: R,
|
|
5088
5088
|
isAddressable: t
|
|
5089
5089
|
})]
|
|
5090
5090
|
}, c);
|
|
5091
5091
|
})
|
|
5092
5092
|
});
|
|
5093
|
-
}, yv = (e) => `color-mix(in srgb, ${e} ${mv}, ${
|
|
5094
|
-
const e =
|
|
5093
|
+
}, yv = (e) => `color-mix(in srgb, ${e} ${mv}, ${y.textPrimary})`, xv = () => {
|
|
5094
|
+
const e = L();
|
|
5095
5095
|
return A(() => (t) => fi(e, t), [e]);
|
|
5096
5096
|
}, bv = {
|
|
5097
5097
|
fill: "none",
|
|
5098
5098
|
contain: "xMidYMid meet",
|
|
5099
5099
|
cover: "xMidYMid slice"
|
|
5100
5100
|
}, wv = ({ image: e, panel: t, style: r }) => {
|
|
5101
|
-
const n =
|
|
5102
|
-
return /* @__PURE__ */
|
|
5101
|
+
const n = U(), { src: o, region: a, fit: i } = e, l = zt(a, t), c = r.borderRadius > 0;
|
|
5102
|
+
return /* @__PURE__ */ w("g", { children: [c && /* @__PURE__ */ s("clipPath", {
|
|
5103
5103
|
id: n,
|
|
5104
5104
|
children: /* @__PURE__ */ s("rect", {
|
|
5105
5105
|
...l,
|
|
@@ -5134,7 +5134,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5134
5134
|
}, i.id))
|
|
5135
5135
|
});
|
|
5136
5136
|
}, Sv = () => {
|
|
5137
|
-
const e =
|
|
5137
|
+
const e = L();
|
|
5138
5138
|
return A(() => (t) => gn(e, t), [e]);
|
|
5139
5139
|
}, kv = ({ shape: e, style: t, panel: r }) => {
|
|
5140
5140
|
const n = zt(e.region, r);
|
|
@@ -5170,7 +5170,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5170
5170
|
}, i.id))
|
|
5171
5171
|
});
|
|
5172
5172
|
}, Rv = () => {
|
|
5173
|
-
const e =
|
|
5173
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
5174
5174
|
return A(() => (r) => yi(e, r, t), [e, t]);
|
|
5175
5175
|
}, Cv = "_1aj6s5s0", Pf = "_1aj6s5s1", Ev = 0.1, Bf = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Go, {
|
|
5176
5176
|
annotation: e,
|
|
@@ -5183,7 +5183,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5183
5183
|
return /* @__PURE__ */ s("foreignObject", {
|
|
5184
5184
|
x: a.x,
|
|
5185
5185
|
y: a.y,
|
|
5186
|
-
width:
|
|
5186
|
+
width: k(e.width),
|
|
5187
5187
|
height: t.height,
|
|
5188
5188
|
overflow: "visible",
|
|
5189
5189
|
pointerEvents: "none",
|
|
@@ -5259,7 +5259,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5259
5259
|
})
|
|
5260
5260
|
});
|
|
5261
5261
|
}, Wo = () => {
|
|
5262
|
-
const e =
|
|
5262
|
+
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
5263
5263
|
return A(() => (r, n) => ci(e, r, n, t), [e, t]);
|
|
5264
5264
|
}, Fv = "ph8bdc0";
|
|
5265
5265
|
var Dv = "ph8bdc2", Hr = {
|
|
@@ -5280,7 +5280,7 @@ var Dv = "ph8bdc2", Hr = {
|
|
|
5280
5280
|
});
|
|
5281
5281
|
};
|
|
5282
5282
|
function Ov(e) {
|
|
5283
|
-
const t = pe(), { formattingLocale: r } =
|
|
5283
|
+
const t = pe(), { formattingLocale: r } = W(), n = Wo(), o = C(j((c) => ({
|
|
5284
5284
|
pinnedNumbers: c.annotations.pinnedNumbers,
|
|
5285
5285
|
comments: c.annotations.comments,
|
|
5286
5286
|
coordSystem: c.coordSystem,
|
|
@@ -5318,7 +5318,7 @@ function Ov(e) {
|
|
|
5318
5318
|
]);
|
|
5319
5319
|
}
|
|
5320
5320
|
var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o, n).width), Or = "callouts", Wv = ({ panelRect: e }) => {
|
|
5321
|
-
const { pinnedNumbers: t, comments: r } = C(
|
|
5321
|
+
const { pinnedNumbers: t, comments: r } = C(j((h) => ({
|
|
5322
5322
|
pinnedNumbers: h.annotations.pinnedNumbers,
|
|
5323
5323
|
comments: h.annotations.comments
|
|
5324
5324
|
}))), n = C((h) => h.coordSystem), o = de(), a = Sn(), i = Wo(), l = Ov(e), { store: c } = me(), u = A(() => {
|
|
@@ -5357,8 +5357,8 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5357
5357
|
if (!h.inView) return null;
|
|
5358
5358
|
const f = u.get(h.id), m = v.get(h.id);
|
|
5359
5359
|
if (f === void 0 || m === void 0) return null;
|
|
5360
|
-
const p = d.get(h.id),
|
|
5361
|
-
return /* @__PURE__ */
|
|
5360
|
+
const p = d.get(h.id), x = h.miniRect.width <= e.width && h.miniRect.height <= e.height;
|
|
5361
|
+
return /* @__PURE__ */ w("g", {
|
|
5362
5362
|
"data-testid": h.kind,
|
|
5363
5363
|
children: [/* @__PURE__ */ s("foreignObject", {
|
|
5364
5364
|
x: h.miniRect.x,
|
|
@@ -5366,8 +5366,8 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5366
5366
|
width: h.miniRect.width,
|
|
5367
5367
|
height: h.miniRect.height,
|
|
5368
5368
|
overflow: "visible",
|
|
5369
|
-
children: /* @__PURE__ */
|
|
5370
|
-
className:
|
|
5369
|
+
children: /* @__PURE__ */ w("div", {
|
|
5370
|
+
className: x ? Hr.hittable : Hr.inert,
|
|
5371
5371
|
style: Uv(m.label),
|
|
5372
5372
|
children: [h.kind === "pinned-number" && /* @__PURE__ */ s("span", {
|
|
5373
5373
|
className: "ph8bdc1",
|
|
@@ -5483,7 +5483,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5483
5483
|
}, Jv = "_1agclyl0";
|
|
5484
5484
|
var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, target: i, position: l, coordType: c, backdropColor: u }) => {
|
|
5485
5485
|
const d = bt(), v = a ? `rotate(-90 ${e} ${t})` : void 0, g = d[i][l], h = g.borderColor !== void 0 && (g.borderWidth ?? 0) > 0, f = eg(i, c, g), m = _v(g, f, u);
|
|
5486
|
-
return /* @__PURE__ */
|
|
5486
|
+
return /* @__PURE__ */ w("g", {
|
|
5487
5487
|
transform: v,
|
|
5488
5488
|
children: [f && /* @__PURE__ */ s("rect", {
|
|
5489
5489
|
className: "_1agclyl1",
|
|
@@ -5515,7 +5515,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5515
5515
|
if (r !== void 0)
|
|
5516
5516
|
return Pa(t ? e.background : void 0, r);
|
|
5517
5517
|
}, eg = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", tg = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
5518
|
-
const o = pe(), a = Ie(), i = C(
|
|
5518
|
+
const o = pe(), a = Ie(), i = C(j((d) => ({
|
|
5519
5519
|
layers: d.layers,
|
|
5520
5520
|
coordSystem: d.coordSystem,
|
|
5521
5521
|
axes: d.guides.axes,
|
|
@@ -5563,7 +5563,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5563
5563
|
children: u
|
|
5564
5564
|
});
|
|
5565
5565
|
}, rg = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o }) => {
|
|
5566
|
-
const { offset: a, textColor: i } = o, l =
|
|
5566
|
+
const { offset: a, textColor: i } = o, l = k(t), c = {
|
|
5567
5567
|
style: le(o),
|
|
5568
5568
|
fill: i
|
|
5569
5569
|
}, u = r !== 0 && (e === "top" || e === "bottom"), d = e === "top";
|
|
@@ -5625,7 +5625,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5625
5625
|
};
|
|
5626
5626
|
}, ag = ({ formattedAxis: e, rect: t }) => {
|
|
5627
5627
|
const r = e.position === "bottom" || e.position === "top", n = Ce(e.scaleAestheticKey), o = rr()[n], a = mo()[n];
|
|
5628
|
-
return /* @__PURE__ */
|
|
5628
|
+
return /* @__PURE__ */ w("svg", {
|
|
5629
5629
|
x: t.x,
|
|
5630
5630
|
y: t.y,
|
|
5631
5631
|
width: t.width,
|
|
@@ -5633,7 +5633,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5633
5633
|
style: { overflow: "visible" },
|
|
5634
5634
|
children: [!1, e.ticks.map((i, l) => {
|
|
5635
5635
|
const c = i.formattedLabel, u = r ? i.position : 1 - i.position, d = ig(e.position, u, t, a.length);
|
|
5636
|
-
return /* @__PURE__ */
|
|
5636
|
+
return /* @__PURE__ */ w("g", { children: [e.ticksVisible && /* @__PURE__ */ s("line", {
|
|
5637
5637
|
...d,
|
|
5638
5638
|
stroke: a.color,
|
|
5639
5639
|
strokeWidth: a.strokeWidth,
|
|
@@ -5648,7 +5648,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5648
5648
|
})]
|
|
5649
5649
|
});
|
|
5650
5650
|
}, ig = (e, t, r, n) => {
|
|
5651
|
-
const o =
|
|
5651
|
+
const o = k(t);
|
|
5652
5652
|
switch (e) {
|
|
5653
5653
|
case "bottom":
|
|
5654
5654
|
return {
|
|
@@ -5685,7 +5685,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5685
5685
|
const o = t[n.position];
|
|
5686
5686
|
if (!o || !n.isVisible) return null;
|
|
5687
5687
|
const a = lg(n.position, o), i = r[Ce(n.scaleAestheticKey)];
|
|
5688
|
-
return /* @__PURE__ */
|
|
5688
|
+
return /* @__PURE__ */ w("g", {
|
|
5689
5689
|
transform: `translate(${o.x}, ${o.y})`,
|
|
5690
5690
|
children: [!1, /* @__PURE__ */ s("text", {
|
|
5691
5691
|
style: le(i),
|
|
@@ -5717,7 +5717,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5717
5717
|
strokeDashoffset: "0",
|
|
5718
5718
|
strokeLinecap: "round"
|
|
5719
5719
|
}, ug = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
|
|
5720
|
-
const o =
|
|
5720
|
+
const o = L(), a = n.x - r.x, i = n.y - r.y;
|
|
5721
5721
|
return /* @__PURE__ */ s("svg", {
|
|
5722
5722
|
"data-testid": "grid",
|
|
5723
5723
|
x: r.x,
|
|
@@ -5761,7 +5761,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5761
5761
|
})
|
|
5762
5762
|
});
|
|
5763
5763
|
}, hg = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, vg = ({ sizes: e, panelFrameRect: t }) => {
|
|
5764
|
-
const r = C((i) => i.coordSystem.type === "polar"), n =
|
|
5764
|
+
const r = C((i) => i.coordSystem.type === "polar"), n = L(), o = A(() => hn(n), [n]);
|
|
5765
5765
|
if (r) return null;
|
|
5766
5766
|
const a = La(o, {
|
|
5767
5767
|
x: e.left / 2,
|
|
@@ -5818,7 +5818,7 @@ var Yo = (e, t) => {
|
|
|
5818
5818
|
const r = rr(), n = Yo(t, e);
|
|
5819
5819
|
if (!n) return null;
|
|
5820
5820
|
const { circle: o, circularAxis: a, radialAxis: i, startAngle: l, angleFor: c, radiusNormFor: u } = n, d = Ag(i, u, o.radius), v = (g) => r[Ce(g.scaleAestheticKey)];
|
|
5821
|
-
return /* @__PURE__ */
|
|
5821
|
+
return /* @__PURE__ */ w("svg", {
|
|
5822
5822
|
x: t.x,
|
|
5823
5823
|
y: t.y,
|
|
5824
5824
|
width: t.width,
|
|
@@ -5836,7 +5836,7 @@ var Yo = (e, t) => {
|
|
|
5836
5836
|
...le(v(i)),
|
|
5837
5837
|
paintOrder: "stroke"
|
|
5838
5838
|
},
|
|
5839
|
-
stroke:
|
|
5839
|
+
stroke: y.graphBackground,
|
|
5840
5840
|
strokeWidth: fg,
|
|
5841
5841
|
fill: v(i).textColor,
|
|
5842
5842
|
children: g.formattedLabel
|
|
@@ -5873,10 +5873,10 @@ var Yo = (e, t) => {
|
|
|
5873
5873
|
const t = Math.sin(e);
|
|
5874
5874
|
return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
|
|
5875
5875
|
}, xg = ({ formattedAxes: e, panelRect: t }) => {
|
|
5876
|
-
const r =
|
|
5876
|
+
const r = L(), n = Yo(t, e);
|
|
5877
5877
|
if (!n) return null;
|
|
5878
5878
|
const { circle: o, circularAxis: a, radialAxis: i, innerRadius: l, angleFor: c, radiusNormFor: u } = n, d = Lt(r, "y"), v = Lt(r, "x");
|
|
5879
|
-
return /* @__PURE__ */
|
|
5879
|
+
return /* @__PURE__ */ w("svg", {
|
|
5880
5880
|
x: t.x,
|
|
5881
5881
|
y: t.y,
|
|
5882
5882
|
width: t.width,
|
|
@@ -5918,20 +5918,22 @@ var Yo = (e, t) => {
|
|
|
5918
5918
|
]
|
|
5919
5919
|
});
|
|
5920
5920
|
}, bg = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a }) => {
|
|
5921
|
-
const i = de(), l = ad(e.id), c = i(e.geom, t.type);
|
|
5922
|
-
if (
|
|
5923
|
-
const
|
|
5924
|
-
return
|
|
5921
|
+
const i = de(), l = ad(e.id), { colorScheme: c } = W(), u = I(e), d = i(e.geom, t.type);
|
|
5922
|
+
if (d === null) return null;
|
|
5923
|
+
const v = yt(d.render);
|
|
5924
|
+
return v.overlay ? null : /* @__PURE__ */ s("g", {
|
|
5925
5925
|
style: n ? {
|
|
5926
5926
|
opacity: o.opacity,
|
|
5927
5927
|
...o.saturation === void 0 ? {} : { filter: `saturate(${o.saturation})` }
|
|
5928
5928
|
} : void 0,
|
|
5929
|
-
children:
|
|
5929
|
+
children: v.fn({
|
|
5930
5930
|
layer: e,
|
|
5931
5931
|
coordSystem: t,
|
|
5932
5932
|
shouldAnimateTransitions: r,
|
|
5933
5933
|
formattingLocale: a,
|
|
5934
|
-
intro: l
|
|
5934
|
+
intro: l,
|
|
5935
|
+
colorScheme: c,
|
|
5936
|
+
styleReaders: u
|
|
5935
5937
|
})
|
|
5936
5938
|
});
|
|
5937
5939
|
};
|
|
@@ -5953,7 +5955,7 @@ function wg({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
|
|
|
5953
5955
|
return o;
|
|
5954
5956
|
}
|
|
5955
5957
|
var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
|
|
5956
|
-
const c = C((
|
|
5958
|
+
const c = C((b) => b.config.numberFormat), u = A(() => wg({
|
|
5957
5959
|
renderer: e,
|
|
5958
5960
|
layer: t,
|
|
5959
5961
|
coordSystem: o,
|
|
@@ -5963,7 +5965,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
5963
5965
|
t,
|
|
5964
5966
|
o,
|
|
5965
5967
|
n
|
|
5966
|
-
]), d =
|
|
5968
|
+
]), { colorScheme: d } = W(), v = I(t), g = A(() => Da(t), [t]), h = A(() => Ra({
|
|
5967
5969
|
layer: t,
|
|
5968
5970
|
numberFormat: c,
|
|
5969
5971
|
locale: l
|
|
@@ -5971,36 +5973,38 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
5971
5973
|
c,
|
|
5972
5974
|
t,
|
|
5973
5975
|
l
|
|
5974
|
-
]), { fonts:
|
|
5976
|
+
]), { fonts: f } = Ie(), m = bt();
|
|
5975
5977
|
if (e === null || r === null && u.length === 0) return null;
|
|
5976
|
-
const
|
|
5977
|
-
let
|
|
5978
|
-
if (r && !
|
|
5979
|
-
const
|
|
5978
|
+
const p = yt(e.render);
|
|
5979
|
+
let x = null;
|
|
5980
|
+
if (r && !p.overlay) {
|
|
5981
|
+
const b = {
|
|
5980
5982
|
layer: r,
|
|
5981
5983
|
sourceLayer: t,
|
|
5982
5984
|
coordSystem: o,
|
|
5983
5985
|
shouldAnimateTransitions: a,
|
|
5984
5986
|
formattingLocale: l,
|
|
5985
|
-
panelRect: i
|
|
5987
|
+
panelRect: i,
|
|
5988
|
+
colorScheme: d,
|
|
5989
|
+
styleReaders: v
|
|
5986
5990
|
};
|
|
5987
|
-
|
|
5991
|
+
x = e.renderHighlight ? e.renderHighlight(b) : p.fn(b);
|
|
5988
5992
|
}
|
|
5989
|
-
return /* @__PURE__ */
|
|
5990
|
-
observation:
|
|
5991
|
-
anchor:
|
|
5993
|
+
return /* @__PURE__ */ w(Vo, { children: [x, u.map(({ observation: b, observationIndex: R, anchor: S }) => /* @__PURE__ */ s(Rg, {
|
|
5994
|
+
observation: b,
|
|
5995
|
+
anchor: S,
|
|
5992
5996
|
panelRect: i,
|
|
5993
|
-
fill:
|
|
5994
|
-
dotRadius: (
|
|
5995
|
-
readSegmentY:
|
|
5996
|
-
formatYValue:
|
|
5997
|
-
labelStyle:
|
|
5998
|
-
familyDefault:
|
|
5999
|
-
}, Cg(
|
|
5997
|
+
fill: v.get("color", b),
|
|
5998
|
+
dotRadius: (v.get("size", b) ?? 8) / 2,
|
|
5999
|
+
readSegmentY: g,
|
|
6000
|
+
formatYValue: h,
|
|
6001
|
+
labelStyle: m.observation.outside,
|
|
6002
|
+
familyDefault: f.familyDefault
|
|
6003
|
+
}, Cg(b, R)))] });
|
|
6000
6004
|
}, Rg = ({ observation: e, anchor: t, panelRect: r, fill: n, dotRadius: o, readSegmentY: a, formatYValue: i, labelStyle: l, familyDefault: c }) => {
|
|
6001
6005
|
const u = pe(), d = fn(t.x), v = pn(t.y), g = a(e), h = rn(g) ? i(g, e) : null, f = A(() => {
|
|
6002
6006
|
if (h === null) return null;
|
|
6003
|
-
const m = u.measureText(h,
|
|
6007
|
+
const m = u.measureText(h, z(l, c));
|
|
6004
6008
|
return {
|
|
6005
6009
|
width: m.width + l.paddingInline * 2,
|
|
6006
6010
|
height: m.height + l.paddingBlock * 2
|
|
@@ -6011,10 +6015,10 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6011
6015
|
l,
|
|
6012
6016
|
c
|
|
6013
6017
|
]);
|
|
6014
|
-
return /* @__PURE__ */
|
|
6018
|
+
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("circle", {
|
|
6015
6019
|
"data-testid": "highlight-overlay-dot",
|
|
6016
|
-
cx:
|
|
6017
|
-
cy:
|
|
6020
|
+
cx: k(d),
|
|
6021
|
+
cy: k(v),
|
|
6018
6022
|
r: o,
|
|
6019
6023
|
fill: n
|
|
6020
6024
|
}), h !== null && f !== null && /* @__PURE__ */ s(Uo, {
|
|
@@ -6032,29 +6036,33 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6032
6036
|
const r = e[ce.group];
|
|
6033
6037
|
return `${String(r ?? "")}\0${t}`;
|
|
6034
6038
|
}, Eg = ({ layer: e, coordSystem: t, panelRect: r }) => {
|
|
6035
|
-
const { primary: n, group: o, related: a } = Ve(
|
|
6036
|
-
primary:
|
|
6037
|
-
group:
|
|
6038
|
-
related:
|
|
6039
|
-
}))), i = de();
|
|
6039
|
+
const { primary: n, group: o, related: a } = Ve(j((v) => ({
|
|
6040
|
+
primary: v.hover.primary,
|
|
6041
|
+
group: v.hover.group,
|
|
6042
|
+
related: v.hover.related
|
|
6043
|
+
}))), i = de(), { colorScheme: l } = W(), c = I(e);
|
|
6040
6044
|
if (n === null) return null;
|
|
6041
|
-
const
|
|
6042
|
-
if (
|
|
6043
|
-
const
|
|
6044
|
-
return n.layerId === e.id ?
|
|
6045
|
+
const u = i(e.geom, t.type);
|
|
6046
|
+
if (u === null || Gl(u)) return null;
|
|
6047
|
+
const d = a.get(e.id) ?? [];
|
|
6048
|
+
return n.layerId === e.id ? u.renderHover({
|
|
6045
6049
|
layer: e,
|
|
6046
6050
|
coordSystem: t,
|
|
6047
6051
|
primary: n,
|
|
6048
6052
|
group: o,
|
|
6049
|
-
related:
|
|
6050
|
-
panelRect: r
|
|
6051
|
-
|
|
6053
|
+
related: d,
|
|
6054
|
+
panelRect: r,
|
|
6055
|
+
colorScheme: l,
|
|
6056
|
+
styleReaders: c
|
|
6057
|
+
}) : d.length === 0 ? null : u.renderHoverCompanions({
|
|
6052
6058
|
layer: e,
|
|
6053
6059
|
primary: n,
|
|
6054
|
-
related:
|
|
6060
|
+
related: d,
|
|
6061
|
+
colorScheme: l,
|
|
6062
|
+
styleReaders: c
|
|
6055
6063
|
});
|
|
6056
6064
|
}, Pg = (e) => {
|
|
6057
|
-
const t =
|
|
6065
|
+
const t = I(e);
|
|
6058
6066
|
return A(() => {
|
|
6059
6067
|
const [r] = e.data;
|
|
6060
6068
|
return r === void 0 ? {
|
|
@@ -6066,7 +6074,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6066
6074
|
};
|
|
6067
6075
|
}, [e, t]);
|
|
6068
6076
|
}, Bg = "var(--to1jkx0)", Ig = "var(--to1jkx1)", Tg = "to1jkx2", Lg = "to1jkx3", Ng = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
6069
|
-
const { layers: n, coordSystem: o } = C(
|
|
6077
|
+
const { layers: n, coordSystem: o } = C(j((a) => ({
|
|
6070
6078
|
layers: a.layers,
|
|
6071
6079
|
coordSystem: a.coordSystem
|
|
6072
6080
|
})));
|
|
@@ -6078,7 +6086,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6078
6086
|
className: Tg,
|
|
6079
6087
|
"data-testid": "geom-layers",
|
|
6080
6088
|
...Wd(),
|
|
6081
|
-
children: n.map((a) => /* @__PURE__ */
|
|
6089
|
+
children: n.map((a) => /* @__PURE__ */ w(jt, { children: [/* @__PURE__ */ s(Hg, {
|
|
6082
6090
|
layer: a,
|
|
6083
6091
|
coordSystem: o,
|
|
6084
6092
|
shouldAnimateTransitions: e,
|
|
@@ -6101,15 +6109,17 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6101
6109
|
a,
|
|
6102
6110
|
e,
|
|
6103
6111
|
t
|
|
6104
|
-
]), l = e.highlight, c = Pg(e), u = {
|
|
6112
|
+
]), l = e.highlight, c = Pg(e), { colorScheme: u } = W(), d = {
|
|
6105
6113
|
layer: e,
|
|
6106
6114
|
coordSystem: t,
|
|
6107
6115
|
shouldAnimateTransitions: r,
|
|
6108
|
-
formattingLocale: o
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6116
|
+
formattingLocale: o,
|
|
6117
|
+
colorScheme: u,
|
|
6118
|
+
styleReaders: I(e)
|
|
6119
|
+
}, v = i ? yt(i.render) : null, g = e.spatialKind === "render-hit-test", h = Fg(e);
|
|
6120
|
+
return /* @__PURE__ */ w("g", {
|
|
6121
|
+
className: h,
|
|
6122
|
+
style: h === void 0 ? void 0 : Dg(c),
|
|
6113
6123
|
children: [
|
|
6114
6124
|
/* @__PURE__ */ s(bg, {
|
|
6115
6125
|
layer: e,
|
|
@@ -6119,13 +6129,13 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6119
6129
|
dimStyle: c,
|
|
6120
6130
|
formattingLocale: o
|
|
6121
6131
|
}),
|
|
6122
|
-
|
|
6132
|
+
g && !v?.overlay && i?.hitTest && /* @__PURE__ */ s(zl, {
|
|
6123
6133
|
hitTest: i.hitTest,
|
|
6124
|
-
input:
|
|
6134
|
+
input: d
|
|
6125
6135
|
}),
|
|
6126
|
-
|
|
6127
|
-
render:
|
|
6128
|
-
input:
|
|
6136
|
+
g && v?.overlay && /* @__PURE__ */ s(tc, {
|
|
6137
|
+
render: v.fn,
|
|
6138
|
+
input: d
|
|
6129
6139
|
}),
|
|
6130
6140
|
l !== null && /* @__PURE__ */ s(kg, {
|
|
6131
6141
|
renderer: i,
|
|
@@ -6140,10 +6150,10 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6140
6150
|
]
|
|
6141
6151
|
});
|
|
6142
6152
|
}, Og = "_17uhij30", Gg = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: u, isFooterChromeReserved: d, isEditable: v }) => {
|
|
6143
|
-
const g =
|
|
6153
|
+
const g = T(null);
|
|
6144
6154
|
nv(g);
|
|
6145
|
-
const h = ee("Grid", ug), f = ee("AxisTicks", cg), m = ee("AxisLabel", dg), p = A(() => Wt(n, t), [n, t]),
|
|
6146
|
-
return /* @__PURE__ */
|
|
6155
|
+
const h = ee("Grid", ug), f = ee("AxisTicks", cg), m = ee("AxisLabel", dg), p = A(() => Wt(n, t), [n, t]), x = A(() => Wt(o, t), [o, t]), b = A(() => Gr(a, t), [a, t]), R = A(() => Gr(i, t), [i, t]);
|
|
6156
|
+
return /* @__PURE__ */ w("svg", {
|
|
6147
6157
|
ref: g,
|
|
6148
6158
|
className: Og,
|
|
6149
6159
|
width: t.width,
|
|
@@ -6155,27 +6165,27 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6155
6165
|
axes: e,
|
|
6156
6166
|
panelBorderSizes: r,
|
|
6157
6167
|
panelFrameRect: p,
|
|
6158
|
-
panelRect:
|
|
6168
|
+
panelRect: x
|
|
6159
6169
|
}),
|
|
6160
6170
|
/* @__PURE__ */ s(f, {
|
|
6161
6171
|
formattedAxes: e,
|
|
6162
|
-
tickRects:
|
|
6172
|
+
tickRects: b
|
|
6163
6173
|
}),
|
|
6164
6174
|
/* @__PURE__ */ s(m, {
|
|
6165
6175
|
formattedAxes: e,
|
|
6166
|
-
labelRects:
|
|
6176
|
+
labelRects: R
|
|
6167
6177
|
}),
|
|
6168
6178
|
/* @__PURE__ */ s(xg, {
|
|
6169
6179
|
formattedAxes: e,
|
|
6170
|
-
panelRect:
|
|
6180
|
+
panelRect: x
|
|
6171
6181
|
}),
|
|
6172
|
-
/* @__PURE__ */ s(Wh, { panelRect:
|
|
6182
|
+
/* @__PURE__ */ s(Wh, { panelRect: x }),
|
|
6173
6183
|
/* @__PURE__ */ s(Dr, {
|
|
6174
|
-
panelRect:
|
|
6184
|
+
panelRect: x,
|
|
6175
6185
|
zOrder: "background"
|
|
6176
6186
|
}),
|
|
6177
6187
|
/* @__PURE__ */ s(Fr, {
|
|
6178
|
-
panelRect:
|
|
6188
|
+
panelRect: x,
|
|
6179
6189
|
zOrder: "background"
|
|
6180
6190
|
}),
|
|
6181
6191
|
/* @__PURE__ */ s(vg, {
|
|
@@ -6184,39 +6194,39 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6184
6194
|
}),
|
|
6185
6195
|
/* @__PURE__ */ s(Ng, {
|
|
6186
6196
|
shouldAnimateTransitions: l,
|
|
6187
|
-
panelRect:
|
|
6197
|
+
panelRect: x,
|
|
6188
6198
|
formattingLocale: c
|
|
6189
6199
|
}),
|
|
6190
6200
|
/* @__PURE__ */ s(mg, {
|
|
6191
6201
|
formattedAxes: e,
|
|
6192
|
-
panelRect:
|
|
6202
|
+
panelRect: x
|
|
6193
6203
|
}),
|
|
6194
6204
|
/* @__PURE__ */ s(tg, {
|
|
6195
|
-
panelRect:
|
|
6205
|
+
panelRect: x,
|
|
6196
6206
|
formattingLocale: c,
|
|
6197
6207
|
plotBottomY: u,
|
|
6198
6208
|
isFooterChromeReserved: d
|
|
6199
6209
|
}),
|
|
6200
6210
|
/* @__PURE__ */ s(Av, {
|
|
6201
|
-
panelRect:
|
|
6211
|
+
panelRect: x,
|
|
6202
6212
|
isEditable: v
|
|
6203
6213
|
}),
|
|
6204
6214
|
/* @__PURE__ */ s(Dr, {
|
|
6205
|
-
panelRect:
|
|
6215
|
+
panelRect: x,
|
|
6206
6216
|
zOrder: "foreground"
|
|
6207
6217
|
}),
|
|
6208
6218
|
/* @__PURE__ */ s(Fr, {
|
|
6209
|
-
panelRect:
|
|
6219
|
+
panelRect: x,
|
|
6210
6220
|
zOrder: "foreground"
|
|
6211
6221
|
}),
|
|
6212
6222
|
/* @__PURE__ */ s(hv, {
|
|
6213
|
-
panelRect:
|
|
6223
|
+
panelRect: x,
|
|
6214
6224
|
isEditable: v
|
|
6215
6225
|
}),
|
|
6216
|
-
/* @__PURE__ */ s(Nv, { panelRect:
|
|
6217
|
-
/* @__PURE__ */ s(zv, { panelRect:
|
|
6218
|
-
/* @__PURE__ */ s(Wv, { panelRect:
|
|
6219
|
-
/* @__PURE__ */ s(tv, { panelRect:
|
|
6226
|
+
/* @__PURE__ */ s(Nv, { panelRect: x }),
|
|
6227
|
+
/* @__PURE__ */ s(zv, { panelRect: x }),
|
|
6228
|
+
/* @__PURE__ */ s(Wv, { panelRect: x }),
|
|
6229
|
+
/* @__PURE__ */ s(tv, { panelRect: x })
|
|
6220
6230
|
]
|
|
6221
6231
|
});
|
|
6222
6232
|
}, Wt = (e, t) => ({
|
|
@@ -6374,45 +6384,45 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6374
6384
|
})
|
|
6375
6385
|
})
|
|
6376
6386
|
}) }) }), qg = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = "readonly" }) => {
|
|
6377
|
-
const a = io(), { axes: i, legends: l, layers: c, numberFormat: u, parsingLocale: d, appearance: v, annotations: g, coordSystem: h, headline: f, headlineConfig: m, content: p, overflowStrategy:
|
|
6378
|
-
axes:
|
|
6379
|
-
legends:
|
|
6380
|
-
layers:
|
|
6381
|
-
numberFormat:
|
|
6382
|
-
parsingLocale:
|
|
6383
|
-
appearance:
|
|
6384
|
-
annotations:
|
|
6385
|
-
coordSystem:
|
|
6386
|
-
headline:
|
|
6387
|
-
headlineConfig:
|
|
6388
|
-
content:
|
|
6389
|
-
overflowStrategy:
|
|
6390
|
-
layoutConfig:
|
|
6391
|
-
}))),
|
|
6387
|
+
const a = io(), { axes: i, legends: l, layers: c, numberFormat: u, parsingLocale: d, appearance: v, annotations: g, coordSystem: h, headline: f, headlineConfig: m, content: p, overflowStrategy: x, layoutConfig: b } = C(j((Y) => ({
|
|
6388
|
+
axes: Y.guides.axes,
|
|
6389
|
+
legends: Y.guides.legends.drawn,
|
|
6390
|
+
layers: Y.layers,
|
|
6391
|
+
numberFormat: Y.config.numberFormat,
|
|
6392
|
+
parsingLocale: Y.config.parsingLocale,
|
|
6393
|
+
appearance: Y.config.appearance,
|
|
6394
|
+
annotations: Y.annotations,
|
|
6395
|
+
coordSystem: Y.coordSystem,
|
|
6396
|
+
headline: Y.guides.headline,
|
|
6397
|
+
headlineConfig: Y.config.headline,
|
|
6398
|
+
content: Y.config.content,
|
|
6399
|
+
overflowStrategy: Y.config.panel.overflow,
|
|
6400
|
+
layoutConfig: Y.config.layout
|
|
6401
|
+
}))), R = Ci(), { intro: S, transitions: P } = A(() => nc(r, R ?? !1), [r, R]), { headerRef: E, footerRef: N, measurements: M } = Yg(), { formattingLocale: V, colorScheme: K, themeOverrides: Te } = W(), Ae = o === "editable", [ye, Ko] = G(null), ar = A(() => Un(K, Te), [K, Te]), zo = ee("Header", Eu), jo = ee("Footer", xu), Xo = ee("Legend", Oh), qo = ee("Headline", qu), Jo = ee("EditorSurface", zg), ir = A(() => Wa({
|
|
6392
6402
|
legends: l,
|
|
6393
6403
|
numberFormat: u,
|
|
6394
6404
|
parsingLocale: d,
|
|
6395
|
-
formattingLocale:
|
|
6405
|
+
formattingLocale: V
|
|
6396
6406
|
}), [
|
|
6397
6407
|
l,
|
|
6398
6408
|
u,
|
|
6399
6409
|
d,
|
|
6400
|
-
|
|
6410
|
+
V
|
|
6401
6411
|
]), Le = A(() => Ga({
|
|
6402
6412
|
headline: f,
|
|
6403
6413
|
show: m.show,
|
|
6404
6414
|
numberFormat: u,
|
|
6405
6415
|
parsingLocale: d,
|
|
6406
|
-
formattingLocale:
|
|
6416
|
+
formattingLocale: V,
|
|
6407
6417
|
t: a
|
|
6408
6418
|
}), [
|
|
6409
6419
|
f,
|
|
6410
6420
|
m.show,
|
|
6411
6421
|
u,
|
|
6412
6422
|
d,
|
|
6413
|
-
|
|
6423
|
+
V,
|
|
6414
6424
|
a
|
|
6415
|
-
]), Zo = pe(), Ze =
|
|
6425
|
+
]), Zo = pe(), Ze = L(), $e = A(() => cn(Ze), [Ze]), sr = A(() => hn(Ze), [Ze]), lr = Bo(), kt = $e.borderColor === void 0 ? 0 : $e.borderWidth, Ne = A(() => ({
|
|
6416
6426
|
width: Math.max(0, e - 2 * kt),
|
|
6417
6427
|
height: Math.max(0, t - 2 * kt)
|
|
6418
6428
|
}), [
|
|
@@ -6447,13 +6457,13 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6447
6457
|
containerSize: Ne,
|
|
6448
6458
|
externalMeasurements: M,
|
|
6449
6459
|
headline: xe,
|
|
6450
|
-
formattingLocale:
|
|
6460
|
+
formattingLocale: V,
|
|
6451
6461
|
annotations: g,
|
|
6452
6462
|
layers: c,
|
|
6453
6463
|
coordSystem: h,
|
|
6454
6464
|
textScale: v.textScale,
|
|
6455
|
-
overflowStrategy:
|
|
6456
|
-
layout:
|
|
6465
|
+
overflowStrategy: x,
|
|
6466
|
+
layout: b,
|
|
6457
6467
|
panelBorder: dr
|
|
6458
6468
|
}), et = A(() => !Me || !xe || !_e ? null : gi({
|
|
6459
6469
|
headline: xe,
|
|
@@ -6471,7 +6481,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6471
6481
|
if (!Me) return null;
|
|
6472
6482
|
const { layout: X, formattedAxes: ta, plotBottomY: ra } = Me, na = X.footer.height > 0;
|
|
6473
6483
|
return /* @__PURE__ */ s(Ec, {
|
|
6474
|
-
colorScheme:
|
|
6484
|
+
colorScheme: K,
|
|
6475
6485
|
themeOverrides: Te,
|
|
6476
6486
|
textScale: v.textScale,
|
|
6477
6487
|
graphBackground: $e.background,
|
|
@@ -6487,8 +6497,8 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6487
6497
|
width: "100%",
|
|
6488
6498
|
height: "100%"
|
|
6489
6499
|
},
|
|
6490
|
-
children: /* @__PURE__ */
|
|
6491
|
-
intro:
|
|
6500
|
+
children: /* @__PURE__ */ w(nd, {
|
|
6501
|
+
intro: S,
|
|
6492
6502
|
children: [
|
|
6493
6503
|
/* @__PURE__ */ s(zo, {
|
|
6494
6504
|
ref: E,
|
|
@@ -6509,13 +6519,13 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6509
6519
|
axisRects: X.axes,
|
|
6510
6520
|
axisLabelRects: X.axisLabels,
|
|
6511
6521
|
shouldAnimateTransitions: P,
|
|
6512
|
-
formattingLocale:
|
|
6522
|
+
formattingLocale: V ?? d,
|
|
6513
6523
|
plotBottomY: ra,
|
|
6514
6524
|
isFooterChromeReserved: na,
|
|
6515
6525
|
isEditable: Ae
|
|
6516
6526
|
}),
|
|
6517
6527
|
/* @__PURE__ */ s(jo, {
|
|
6518
|
-
ref:
|
|
6528
|
+
ref: N,
|
|
6519
6529
|
footerRect: X.footer,
|
|
6520
6530
|
mode: o,
|
|
6521
6531
|
caption: p.caption,
|
|
@@ -6560,7 +6570,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6560
6570
|
subscribeSelection: t.selectionStore.subscribe
|
|
6561
6571
|
} : null), [e, t]);
|
|
6562
6572
|
}, Lf = (e) => Ri(e.subscribe, e.getCompiled, e.getCompiled), Nf = () => {
|
|
6563
|
-
const { commands: e } =
|
|
6573
|
+
const { commands: e } = W();
|
|
6564
6574
|
return e;
|
|
6565
6575
|
}, Mf = (e) => {
|
|
6566
6576
|
if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
|
|
@@ -6577,8 +6587,9 @@ export {
|
|
|
6577
6587
|
To as D,
|
|
6578
6588
|
He as Dt,
|
|
6579
6589
|
Gu as E,
|
|
6580
|
-
|
|
6590
|
+
L as Et,
|
|
6581
6591
|
ue as F,
|
|
6592
|
+
W as Ft,
|
|
6582
6593
|
Td as G,
|
|
6583
6594
|
yf as H,
|
|
6584
6595
|
Rf as I,
|
|
@@ -6586,13 +6597,13 @@ export {
|
|
|
6586
6597
|
Bd as K,
|
|
6587
6598
|
Ue as L,
|
|
6588
6599
|
vu as M,
|
|
6589
|
-
|
|
6600
|
+
I as Mt,
|
|
6590
6601
|
qd as N,
|
|
6591
|
-
|
|
6602
|
+
C as Nt,
|
|
6592
6603
|
Eu as O,
|
|
6593
6604
|
bs as Ot,
|
|
6594
6605
|
kf as P,
|
|
6595
|
-
|
|
6606
|
+
bn as Pt,
|
|
6596
6607
|
Ic as Q,
|
|
6597
6608
|
Sf as R,
|
|
6598
6609
|
jh as S,
|