@graphysdk/react-renderer 1.9.0-beta.1792505847409 → 1.9.0-beta.1792510459918
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +27 -27
- package/dist/editable.mjs +407 -407
- package/dist/history-chords-CsWrjb9i.cjs +2 -0
- package/dist/{history-chords-BIeYhK4y.js → history-chords-Kybi2Tvr.js} +325 -325
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.mjs +6 -6
- package/package.json +4 -4
- package/dist/history-chords-D9BmYary.cjs +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as ks, CachedTextMeasurer as Kn, DATA_LABEL_ROLES as Es, DEFAULT_GEOM_COLOR as
|
|
1
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as ks, CachedTextMeasurer as Kn, DATA_LABEL_ROLES as Es, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as Vr, DEFAULT_POINT_SIZE_PX as tt, GROUP_VARIABLES as ne, HeuristicTextMeasurer as Ps, HoverEngine as Rs, InternalError as Cs, LayoutCompiler as Ls, NAMED_WEIGHTS as ht, POLAR_RIM_LABEL_GAP_PX as Is, POSITION_VARIABLES as vt, RESOLVED_DATA_LABEL_POSITIONS as Ts, RESTING_HOVER_STATE as Yt, VISUAL_VARIABLES as Un, alignUnitFractions as Vo, applyTextTransform as St, areAnchorsEqual as Bs, areEditMenuTriggersEqual as Ms, areEditTargetsEqual as mt, areEndpointsComparable as Qn, arePointerRegionListsEqual as Os, arePredicatesEqual as Yo, buildAverageLineSymbols as Ns, buildBarRectBounds as Hs, buildCalloutHitRegions as Ds, buildColumnKey as Yr, buildDataLabelsContent as Fs, buildFontString as Gs, buildHeadlineItemRows as jo, buildLayerIntroPlan as Ws, buildObservationsTarget as zs, buildPointSymbolInBox as Vs, buildPointSymbolPath as Ys, buildPolarBarArcPath as Ge, buildSliceGroupKey as jr, buildTooltipContent as js, compositeColor as zt, computeArrow as Ks, computeDifferenceArrow as Us, computeDirectLabelsLayout as Qs, computeLetterSpacingWidth as Xs, computeLineBoxHeight as We, computePanelBorderPaths as qs, computePanelBorderSizes as Js, countLayerGeoms as Zs, createAreaPathGenerators as Kr, createBarBoundsReader as Ko, createDataLabelPlacementResolver as $s, createLayerYValueFormatter as _s, createLineFillAreaGenerator as el, createLinePathGenerator as Ur, createObservationBoxReader as tl, createPinnedNumberValueFormatter as rl, createSegmentYReader as nl, createStableCellKeyGenerator as ol, createStableKeyGenerator as Se, ensureReadableTextColor as Qr, findAnnotation as al, findLayerById as _t, findPointerRegion as Xn, formatHeadline as il, formatLegends as sl, formatRuleValue as ll, getAestheticFromScaleAestheticKey as Ae, getAlpha as Uo, getAngleExtent as dl, getBarRectBounds as Qo, getBoundingRect as cl, getDifferenceArrowLabelBox as ul, getGroup as Ve, getHoverGuideLineProps as hl, getHoverGuideRectProps as vl, getPaintedTileRect as Xr, getPointSymbolOuterRadius as gl, getPolarHoverGuideArcProps as fl, getRadiusExtent as Xo, getShapeAnnotationStroke as pl, getSize as ml, getStackRole as yl, getUnionExtent as qo, getX as J, getXMax as Jo, getY as _, getYMax as er, isAnnotationMovable as xl, isFullTurnSweep as qr, isGradientPaint as Zo, isImagePaint as Al, isOpaquePaint as bl, isPatternPaint as Jr, isPositionScale as qn, isSafeUrl as Zr, orderPointerRegions as Sl, paintKey as Pr, paintsInDonutHole as wl, pickFilters as kl, pickReadableTextColor as $o, placeCallouts as El, polarToUnit as Pl, positionToAngle as Rl, prepareAreaObservations as $r, prepareLineObservations as _r, projectAnchorToPanel as At, projectRegionToPanel as en, readAnchoredObservation as _o, readColorGroupObservation as Cl, readGeomColor as tr, readGeomEffects as Z, readGroupRuleColor as ea, readMainAxis as wt, removeAlpha as Ll, resolveArrowAnnotationStyle as Il, resolveArrowColor as Tl, resolveBarBorderTreatment as kt, resolveBarCornerRadiiPx as Bl, resolveBarCornerRadiusPx as tn, resolveBarPaintOrigin as Ml, resolveCalloutAnnotationStyle as Rr, resolveChromeMargins as Ol, resolveDataLabelStyle as Nl, resolveDeferredAnchors as Hl, resolveDifferenceArrowAnnotationStyle as ta, resolveDirectLabelStyle as ra, resolveGeomCornerRadiusPx as Dl, resolveGraphPadding as Fl, resolveHeadlineItemStyle as Vt, resolveHeadlineNumberStyle as na, resolveHeadlinePlacement as Gl, resolveLegendItemStyle as Et, resolvePanelBorderStyle as oa, resolvePolarBarCornerRadiusUnit as Wl, resolveRuleLabelStyle as zl, resolveSwatchGeomPaint as aa, resolveTooltipStyle as Vl, toFontSpec as te, toPaintColor as z, toPanelCursor as Yl, toPercent as C, toStrokeDasharray as rt, toViewBoxX as ia, toViewBoxY as sa, truncateToWidth as la, withAlpha as jl } from "@graphysdk/viz-engine";
|
|
2
2
|
import { Fragment as Pt, createContext as Y, isValidElement as Kl, memo as ge, useCallback as ie, useContext as N, useEffect as W, useId as Q, useLayoutEffect as Ul, useMemo as b, useRef as F, useState as U, useSyncExternalStore as Ql } from "react";
|
|
3
3
|
import { Fragment as T, jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
4
4
|
import { useStore as nt } from "zustand";
|
|
5
|
-
import { animate as Pe, motion as
|
|
5
|
+
import { animate as Pe, motion as V, useMotionValue as ye, useReducedMotion as Xl, useTransform as Ht } from "motion/react";
|
|
6
6
|
import { interpolatePath as ql } from "d3-interpolate-path";
|
|
7
7
|
import { useShallow as oe } from "zustand/react/shallow";
|
|
8
8
|
import { assignInlineVars as rr } from "@vanilla-extract/dynamic";
|
|
@@ -22,7 +22,7 @@ import './history-chords.css';var Jn = Object.defineProperty, ed = (e, t) => {
|
|
|
22
22
|
});
|
|
23
23
|
return t || Jn(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
24
24
|
};
|
|
25
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.
|
|
25
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1792510459918");
|
|
26
26
|
function td(e) {
|
|
27
27
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
28
28
|
}
|
|
@@ -155,7 +155,7 @@ var ua = Y(null), ee = () => {
|
|
|
155
155
|
x: r.centerX + n.x * r.radius,
|
|
156
156
|
y: r.centerY - n.y * r.radius
|
|
157
157
|
};
|
|
158
|
-
},
|
|
158
|
+
}, ze = (e, t) => ({
|
|
159
159
|
x: ia(e),
|
|
160
160
|
y: sa(t)
|
|
161
161
|
}), ve = (e, t) => {
|
|
@@ -175,7 +175,7 @@ var ua = Y(null), ee = () => {
|
|
|
175
175
|
}, v = h?.fadesIn ? { opacity: 0 } : {};
|
|
176
176
|
if (e === "circle") {
|
|
177
177
|
const A = n / 2;
|
|
178
|
-
return h ? /* @__PURE__ */ l(
|
|
178
|
+
return h ? /* @__PURE__ */ l(V.circle, {
|
|
179
179
|
initial: h.intro ? {
|
|
180
180
|
cx: t,
|
|
181
181
|
cy: r,
|
|
@@ -208,7 +208,7 @@ var ua = Y(null), ee = () => {
|
|
|
208
208
|
...u
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
return h ? /* @__PURE__ */ l(
|
|
211
|
+
return h ? /* @__PURE__ */ l(V.path, {
|
|
212
212
|
initial: h.intro ? {
|
|
213
213
|
x: t,
|
|
214
214
|
y: r,
|
|
@@ -241,10 +241,10 @@ var ua = Y(null), ee = () => {
|
|
|
241
241
|
transform: `translate(${t}, ${r})`
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
}, vd = 2, gd = 0.7, Be = ({ hit: e, project: t =
|
|
245
|
-
const r = va(e.layerId), n = ga(e) ??
|
|
244
|
+
}, vd = 2, gd = 0.7, Be = ({ hit: e, project: t = ze }) => {
|
|
245
|
+
const r = va(e.layerId), n = ga(e) ?? zr;
|
|
246
246
|
if (!e.anchored) return null;
|
|
247
|
-
const o = (Uo(e.observation) ?? 1) * gd, a = r?.get("size", e.observation) ?? tt, i = r?.get("stroke", e.observation, "hovered") ??
|
|
247
|
+
const o = (Uo(e.observation) ?? 1) * gd, a = r?.get("size", e.observation) ?? tt, i = r?.get("stroke", e.observation, "hovered") ?? Vr, s = t(e.x, e.y);
|
|
248
248
|
return /* @__PURE__ */ l(or, {
|
|
249
249
|
symbol: r?.get("symbol", e.observation) ?? "circle",
|
|
250
250
|
cx: C(s.x),
|
|
@@ -323,7 +323,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
323
323
|
centers: n,
|
|
324
324
|
size: r
|
|
325
325
|
}));
|
|
326
|
-
}, pa = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${K(r.x + e * n)},${K(r.y + t * o)}`, md = ({ layer: e, coordSystem: t, panelRect: r,
|
|
326
|
+
}, pa = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${K(r.x + e * n)},${K(r.y + t * o)}`, md = ({ layer: e, coordSystem: t, panelRect: r, animateTransitions: n }) => {
|
|
327
327
|
const { areaGenerator: o } = Kr(t, e.params), a = {
|
|
328
328
|
origin: {
|
|
329
329
|
x: 0,
|
|
@@ -348,7 +348,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
348
348
|
const d = i === "" ? [] : [{
|
|
349
349
|
kind: "region",
|
|
350
350
|
pathData: i,
|
|
351
|
-
|
|
351
|
+
animateTransitions: n
|
|
352
352
|
}];
|
|
353
353
|
return s.length > 0 && d.push({
|
|
354
354
|
kind: "dots",
|
|
@@ -358,10 +358,10 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
358
358
|
}, yd = (e, t, r) => {
|
|
359
359
|
if (t.mainAxis === "y") {
|
|
360
360
|
const a = _(e), i = Jo(e) ?? J(e);
|
|
361
|
-
return a === null || i === null ? null : jt(
|
|
361
|
+
return a === null || i === null ? null : jt(ze(i, a), r);
|
|
362
362
|
}
|
|
363
363
|
const n = J(e), o = er(e) ?? _(e);
|
|
364
|
-
return n === null || o === null ? null : jt(
|
|
364
|
+
return n === null || o === null ? null : jt(ze(n, o), r);
|
|
365
365
|
}, xd = 1.5, ma = (e, t) => ya(e, t) ? Math.max(t, xd) : t, Me = (e, t, r) => {
|
|
366
366
|
const n = ma(e, t);
|
|
367
367
|
return {
|
|
@@ -411,7 +411,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
411
411
|
r,
|
|
412
412
|
n
|
|
413
413
|
]), n;
|
|
414
|
-
}, Aa = ({
|
|
414
|
+
}, Aa = ({ animateTransitions: e, ...t }) => e ? /* @__PURE__ */ l(Sd, { ...t }) : /* @__PURE__ */ l(bd, { ...t }), bd = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c, opacity: u }) => /* @__PURE__ */ S("g", {
|
|
415
415
|
opacity: u,
|
|
416
416
|
children: [/* @__PURE__ */ l("path", {
|
|
417
417
|
d: e,
|
|
@@ -433,12 +433,12 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
433
433
|
const h = Br(e, be), g = Br(t, be);
|
|
434
434
|
return /* @__PURE__ */ S("g", {
|
|
435
435
|
opacity: u,
|
|
436
|
-
children: [/* @__PURE__ */ l(
|
|
436
|
+
children: [/* @__PURE__ */ l(V.path, {
|
|
437
437
|
d: h,
|
|
438
438
|
fill: r,
|
|
439
439
|
fillOpacity: n,
|
|
440
440
|
stroke: "none"
|
|
441
|
-
}), /* @__PURE__ */ l(
|
|
441
|
+
}), /* @__PURE__ */ l(V.path, {
|
|
442
442
|
d: g,
|
|
443
443
|
fill: "none",
|
|
444
444
|
stroke: o,
|
|
@@ -475,7 +475,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
475
475
|
const r = Q();
|
|
476
476
|
return /* @__PURE__ */ S(T, { children: [/* @__PURE__ */ l("clipPath", {
|
|
477
477
|
id: r,
|
|
478
|
-
children: /* @__PURE__ */ l(
|
|
478
|
+
children: /* @__PURE__ */ l(V.rect, {
|
|
479
479
|
...Pd(e.axis),
|
|
480
480
|
transition: wd(e)
|
|
481
481
|
})
|
|
@@ -532,7 +532,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
532
532
|
})
|
|
533
533
|
})
|
|
534
534
|
});
|
|
535
|
-
}, Id = ge(function({ layer: t, coordSystem: r,
|
|
535
|
+
}, Id = ge(function({ layer: t, coordSystem: r, animateTransitions: n, intro: o }) {
|
|
536
536
|
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: s } = b(() => Kr(r, t.params), [t.params, r]), d = G(t), c = b(() => {
|
|
537
537
|
const u = Se(t.data, t.mapping, t.id), h = [];
|
|
538
538
|
return t.data.groupBy(ne.group).forEach((g) => {
|
|
@@ -540,7 +540,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
540
540
|
if (!v || !m) return;
|
|
541
541
|
const p = f[0];
|
|
542
542
|
if (!p) return;
|
|
543
|
-
const A =
|
|
543
|
+
const A = z(d.get("fill", p)), x = d.get("stroke", p) ?? A, { strokeWidth: w, strokeDasharray: k, strokeLinecap: E } = Me(d.get("dashArray", p), d.get("strokeWidth", p), d.get("lineCap", p)), R = d.get("lineJoin", p);
|
|
544
544
|
h.push({
|
|
545
545
|
key: u(p),
|
|
546
546
|
areaPath: v,
|
|
@@ -574,7 +574,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
574
574
|
strokeDasharray: u.strokeDasharray,
|
|
575
575
|
lineCap: u.lineCap,
|
|
576
576
|
lineJoin: u.lineJoin,
|
|
577
|
-
|
|
577
|
+
animateTransitions: n
|
|
578
578
|
}, u.key));
|
|
579
579
|
return /* @__PURE__ */ l(we, {
|
|
580
580
|
viewBox: "0 0 1 1",
|
|
@@ -589,7 +589,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
589
589
|
children: c
|
|
590
590
|
}) : c
|
|
591
591
|
});
|
|
592
|
-
}), Td = ({ areaPath: e, linePath: t, fill: r, stroke: n, fillOpacity: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c,
|
|
592
|
+
}), Td = ({ areaPath: e, linePath: t, fill: r, stroke: n, fillOpacity: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c, animateTransitions: u }) => /* @__PURE__ */ l(Aa, {
|
|
593
593
|
fillPath: e,
|
|
594
594
|
linePath: t,
|
|
595
595
|
fill: r,
|
|
@@ -600,11 +600,11 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
600
600
|
strokeDasharray: s,
|
|
601
601
|
lineCap: d,
|
|
602
602
|
lineJoin: c,
|
|
603
|
-
|
|
604
|
-
}), Ea = 1, Bd = 0.4, Md = 0.2, Od = 1, Nd = 0.5, Hd = 2.25, it = ({ hit: e, project: t =
|
|
605
|
-
const n = va(e.layerId), o = ga(e) ??
|
|
603
|
+
animateTransitions: u
|
|
604
|
+
}), Ea = 1, Bd = 0.4, Md = 0.2, Od = 1, Nd = 0.5, Hd = 2.25, it = ({ hit: e, project: t = ze, ...r }) => {
|
|
605
|
+
const n = va(e.layerId), o = ga(e) ?? zr;
|
|
606
606
|
if (!e.anchored) return null;
|
|
607
|
-
const a = Uo(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ??
|
|
607
|
+
const a = Uo(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ?? Vr, s = n?.get("symbol", e.observation) ?? "circle", d = t(e.x, e.y), c = C(d.x), u = C(d.y), h = Dd(e.observation, n), { ringRadius: g, ringWidth: f } = Fd(h, gl(s, h * 2)), v = n ? $(Z(n, e.observation, "hovered")) : void 0;
|
|
608
608
|
return /* @__PURE__ */ S("g", {
|
|
609
609
|
...r,
|
|
610
610
|
style: v,
|
|
@@ -636,7 +636,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
636
636
|
ringWidth: r
|
|
637
637
|
};
|
|
638
638
|
}, Gd = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
639
|
-
const o = G(e), a =
|
|
639
|
+
const o = G(e), a = Ve(r.observation), i = b(() => $r([...e.data.filter(ne.group, "eq", a)], e.params.missingValues), [
|
|
640
640
|
e.data,
|
|
641
641
|
e.params.missingValues,
|
|
642
642
|
a
|
|
@@ -652,7 +652,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
652
652
|
i
|
|
653
653
|
]);
|
|
654
654
|
if (!s || !d) return null;
|
|
655
|
-
const c =
|
|
655
|
+
const c = z(o.get("fill", r.observation, "hovered")), u = o.get("stroke", r.observation, "hovered") ?? c, h = o.get("alpha", r.observation, "hovered"), g = o.get("fillAlpha", r.observation, "hovered") * h, f = o.get("strokeAlpha", r.observation, "hovered") * h, { strokeWidth: v, strokeDasharray: m, strokeLinecap: p } = Me(o.get("dashArray", r.observation, "hovered"), o.get("strokeWidth", r.observation, "hovered"), o.get("lineCap", r.observation, "hovered")), A = o.get("lineJoin", r.observation, "hovered");
|
|
656
656
|
return /* @__PURE__ */ S("g", {
|
|
657
657
|
"data-testid": "hovered-area",
|
|
658
658
|
children: [
|
|
@@ -695,10 +695,10 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
|
|
|
695
695
|
coord: "cartesian",
|
|
696
696
|
swatchShape: "area",
|
|
697
697
|
guideMode: "crosshair",
|
|
698
|
-
render: ({ layer: e, coordSystem: t,
|
|
698
|
+
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n }) => /* @__PURE__ */ l(Id, {
|
|
699
699
|
layer: e,
|
|
700
700
|
coordSystem: t,
|
|
701
|
-
|
|
701
|
+
animateTransitions: r,
|
|
702
702
|
intro: n
|
|
703
703
|
}),
|
|
704
704
|
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ l(Gd, {
|
|
@@ -756,7 +756,7 @@ var to = "\0", Pa = (e, t) => {
|
|
|
756
756
|
width: r,
|
|
757
757
|
height: t == null ? r : r * t.height / t.width
|
|
758
758
|
};
|
|
759
|
-
},
|
|
759
|
+
}, zd = (e) => new Promise((t) => {
|
|
760
760
|
if (typeof Image > "u") {
|
|
761
761
|
t(null);
|
|
762
762
|
return;
|
|
@@ -782,7 +782,7 @@ var to = "\0", Pa = (e, t) => {
|
|
|
782
782
|
return d.size === s.size ? s : d;
|
|
783
783
|
});
|
|
784
784
|
for (const s of i)
|
|
785
|
-
r.has(s) || a.current.has(s) || (a.current.add(s),
|
|
785
|
+
r.has(s) || a.current.has(s) || (a.current.add(s), zd(s).then((d) => {
|
|
786
786
|
o.current.has(s) && (a.current.delete(s), n((c) => new Map(c).set(s, d)));
|
|
787
787
|
}));
|
|
788
788
|
}, [t, r]), ie((i) => {
|
|
@@ -790,7 +790,7 @@ var to = "\0", Pa = (e, t) => {
|
|
|
790
790
|
return s === void 0 ? void 0 : r.get(s);
|
|
791
791
|
}, [r]);
|
|
792
792
|
}, ro = (e) => e !== void 0 && Al(e) && (e.fit ?? "tile") === "tile" ? e.image : void 0;
|
|
793
|
-
var
|
|
793
|
+
var Vd = 1 / 3, Yd = {
|
|
794
794
|
x: 1,
|
|
795
795
|
y: 1
|
|
796
796
|
}, jd = {
|
|
@@ -1095,7 +1095,7 @@ var zd = 1 / 3, Yd = {
|
|
|
1095
1095
|
t,
|
|
1096
1096
|
r
|
|
1097
1097
|
]);
|
|
1098
|
-
}, tc = (e, t) => t, rc = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o,
|
|
1098
|
+
}, tc = (e, t) => t, rc = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, animateTransitions: a }) => {
|
|
1099
1099
|
const { mainAxis: i } = r, s = dn(t, i, o, n), d = nc(e.data);
|
|
1100
1100
|
let c = "";
|
|
1101
1101
|
for (let u = 0; u < e.data.size(); u++) {
|
|
@@ -1127,7 +1127,7 @@ var zd = 1 / 3, Yd = {
|
|
|
1127
1127
|
return c === "" ? [] : [{
|
|
1128
1128
|
kind: "region",
|
|
1129
1129
|
pathData: c,
|
|
1130
|
-
|
|
1130
|
+
animateTransitions: a
|
|
1131
1131
|
}];
|
|
1132
1132
|
}, nc = (e) => {
|
|
1133
1133
|
const t = (r) => e.hasVariable(r) ? e.getValues(r, { type: "numeric" }) : null;
|
|
@@ -1139,8 +1139,8 @@ var zd = 1 / 3, Yd = {
|
|
|
1139
1139
|
y: t(vt.y)
|
|
1140
1140
|
};
|
|
1141
1141
|
}, oc = (e, t) => Math.abs(e.x - t.x) < 0.5 && Math.abs(e.y - t.y) < 0.5 && Math.abs(e.width - t.width) < 0.5 && Math.abs(e.height - t.height) < 0.5, Mr = (e, t, r) => {
|
|
1142
|
-
const n = r === void 0 ? e.activeIntro : r, o = F(n ? an(n, t) : null), a = F(e.
|
|
1143
|
-
return a.current = e.
|
|
1142
|
+
const n = r === void 0 ? e.activeIntro : r, o = F(n ? an(n, t) : null), a = F(e.animateTransitions);
|
|
1143
|
+
return a.current = e.animateTransitions, ie(() => {
|
|
1144
1144
|
const i = o.current;
|
|
1145
1145
|
return o.current = null, i ?? on(a.current);
|
|
1146
1146
|
}, []);
|
|
@@ -1151,10 +1151,10 @@ var zd = 1 / 3, Yd = {
|
|
|
1151
1151
|
}, []);
|
|
1152
1152
|
const n = r.current;
|
|
1153
1153
|
return b(() => ({
|
|
1154
|
-
|
|
1155
|
-
|
|
1154
|
+
animated: t || e !== null,
|
|
1155
|
+
mounting: n,
|
|
1156
1156
|
activeIntro: n ? e : null,
|
|
1157
|
-
|
|
1157
|
+
animateTransitions: t
|
|
1158
1158
|
}), [
|
|
1159
1159
|
e,
|
|
1160
1160
|
t,
|
|
@@ -1170,7 +1170,7 @@ var zd = 1 / 3, Yd = {
|
|
|
1170
1170
|
y: t.baseline,
|
|
1171
1171
|
width: e.width,
|
|
1172
1172
|
height: 0
|
|
1173
|
-
}, ac = ge(function({ layer: t, coordSystem: r,
|
|
1173
|
+
}, ac = ge(function({ layer: t, coordSystem: r, animateTransitions: n, intro: o, panelRect: a }) {
|
|
1174
1174
|
const i = Q(), s = G(t), d = sr(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n), { paints: c, paintAt: u } = Ct(t, s), { fillFor: h, defs: g } = le({
|
|
1175
1175
|
paints: c,
|
|
1176
1176
|
origin: cn(t, r)
|
|
@@ -1228,7 +1228,7 @@ var zd = 1 / 3, Yd = {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
return /* @__PURE__ */ l("g", {
|
|
1230
1230
|
style: v,
|
|
1231
|
-
children: d.
|
|
1231
|
+
children: d.animated ? /* @__PURE__ */ l(sc, {
|
|
1232
1232
|
column: f,
|
|
1233
1233
|
animation: d
|
|
1234
1234
|
}) : /* @__PURE__ */ l(ic, {
|
|
@@ -1278,13 +1278,13 @@ var zd = 1 / 3, Yd = {
|
|
|
1278
1278
|
ry: o.ry
|
|
1279
1279
|
}, h = /* @__PURE__ */ l("clipPath", {
|
|
1280
1280
|
id: r,
|
|
1281
|
-
children: /* @__PURE__ */ l(
|
|
1281
|
+
children: /* @__PURE__ */ l(V.rect, { ...u })
|
|
1282
1282
|
});
|
|
1283
1283
|
if (n.length === 1) {
|
|
1284
1284
|
const [g] = n;
|
|
1285
1285
|
return /* @__PURE__ */ S(T, { children: [h, /* @__PURE__ */ l("g", {
|
|
1286
1286
|
clipPath: `url(#${r})`,
|
|
1287
|
-
children: /* @__PURE__ */ l(
|
|
1287
|
+
children: /* @__PURE__ */ l(V.rect, {
|
|
1288
1288
|
...u,
|
|
1289
1289
|
fill: g?.fill,
|
|
1290
1290
|
opacity: g?.opacity,
|
|
@@ -1293,7 +1293,7 @@ var zd = 1 / 3, Yd = {
|
|
|
1293
1293
|
})
|
|
1294
1294
|
})] });
|
|
1295
1295
|
}
|
|
1296
|
-
return /* @__PURE__ */ S(T, { children: [h, Ba(e, t, d && /* @__PURE__ */ l(
|
|
1296
|
+
return /* @__PURE__ */ S(T, { children: [h, Ba(e, t, d && /* @__PURE__ */ l(V.rect, {
|
|
1297
1297
|
...u,
|
|
1298
1298
|
fill: "none",
|
|
1299
1299
|
stroke: a,
|
|
@@ -1325,10 +1325,10 @@ var zd = 1 / 3, Yd = {
|
|
|
1325
1325
|
style: n
|
|
1326
1326
|
} : { scope: "bar" };
|
|
1327
1327
|
}, un = ({ animation: e, introKey: t, rx: r, ry: n, stroke: o, strokeWidth: a, ...i }) => {
|
|
1328
|
-
const {
|
|
1328
|
+
const { animated: s, activeIntro: d, animateTransitions: c } = e;
|
|
1329
1329
|
if (s) {
|
|
1330
1330
|
const u = d ? Ta(i, d) : null;
|
|
1331
|
-
return /* @__PURE__ */ l(
|
|
1331
|
+
return /* @__PURE__ */ l(V.rect, {
|
|
1332
1332
|
initial: u ? {
|
|
1333
1333
|
attrX: C(u.x),
|
|
1334
1334
|
attrY: C(u.y),
|
|
@@ -1478,10 +1478,10 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1478
1478
|
coord: "cartesian",
|
|
1479
1479
|
swatchShape: "square",
|
|
1480
1480
|
guideMode: "band",
|
|
1481
|
-
render: ({ layer: e, coordSystem: t,
|
|
1481
|
+
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ l(ac, {
|
|
1482
1482
|
layer: e,
|
|
1483
1483
|
coordSystem: t,
|
|
1484
|
-
|
|
1484
|
+
animateTransitions: r,
|
|
1485
1485
|
intro: n,
|
|
1486
1486
|
panelRect: o
|
|
1487
1487
|
}),
|
|
@@ -1500,7 +1500,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1500
1500
|
renderHoverCompanions: () => null,
|
|
1501
1501
|
getEditOutlineShapes: rc,
|
|
1502
1502
|
getObservationRect: ({ layer: e, coordSystem: t, observation: r, panelRect: n, styleReaders: o }) => vc(e, t.mainAxis, o, n)(r)
|
|
1503
|
-
}, fc = ({ layer: e, panelRect: t, styleReaders: r,
|
|
1503
|
+
}, fc = ({ layer: e, panelRect: t, styleReaders: r, animateTransitions: n }) => {
|
|
1504
1504
|
const o = Ur(e.params), a = {
|
|
1505
1505
|
origin: {
|
|
1506
1506
|
x: 0,
|
|
@@ -1520,10 +1520,10 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1520
1520
|
const h = fa(o, c, a);
|
|
1521
1521
|
h !== "" && i.push({
|
|
1522
1522
|
kind: "stroke",
|
|
1523
|
-
key: String(
|
|
1523
|
+
key: String(Ve(u)),
|
|
1524
1524
|
pathData: h,
|
|
1525
1525
|
width: r.get("strokeWidth", u),
|
|
1526
|
-
|
|
1526
|
+
animateTransitions: n
|
|
1527
1527
|
});
|
|
1528
1528
|
}), s.length > 0 && i.push({
|
|
1529
1529
|
kind: "dots",
|
|
@@ -1532,8 +1532,8 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1532
1532
|
}), i;
|
|
1533
1533
|
}, pc = (e, t) => {
|
|
1534
1534
|
const r = J(e), n = _(e);
|
|
1535
|
-
return r === null || n === null ? null : jt(
|
|
1536
|
-
}, mc = ge(function({ layer: t,
|
|
1535
|
+
return r === null || n === null ? null : jt(ze(r, n), t);
|
|
1536
|
+
}, mc = ge(function({ layer: t, animateTransitions: r, intro: n }) {
|
|
1537
1537
|
const o = n?.type === "wipe" ? n : null, a = b(() => Ur(t.params), [t.params]), i = b(() => el(t.params), [t.params]), s = G(t), d = b(() => {
|
|
1538
1538
|
const c = Se(t.data, t.mapping, t.id), u = [];
|
|
1539
1539
|
return t.data.groupBy(ne.group).forEach((h) => {
|
|
@@ -1541,7 +1541,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1541
1541
|
if (!f) return;
|
|
1542
1542
|
const v = g[0];
|
|
1543
1543
|
if (!v) return;
|
|
1544
|
-
const m = s.get("fillAlpha", v), p = m === void 0 ? void 0 : i(g) ?? void 0, A = s.get("stroke", v), x = s.get("fill", v), w = x === void 0 ? A :
|
|
1544
|
+
const m = s.get("fillAlpha", v), p = m === void 0 ? void 0 : i(g) ?? void 0, A = s.get("stroke", v), x = s.get("fill", v), w = x === void 0 ? A : z(x), { strokeWidth: k, strokeDasharray: E, strokeLinecap: R } = Me(s.get("dashArray", v), s.get("strokeWidth", v), s.get("lineCap", v)), L = s.get("lineJoin", v);
|
|
1545
1545
|
u.push({
|
|
1546
1546
|
key: c(v),
|
|
1547
1547
|
pathData: f,
|
|
@@ -1577,7 +1577,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1577
1577
|
strokeDasharray: c.strokeDasharray,
|
|
1578
1578
|
lineCap: c.lineCap,
|
|
1579
1579
|
lineJoin: c.lineJoin,
|
|
1580
|
-
|
|
1580
|
+
animateTransitions: r
|
|
1581
1581
|
}, c.key));
|
|
1582
1582
|
return /* @__PURE__ */ l(we, {
|
|
1583
1583
|
viewBox: "0 0 1 1",
|
|
@@ -1592,7 +1592,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1592
1592
|
children: d
|
|
1593
1593
|
}) : d
|
|
1594
1594
|
});
|
|
1595
|
-
}), yc = ({ pathData: e, fillPath: t, fillAlpha: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: s, strokeDasharray: d, lineCap: c, lineJoin: u,
|
|
1595
|
+
}), yc = ({ pathData: e, fillPath: t, fillAlpha: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: s, strokeDasharray: d, lineCap: c, lineJoin: u, animateTransitions: h }) => t !== void 0 && r !== void 0 ? /* @__PURE__ */ l(xc, {
|
|
1596
1596
|
fillPath: t,
|
|
1597
1597
|
fillAlpha: r,
|
|
1598
1598
|
fill: o,
|
|
@@ -1604,7 +1604,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1604
1604
|
strokeDasharray: d,
|
|
1605
1605
|
lineCap: c,
|
|
1606
1606
|
lineJoin: u,
|
|
1607
|
-
|
|
1607
|
+
animateTransitions: h
|
|
1608
1608
|
}) : h ? /* @__PURE__ */ l(Ac, {
|
|
1609
1609
|
pathData: e,
|
|
1610
1610
|
stroke: n,
|
|
@@ -1625,7 +1625,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1625
1625
|
strokeLinecap: c,
|
|
1626
1626
|
strokeLinejoin: u,
|
|
1627
1627
|
vectorEffect: "non-scaling-stroke"
|
|
1628
|
-
}), xc = ({ fillPath: e, fillAlpha: t, linePath: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: s, strokeDasharray: d, lineCap: c, lineJoin: u,
|
|
1628
|
+
}), xc = ({ fillPath: e, fillAlpha: t, linePath: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: s, strokeDasharray: d, lineCap: c, lineJoin: u, animateTransitions: h }) => {
|
|
1629
1629
|
const g = `line_fill_gradient_${Q()}`;
|
|
1630
1630
|
return /* @__PURE__ */ S(T, { children: [/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ S("linearGradient", {
|
|
1631
1631
|
id: g,
|
|
@@ -1658,11 +1658,11 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1658
1658
|
strokeDasharray: d,
|
|
1659
1659
|
lineCap: c,
|
|
1660
1660
|
lineJoin: u,
|
|
1661
|
-
|
|
1661
|
+
animateTransitions: h
|
|
1662
1662
|
})] });
|
|
1663
1663
|
}, Ac = ({ pathData: e, stroke: t, strokeWidth: r, opacity: n, strokeAlpha: o, strokeDasharray: a, lineCap: i, lineJoin: s }) => {
|
|
1664
1664
|
const d = Br(e, be);
|
|
1665
|
-
return /* @__PURE__ */ l(
|
|
1665
|
+
return /* @__PURE__ */ l(V.path, {
|
|
1666
1666
|
d,
|
|
1667
1667
|
fill: "none",
|
|
1668
1668
|
stroke: t,
|
|
@@ -1675,7 +1675,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1675
1675
|
vectorEffect: "non-scaling-stroke"
|
|
1676
1676
|
});
|
|
1677
1677
|
}, bc = ({ layer: e, primary: t, companions: r }) => {
|
|
1678
|
-
const n = G(e), o =
|
|
1678
|
+
const n = G(e), o = Ve(t.observation), a = b(() => _r([...e.data.filter(ne.group, "eq", o)], e.params.missingValues), [
|
|
1679
1679
|
e.data,
|
|
1680
1680
|
e.params.missingValues,
|
|
1681
1681
|
o
|
|
@@ -1719,9 +1719,9 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1719
1719
|
coord: "cartesian",
|
|
1720
1720
|
swatchShape: "line",
|
|
1721
1721
|
guideMode: "crosshair",
|
|
1722
|
-
render: ({ layer: e,
|
|
1722
|
+
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(mc, {
|
|
1723
1723
|
layer: e,
|
|
1724
|
-
|
|
1724
|
+
animateTransitions: t,
|
|
1725
1725
|
intro: r
|
|
1726
1726
|
}),
|
|
1727
1727
|
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ l(bc, {
|
|
@@ -1741,7 +1741,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1741
1741
|
}, Ma = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: o }) => {
|
|
1742
1742
|
const a = N(nr)?.paintsShadow === !0, i = Oa(e, t);
|
|
1743
1743
|
if (i === null) return null;
|
|
1744
|
-
const {
|
|
1744
|
+
const { animated: s, activeIntro: d, animateTransitions: c } = n, u = s ? {
|
|
1745
1745
|
intro: d !== null,
|
|
1746
1746
|
fadesIn: !a,
|
|
1747
1747
|
transition: d ? an(d, o) : on(c)
|
|
@@ -1751,7 +1751,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1751
1751
|
cx: C(i.x),
|
|
1752
1752
|
cy: C(i.y),
|
|
1753
1753
|
size: r.get("size", e),
|
|
1754
|
-
fill:
|
|
1754
|
+
fill: z(r.get("fill", e)),
|
|
1755
1755
|
fillOpacity: r.get("fillAlpha", e),
|
|
1756
1756
|
opacity: r.get("alpha", e),
|
|
1757
1757
|
stroke: r.get("stroke", e),
|
|
@@ -1773,14 +1773,14 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
return pd(o);
|
|
1776
|
-
}, wc = ge(function({ layer: t,
|
|
1776
|
+
}, wc = ge(function({ layer: t, animateTransitions: r, intro: n }) {
|
|
1777
1777
|
const o = G(t), a = sr(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1778
1778
|
return b(() => {
|
|
1779
1779
|
const i = a.activeIntro ? Se(t.data, t.mapping, t.id) : null, s = [];
|
|
1780
1780
|
let d = 0;
|
|
1781
1781
|
for (const c of t.data) s.push(/* @__PURE__ */ l(Ma, {
|
|
1782
1782
|
observation: c,
|
|
1783
|
-
project:
|
|
1783
|
+
project: ze,
|
|
1784
1784
|
styleReaders: o,
|
|
1785
1785
|
animation: a,
|
|
1786
1786
|
introKey: i?.(c)
|
|
@@ -1803,9 +1803,9 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1803
1803
|
geom: "point",
|
|
1804
1804
|
coord: "cartesian",
|
|
1805
1805
|
swatchShape: "circle",
|
|
1806
|
-
render: ({ layer: e,
|
|
1806
|
+
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(wc, {
|
|
1807
1807
|
layer: e,
|
|
1808
|
-
|
|
1808
|
+
animateTransitions: t,
|
|
1809
1809
|
intro: r
|
|
1810
1810
|
}),
|
|
1811
1811
|
renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ l(ao, {
|
|
@@ -1815,7 +1815,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1815
1815
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ l(ao, { companions: e }),
|
|
1816
1816
|
getEditOutlineShapes: (e) => Na({
|
|
1817
1817
|
...e,
|
|
1818
|
-
project:
|
|
1818
|
+
project: ze
|
|
1819
1819
|
}),
|
|
1820
1820
|
getOverlayAnchor: ({ observation: e }) => {
|
|
1821
1821
|
const t = J(e), r = _(e);
|
|
@@ -2083,12 +2083,12 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2083
2083
|
elevationSm: "0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",
|
|
2084
2084
|
elevationMd: "0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",
|
|
2085
2085
|
elevationLg: "0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"
|
|
2086
|
-
},
|
|
2086
|
+
}, za = {
|
|
2087
2087
|
radiiXs: "4px",
|
|
2088
2088
|
radiiSm: "6px",
|
|
2089
2089
|
radiiMd: "8px",
|
|
2090
2090
|
radiiLg: "12px"
|
|
2091
|
-
},
|
|
2091
|
+
}, Va = {
|
|
2092
2092
|
zIndexToolbar: `${Dt.textToolbar}`,
|
|
2093
2093
|
zIndexToolbarTooltip: `${Dt.textToolbarTooltip}`,
|
|
2094
2094
|
zIndexToolbarPopover: `${Dt.textToolbarPopover}`,
|
|
@@ -2173,9 +2173,9 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2173
2173
|
...Ic,
|
|
2174
2174
|
...Tc,
|
|
2175
2175
|
...Wa,
|
|
2176
|
-
...Va,
|
|
2177
|
-
...Ya,
|
|
2178
2176
|
...za,
|
|
2177
|
+
...Ya,
|
|
2178
|
+
...Va,
|
|
2179
2179
|
...Bc,
|
|
2180
2180
|
...Mc,
|
|
2181
2181
|
...Ga,
|
|
@@ -2255,9 +2255,9 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2255
2255
|
...Nc,
|
|
2256
2256
|
...Hc,
|
|
2257
2257
|
...Wa,
|
|
2258
|
-
...Va,
|
|
2259
|
-
...Ya,
|
|
2260
2258
|
...za,
|
|
2259
|
+
...Ya,
|
|
2260
|
+
...Va,
|
|
2261
2261
|
...Dc,
|
|
2262
2262
|
...Fc,
|
|
2263
2263
|
...Ga,
|
|
@@ -2272,7 +2272,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2272
2272
|
...e === "dark" ? Oc : Gc,
|
|
2273
2273
|
...r
|
|
2274
2274
|
};
|
|
2275
|
-
}, ja = (e, t = {}, r) => ({ fonts: Pc(hn(e, t), r) }), Wc = Object.freeze(ja("light")), Ka = Y(Wc),
|
|
2275
|
+
}, ja = (e, t = {}, r) => ({ fonts: Pc(hn(e, t), r) }), Wc = Object.freeze(ja("light")), Ka = Y(Wc), zc = ({ metrics: e, children: t }) => /* @__PURE__ */ l(Ka.Provider, {
|
|
2276
2276
|
value: e,
|
|
2277
2277
|
children: t
|
|
2278
2278
|
}), Ke = () => N(Ka), dr = (e, t, r) => {
|
|
@@ -2303,7 +2303,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2303
2303
|
t,
|
|
2304
2304
|
r
|
|
2305
2305
|
]);
|
|
2306
|
-
},
|
|
2306
|
+
}, Vc = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, Ua = "😀", Yc = class Qa {
|
|
2307
2307
|
constructor() {
|
|
2308
2308
|
this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
|
|
2309
2309
|
const t = new OffscreenCanvas(1, 1).getContext("2d");
|
|
@@ -2346,7 +2346,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2346
2346
|
return this.emojiCorrections.set(t, a), a;
|
|
2347
2347
|
}
|
|
2348
2348
|
}, Ee = null, jc = (e) => {
|
|
2349
|
-
const t = e.match(
|
|
2349
|
+
const t = e.match(Vc);
|
|
2350
2350
|
return t ? t.length : 0;
|
|
2351
2351
|
}, Kc = (e) => {
|
|
2352
2352
|
const t = Uc();
|
|
@@ -2487,7 +2487,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2487
2487
|
case "circle": {
|
|
2488
2488
|
const g = Math.max(0, (Math.min(o, a) - 2) / 2);
|
|
2489
2489
|
if (c !== void 0 && c !== "circle") {
|
|
2490
|
-
const f =
|
|
2490
|
+
const f = Vs(c, o - 2, a - 2);
|
|
2491
2491
|
return /* @__PURE__ */ l("path", {
|
|
2492
2492
|
transform: `translate(${o / 2 + f.offsetX} ${a / 2 + f.offsetY})`,
|
|
2493
2493
|
d: f.path,
|
|
@@ -2548,7 +2548,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2548
2548
|
}
|
|
2549
2549
|
const o = t / 2, a = t * uo, i = (s) => `M ${s} ${o - a} V ${o + a}`;
|
|
2550
2550
|
return `${i(n)} M ${n} ${o} H ${e - n} ${i(e - n)}`;
|
|
2551
|
-
}, Su = (e, t, r, n) => r === void 0 ? t : yu.has(e) ? wu(r, n) :
|
|
2551
|
+
}, Su = (e, t, r, n) => r === void 0 ? t : yu.has(e) ? wu(r, n) : z(r), wu = (e, t) => {
|
|
2552
2552
|
if (typeof e == "string" || !Jr(e)) return e;
|
|
2553
2553
|
const r = Math.max(mu, Math.floor(t / pu));
|
|
2554
2554
|
return {
|
|
@@ -2614,7 +2614,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2614
2614
|
[e.letterSpacing]: t.letterSpacing === void 0 ? "normal" : `${t.letterSpacing}px`,
|
|
2615
2615
|
[e.lineHeight]: String(t.lineHeight),
|
|
2616
2616
|
[e.textColor]: t.textColor
|
|
2617
|
-
}), $a = (e) => e.textOutlineColor !== void 0 && e.textOutlineWidth !== void 0 && e.textOutlineWidth > 0, Eu = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a,
|
|
2617
|
+
}), $a = (e) => e.textOutlineColor !== void 0 && e.textOutlineWidth !== void 0 && e.textOutlineWidth > 0, Eu = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, animateTransitions: i }) => {
|
|
2618
2618
|
const s = e === "start", d = s ? -13 : -(n - 13), c = s ? d + n - 5 : d + 5 - 12, u = s ? void 0 : `rotate(180 ${c + 12 / 2} ${o / 2})`, h = s ? "0%" : "100%", g = C(1 - t), f = /* @__PURE__ */ S("g", {
|
|
2619
2619
|
transform: `translate(0, ${-o / 2})`,
|
|
2620
2620
|
pointerEvents: "none",
|
|
@@ -2648,7 +2648,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2648
2648
|
})
|
|
2649
2649
|
]
|
|
2650
2650
|
});
|
|
2651
|
-
return i ? /* @__PURE__ */ l(
|
|
2651
|
+
return i ? /* @__PURE__ */ l(V.svg, {
|
|
2652
2652
|
initial: !1,
|
|
2653
2653
|
transition: be,
|
|
2654
2654
|
x: h,
|
|
@@ -2661,7 +2661,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2661
2661
|
overflow: "visible",
|
|
2662
2662
|
children: f
|
|
2663
2663
|
});
|
|
2664
|
-
}, Pu = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, panelWidth: a, text: i,
|
|
2664
|
+
}, Pu = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, panelWidth: a, text: i, animateTransitions: s }) => {
|
|
2665
2665
|
const d = e === "start", c = d ? -13 : -(o - 13), u = C(t), h = d ? "100%" : "0%", g = /* @__PURE__ */ S("g", {
|
|
2666
2666
|
transform: `translate(${su(t, n, a)}, 0)`,
|
|
2667
2667
|
pointerEvents: "none",
|
|
@@ -2677,7 +2677,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2677
2677
|
children: i
|
|
2678
2678
|
})]
|
|
2679
2679
|
});
|
|
2680
|
-
return s ? /* @__PURE__ */ l(
|
|
2680
|
+
return s ? /* @__PURE__ */ l(V.svg, {
|
|
2681
2681
|
initial: !1,
|
|
2682
2682
|
transition: be,
|
|
2683
2683
|
y: h,
|
|
@@ -2690,7 +2690,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2690
2690
|
overflow: "visible",
|
|
2691
2691
|
children: g
|
|
2692
2692
|
});
|
|
2693
|
-
}, Ru = ({ label: e, textStyle: t, textWidth: r, labelPosition: n,
|
|
2693
|
+
}, Ru = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, horizontal: o, position: a, color: i, textColor: s, symbolShape: d, symbolColor: c, symbolPaint: u, symbolAlpha: h, symbolCornerRadius: g, symbolGlyph: f, symbolMainAxis: v, panelWidth: m, animateTransitions: p }) => {
|
|
2694
2694
|
const A = d === null ? 0 : 14, x = r + A + 10, w = Math.max(Jc, We(t)) + 10, k = /* @__PURE__ */ S(T, { children: [d !== null && c !== null && /* @__PURE__ */ l("g", {
|
|
2695
2695
|
transform: `translate(0, ${-10 / 2})`,
|
|
2696
2696
|
children: /* @__PURE__ */ l(Lt, {
|
|
@@ -2724,7 +2724,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2724
2724
|
pillWidth: x,
|
|
2725
2725
|
pillHeight: w,
|
|
2726
2726
|
text: k,
|
|
2727
|
-
|
|
2727
|
+
animateTransitions: p
|
|
2728
2728
|
}) : /* @__PURE__ */ l(Pu, {
|
|
2729
2729
|
labelPosition: n,
|
|
2730
2730
|
linePosition: a,
|
|
@@ -2733,11 +2733,11 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2733
2733
|
pillHeight: w,
|
|
2734
2734
|
panelWidth: m,
|
|
2735
2735
|
text: k,
|
|
2736
|
-
|
|
2736
|
+
animateTransitions: p
|
|
2737
2737
|
});
|
|
2738
|
-
}, Cu = ({ strokeWidth: e, dashArray: t, lineCap: r, lineJoin: n,
|
|
2738
|
+
}, Cu = ({ strokeWidth: e, dashArray: t, lineCap: r, lineJoin: n, horizontal: o, position: a, lineColor: i, effects: s, animateTransitions: d }) => {
|
|
2739
2739
|
const c = ru(o, a), u = nu(t, e, r, n);
|
|
2740
|
-
return d ? /* @__PURE__ */ l(
|
|
2740
|
+
return d ? /* @__PURE__ */ l(V.line, {
|
|
2741
2741
|
initial: !1,
|
|
2742
2742
|
transition: be,
|
|
2743
2743
|
animate: {
|
|
@@ -2759,7 +2759,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2759
2759
|
strokeWidth: e,
|
|
2760
2760
|
vectorEffect: "non-scaling-stroke"
|
|
2761
2761
|
});
|
|
2762
|
-
}, Lu = ge(function({ layer: t, coordSystem: r, formattingLocale: n,
|
|
2762
|
+
}, Lu = ge(function({ layer: t, coordSystem: r, formattingLocale: n, animateTransitions: o, panelWidth: a }) {
|
|
2763
2763
|
const i = Oe(), s = de(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = B(oe((j) => ({
|
|
2764
2764
|
guides: j.guides,
|
|
2765
2765
|
numberFormat: j.config.numberFormat,
|
|
@@ -2779,7 +2779,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2779
2779
|
c,
|
|
2780
2780
|
n,
|
|
2781
2781
|
t
|
|
2782
|
-
]), { fonts: A } = Ke(), x = O(), w = I(
|
|
2782
|
+
]), { fonts: A } = Ke(), x = O(), w = I(zl, x.geom.rule.label(t), x.graph()), k = b(() => te(w, A.familyDefault), [w, A.familyDefault]), E = b(() => p === null ? null : la(p, iu(a, f !== null), (j) => i.measureText(j, k).width), [
|
|
2783
2783
|
p,
|
|
2784
2784
|
a,
|
|
2785
2785
|
f,
|
|
@@ -2800,17 +2800,17 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2800
2800
|
dashArray: L.get("dashArray", P),
|
|
2801
2801
|
lineCap: L.get("lineCap", P),
|
|
2802
2802
|
lineJoin: L.get("lineJoin", P),
|
|
2803
|
-
|
|
2803
|
+
horizontal: X,
|
|
2804
2804
|
position: ce,
|
|
2805
2805
|
lineColor: M,
|
|
2806
2806
|
effects: $(Z(L, P)),
|
|
2807
|
-
|
|
2807
|
+
animateTransitions: o
|
|
2808
2808
|
}), E !== null && E !== "" && /* @__PURE__ */ l(Ru, {
|
|
2809
2809
|
label: E,
|
|
2810
2810
|
textStyle: w,
|
|
2811
2811
|
textWidth: R,
|
|
2812
2812
|
labelPosition: t.params.labelPosition,
|
|
2813
|
-
|
|
2813
|
+
horizontal: X,
|
|
2814
2814
|
position: ce,
|
|
2815
2815
|
color: M,
|
|
2816
2816
|
textColor: H,
|
|
@@ -2822,17 +2822,17 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2822
2822
|
symbolGlyph: v.symbol,
|
|
2823
2823
|
symbolMainAxis: wt(r),
|
|
2824
2824
|
panelWidth: a,
|
|
2825
|
-
|
|
2825
|
+
animateTransitions: o
|
|
2826
2826
|
})]
|
|
2827
2827
|
});
|
|
2828
|
-
}), Iu = (e, t) => e.textColor === void 0 ? $o(t) : e.
|
|
2828
|
+
}), Iu = (e, t) => e.textColor === void 0 ? $o(t) : e.hasThemedTextColor ? Qr(e.textColor, t) : e.textColor, Tu = {
|
|
2829
2829
|
geom: "rule",
|
|
2830
2830
|
coord: "cartesian",
|
|
2831
|
-
render: ({ layer: e, coordSystem: t, formattingLocale: r,
|
|
2831
|
+
render: ({ layer: e, coordSystem: t, formattingLocale: r, animateTransitions: n, panelRect: o }) => /* @__PURE__ */ l(Lu, {
|
|
2832
2832
|
layer: e,
|
|
2833
2833
|
coordSystem: t,
|
|
2834
2834
|
formattingLocale: r,
|
|
2835
|
-
|
|
2835
|
+
animateTransitions: n,
|
|
2836
2836
|
panelWidth: o.width
|
|
2837
2837
|
}),
|
|
2838
2838
|
renderHover: () => null,
|
|
@@ -2840,7 +2840,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2840
2840
|
}, pn = (e, t, r) => Dl({
|
|
2841
2841
|
cornerRadius: e,
|
|
2842
2842
|
box: Te(t, r)
|
|
2843
|
-
}), Bu = ({ layer: e, panelRect: t, styleReaders: r,
|
|
2843
|
+
}), Bu = ({ layer: e, panelRect: t, styleReaders: r, animateTransitions: n }) => {
|
|
2844
2844
|
let o = "";
|
|
2845
2845
|
for (const a of e.data) {
|
|
2846
2846
|
const i = Xr(a);
|
|
@@ -2849,14 +2849,14 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2849
2849
|
return o === "" ? [] : [{
|
|
2850
2850
|
kind: "region",
|
|
2851
2851
|
pathData: o,
|
|
2852
|
-
|
|
2852
|
+
animateTransitions: n
|
|
2853
2853
|
}];
|
|
2854
|
-
}, Mu = ({ intro: e, children: t }) => N(nr)?.
|
|
2854
|
+
}, Mu = ({ intro: e, children: t }) => N(nr)?.fading ? t : /* @__PURE__ */ l(V.g, {
|
|
2855
2855
|
initial: { opacity: 0 },
|
|
2856
2856
|
animate: { opacity: 1 },
|
|
2857
2857
|
transition: ba(e),
|
|
2858
2858
|
children: t
|
|
2859
|
-
}), Ou = ge(function({ layer: t, panelRect: r,
|
|
2859
|
+
}), Ou = ge(function({ layer: t, panelRect: r, animateTransitions: n, intro: o }) {
|
|
2860
2860
|
const a = o?.type === "fade" ? o : null, i = G(t), { paints: s, paintAt: d } = Ct(t, i), { fillFor: c, defs: u } = le({ paints: s }), h = b(() => {
|
|
2861
2861
|
const g = ol(t.data, t.mapping, t.id), f = [];
|
|
2862
2862
|
let v = -1;
|
|
@@ -2876,7 +2876,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return f.map(({ key: m, ...p }) => /* @__PURE__ */ l(Nu, {
|
|
2878
2878
|
...p,
|
|
2879
|
-
|
|
2879
|
+
animated: n
|
|
2880
2880
|
}, m));
|
|
2881
2881
|
}, [
|
|
2882
2882
|
t,
|
|
@@ -2890,7 +2890,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2890
2890
|
intro: a,
|
|
2891
2891
|
children: [u, h]
|
|
2892
2892
|
}) : /* @__PURE__ */ S(T, { children: [u, h] });
|
|
2893
|
-
}), Nu = ({
|
|
2893
|
+
}), Nu = ({ animated: e, ...t }) => e ? /* @__PURE__ */ l(V.rect, {
|
|
2894
2894
|
initial: !1,
|
|
2895
2895
|
style: t.effects,
|
|
2896
2896
|
transition: be,
|
|
@@ -2919,7 +2919,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2919
2919
|
}), Hu = ({ layer: e, primary: t, panelRect: r }) => {
|
|
2920
2920
|
const n = G(e), o = n.get("fill", t.observation), { fillFor: a, defs: i } = le({ paints: [o] }), s = Xr(t.observation);
|
|
2921
2921
|
if (!s) return null;
|
|
2922
|
-
const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ??
|
|
2922
|
+
const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ?? Vr, h = n.get("strokeWidth", t.observation, "hovered"), g = pn(n.get("cornerRadius", t.observation, "hovered"), s, r), f = s.x * r.width, v = s.y * r.height, m = s.width * r.width, p = s.height * r.height;
|
|
2923
2923
|
return /* @__PURE__ */ S("g", {
|
|
2924
2924
|
"data-testid": "hovered-tile",
|
|
2925
2925
|
children: [
|
|
@@ -2950,10 +2950,10 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
2950
2950
|
coord: "cartesian",
|
|
2951
2951
|
swatchShape: "square",
|
|
2952
2952
|
guideMode: null,
|
|
2953
|
-
render: ({ layer: e, panelRect: t,
|
|
2953
|
+
render: ({ layer: e, panelRect: t, animateTransitions: r, intro: n }) => /* @__PURE__ */ l(Ou, {
|
|
2954
2954
|
layer: e,
|
|
2955
2955
|
panelRect: t,
|
|
2956
|
-
|
|
2956
|
+
animateTransitions: r,
|
|
2957
2957
|
intro: n
|
|
2958
2958
|
}),
|
|
2959
2959
|
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ l(Hu, {
|
|
@@ -3007,7 +3007,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3007
3007
|
fillPath: h.fillPath,
|
|
3008
3008
|
outlinePath: h.outlinePath,
|
|
3009
3009
|
paint: f,
|
|
3010
|
-
stroke: n.get("stroke", g) ??
|
|
3010
|
+
stroke: n.get("stroke", g) ?? z(f),
|
|
3011
3011
|
fillOpacity: n.get("fillAlpha", g) * n.get("alpha", g),
|
|
3012
3012
|
strokeOpacity: n.get("strokeAlpha", g) * n.get("alpha", g),
|
|
3013
3013
|
...Me(n.get("dashArray", g), n.get("strokeWidth", g))
|
|
@@ -3086,7 +3086,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3086
3086
|
const c = d.hole === null ? "" : Tr(d.hole, r);
|
|
3087
3087
|
n.push({
|
|
3088
3088
|
kind: "region",
|
|
3089
|
-
key: String(
|
|
3089
|
+
key: String(Ve(s)),
|
|
3090
3090
|
pathData: Tr(d.outer, r) + c,
|
|
3091
3091
|
fillRule: "evenodd"
|
|
3092
3092
|
});
|
|
@@ -3095,13 +3095,13 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3095
3095
|
centers: o,
|
|
3096
3096
|
size: tt
|
|
3097
3097
|
}), n;
|
|
3098
|
-
},
|
|
3099
|
-
const o = G(e), a =
|
|
3098
|
+
}, zu = ({ layer: e, primary: t, companions: r, panelRect: n }) => {
|
|
3099
|
+
const o = G(e), a = Ve(t.observation), i = o.get("fill", t.observation, "hovered"), { fillFor: s, defs: d } = le({
|
|
3100
3100
|
paints: [i],
|
|
3101
3101
|
unitsPerPixel: Rt(n)
|
|
3102
3102
|
}), c = b(() => ti([...e.data.filter(ne.group, "eq", a)]), [e.data, a]);
|
|
3103
3103
|
if (!c) return null;
|
|
3104
|
-
const u = o.get("stroke", t.observation, "hovered") ??
|
|
3104
|
+
const u = o.get("stroke", t.observation, "hovered") ?? z(i), h = o.get("alpha", t.observation, "hovered"), g = o.get("fillAlpha", t.observation, "hovered") * h, f = o.get("strokeAlpha", t.observation, "hovered") * h, { strokeWidth: v, strokeDasharray: m, strokeLinecap: p } = Me(o.get("dashArray", t.observation, "hovered"), o.get("strokeWidth", t.observation, "hovered"));
|
|
3105
3105
|
return /* @__PURE__ */ S(T, { children: [
|
|
3106
3106
|
/* @__PURE__ */ S(we, {
|
|
3107
3107
|
viewBox: "-1 -1 2 2",
|
|
@@ -3144,7 +3144,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3144
3144
|
"data-testid": "hovered-area-point"
|
|
3145
3145
|
})
|
|
3146
3146
|
] });
|
|
3147
|
-
},
|
|
3147
|
+
}, Vu = {
|
|
3148
3148
|
geom: "area",
|
|
3149
3149
|
coord: "polar",
|
|
3150
3150
|
swatchShape: "area",
|
|
@@ -3153,7 +3153,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3153
3153
|
layer: e,
|
|
3154
3154
|
panelRect: t
|
|
3155
3155
|
}),
|
|
3156
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n, panelRect: o }) => /* @__PURE__ */ l(
|
|
3156
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n, panelRect: o }) => /* @__PURE__ */ l(zu, {
|
|
3157
3157
|
layer: e,
|
|
3158
3158
|
primary: t,
|
|
3159
3159
|
companions: [...r, ...n],
|
|
@@ -3220,7 +3220,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3220
3220
|
from: e.startAngle,
|
|
3221
3221
|
to: e.endAngle
|
|
3222
3222
|
}
|
|
3223
|
-
}, n), ju = ln(yn), Ku = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o,
|
|
3223
|
+
}, n), ju = ln(yn), Ku = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, animateTransitions: a }) => {
|
|
3224
3224
|
const { bandAxis: i } = r, s = ju(t, i, o), d = Fu(n);
|
|
3225
3225
|
let c = "";
|
|
3226
3226
|
for (const u of e.data) {
|
|
@@ -3232,13 +3232,13 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3232
3232
|
return c === "" ? [] : [{
|
|
3233
3233
|
kind: "region",
|
|
3234
3234
|
pathData: c,
|
|
3235
|
-
|
|
3235
|
+
animateTransitions: a
|
|
3236
3236
|
}];
|
|
3237
3237
|
}, ho = Math.PI * 2, Ut = (e, t) => ({
|
|
3238
3238
|
stroke: e,
|
|
3239
3239
|
strokeWidth: t,
|
|
3240
3240
|
vectorEffect: "non-scaling-stroke"
|
|
3241
|
-
}), Uu = ge(function({ layer: t, coordSystem: r,
|
|
3241
|
+
}), Uu = ge(function({ layer: t, coordSystem: r, animateTransitions: n, intro: o, panelRect: a }) {
|
|
3242
3242
|
const i = Q(), s = sr(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), d = r.bandAxis !== "x", c = G(t), { paints: u, paintAt: h } = Ct(t, c), { fillFor: g, defs: f } = le({
|
|
3243
3243
|
paints: u,
|
|
3244
3244
|
unitsPerPixel: Rt(a)
|
|
@@ -3271,7 +3271,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3271
3271
|
children: [f, v.map((m, p) => {
|
|
3272
3272
|
const { stroke: A, strokeWidth: x, strokeAlpha: w } = m.style, k = A !== void 0, E = kt(x), R = A === void 0 ? {} : Ut(A, E.separatorWidth), L = A === void 0 ? void 0 : Ut(A, E.outlineWidth), P = m.members.map((ce) => {
|
|
3273
3273
|
const { key: j, ...Ce } = ce;
|
|
3274
|
-
return s.
|
|
3274
|
+
return s.animated ? /* @__PURE__ */ l(Qu, {
|
|
3275
3275
|
...Ce,
|
|
3276
3276
|
animation: s,
|
|
3277
3277
|
sweepsInOnLateMount: d,
|
|
@@ -3290,7 +3290,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3290
3290
|
}), M = xn(m);
|
|
3291
3291
|
if (!k && M <= 0) return /* @__PURE__ */ l(Pt, { children: P }, m.key);
|
|
3292
3292
|
const H = `${i}${p}`;
|
|
3293
|
-
if (s.
|
|
3293
|
+
if (s.animated) return /* @__PURE__ */ l("g", {
|
|
3294
3294
|
clipPath: `url(#${H})`,
|
|
3295
3295
|
children: /* @__PURE__ */ l(Xu, {
|
|
3296
3296
|
...m.union,
|
|
@@ -3327,7 +3327,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3327
3327
|
})]
|
|
3328
3328
|
});
|
|
3329
3329
|
}), ai = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: a, sweepsInOnLateMount: i, introKey: s }) => {
|
|
3330
|
-
const d = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, c = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.
|
|
3330
|
+
const d = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, c = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.mounting, h = d?.baseline ?? (u ? ho : e), g = d?.baseline ?? (u ? ho : t), f = c ? c.baseline : r, v = c ? c.baseline : n, m = ye(h), p = ye(g), A = ye(f), x = ye(v), w = ye(Ge({
|
|
3331
3331
|
startAngle: h,
|
|
3332
3332
|
endAngle: g,
|
|
3333
3333
|
innerRadius: f,
|
|
@@ -3388,7 +3388,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3388
3388
|
]), w;
|
|
3389
3389
|
}, Qu = ({ pathProps: e, ...t }) => {
|
|
3390
3390
|
const r = ai(t);
|
|
3391
|
-
return /* @__PURE__ */ l(
|
|
3391
|
+
return /* @__PURE__ */ l(V.path, {
|
|
3392
3392
|
d: r,
|
|
3393
3393
|
transition: be,
|
|
3394
3394
|
...e
|
|
@@ -3398,10 +3398,10 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3398
3398
|
return /* @__PURE__ */ S(T, { children: [
|
|
3399
3399
|
/* @__PURE__ */ l("clipPath", {
|
|
3400
3400
|
id: e,
|
|
3401
|
-
children: /* @__PURE__ */ l(
|
|
3401
|
+
children: /* @__PURE__ */ l(V.path, { d: a })
|
|
3402
3402
|
}),
|
|
3403
3403
|
n,
|
|
3404
|
-
t !== void 0 && /* @__PURE__ */ l(
|
|
3404
|
+
t !== void 0 && /* @__PURE__ */ l(V.path, {
|
|
3405
3405
|
d: a,
|
|
3406
3406
|
fill: "none",
|
|
3407
3407
|
opacity: r,
|
|
@@ -3546,10 +3546,10 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3546
3546
|
coord: "polar",
|
|
3547
3547
|
swatchShape: "slice",
|
|
3548
3548
|
guideMode: "band",
|
|
3549
|
-
render: ({ layer: e, coordSystem: t,
|
|
3549
|
+
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ l(Uu, {
|
|
3550
3550
|
layer: e,
|
|
3551
3551
|
coordSystem: t,
|
|
3552
|
-
|
|
3552
|
+
animateTransitions: r,
|
|
3553
3553
|
intro: n,
|
|
3554
3554
|
panelRect: o
|
|
3555
3555
|
}),
|
|
@@ -3637,7 +3637,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3637
3637
|
const c = Tr(li(s), n);
|
|
3638
3638
|
c !== "" && o.push({
|
|
3639
3639
|
kind: "stroke",
|
|
3640
|
-
key: String(
|
|
3640
|
+
key: String(Ve(d)),
|
|
3641
3641
|
pathData: c,
|
|
3642
3642
|
width: r.get("strokeWidth", d)
|
|
3643
3643
|
});
|
|
@@ -3647,7 +3647,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3647
3647
|
size: tt
|
|
3648
3648
|
}), o;
|
|
3649
3649
|
}, nh = ({ layer: e, primary: t, companions: r }) => {
|
|
3650
|
-
const n = G(e), o =
|
|
3650
|
+
const n = G(e), o = Ve(t.observation), a = b(() => si([...e.data.filter(ne.group, "eq", o)]), [e.data, o]);
|
|
3651
3651
|
if (!a) return null;
|
|
3652
3652
|
const i = n.get("stroke", t.observation, "hovered"), s = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: c, strokeDasharray: u, strokeLinecap: h } = Me(n.get("dashArray", t.observation, "hovered"), n.get("strokeWidth", t.observation, "hovered"), n.get("lineCap", t.observation, "hovered")), g = n.get("lineJoin", t.observation, "hovered");
|
|
3653
3653
|
return /* @__PURE__ */ S(T, { children: [
|
|
@@ -3706,7 +3706,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3706
3706
|
y: 1 - o
|
|
3707
3707
|
};
|
|
3708
3708
|
}
|
|
3709
|
-
}, ah = ge(function({ layer: t,
|
|
3709
|
+
}, ah = ge(function({ layer: t, animateTransitions: r, intro: n }) {
|
|
3710
3710
|
const o = G(t), a = sr(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
3711
3711
|
return b(() => {
|
|
3712
3712
|
const i = a.activeIntro ? Se(t.data, t.mapping, t.id) : null, s = [];
|
|
@@ -3730,9 +3730,9 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3730
3730
|
geom: "point",
|
|
3731
3731
|
coord: "polar",
|
|
3732
3732
|
swatchShape: "circle",
|
|
3733
|
-
render: ({ layer: e,
|
|
3733
|
+
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(ah, {
|
|
3734
3734
|
layer: e,
|
|
3735
|
-
|
|
3735
|
+
animateTransitions: t,
|
|
3736
3736
|
intro: r
|
|
3737
3737
|
}),
|
|
3738
3738
|
renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ l(Kt, {
|
|
@@ -3764,7 +3764,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
|
|
|
3764
3764
|
},
|
|
3765
3765
|
area: {
|
|
3766
3766
|
cartesian: Wd,
|
|
3767
|
-
polar:
|
|
3767
|
+
polar: Vu
|
|
3768
3768
|
},
|
|
3769
3769
|
point: {
|
|
3770
3770
|
cartesian: kc,
|
|
@@ -3818,8 +3818,8 @@ var dh = [
|
|
|
3818
3818
|
hover: Yt,
|
|
3819
3819
|
tooltipAnchor: null,
|
|
3820
3820
|
pointerRegions: [],
|
|
3821
|
-
|
|
3822
|
-
|
|
3821
|
+
suspendsHover: !1,
|
|
3822
|
+
editorOwnsQuery: !1,
|
|
3823
3823
|
setHoverState: (r) => t((n) => n.hover === r ? n : { hover: r }),
|
|
3824
3824
|
setTooltipAnchor: (r) => t((n) => hh(n.tooltipAnchor, r) ? n : { tooltipAnchor: r }),
|
|
3825
3825
|
publishPointerRegions: (r, n) => {
|
|
@@ -3827,8 +3827,8 @@ var dh = [
|
|
|
3827
3827
|
const o = Sl(e);
|
|
3828
3828
|
t((a) => Os(a.pointerRegions, o) ? a : { pointerRegions: o });
|
|
3829
3829
|
},
|
|
3830
|
-
|
|
3831
|
-
|
|
3830
|
+
setSuspendsHover: (r) => t((n) => n.suspendsHover === r ? n : { suspendsHover: r }),
|
|
3831
|
+
setEditorOwnsQuery: (r) => t((n) => n.editorOwnsQuery === r ? n : { editorOwnsQuery: r })
|
|
3832
3832
|
}));
|
|
3833
3833
|
}, hh = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.x === t.x && e.y === t.y && e.placement === t.placement && e.annotationId === t.annotationId, vh = (e, t) => {
|
|
3834
3834
|
const r = b(() => ({
|
|
@@ -3885,8 +3885,8 @@ var ph = ({ hitTest: e, input: t }) => {
|
|
|
3885
3885
|
height: "150%"
|
|
3886
3886
|
}, yy = (e) => /* @__PURE__ */ l(ui, {
|
|
3887
3887
|
...e,
|
|
3888
|
-
|
|
3889
|
-
}), ui = ({ styleReaders: e, state: t,
|
|
3888
|
+
empty: !1
|
|
3889
|
+
}), ui = ({ styleReaders: e, state: t, empty: r, children: n }) => {
|
|
3890
3890
|
const o = Q(), a = Q(), i = Cd(), s = e.get("overpaint", void 0, t) ?? mh, { fillFor: d, defs: c } = le({ paints: s }), u = /* @__PURE__ */ l("g", {
|
|
3891
3891
|
id: o,
|
|
3892
3892
|
children: n
|
|
@@ -3965,7 +3965,7 @@ var Ah = (e, t) => {
|
|
|
3965
3965
|
}, bh = {
|
|
3966
3966
|
width: 0,
|
|
3967
3967
|
height: 0,
|
|
3968
|
-
|
|
3968
|
+
unmeasured: !0
|
|
3969
3969
|
}, hi = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
3970
3970
|
const [r, n] = U(bh), o = F(null), a = Ah((c) => {
|
|
3971
3971
|
const u = o.current;
|
|
@@ -3980,7 +3980,7 @@ var Ah = (e, t) => {
|
|
|
3980
3980
|
a.run({
|
|
3981
3981
|
width: h,
|
|
3982
3982
|
height: g,
|
|
3983
|
-
|
|
3983
|
+
unmeasured: !1
|
|
3984
3984
|
});
|
|
3985
3985
|
}), s.current.observe(c)));
|
|
3986
3986
|
}, [a]);
|
|
@@ -4358,7 +4358,7 @@ var Re = {
|
|
|
4358
4358
|
i
|
|
4359
4359
|
].map((s) => `${mo(s, t)}px`).join(" ");
|
|
4360
4360
|
}, wn = (e, t) => {
|
|
4361
|
-
const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: s, bottomRight: d, bottomLeft: c } =
|
|
4361
|
+
const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: s, bottomRight: d, bottomLeft: c } = zh(fi(t), o, a), u = r + o, h = n + a, g = (f, v, m) => f > 0 ? `A${f},${f},0,0,1,${v},${m}` : "";
|
|
4362
4362
|
return [
|
|
4363
4363
|
`M${r + i},${n}`,
|
|
4364
4364
|
`H${u - s}`,
|
|
@@ -4371,7 +4371,7 @@ var Re = {
|
|
|
4371
4371
|
g(i, r + i, n),
|
|
4372
4372
|
"Z"
|
|
4373
4373
|
].filter((f) => f !== "").join("");
|
|
4374
|
-
}, mo = (e, t) => e === 0 ? 0 : e + t,
|
|
4374
|
+
}, mo = (e, t) => e === 0 ? 0 : e + t, zh = (e, t, r) => {
|
|
4375
4375
|
const { topLeft: n, topRight: o, bottomRight: a, bottomLeft: i } = e, s = Math.min(1, ...[
|
|
4376
4376
|
[t, n + o],
|
|
4377
4377
|
[t, i + a],
|
|
@@ -4393,7 +4393,7 @@ var Re = {
|
|
|
4393
4393
|
if (Jr(e)) {
|
|
4394
4394
|
const n = e.size ?? 8, o = n / 6;
|
|
4395
4395
|
return {
|
|
4396
|
-
background: [...
|
|
4396
|
+
background: [...Vh(e, n, o), ...e.background === void 0 ? [] : [e.background]].join(", "),
|
|
4397
4397
|
backgroundSize: `${n}px ${n}px`
|
|
4398
4398
|
};
|
|
4399
4399
|
}
|
|
@@ -4409,10 +4409,10 @@ var Re = {
|
|
|
4409
4409
|
background: `${Ao(xo(e, r))} repeat, ${e.fallback}`,
|
|
4410
4410
|
backgroundSize: `${r.width}px ${r.height}px`
|
|
4411
4411
|
};
|
|
4412
|
-
},
|
|
4412
|
+
}, Vh = (e, t, r) => {
|
|
4413
4413
|
if (e.pattern === "dots") return [`radial-gradient(circle, ${e.color} ${r}px, transparent ${r}px)`];
|
|
4414
4414
|
if (e.pattern === "lines") {
|
|
4415
|
-
const n = `${t *
|
|
4415
|
+
const n = `${t * Vd}px`;
|
|
4416
4416
|
return [`linear-gradient(to bottom, ${e.color} ${n}, transparent ${n})`];
|
|
4417
4417
|
}
|
|
4418
4418
|
return [yo(-45, e.color, t, r), ...e.pattern === "crosshatch" ? [yo(45, e.color, t, r)] : []];
|
|
@@ -4590,10 +4590,10 @@ var Xt = {
|
|
|
4590
4590
|
plansByLayerId: null,
|
|
4591
4591
|
coordKey: null,
|
|
4592
4592
|
introEndsAtMs: 0,
|
|
4593
|
-
|
|
4593
|
+
waitingForView: !1
|
|
4594
4594
|
}, mv = {
|
|
4595
4595
|
...Xt,
|
|
4596
|
-
|
|
4596
|
+
waitingForView: !0
|
|
4597
4597
|
}, fr = Y(Xt), xi = 0.4, yv = ({ intro: e, panelRect: t, children: r }) => {
|
|
4598
4598
|
const { layers: n, coordSystem: o, scales: a } = B(oe((h) => ({
|
|
4599
4599
|
layers: h.layers,
|
|
@@ -4605,14 +4605,14 @@ var Xt = {
|
|
|
4605
4605
|
scales: a,
|
|
4606
4606
|
intro: e
|
|
4607
4607
|
})), [d, c] = U(null), u = Av(d) || !wo(e);
|
|
4608
|
-
return i.
|
|
4608
|
+
return i.waitingForView && u && s(ko({
|
|
4609
4609
|
layers: n,
|
|
4610
4610
|
coordSystem: o,
|
|
4611
4611
|
scales: a,
|
|
4612
4612
|
intro: e
|
|
4613
4613
|
})), /* @__PURE__ */ S(fr.Provider, {
|
|
4614
4614
|
value: i,
|
|
4615
|
-
children: [i.
|
|
4615
|
+
children: [i.waitingForView && /* @__PURE__ */ l("div", {
|
|
4616
4616
|
ref: c,
|
|
4617
4617
|
className: "_84o2bh0",
|
|
4618
4618
|
style: {
|
|
@@ -4623,7 +4623,7 @@ var Xt = {
|
|
|
4623
4623
|
}
|
|
4624
4624
|
}, `${t.width}x${t.height}`), r]
|
|
4625
4625
|
});
|
|
4626
|
-
}, Qe = () => N(fr).
|
|
4626
|
+
}, Qe = () => N(fr).waitingForView, xv = () => {
|
|
4627
4627
|
const { introEndsAtMs: e } = N(fr), [t] = U(() => Sv(e) / 1e3);
|
|
4628
4628
|
return t;
|
|
4629
4629
|
}, Ai = (e) => {
|
|
@@ -4651,7 +4651,7 @@ var Xt = {
|
|
|
4651
4651
|
plansByLayerId: a,
|
|
4652
4652
|
coordKey: bi(t),
|
|
4653
4653
|
introEndsAtMs: performance.now() + i * 1e3,
|
|
4654
|
-
|
|
4654
|
+
waitingForView: !1
|
|
4655
4655
|
};
|
|
4656
4656
|
}, Av = (e) => {
|
|
4657
4657
|
const [t, r] = U(!1);
|
|
@@ -4684,7 +4684,7 @@ var Xt = {
|
|
|
4684
4684
|
Qe()
|
|
4685
4685
|
]), {
|
|
4686
4686
|
cursorRef: r,
|
|
4687
|
-
|
|
4687
|
+
inside: n
|
|
4688
4688
|
};
|
|
4689
4689
|
}, kv = 24, Ev = 8, Pv = {
|
|
4690
4690
|
x: 0,
|
|
@@ -4709,8 +4709,8 @@ var Xt = {
|
|
|
4709
4709
|
parsingLocale: x.config.parsingLocale,
|
|
4710
4710
|
mode: x.config.tooltip.mode,
|
|
4711
4711
|
comments: x.annotations.comments
|
|
4712
|
-
}))), { formattingLocale: t } = ee(), r = O(), n = $e((x) => x.hover), o = $e((x) => x.tooltipAnchor), a = $e((x) => x.
|
|
4713
|
-
}), { cursorRef: d,
|
|
4712
|
+
}))), { formattingLocale: t } = ee(), r = O(), n = $e((x) => x.hover), o = $e((x) => x.tooltipAnchor), a = $e((x) => x.suspendsHover), i = xe("Tooltip", Cv), s = F(() => {
|
|
4713
|
+
}), { cursorRef: d, inside: c } = wv(() => s.current()), u = b(() => js({
|
|
4714
4714
|
...e,
|
|
4715
4715
|
hover: n,
|
|
4716
4716
|
readers: r,
|
|
@@ -4727,7 +4727,7 @@ var Xt = {
|
|
|
4727
4727
|
const x = d.current;
|
|
4728
4728
|
return x === null ? Pv : Iv(x);
|
|
4729
4729
|
} }), [d, o]), { refs: f, floatingStyles: v, update: m } = da(Bv({
|
|
4730
|
-
|
|
4730
|
+
open: h,
|
|
4731
4731
|
tooltipAnchor: o,
|
|
4732
4732
|
virtualReference: g
|
|
4733
4733
|
}));
|
|
@@ -4742,7 +4742,7 @@ var Xt = {
|
|
|
4742
4742
|
}), A = ev();
|
|
4743
4743
|
return A ? $l(/* @__PURE__ */ l($h, { children: p }), A) : p;
|
|
4744
4744
|
}, Cv = ({ content: e }) => {
|
|
4745
|
-
const t = de(), r = B((h) => h.coordSystem), n = I(
|
|
4745
|
+
const t = de(), r = B((h) => h.coordSystem), n = I(Vl, O()), o = st([n.box.fill]), a = q(n.heading), i = q(n.label), s = q(n.value), d = { paddingInline: n.box.paddingInline }, c = e.rows.some((h) => h.swatchColor !== null), u = e.rows.some((h) => !h.primary);
|
|
4746
4746
|
return /* @__PURE__ */ S("div", {
|
|
4747
4747
|
className: uv,
|
|
4748
4748
|
style: Lv(n.box, o(n.box.fill)),
|
|
@@ -4775,12 +4775,12 @@ var Xt = {
|
|
|
4775
4775
|
swatchShape: g?.swatchShape ?? "square",
|
|
4776
4776
|
mainAxis: wt(r),
|
|
4777
4777
|
hasSwatches: c,
|
|
4778
|
-
|
|
4778
|
+
highlight: h.primary && u,
|
|
4779
4779
|
labelStyle: i,
|
|
4780
4780
|
valueStyle: s,
|
|
4781
4781
|
paddingInline: n.box.paddingInline,
|
|
4782
4782
|
paddingBlock: n.box.gap,
|
|
4783
|
-
highlightBackground:
|
|
4783
|
+
highlightBackground: z(n.primaryRow.fill)
|
|
4784
4784
|
}, h.key);
|
|
4785
4785
|
})
|
|
4786
4786
|
})
|
|
@@ -4813,7 +4813,7 @@ var Xt = {
|
|
|
4813
4813
|
width: 0,
|
|
4814
4814
|
height: 0,
|
|
4815
4815
|
toJSON: () => ({})
|
|
4816
|
-
}), Bv = ({
|
|
4816
|
+
}), Bv = ({ open: e, tooltipAnchor: t, virtualReference: r }) => ({
|
|
4817
4817
|
open: e,
|
|
4818
4818
|
placement: t !== null ? t.placement : "right",
|
|
4819
4819
|
middleware: t !== null ? [
|
|
@@ -4826,7 +4826,7 @@ var Xt = {
|
|
|
4826
4826
|
Ir(Gt)
|
|
4827
4827
|
],
|
|
4828
4828
|
elements: { reference: r }
|
|
4829
|
-
}), Mv = ({ row: e, swatchShape: t, mainAxis: r, hasSwatches: n,
|
|
4829
|
+
}), Mv = ({ row: e, swatchShape: t, mainAxis: r, hasSwatches: n, highlight: o, labelStyle: a, valueStyle: i, paddingInline: s, paddingBlock: d, highlightBackground: c }) => /* @__PURE__ */ S("div", {
|
|
4830
4830
|
className: vv,
|
|
4831
4831
|
style: {
|
|
4832
4832
|
paddingInline: s,
|
|
@@ -4871,7 +4871,7 @@ var Xt = {
|
|
|
4871
4871
|
y: e.tickLine.y().resolve()
|
|
4872
4872
|
}), Ov = (e) => {
|
|
4873
4873
|
const t = e.graph();
|
|
4874
|
-
return jl(
|
|
4874
|
+
return jl(z(t.get("fill")), t.get("alpha") ?? 1);
|
|
4875
4875
|
}, Rn = (e) => (t, r) => r === void 0 ? e.tickLabel[t]().resolve() : e.tickLabel[r](t).resolve(), pr = (e) => {
|
|
4876
4876
|
const t = {};
|
|
4877
4877
|
for (const r of Es) {
|
|
@@ -4888,7 +4888,7 @@ var Xt = {
|
|
|
4888
4888
|
popover: e.legend.popover().resolve()
|
|
4889
4889
|
};
|
|
4890
4890
|
}, Cn = (e) => e.headline().resolve(), Nv = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
|
|
4891
|
-
const a = o.position === "top" || o.position === "bottom", i = Ae(o.scaleAestheticKey), { offset: s, ...d } = t(i, o.position), c = o.
|
|
4891
|
+
const a = o.position === "top" || o.position === "bottom", i = Ae(o.scaleAestheticKey), { offset: s, ...d } = t(i, o.position), c = o.showTicks ? Math.max(s, r[i].length) : s, u = te(d, n), h = o.ticks.map((f) => e.measureText(f.formattedLabel, u)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
|
|
4892
4892
|
if (a) {
|
|
4893
4893
|
if (o.labelRotation !== 0) {
|
|
4894
4894
|
const f = h.map((v) => v.width);
|
|
@@ -4910,14 +4910,14 @@ var Xt = {
|
|
|
4910
4910
|
width: Ri(i.map((s) => s.width)) + Math.max(0, i.length - 1) * r,
|
|
4911
4911
|
height: Math.max(0, ...i.map((s) => s.height))
|
|
4912
4912
|
};
|
|
4913
|
-
}, Wv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o) => Pi(n, r[o], e, t).map((a) => a.width),
|
|
4913
|
+
}, Wv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o) => Pi(n, r[o], e, t).map((a) => a.width), zv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
|
|
4914
4914
|
const i = na(r[o], a);
|
|
4915
4915
|
return {
|
|
4916
4916
|
width: e.measureText(n, te(i, t)).width,
|
|
4917
4917
|
height: We(i)
|
|
4918
4918
|
};
|
|
4919
|
-
},
|
|
4920
|
-
const t = Gv(e), r =
|
|
4919
|
+
}, Vv = (e) => {
|
|
4920
|
+
const t = Gv(e), r = zv(e);
|
|
4921
4921
|
return (n, o, a = !1) => n.kind === "perGroup" ? t(n, o) : r(n.value, o, a);
|
|
4922
4922
|
}, Pi = (e, t, r, n) => {
|
|
4923
4923
|
const o = (a) => Yv(a, t, r, n);
|
|
@@ -4986,9 +4986,9 @@ var Xt = {
|
|
|
4986
4986
|
familyDefault: h,
|
|
4987
4987
|
itemGap: Cn(n).gap,
|
|
4988
4988
|
headlineItemStyles: {
|
|
4989
|
-
small:
|
|
4990
|
-
medium:
|
|
4991
|
-
large:
|
|
4989
|
+
small: Vt(n, "small"),
|
|
4990
|
+
medium: Vt(n, "medium"),
|
|
4991
|
+
large: Vt(n, "large")
|
|
4992
4992
|
}
|
|
4993
4993
|
}, v = Nv({
|
|
4994
4994
|
textMeasurer: e,
|
|
@@ -5000,7 +5000,7 @@ var Xt = {
|
|
|
5000
5000
|
familyDefault: h,
|
|
5001
5001
|
legendItemStyle: s,
|
|
5002
5002
|
directLabelStyle: i
|
|
5003
|
-
}), A =
|
|
5003
|
+
}), A = Vv(f), x = Wv(f), w = {
|
|
5004
5004
|
measureText: (k, E) => e.measureText(k, E),
|
|
5005
5005
|
textScale: g
|
|
5006
5006
|
};
|
|
@@ -5089,7 +5089,7 @@ var Xt = {
|
|
|
5089
5089
|
m,
|
|
5090
5090
|
e
|
|
5091
5091
|
]);
|
|
5092
|
-
}, $v = (e) => !e.
|
|
5092
|
+
}, $v = (e) => !e.visible || e.ticks.length === 0, _v = (e) => e.items.length === 0, eg = () => {
|
|
5093
5093
|
const { formattingLocale: e } = ee(), t = B((r) => r.config.parsingLocale);
|
|
5094
5094
|
return e ?? t;
|
|
5095
5095
|
}, Po = 0.5, Ci = Y(/* @__PURE__ */ new Map()), Li = Y(() => {
|
|
@@ -5172,7 +5172,7 @@ var Xt = {
|
|
|
5172
5172
|
}, gg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && Yo(e.predicate, t.predicate) && mt(e.selectedFor, t.selectedFor), Ti = (e, t, r, n) => {
|
|
5173
5173
|
const o = _t(r, e), a = o?.data.getAt(t) ?? null;
|
|
5174
5174
|
if (o === void 0 || a === null) return null;
|
|
5175
|
-
const i =
|
|
5175
|
+
const i = zs({
|
|
5176
5176
|
layer: o,
|
|
5177
5177
|
observationIndex: t,
|
|
5178
5178
|
scope: "data-point",
|
|
@@ -5185,7 +5185,7 @@ var Xt = {
|
|
|
5185
5185
|
},
|
|
5186
5186
|
predicate: i.predicate
|
|
5187
5187
|
};
|
|
5188
|
-
}, Iy = ({
|
|
5188
|
+
}, Iy = ({ overMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
|
|
5189
5189
|
kind: "observations",
|
|
5190
5190
|
observations: r
|
|
5191
5191
|
} : t, fg = (e, t) => {
|
|
@@ -5197,7 +5197,7 @@ var Xt = {
|
|
|
5197
5197
|
if (e.kind === "grid" && t.kind === "grid") return mt(e.target, t.target);
|
|
5198
5198
|
if (e.kind === "observations" && t.kind === "observations") {
|
|
5199
5199
|
const r = e.observations, n = t.observations;
|
|
5200
|
-
return r.layerId === n.layerId && r.observationIndex === n.observationIndex && r.target.scope === n.target.scope && r.
|
|
5200
|
+
return r.layerId === n.layerId && r.observationIndex === n.observationIndex && r.target.scope === n.target.scope && r.onObservation === n.onObservation;
|
|
5201
5201
|
}
|
|
5202
5202
|
return e.kind === "menu-trigger" && t.kind === "menu-trigger";
|
|
5203
5203
|
}, Bi = (e) => {
|
|
@@ -5251,7 +5251,7 @@ var Oi = Y(null), xg = ({ panelRect: e, children: t }) => {
|
|
|
5251
5251
|
const e = N(Oi);
|
|
5252
5252
|
if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
|
|
5253
5253
|
return e;
|
|
5254
|
-
}, Ro = (e, t, r) => t.
|
|
5254
|
+
}, Ro = (e, t, r) => t.hasAuthoredStroke ? t.stroke : Tl(e.start, e.end, {
|
|
5255
5255
|
start: r(e.start),
|
|
5256
5256
|
end: r(e.end)
|
|
5257
5257
|
}) ?? t.stroke, bg = (e) => {
|
|
@@ -5279,7 +5279,7 @@ var Oi = Y(null), xg = ({ panelRect: e, children: t }) => {
|
|
|
5279
5279
|
committedArrow: p,
|
|
5280
5280
|
committedLabelBox: x.labelBox,
|
|
5281
5281
|
committedLabelText: x.labelText,
|
|
5282
|
-
|
|
5282
|
+
dragging: !1,
|
|
5283
5283
|
hasComparableEndpoints: Qn(p.start, p.end)
|
|
5284
5284
|
};
|
|
5285
5285
|
}), [
|
|
@@ -5300,7 +5300,7 @@ var Oi = Y(null), xg = ({ panelRect: e, children: t }) => {
|
|
|
5300
5300
|
committedArrow: p.committedArrow,
|
|
5301
5301
|
committedLabelBox: p.committedLabelBox,
|
|
5302
5302
|
committedLabelText: p.committedLabelText,
|
|
5303
|
-
|
|
5303
|
+
dragging: !0,
|
|
5304
5304
|
hasComparableEndpoints: Qn(A.start, A.end)
|
|
5305
5305
|
};
|
|
5306
5306
|
}), [
|
|
@@ -5401,7 +5401,7 @@ var Rg = "vultop2", Cg = "vultop3", Lg = "vultop4", Ig = "vultop5", Tg = (e) =>
|
|
|
5401
5401
|
className: t,
|
|
5402
5402
|
children: e === "dark" ? Hg : Ng
|
|
5403
5403
|
}), Fg = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Ni = ({ visual: e, placement: t }) => {
|
|
5404
|
-
const r = Tg(
|
|
5404
|
+
const r = Tg(z(O().graph().get("fill")));
|
|
5405
5405
|
return /* @__PURE__ */ S("a", {
|
|
5406
5406
|
className: bt(Pg, e === "mini" && "vultop1", t === "footer" ? Lg : Ig),
|
|
5407
5407
|
href: kg,
|
|
@@ -5426,7 +5426,7 @@ var Rg = "vultop2", Cg = "vultop3", Lg = "vultop4", Ig = "vultop5", Tg = (e) =>
|
|
|
5426
5426
|
value: e,
|
|
5427
5427
|
children: t
|
|
5428
5428
|
}), In = () => N(Hi), Lo = "_4dlrid0", Gg = "xfz7dq0";
|
|
5429
|
-
var Wg = "xfz7dq2",
|
|
5429
|
+
var Wg = "xfz7dq2", zg = "xfz7dq3", Vg = "xfz7dq4", Yg = "xfz7dq5", jg = ({ ref: e, footerRect: t, mode: r = Re.readonly, caption: n, showCaption: o, source: a, showSource: i, captionStyle: s, sourceStyle: d, brandMark: c }) => {
|
|
5430
5430
|
const { Caption: u } = In(), h = Ne[An(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), f = i && a !== null && Xg(a), v = c !== "hidden";
|
|
5431
5431
|
return !g && !f && !v ? null : /* @__PURE__ */ S("div", {
|
|
5432
5432
|
ref: e,
|
|
@@ -5467,10 +5467,10 @@ var Wg = "xfz7dq2", Vg = "xfz7dq3", zg = "xfz7dq4", Yg = "xfz7dq5", jg = ({ ref:
|
|
|
5467
5467
|
className: Wg,
|
|
5468
5468
|
style: q(t.label),
|
|
5469
5469
|
children: [/* @__PURE__ */ l("span", {
|
|
5470
|
-
className:
|
|
5470
|
+
className: Vg,
|
|
5471
5471
|
children: "Source:"
|
|
5472
5472
|
}), r !== void 0 ? /* @__PURE__ */ l("a", {
|
|
5473
|
-
className:
|
|
5473
|
+
className: zg,
|
|
5474
5474
|
href: r,
|
|
5475
5475
|
target: "_blank",
|
|
5476
5476
|
rel: "noopener noreferrer",
|
|
@@ -5488,7 +5488,7 @@ var Wg = "xfz7dq2", Vg = "xfz7dq3", zg = "xfz7dq4", Yg = "xfz7dq5", jg = ({ ref:
|
|
|
5488
5488
|
return e;
|
|
5489
5489
|
}
|
|
5490
5490
|
}, Xg = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Zr(e.url), qg = "_1k4qtbg0";
|
|
5491
|
-
var Jg = 22, Zg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n,
|
|
5491
|
+
var Jg = 22, Zg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, showTitle: o, subtitle: a, showSubtitle: i, headingStyle: s, subtitleStyle: d, brandMark: c }) => {
|
|
5492
5492
|
const { Title: u } = In(), h = Ne[An(r)].inlineTextEditing ? u : null, g = h !== null, f = o && (g || n !== null), v = i && (g || a !== null), m = c !== "hidden";
|
|
5493
5493
|
return !f && !v && !m ? null : /* @__PURE__ */ S("div", {
|
|
5494
5494
|
ref: e,
|
|
@@ -5501,15 +5501,15 @@ var Jg = 22, Zg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5501
5501
|
},
|
|
5502
5502
|
children: [h ? /* @__PURE__ */ l(h, {
|
|
5503
5503
|
title: n,
|
|
5504
|
-
|
|
5505
|
-
|
|
5504
|
+
showTitle: o,
|
|
5505
|
+
showSubtitle: i,
|
|
5506
5506
|
subtitle: a,
|
|
5507
5507
|
headingStyle: s,
|
|
5508
5508
|
subtitleStyle: d
|
|
5509
5509
|
}, [o ? "title" : "", i ? "subtitle" : ""].join("-")) : /* @__PURE__ */ l($g, {
|
|
5510
5510
|
title: n,
|
|
5511
|
-
|
|
5512
|
-
|
|
5511
|
+
showTitle: o,
|
|
5512
|
+
showSubtitle: i,
|
|
5513
5513
|
subtitle: a,
|
|
5514
5514
|
headingStyle: s,
|
|
5515
5515
|
subtitleStyle: d
|
|
@@ -5518,7 +5518,7 @@ var Jg = 22, Zg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5518
5518
|
placement: "header"
|
|
5519
5519
|
}) : null]
|
|
5520
5520
|
});
|
|
5521
|
-
}, $g = ({ title: e,
|
|
5521
|
+
}, $g = ({ title: e, showTitle: t, showSubtitle: r, subtitle: n, headingStyle: o, subtitleStyle: a }) => {
|
|
5522
5522
|
const i = t && e !== null, s = r && n !== null;
|
|
5523
5523
|
return /* @__PURE__ */ S(T, { children: [i && (typeof e == "string" ? /* @__PURE__ */ l("h1", {
|
|
5524
5524
|
className: "_4dlrid0",
|
|
@@ -5687,8 +5687,8 @@ var vf = ({ segment: e, itemStyle: t }) => {
|
|
|
5687
5687
|
}, yf = (e) => {
|
|
5688
5688
|
const t = e.segments.find((r) => r.kind === "trendArrow");
|
|
5689
5689
|
return t?.kind === "trendArrow" ? t.direction : void 0;
|
|
5690
|
-
}, xf = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n,
|
|
5691
|
-
const a = O(), i = I(Cn, a), s = I(
|
|
5690
|
+
}, xf = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, inDonutHole: o = !1 }) => {
|
|
5691
|
+
const a = O(), i = I(Cn, a), s = I(Vt, a, r), d = {
|
|
5692
5692
|
left: t.x,
|
|
5693
5693
|
top: t.y,
|
|
5694
5694
|
width: t.width,
|
|
@@ -5716,11 +5716,11 @@ var vf = ({ segment: e, itemStyle: t }) => {
|
|
|
5716
5716
|
itemStyle: s
|
|
5717
5717
|
}, `${c.label}-${u}`))
|
|
5718
5718
|
});
|
|
5719
|
-
}, Wi = "data-legend-index",
|
|
5719
|
+
}, Wi = "data-legend-index", zi = "data-legend-item-index", Vi = ({ legendIndex: e, itemIndex: t }) => ({
|
|
5720
5720
|
[Wi]: String(e),
|
|
5721
|
-
[
|
|
5721
|
+
[zi]: String(t)
|
|
5722
5722
|
}), Af = (e) => {
|
|
5723
|
-
const t = Fr(e, Wi), r = Fr(e,
|
|
5723
|
+
const t = Fr(e, Wi), r = Fr(e, zi);
|
|
5724
5724
|
return t === null || r === null ? null : {
|
|
5725
5725
|
legendIndex: t,
|
|
5726
5726
|
itemIndex: r
|
|
@@ -5739,7 +5739,7 @@ var vf = ({ segment: e, itemStyle: t }) => {
|
|
|
5739
5739
|
...t === void 0 ? {} : { [ji]: String(t) }
|
|
5740
5740
|
}), Bn = (e) => ({
|
|
5741
5741
|
[Xe]: "legend",
|
|
5742
|
-
...
|
|
5742
|
+
...Vi(e)
|
|
5743
5743
|
}), Qi = (e) => ({
|
|
5744
5744
|
[Xe]: "grid",
|
|
5745
5745
|
[Jt]: e
|
|
@@ -5752,7 +5752,7 @@ var vf = ({ segment: e, itemStyle: t }) => {
|
|
|
5752
5752
|
if (n !== r) return null;
|
|
5753
5753
|
}
|
|
5754
5754
|
return null;
|
|
5755
|
-
}, Xi = ({
|
|
5755
|
+
}, Xi = ({ live: e = !1 } = {}) => ({
|
|
5756
5756
|
[Xe]: bf,
|
|
5757
5757
|
...e ? { [Ui]: "" } : {}
|
|
5758
5758
|
}), Hy = (e, t) => {
|
|
@@ -5824,7 +5824,7 @@ var He = () => Ne[Bt()].guidePress, kf = 0.25, Mn = (e) => Qe() ? null : /* @__P
|
|
|
5824
5824
|
...r,
|
|
5825
5825
|
children: e
|
|
5826
5826
|
});
|
|
5827
|
-
const a =
|
|
5827
|
+
const a = V[t];
|
|
5828
5828
|
return /* @__PURE__ */ l(a, {
|
|
5829
5829
|
...r,
|
|
5830
5830
|
initial: { opacity: 0 },
|
|
@@ -5835,7 +5835,7 @@ var He = () => Ne[Bt()].guidePress, kf = 0.25, Mn = (e) => Qe() ? null : /* @__P
|
|
|
5835
5835
|
},
|
|
5836
5836
|
children: e
|
|
5837
5837
|
});
|
|
5838
|
-
}, Pf = (e, t) => e.
|
|
5838
|
+
}, Pf = (e, t) => e.hasAuthoredTextColor ? e.textColor : t ?? e.textColor, Rf = "_1oj6yix0";
|
|
5839
5839
|
var Cf = "_1oj6yix2";
|
|
5840
5840
|
var Lf = 8, If = 16, Tf = 2, Bf = ({ indexedLegends: e, containerRect: t }) => {
|
|
5841
5841
|
const r = I(ra, O()), n = We(r), { placements: o, hasOverlap: a } = Mf(e, t, n), i = He(), s = q(r);
|
|
@@ -5865,7 +5865,7 @@ var Lf = 8, If = 16, Tf = 2, Bf = ({ indexedLegends: e, containerRect: t }) => {
|
|
|
5865
5865
|
top: h.y,
|
|
5866
5866
|
color: Pf(r, h.payload.color)
|
|
5867
5867
|
},
|
|
5868
|
-
...i ? Bn(h.payload.address) :
|
|
5868
|
+
...i ? Bn(h.payload.address) : Vi(h.payload.address),
|
|
5869
5869
|
children: h.payload.label
|
|
5870
5870
|
}, h.payload.key))]
|
|
5871
5871
|
});
|
|
@@ -5938,11 +5938,11 @@ var Ji = (e, t) => ({
|
|
|
5938
5938
|
}), _i = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, Ff = "var(--_1kjk02r0)", Gf = "_1kjk02r1", Wf = {
|
|
5939
5939
|
1: "_1kjk02r2",
|
|
5940
5940
|
2: "_1kjk02r3"
|
|
5941
|
-
},
|
|
5941
|
+
}, zf = {
|
|
5942
5942
|
1: "_1kjk02r4",
|
|
5943
5943
|
2: "_1kjk02r5"
|
|
5944
5944
|
};
|
|
5945
|
-
var
|
|
5945
|
+
var Vf = {
|
|
5946
5946
|
1: "_1kjk02r7",
|
|
5947
5947
|
2: "_1kjk02r8"
|
|
5948
5948
|
}, Yf = {
|
|
@@ -5968,7 +5968,7 @@ var Uf = "_1dw9dgx0", Sr = "\0", Qf = (e, t) => {
|
|
|
5968
5968
|
formattedLabel: i.formattedLabel,
|
|
5969
5969
|
visual: i.visual,
|
|
5970
5970
|
swatchShape: t(i.geom),
|
|
5971
|
-
|
|
5971
|
+
hasBubbleSwatch: a,
|
|
5972
5972
|
primaryLineType: u,
|
|
5973
5973
|
layerId: i.layerId,
|
|
5974
5974
|
groupValue: i.value
|
|
@@ -5976,7 +5976,7 @@ var Uf = "_1dw9dgx0", Sr = "\0", Qf = (e, t) => {
|
|
|
5976
5976
|
});
|
|
5977
5977
|
}
|
|
5978
5978
|
return r;
|
|
5979
|
-
}, es = ({ pill: e }) => e.
|
|
5979
|
+
}, es = ({ pill: e }) => e.hasBubbleSwatch ? /* @__PURE__ */ l(Jf, { pill: e }) : /* @__PURE__ */ l(qf, { pill: e }), Xf = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: a }) => {
|
|
5980
5980
|
const { swatch: i } = I(Et, O()), s = cr(o, a, i.size), d = dr(o, a, e), c = B((h) => wt(h.coordSystem)), u = Zf(e, d);
|
|
5981
5981
|
return u ? /* @__PURE__ */ l(Lt, {
|
|
5982
5982
|
shape: r,
|
|
@@ -6001,7 +6001,7 @@ var Uf = "_1dw9dgx0", Sr = "\0", Qf = (e, t) => {
|
|
|
6001
6001
|
layerId: e.layerId,
|
|
6002
6002
|
groupValue: e.groupValue
|
|
6003
6003
|
}), /* @__PURE__ */ l("span", { children: e.formattedLabel })] }), Jf = ({ pill: e }) => {
|
|
6004
|
-
const t = Number(e.visual.size), { item: r } = I(Et, O()), n = cr(e.layerId, e.groupValue, t), o = dr(e.layerId, e.groupValue, r.textColor), a = n.fill === void 0 ? o :
|
|
6004
|
+
const t = Number(e.visual.size), { item: r } = I(Et, O()), n = cr(e.layerId, e.groupValue, t), o = dr(e.layerId, e.groupValue, r.textColor), a = n.fill === void 0 ? o : z(n.fill);
|
|
6005
6005
|
return /* @__PURE__ */ S(T, { children: [/* @__PURE__ */ l("span", {
|
|
6006
6006
|
className: Uf,
|
|
6007
6007
|
style: {
|
|
@@ -6045,10 +6045,10 @@ var Uf = "_1dw9dgx0", Sr = "\0", Qf = (e, t) => {
|
|
|
6045
6045
|
const p = t === "left" || t === "right", A = g === null ? [] : Array.from({ length: g }, (x, w) => g - w);
|
|
6046
6046
|
return /* @__PURE__ */ S(T, { children: [/* @__PURE__ */ S("div", {
|
|
6047
6047
|
ref: v.setReference,
|
|
6048
|
-
className: Fe(Gf, g !== null && p &&
|
|
6048
|
+
className: Fe(Gf, g !== null && p && zf[g], g !== null && !p && Wf[g]),
|
|
6049
6049
|
...Io,
|
|
6050
6050
|
children: [g !== null && A.map((x) => /* @__PURE__ */ l("span", {
|
|
6051
|
-
className: Fe("_1kjk02r6", p ? Yf[g] :
|
|
6051
|
+
className: Fe("_1kjk02r6", p ? Yf[g] : Vf[g]),
|
|
6052
6052
|
style: {
|
|
6053
6053
|
...f,
|
|
6054
6054
|
...ep(x, p)
|
|
@@ -6177,7 +6177,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6177
6177
|
}, lp = (e, t, r, n) => {
|
|
6178
6178
|
const o = cp(e, r);
|
|
6179
6179
|
return Math.max(t, o) + n;
|
|
6180
|
-
}, dp = (e, t) => qt(e.visual, t, e.
|
|
6180
|
+
}, dp = (e, t) => qt(e.visual, t, e.hasBubbleSwatch), cp = (e, t) => e.hasBubbleSwatch ? qt(e.visual, t, !0) : t, up = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
|
|
6181
6181
|
if (e.length === 0) return {
|
|
6182
6182
|
visibleCount: 0,
|
|
6183
6183
|
hasOverflow: !1
|
|
@@ -6310,7 +6310,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6310
6310
|
panelRect: n,
|
|
6311
6311
|
children: /* @__PURE__ */ l("rect", {
|
|
6312
6312
|
...a,
|
|
6313
|
-
fill:
|
|
6313
|
+
fill: z(o.fill),
|
|
6314
6314
|
"data-testid": "hover-guide-rect"
|
|
6315
6315
|
})
|
|
6316
6316
|
});
|
|
@@ -6328,7 +6328,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6328
6328
|
style: { overflow: "visible" },
|
|
6329
6329
|
children: /* @__PURE__ */ l("path", {
|
|
6330
6330
|
d: a,
|
|
6331
|
-
fill:
|
|
6331
|
+
fill: z(n.fill),
|
|
6332
6332
|
"data-testid": "hover-guide-arc"
|
|
6333
6333
|
})
|
|
6334
6334
|
})
|
|
@@ -6360,7 +6360,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6360
6360
|
}, kp = (e, { panel: t, measuredBoxes: r }) => {
|
|
6361
6361
|
const n = r.get(e.id);
|
|
6362
6362
|
if (n === void 0) return null;
|
|
6363
|
-
const o =
|
|
6363
|
+
const o = Vo(e.align), a = At(e.at, t);
|
|
6364
6364
|
return {
|
|
6365
6365
|
shape: "rect",
|
|
6366
6366
|
rect: {
|
|
@@ -6393,7 +6393,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6393
6393
|
const r = al(e, t);
|
|
6394
6394
|
return r !== null && bp(r.kind) && xl(r);
|
|
6395
6395
|
}, Pp = 200, Rp = ({ engine: e, store: t, overlayRef: r }) => {
|
|
6396
|
-
const { tolerance: n } = Ne[Bt()], o = nt(t, (i) => i.
|
|
6396
|
+
const { tolerance: n } = Ne[Bt()], o = nt(t, (i) => i.editorOwnsQuery), a = Qe();
|
|
6397
6397
|
W(() => {
|
|
6398
6398
|
const i = r.current;
|
|
6399
6399
|
if (!i) return;
|
|
@@ -6446,7 +6446,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6446
6446
|
const m = i();
|
|
6447
6447
|
if (m === null) return;
|
|
6448
6448
|
const p = s(v, m), A = r.getState();
|
|
6449
|
-
if (A.
|
|
6449
|
+
if (A.suspendsHover) return;
|
|
6450
6450
|
const x = Xn(p, A.pointerRegions);
|
|
6451
6451
|
if (x !== null) {
|
|
6452
6452
|
A.setHoverState(t.query(x.cursor, { tolerance: n })), A.setTooltipAnchor(Lp(x.tooltip, m));
|
|
@@ -6463,11 +6463,11 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6463
6463
|
const p = i();
|
|
6464
6464
|
return p === null ? !1 : Xn(s(v, p), m.pointerRegions) !== null;
|
|
6465
6465
|
}, h = (v) => {
|
|
6466
|
-
r.getState().
|
|
6466
|
+
r.getState().suspendsHover || u(v) || (document.removeEventListener("pointermove", h), c());
|
|
6467
6467
|
}, g = (v) => {
|
|
6468
6468
|
document.removeEventListener("pointermove", h), o = v, a === null && (a = requestAnimationFrame(d));
|
|
6469
6469
|
}, f = (v) => {
|
|
6470
|
-
if (o = null, a !== null && (cancelAnimationFrame(a), a = null), !r.getState().
|
|
6470
|
+
if (o = null, a !== null && (cancelAnimationFrame(a), a = null), !r.getState().suspendsHover) {
|
|
6471
6471
|
if (u(v)) {
|
|
6472
6472
|
document.addEventListener("pointermove", h);
|
|
6473
6473
|
return;
|
|
@@ -6560,11 +6560,11 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6560
6560
|
primary: "#FFFFFF",
|
|
6561
6561
|
inverse: "#1D2129"
|
|
6562
6562
|
}
|
|
6563
|
-
}, Fp = ({ computed: e, style: t,
|
|
6563
|
+
}, Fp = ({ computed: e, style: t, addressable: r }) => {
|
|
6564
6564
|
const n = Q(), { colorScheme: o } = En(), a = e.dashArray ? {
|
|
6565
6565
|
strokeDasharray: e.dashArray,
|
|
6566
6566
|
strokeDashoffset: e.dashOffset
|
|
6567
|
-
} : {}, i = t.outline.shadow === "none" ? null : t.outline.shadow, s = t.outline.strokeWidth > 0, d = Dp[o], c = t.outline.stroke ??
|
|
6567
|
+
} : {}, i = t.outline.shadow === "none" ? null : t.outline.shadow, s = t.outline.strokeWidth > 0, d = Dp[o], c = t.outline.stroke ?? zp(t.stroke, d.primary, d.inverse), u = i === null ? null : Wp(e, t.outline.strokeWidth, i.blur);
|
|
6568
6568
|
return /* @__PURE__ */ S("g", {
|
|
6569
6569
|
pointerEvents: r ? void 0 : "none",
|
|
6570
6570
|
children: [
|
|
@@ -6631,13 +6631,13 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6631
6631
|
width: Math.abs(e.endX - e.startX) + 2 * n,
|
|
6632
6632
|
height: Math.abs(e.endY - e.startY) + 2 * n
|
|
6633
6633
|
};
|
|
6634
|
-
},
|
|
6634
|
+
}, zp = (e, t, r) => {
|
|
6635
6635
|
try {
|
|
6636
6636
|
return _l(e, t) < Hp ? r : t;
|
|
6637
6637
|
} catch {
|
|
6638
6638
|
return r;
|
|
6639
6639
|
}
|
|
6640
|
-
},
|
|
6640
|
+
}, Vp = ({ panelRect: e, editable: t }) => {
|
|
6641
6641
|
const { arrows: r } = Mt(e), n = mr(), o = O(), a = b(() => r.filter((i) => i.id !== n).flatMap((i) => {
|
|
6642
6642
|
const s = Il(o, i.id), d = Ks({
|
|
6643
6643
|
arrow: i,
|
|
@@ -6667,14 +6667,14 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6667
6667
|
children: /* @__PURE__ */ l(Fp, {
|
|
6668
6668
|
computed: i,
|
|
6669
6669
|
style: s,
|
|
6670
|
-
|
|
6670
|
+
addressable: t
|
|
6671
6671
|
})
|
|
6672
6672
|
}, i.id))
|
|
6673
6673
|
});
|
|
6674
6674
|
}, Yp = () => {
|
|
6675
6675
|
const { selectionStore: e } = ee();
|
|
6676
6676
|
return nt(e, (t) => t.selection);
|
|
6677
|
-
}, jp = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n,
|
|
6677
|
+
}, jp = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, addressable: o }) => {
|
|
6678
6678
|
const a = {
|
|
6679
6679
|
stroke: r,
|
|
6680
6680
|
strokeWidth: n,
|
|
@@ -6699,9 +6699,9 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6699
6699
|
})
|
|
6700
6700
|
]
|
|
6701
6701
|
});
|
|
6702
|
-
}, Kp = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a,
|
|
6702
|
+
}, Kp = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a, addressable: i }) => {
|
|
6703
6703
|
const { fonts: s } = Ke(), d = gr(o.cornerRadius), c = o.shadow === void 0 ? void 0 : Ye(o.shadow), u = {
|
|
6704
|
-
fill:
|
|
6704
|
+
fill: z(o.fill),
|
|
6705
6705
|
stroke: o.stroke ?? a,
|
|
6706
6706
|
strokeWidth: o.strokeWidth,
|
|
6707
6707
|
style: c === void 0 ? void 0 : { filter: c }
|
|
@@ -6733,12 +6733,12 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6733
6733
|
children: St(r, o.textTransform)
|
|
6734
6734
|
})]
|
|
6735
6735
|
});
|
|
6736
|
-
}, Up = "_1i8rg6j0", Qp = "75%", Xp = ({ panelRect: e,
|
|
6736
|
+
}, Up = "_1i8rg6j0", Qp = "75%", Xp = ({ panelRect: e, editable: t }) => {
|
|
6737
6737
|
const r = Ag(), n = Ie(Bi), o = Yp(), a = b(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
|
|
6738
6738
|
return r.length === 0 ? null : /* @__PURE__ */ l("g", {
|
|
6739
6739
|
transform: `translate(${e.x}, ${e.y})`,
|
|
6740
6740
|
"data-testid": "difference-arrows",
|
|
6741
|
-
children: r.map(({ color: i, style: s, id: d, linePath: c, arrowheadPath: u, labelPosition: h, labelBox: g, labelText: f,
|
|
6741
|
+
children: r.map(({ color: i, style: s, id: d, linePath: c, arrowheadPath: u, labelPosition: h, labelBox: g, labelText: f, dragging: v, hasComparableEndpoints: m }) => {
|
|
6742
6742
|
const p = n === d || a.has(d), A = v && !m, x = A ? y.alert : i, w = p && !A ? qp(x) : x;
|
|
6743
6743
|
return /* @__PURE__ */ S("g", {
|
|
6744
6744
|
className: n === d ? Up : void 0,
|
|
@@ -6752,7 +6752,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6752
6752
|
arrowheadPath: u,
|
|
6753
6753
|
stroke: w,
|
|
6754
6754
|
strokeWidth: s.strokeWidth,
|
|
6755
|
-
|
|
6755
|
+
addressable: t
|
|
6756
6756
|
}), /* @__PURE__ */ l(Kp, {
|
|
6757
6757
|
x: h.x,
|
|
6758
6758
|
y: h.y,
|
|
@@ -6760,7 +6760,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6760
6760
|
box: g,
|
|
6761
6761
|
label: s.label,
|
|
6762
6762
|
arrowColor: w,
|
|
6763
|
-
|
|
6763
|
+
addressable: t
|
|
6764
6764
|
})]
|
|
6765
6765
|
}, d);
|
|
6766
6766
|
})
|
|
@@ -6815,7 +6815,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6815
6815
|
y: n.y,
|
|
6816
6816
|
width: n.width,
|
|
6817
6817
|
height: n.height,
|
|
6818
|
-
fill:
|
|
6818
|
+
fill: z(t.fill),
|
|
6819
6819
|
fillOpacity: t.fillAlpha,
|
|
6820
6820
|
opacity: t.alpha,
|
|
6821
6821
|
stroke: pl(t) ?? "none",
|
|
@@ -6868,7 +6868,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6868
6868
|
})
|
|
6869
6869
|
});
|
|
6870
6870
|
}, tm = (e) => {
|
|
6871
|
-
const t =
|
|
6871
|
+
const t = Vo(e);
|
|
6872
6872
|
return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
|
|
6873
6873
|
}, rm = (e) => {
|
|
6874
6874
|
const { backgroundColor: t, borderShadow: r } = nm(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : ot(e.shadow)].filter((o) => o !== void 0);
|
|
@@ -6882,7 +6882,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6882
6882
|
};
|
|
6883
6883
|
}, nm = (e) => {
|
|
6884
6884
|
if (e.fill === "transparent") return {};
|
|
6885
|
-
const t =
|
|
6885
|
+
const t = z(e.fill), r = e.fillAlpha < 1 ? re(t, e.fillAlpha) : t;
|
|
6886
6886
|
if (e.strokeWidth <= 0) return { backgroundColor: r };
|
|
6887
6887
|
const n = e.stroke ?? Rc(t, em);
|
|
6888
6888
|
return {
|
|
@@ -7062,7 +7062,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7062
7062
|
}, v.id);
|
|
7063
7063
|
})
|
|
7064
7064
|
});
|
|
7065
|
-
}, gm = (e, t) => e.
|
|
7065
|
+
}, gm = (e, t) => e.hasAuthoredFill ? z(e.fill) : t ?? z(e.fill), fm = (e) => e.hasAuthoredTextColor ? e.textColor : Qr(e.textColor, z(e.fill)), pm = (e, t) => ({
|
|
7066
7066
|
..._e(e.fill, t),
|
|
7067
7067
|
borderRadius: It(e.cornerRadius),
|
|
7068
7068
|
padding: `${e.paddingBlock}px ${e.paddingInline}px`,
|
|
@@ -7132,7 +7132,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7132
7132
|
} : {
|
|
7133
7133
|
width: t * e,
|
|
7134
7134
|
height: t
|
|
7135
|
-
}, km = "_1agclyl0", Em = "_1agclyl1", Pm = "_1agclyl2", as = ({ x: e, y: t, width: r, height: n, text: o,
|
|
7135
|
+
}, km = "_1agclyl0", Em = "_1agclyl1", Pm = "_1agclyl2", as = ({ x: e, y: t, width: r, height: n, text: o, rotated: a, labelRole: i, position: s, coordType: d, backdropColor: c }) => {
|
|
7136
7136
|
const u = O(), h = I(pr, u), g = I(Ov, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, v = h[i][s], m = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, p = Im(i, d, v), A = Cm(v, p, c, g), x = {
|
|
7137
7137
|
x: e - r / 2,
|
|
7138
7138
|
y: t - n / 2,
|
|
@@ -7140,7 +7140,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7140
7140
|
height: n
|
|
7141
7141
|
}, w = gr(v.cornerRadius), k = v.shadow === void 0 ? void 0 : Ye(v.shadow), E = {
|
|
7142
7142
|
className: Em,
|
|
7143
|
-
fill: v.fill === void 0 ? void 0 :
|
|
7143
|
+
fill: v.fill === void 0 ? void 0 : z(v.fill),
|
|
7144
7144
|
style: k === void 0 ? void 0 : { filter: k },
|
|
7145
7145
|
...m ? {
|
|
7146
7146
|
stroke: v.stroke,
|
|
@@ -7173,19 +7173,19 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7173
7173
|
children: St(o, v.textTransform)
|
|
7174
7174
|
})]
|
|
7175
7175
|
});
|
|
7176
|
-
}, Rm = (e, t) => e.
|
|
7176
|
+
}, Rm = (e, t) => e.hasAuthoredTextColor || t === void 0 ? e.textColor : e.hasThemedTextColor ? Qr(e.textColor, t) : $o(t), Cm = (e, t, r, n) => {
|
|
7177
7177
|
if (r === void 0) return;
|
|
7178
7178
|
const o = Lm(e);
|
|
7179
7179
|
if (o !== void 0) return o;
|
|
7180
|
-
const a = t && e.fill !== void 0 ?
|
|
7180
|
+
const a = t && e.fill !== void 0 ? z(e.fill) : void 0, i = a === void 0 ? void 0 : zt(void 0, a);
|
|
7181
7181
|
if (i !== void 0) return i;
|
|
7182
|
-
const s =
|
|
7182
|
+
const s = zt(r, n) ?? Ll(r);
|
|
7183
7183
|
if (s !== void 0)
|
|
7184
|
-
return
|
|
7184
|
+
return zt(a, s);
|
|
7185
7185
|
}, Lm = (e) => {
|
|
7186
7186
|
if (!(e.textOutlineColor === void 0 || (e.textOutlineWidth ?? 0) <= 0))
|
|
7187
|
-
return
|
|
7188
|
-
}, Im = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", Tm = ({ panelRect: e, formattingLocale: t, plotBottomY: r,
|
|
7187
|
+
return zt(void 0, e.textOutlineColor);
|
|
7188
|
+
}, Im = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", Tm = ({ panelRect: e, formattingLocale: t, plotBottomY: r, hasReservedFooterSpace: n }) => {
|
|
7189
7189
|
const o = Oe(), a = Ke(), i = B(oe((v) => ({
|
|
7190
7190
|
layers: v.layers,
|
|
7191
7191
|
coordSystem: v.coordSystem,
|
|
@@ -7207,7 +7207,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7207
7207
|
readers: s,
|
|
7208
7208
|
formattingLocale: t,
|
|
7209
7209
|
plotBottomY: r,
|
|
7210
|
-
|
|
7210
|
+
hasReservedFooterSpace: n,
|
|
7211
7211
|
resolvePlacement: d
|
|
7212
7212
|
}), [
|
|
7213
7213
|
i,
|
|
@@ -7233,7 +7233,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7233
7233
|
width: v.width,
|
|
7234
7234
|
height: v.height,
|
|
7235
7235
|
text: v.text,
|
|
7236
|
-
|
|
7236
|
+
rotated: v.rotated,
|
|
7237
7237
|
labelRole: v.role,
|
|
7238
7238
|
position: v.position,
|
|
7239
7239
|
coordType: i.coordSystem.type,
|
|
@@ -7411,10 +7411,10 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7411
7411
|
case "auto":
|
|
7412
7412
|
return e - r;
|
|
7413
7413
|
}
|
|
7414
|
-
},
|
|
7414
|
+
}, zm = {
|
|
7415
7415
|
fill: "transparent",
|
|
7416
7416
|
pointerEvents: "all"
|
|
7417
|
-
}, Nn = ({ placement: e, text: t, style: r,
|
|
7417
|
+
}, Nn = ({ placement: e, text: t, style: r, hitTestable: n, bounds: o }) => /* @__PURE__ */ S(T, { children: [n && /* @__PURE__ */ l(Vm, {
|
|
7418
7418
|
placement: e,
|
|
7419
7419
|
text: t,
|
|
7420
7420
|
style: r,
|
|
@@ -7428,7 +7428,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7428
7428
|
...ur(r),
|
|
7429
7429
|
fill: r.textColor,
|
|
7430
7430
|
children: St(t, r.textTransform)
|
|
7431
|
-
})] }),
|
|
7431
|
+
})] }), Vm = ({ placement: e, text: t, style: r, bounds: n }) => {
|
|
7432
7432
|
const o = Oe(), { fonts: a } = Ke();
|
|
7433
7433
|
return /* @__PURE__ */ l("rect", {
|
|
7434
7434
|
...b(() => Om(e, o.measureText(t, te(r, a.familyDefault)), 3, n), [
|
|
@@ -7439,9 +7439,9 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7439
7439
|
a.familyDefault,
|
|
7440
7440
|
n
|
|
7441
7441
|
]),
|
|
7442
|
-
...
|
|
7442
|
+
...zm
|
|
7443
7443
|
});
|
|
7444
|
-
}, Ym = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o, axisSize: a, stepPx: i = 1 / 0,
|
|
7444
|
+
}, Ym = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o, axisSize: a, stepPx: i = 1 / 0, hitTestable: s = !1 }) => {
|
|
7445
7445
|
const { offset: d } = o, c = b(() => Bm({
|
|
7446
7446
|
edge: e,
|
|
7447
7447
|
position: t,
|
|
@@ -7458,7 +7458,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7458
7458
|
placement: c,
|
|
7459
7459
|
text: n,
|
|
7460
7460
|
style: o,
|
|
7461
|
-
|
|
7461
|
+
hitTestable: s,
|
|
7462
7462
|
bounds: b(() => ({
|
|
7463
7463
|
edge: e,
|
|
7464
7464
|
stepPx: i,
|
|
@@ -7495,7 +7495,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7495
7495
|
return /* @__PURE__ */ S("g", {
|
|
7496
7496
|
...p ? Tn(e.scaleAestheticKey, g) : void 0,
|
|
7497
7497
|
cursor: p ? "pointer" : void 0,
|
|
7498
|
-
children: [e.
|
|
7498
|
+
children: [e.showTicks && /* @__PURE__ */ l("line", {
|
|
7499
7499
|
...m,
|
|
7500
7500
|
stroke: i.stroke,
|
|
7501
7501
|
strokeWidth: i.strokeWidth,
|
|
@@ -7509,7 +7509,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7509
7509
|
tickLabelStyle: a,
|
|
7510
7510
|
axisSize: d,
|
|
7511
7511
|
stepPx: u?.[g],
|
|
7512
|
-
|
|
7512
|
+
hitTestable: p
|
|
7513
7513
|
})]
|
|
7514
7514
|
}, g);
|
|
7515
7515
|
})]
|
|
@@ -7550,14 +7550,14 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7550
7550
|
const r = I(Si, O()), n = He();
|
|
7551
7551
|
return /* @__PURE__ */ l(T, { children: e.map((o) => {
|
|
7552
7552
|
const a = t[o.position];
|
|
7553
|
-
return !a || !o.
|
|
7553
|
+
return !a || !o.visible ? null : /* @__PURE__ */ l(Qm, {
|
|
7554
7554
|
axis: o,
|
|
7555
7555
|
rect: a,
|
|
7556
7556
|
labelStyle: r[Ae(o.scaleAestheticKey)],
|
|
7557
|
-
|
|
7557
|
+
hitTestable: n
|
|
7558
7558
|
}, `axis-label-${o.position}`);
|
|
7559
7559
|
}) });
|
|
7560
|
-
}, Qm = ({ axis: e, rect: t, labelStyle: r,
|
|
7560
|
+
}, Qm = ({ axis: e, rect: t, labelStyle: r, hitTestable: n }) => {
|
|
7561
7561
|
const o = b(() => Mm(e.position, t), [e.position, t]), a = n && e.label !== null && e.label !== "", i = a ? Tn(e.scaleAestheticKey) : void 0;
|
|
7562
7562
|
return /* @__PURE__ */ S("g", {
|
|
7563
7563
|
transform: `translate(${t.x}, ${t.y})`,
|
|
@@ -7567,13 +7567,13 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7567
7567
|
placement: o,
|
|
7568
7568
|
text: e.label ?? "",
|
|
7569
7569
|
style: r,
|
|
7570
|
-
|
|
7570
|
+
hitTestable: a
|
|
7571
7571
|
})]
|
|
7572
7572
|
});
|
|
7573
7573
|
}, Xm = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ l(T, { children: e.map((r) => {
|
|
7574
7574
|
if (r.geometry !== "linear") return null;
|
|
7575
7575
|
const n = t[r.position];
|
|
7576
|
-
return !n || !r.
|
|
7576
|
+
return !n || !r.visible ? null : /* @__PURE__ */ l(jm, {
|
|
7577
7577
|
formattedAxis: r,
|
|
7578
7578
|
rect: n
|
|
7579
7579
|
}, r.scaleAestheticKey);
|
|
@@ -7593,7 +7593,7 @@ var hm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7593
7593
|
height: r.height,
|
|
7594
7594
|
style: { overflow: "visible" },
|
|
7595
7595
|
children: e.map((u) => {
|
|
7596
|
-
if (u.geometry !== "linear" || !u.
|
|
7596
|
+
if (u.geometry !== "linear" || !u.showGrid) return null;
|
|
7597
7597
|
const h = Ae(u.scaleAestheticKey) === "x" ? i : s;
|
|
7598
7598
|
if (h.strokeWidth <= 0) return null;
|
|
7599
7599
|
const g = u.position === "bottom" || u.position === "top", f = ma(h.dashArray, h.strokeWidth), v = rt(h.dashArray, f);
|
|
@@ -7704,14 +7704,14 @@ var ss = (e, t) => {
|
|
|
7704
7704
|
height: t.height,
|
|
7705
7705
|
overflow: "visible",
|
|
7706
7706
|
"data-testid": "polar-axis-ticks",
|
|
7707
|
-
children: [s?.
|
|
7707
|
+
children: [s?.visible && h.map(({ tick: f, tickIndex: v, radiusNorm: m }) => /* @__PURE__ */ l(Fo, {
|
|
7708
7708
|
scaleAestheticKey: s.scaleAestheticKey,
|
|
7709
7709
|
tickIndex: v,
|
|
7710
7710
|
placement: Go(se(d, m, a), "middle"),
|
|
7711
7711
|
label: f.formattedLabel,
|
|
7712
7712
|
labelStyle: g(s),
|
|
7713
|
-
|
|
7714
|
-
}, `radial-label-${v}`)), i.
|
|
7713
|
+
hitTestable: n
|
|
7714
|
+
}, `radial-label-${v}`)), i.visible && i.ticks.map((f, v) => {
|
|
7715
7715
|
if (f.position >= 1 - 1e-9) return null;
|
|
7716
7716
|
const m = c(f.position), p = se(m, (a.radius + Is) / a.radius, a);
|
|
7717
7717
|
return /* @__PURE__ */ l(Fo, {
|
|
@@ -7720,16 +7720,16 @@ var ss = (e, t) => {
|
|
|
7720
7720
|
placement: Go(p, n0(m)),
|
|
7721
7721
|
label: f.formattedLabel,
|
|
7722
7722
|
labelStyle: g(i),
|
|
7723
|
-
|
|
7723
|
+
hitTestable: n
|
|
7724
7724
|
}, `rim-label-${v}`);
|
|
7725
7725
|
})]
|
|
7726
7726
|
});
|
|
7727
|
-
}, Fo = ({ scaleAestheticKey: e, tickIndex: t, placement: r, label: n, labelStyle: o,
|
|
7727
|
+
}, Fo = ({ scaleAestheticKey: e, tickIndex: t, placement: r, label: n, labelStyle: o, hitTestable: a }) => {
|
|
7728
7728
|
const i = /* @__PURE__ */ l(Nn, {
|
|
7729
7729
|
placement: r,
|
|
7730
7730
|
text: n,
|
|
7731
7731
|
style: o,
|
|
7732
|
-
|
|
7732
|
+
hitTestable: a
|
|
7733
7733
|
});
|
|
7734
7734
|
return a ? /* @__PURE__ */ l("g", {
|
|
7735
7735
|
...Tn(e, t),
|
|
@@ -7772,12 +7772,12 @@ var ss = (e, t) => {
|
|
|
7772
7772
|
overflow: "visible",
|
|
7773
7773
|
"data-testid": "polar-grid",
|
|
7774
7774
|
children: [
|
|
7775
|
-
c?.
|
|
7775
|
+
c?.showGrid && c.ticks.map((f, v) => {
|
|
7776
7776
|
const m = g(f.position) * s.radius;
|
|
7777
7777
|
return m <= 0 || f.position >= 1 ? null : /* @__PURE__ */ l(kr, {
|
|
7778
7778
|
axis: Ae(c.scaleAestheticKey),
|
|
7779
7779
|
lineStyle: o,
|
|
7780
|
-
|
|
7780
|
+
hitTestable: n,
|
|
7781
7781
|
draw: (p) => /* @__PURE__ */ l("circle", {
|
|
7782
7782
|
cx: s.centerX,
|
|
7783
7783
|
cy: s.centerY,
|
|
@@ -7787,10 +7787,10 @@ var ss = (e, t) => {
|
|
|
7787
7787
|
})
|
|
7788
7788
|
}, `ring-${v}`);
|
|
7789
7789
|
}),
|
|
7790
|
-
c?.
|
|
7790
|
+
c?.showGrid && /* @__PURE__ */ l(kr, {
|
|
7791
7791
|
axis: Ae(c.scaleAestheticKey),
|
|
7792
7792
|
lineStyle: o,
|
|
7793
|
-
|
|
7793
|
+
hitTestable: n,
|
|
7794
7794
|
draw: (f) => /* @__PURE__ */ l("circle", {
|
|
7795
7795
|
cx: s.centerX,
|
|
7796
7796
|
cy: s.centerY,
|
|
@@ -7799,13 +7799,13 @@ var ss = (e, t) => {
|
|
|
7799
7799
|
...f
|
|
7800
7800
|
})
|
|
7801
7801
|
}),
|
|
7802
|
-
d.
|
|
7802
|
+
d.showGrid && d.ticks.map((f, v) => {
|
|
7803
7803
|
if (f.position >= 1 - 1e-9) return null;
|
|
7804
7804
|
const m = h(f.position), p = se(m, u, s), A = se(m, 1, s);
|
|
7805
7805
|
return /* @__PURE__ */ l(kr, {
|
|
7806
7806
|
axis: Ae(d.scaleAestheticKey),
|
|
7807
7807
|
lineStyle: a,
|
|
7808
|
-
|
|
7808
|
+
hitTestable: n,
|
|
7809
7809
|
draw: (x) => /* @__PURE__ */ l("line", {
|
|
7810
7810
|
x1: p.x,
|
|
7811
7811
|
y1: p.y,
|
|
@@ -7817,7 +7817,7 @@ var ss = (e, t) => {
|
|
|
7817
7817
|
})
|
|
7818
7818
|
]
|
|
7819
7819
|
});
|
|
7820
|
-
}, kr = ({ axis: e, lineStyle: t,
|
|
7820
|
+
}, kr = ({ axis: e, lineStyle: t, hitTestable: r, draw: n }) => {
|
|
7821
7821
|
if (t.strokeWidth <= 0) return null;
|
|
7822
7822
|
const o = n({
|
|
7823
7823
|
stroke: t.stroke,
|
|
@@ -7834,13 +7834,13 @@ var ss = (e, t) => {
|
|
|
7834
7834
|
}) : o;
|
|
7835
7835
|
}, $t = ({ renderer: e, children: t, ...r }) => e.overpaintPlacement === "manual" ? t : /* @__PURE__ */ l(ui, {
|
|
7836
7836
|
...r,
|
|
7837
|
-
|
|
7837
|
+
empty: Gr(t),
|
|
7838
7838
|
children: t
|
|
7839
|
-
}), Gr = (e) => e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Gr) : Kl(e) && (e.type === Pt || e.type === "g") ? Gr(e.props.children) : !1, a0 = ({ layer: e,
|
|
7839
|
+
}), Gr = (e) => e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Gr) : Kl(e) && (e.type === Pt || e.type === "g") ? Gr(e.props.children) : !1, a0 = ({ layer: e, dimmed: t, dimStyle: r, ...n }) => {
|
|
7840
7840
|
const o = Ai(e.id), a = od(e, G(e)), i = t ? r.filter : void 0, s = a && i ? `${a} ${i}` : a || i, d = o?.type === "fade", c = b(() => ({
|
|
7841
7841
|
layerId: e.id,
|
|
7842
7842
|
paintsShadow: a !== void 0,
|
|
7843
|
-
|
|
7843
|
+
fading: d
|
|
7844
7844
|
}), [
|
|
7845
7845
|
e.id,
|
|
7846
7846
|
a,
|
|
@@ -7858,19 +7858,19 @@ var ss = (e, t) => {
|
|
|
7858
7858
|
})
|
|
7859
7859
|
})
|
|
7860
7860
|
});
|
|
7861
|
-
return d ? /* @__PURE__ */ l(
|
|
7861
|
+
return d ? /* @__PURE__ */ l(V.g, {
|
|
7862
7862
|
initial: { opacity: 0 },
|
|
7863
7863
|
animate: { opacity: 1 },
|
|
7864
7864
|
transition: ba(o),
|
|
7865
7865
|
children: u
|
|
7866
7866
|
}) : u;
|
|
7867
|
-
}, i0 = ({ layer: e, coordSystem: t,
|
|
7867
|
+
}, i0 = ({ layer: e, coordSystem: t, animateTransitions: r, formattingLocale: n, panelRect: o, live: a }) => {
|
|
7868
7868
|
const i = de(), s = Ai(e.id), { colorScheme: d } = ee(), c = G(e), u = i(e.geom, t.type);
|
|
7869
7869
|
if (u === null) return null;
|
|
7870
7870
|
const h = vr(u.render), g = {
|
|
7871
7871
|
layer: e,
|
|
7872
7872
|
coordSystem: t,
|
|
7873
|
-
|
|
7873
|
+
animateTransitions: r,
|
|
7874
7874
|
formattingLocale: n,
|
|
7875
7875
|
intro: s,
|
|
7876
7876
|
panelRect: o,
|
|
@@ -7909,7 +7909,7 @@ function s0({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
return o;
|
|
7911
7911
|
}
|
|
7912
|
-
var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o,
|
|
7912
|
+
var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, animateTransitions: a, panelRect: i, formattingLocale: s }) => {
|
|
7913
7913
|
const d = B((w) => w.config.numberFormat), c = b(() => s0({
|
|
7914
7914
|
renderer: e,
|
|
7915
7915
|
layer: t,
|
|
@@ -7937,7 +7937,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7937
7937
|
layer: r,
|
|
7938
7938
|
sourceLayer: t,
|
|
7939
7939
|
coordSystem: o,
|
|
7940
|
-
|
|
7940
|
+
animateTransitions: a,
|
|
7941
7941
|
formattingLocale: s,
|
|
7942
7942
|
panelRect: i,
|
|
7943
7943
|
colorScheme: u,
|
|
@@ -7953,7 +7953,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7953
7953
|
observation: w,
|
|
7954
7954
|
anchor: E,
|
|
7955
7955
|
panelRect: i,
|
|
7956
|
-
fill: tr(g, t, w) ??
|
|
7956
|
+
fill: tr(g, t, w) ?? zr,
|
|
7957
7957
|
symbol: h.get("symbol", w) ?? "circle",
|
|
7958
7958
|
dotRadius: (h.get("size", w) ?? tt) / 2,
|
|
7959
7959
|
readSegmentY: f,
|
|
@@ -7988,7 +7988,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7988
7988
|
width: m.width,
|
|
7989
7989
|
height: m.height,
|
|
7990
7990
|
text: v,
|
|
7991
|
-
|
|
7991
|
+
rotated: !1,
|
|
7992
7992
|
labelRole: "observation",
|
|
7993
7993
|
position: "outside",
|
|
7994
7994
|
coordType: "cartesian"
|
|
@@ -8044,7 +8044,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8044
8044
|
filter: xa(kl(n))
|
|
8045
8045
|
};
|
|
8046
8046
|
}, [e, t]);
|
|
8047
|
-
}, g0 = "var(--to1jkx0)", f0 = "var(--to1jkx1)", ls = "to1jkx2", p0 = "to1jkx3", m0 = ({
|
|
8047
|
+
}, g0 = "var(--to1jkx0)", f0 = "var(--to1jkx1)", ls = "to1jkx2", p0 = "to1jkx3", m0 = ({ animateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
8048
8048
|
const { layers: n, coordSystem: o } = B(oe((s) => ({
|
|
8049
8049
|
layers: s.layers,
|
|
8050
8050
|
coordSystem: s.coordSystem
|
|
@@ -8065,7 +8065,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8065
8065
|
children: a.map((s) => /* @__PURE__ */ S(Pt, { children: [/* @__PURE__ */ l(cs, {
|
|
8066
8066
|
layer: s,
|
|
8067
8067
|
coordSystem: o,
|
|
8068
|
-
|
|
8068
|
+
animateTransitions: e,
|
|
8069
8069
|
panelRect: t,
|
|
8070
8070
|
formattingLocale: r
|
|
8071
8071
|
}), /* @__PURE__ */ l(h0, {
|
|
@@ -8075,7 +8075,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8075
8075
|
})] }, `${s.id}-${ds(o)}`))
|
|
8076
8076
|
})
|
|
8077
8077
|
});
|
|
8078
|
-
}, ds = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, cs = ({ layer: e, coordSystem: t,
|
|
8078
|
+
}, ds = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, cs = ({ layer: e, coordSystem: t, animateTransitions: r, panelRect: n, formattingLocale: o, live: a, dimOnHover: i = !0 }) => {
|
|
8079
8079
|
const s = de(), d = b(() => s(e.geom, t.type), [
|
|
8080
8080
|
s,
|
|
8081
8081
|
e,
|
|
@@ -8083,7 +8083,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8083
8083
|
]), c = e.highlight, u = v0(e), { colorScheme: h } = ee(), g = {
|
|
8084
8084
|
layer: e,
|
|
8085
8085
|
coordSystem: t,
|
|
8086
|
-
|
|
8086
|
+
animateTransitions: r,
|
|
8087
8087
|
formattingLocale: o,
|
|
8088
8088
|
panelRect: n,
|
|
8089
8089
|
colorScheme: h,
|
|
@@ -8096,8 +8096,8 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8096
8096
|
/* @__PURE__ */ l(a0, {
|
|
8097
8097
|
layer: e,
|
|
8098
8098
|
coordSystem: t,
|
|
8099
|
-
|
|
8100
|
-
|
|
8099
|
+
animateTransitions: r,
|
|
8100
|
+
dimmed: c?.composition.dimmed ?? !1,
|
|
8101
8101
|
dimStyle: u,
|
|
8102
8102
|
formattingLocale: o,
|
|
8103
8103
|
panelRect: n,
|
|
@@ -8113,7 +8113,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8113
8113
|
matchedLayer: c.composition.matchedLayer,
|
|
8114
8114
|
overlayCandidates: c.composition.overlayCandidates,
|
|
8115
8115
|
coordSystem: t,
|
|
8116
|
-
|
|
8116
|
+
animateTransitions: r,
|
|
8117
8117
|
panelRect: n,
|
|
8118
8118
|
formattingLocale: o
|
|
8119
8119
|
})
|
|
@@ -8125,7 +8125,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8125
8125
|
}, x0 = (e) => rr({
|
|
8126
8126
|
...e.opacity === void 0 ? {} : { [g0]: String(e.opacity) },
|
|
8127
8127
|
...e.filter === void 0 ? {} : { [f0]: e.filter }
|
|
8128
|
-
}), A0 = ({ panelRect: e,
|
|
8128
|
+
}), A0 = ({ panelRect: e, animateTransitions: t, formattingLocale: r }) => {
|
|
8129
8129
|
const { layers: n, coordSystem: o } = B(oe((c) => ({
|
|
8130
8130
|
layers: c.layers,
|
|
8131
8131
|
coordSystem: c.coordSystem
|
|
@@ -8149,7 +8149,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8149
8149
|
height: e.height,
|
|
8150
8150
|
className: ls,
|
|
8151
8151
|
"data-testid": "live-geom-layers",
|
|
8152
|
-
...Xi({
|
|
8152
|
+
...Xi({ live: !0 }),
|
|
8153
8153
|
children: /* @__PURE__ */ l(sn, {
|
|
8154
8154
|
size: s,
|
|
8155
8155
|
children: d.map((c) => /* @__PURE__ */ l(b0, {
|
|
@@ -8157,12 +8157,12 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8157
8157
|
coordSystem: o,
|
|
8158
8158
|
readPanelPoint: i,
|
|
8159
8159
|
panelRect: e,
|
|
8160
|
-
|
|
8160
|
+
animateTransitions: t,
|
|
8161
8161
|
formattingLocale: r
|
|
8162
8162
|
}, `${c.id}-${ds(o)}`))
|
|
8163
8163
|
})
|
|
8164
8164
|
});
|
|
8165
|
-
}, b0 = ({ layer: e, coordSystem: t, readPanelPoint: r, panelRect: n,
|
|
8165
|
+
}, b0 = ({ layer: e, coordSystem: t, readPanelPoint: r, panelRect: n, animateTransitions: o, formattingLocale: a }) => {
|
|
8166
8166
|
const i = xh(e.id), s = b(() => ({
|
|
8167
8167
|
pushHover: i,
|
|
8168
8168
|
readPanelPoint: r
|
|
@@ -8170,16 +8170,16 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8170
8170
|
return W(() => () => i(null), [i]), /* @__PURE__ */ l(cs, {
|
|
8171
8171
|
layer: e,
|
|
8172
8172
|
coordSystem: t,
|
|
8173
|
-
|
|
8173
|
+
animateTransitions: o,
|
|
8174
8174
|
panelRect: n,
|
|
8175
8175
|
formattingLocale: a,
|
|
8176
8176
|
live: s,
|
|
8177
|
-
|
|
8177
|
+
dimOnHover: !d
|
|
8178
8178
|
});
|
|
8179
8179
|
}, S0 = (e, t) => {
|
|
8180
8180
|
const r = de();
|
|
8181
8181
|
return Qe() ? [] : e.filter((n) => di(r(n.geom, t.type)));
|
|
8182
|
-
}, w0 = "_17uhij30", k0 = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i,
|
|
8182
|
+
}, w0 = "_17uhij30", k0 = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, animateTransitions: s, formattingLocale: d, plotBottomY: c, hasReservedFooterSpace: u, editable: h, showAnnotations: g }) => {
|
|
8183
8183
|
const f = F(null);
|
|
8184
8184
|
Mp(f);
|
|
8185
8185
|
const v = xe("Grid", Jm), m = xe("AxisTicks", Xm), p = xe("AxisLabel", qm), A = b(() => Wr(n, t), [n, t]), x = b(() => Wr(o, t), [o, t]), w = b(() => Wo(a, t), [a, t]), k = b(() => Wo(i, t), [i, t]), E = Qe(), R = g && !E;
|
|
@@ -8222,7 +8222,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8222
8222
|
panelFrameRect: A
|
|
8223
8223
|
}),
|
|
8224
8224
|
/* @__PURE__ */ l(m0, {
|
|
8225
|
-
|
|
8225
|
+
animateTransitions: s,
|
|
8226
8226
|
panelRect: x,
|
|
8227
8227
|
formattingLocale: d
|
|
8228
8228
|
}),
|
|
@@ -8234,12 +8234,12 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8234
8234
|
panelRect: x,
|
|
8235
8235
|
formattingLocale: d,
|
|
8236
8236
|
plotBottomY: c,
|
|
8237
|
-
|
|
8237
|
+
hasReservedFooterSpace: u
|
|
8238
8238
|
}),
|
|
8239
8239
|
R && /* @__PURE__ */ S(T, { children: [
|
|
8240
8240
|
/* @__PURE__ */ l(Xp, {
|
|
8241
8241
|
panelRect: x,
|
|
8242
|
-
|
|
8242
|
+
editable: h
|
|
8243
8243
|
}),
|
|
8244
8244
|
/* @__PURE__ */ l(Oo, {
|
|
8245
8245
|
panelRect: x,
|
|
@@ -8249,9 +8249,9 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8249
8249
|
panelRect: x,
|
|
8250
8250
|
zOrder: "foreground"
|
|
8251
8251
|
}),
|
|
8252
|
-
/* @__PURE__ */ l(
|
|
8252
|
+
/* @__PURE__ */ l(Vp, {
|
|
8253
8253
|
panelRect: x,
|
|
8254
|
-
|
|
8254
|
+
editable: h
|
|
8255
8255
|
}),
|
|
8256
8256
|
/* @__PURE__ */ l(im, { panelRect: x }),
|
|
8257
8257
|
/* @__PURE__ */ l(bm, { panelRect: x }),
|
|
@@ -8259,7 +8259,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8259
8259
|
] }),
|
|
8260
8260
|
/* @__PURE__ */ l(Tp, { panelRect: x }),
|
|
8261
8261
|
/* @__PURE__ */ l(A0, {
|
|
8262
|
-
|
|
8262
|
+
animateTransitions: s,
|
|
8263
8263
|
panelRect: x,
|
|
8264
8264
|
formattingLocale: d
|
|
8265
8265
|
})
|
|
@@ -8277,23 +8277,23 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8277
8277
|
}, E0 = (e) => {
|
|
8278
8278
|
let t, r;
|
|
8279
8279
|
return "aspectRatio" in e ? "intrinsicWidth" in e ? (t = e.intrinsicWidth, r = t / e.aspectRatio) : (r = e.intrinsicHeight, t = r * e.aspectRatio) : (t = e.intrinsicWidth, r = e.intrinsicHeight), {
|
|
8280
|
-
width:
|
|
8281
|
-
height:
|
|
8280
|
+
width: zo(t, "width"),
|
|
8281
|
+
height: zo(r, "height")
|
|
8282
8282
|
};
|
|
8283
|
-
},
|
|
8283
|
+
}, zo = (e, t) => {
|
|
8284
8284
|
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new Cs({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
8285
8285
|
return e;
|
|
8286
8286
|
}, P0 = ({ sizing: e, onResize: t, children: r }) => {
|
|
8287
8287
|
const n = hi({ onResize: t }), o = F(!1);
|
|
8288
8288
|
if (W(() => {
|
|
8289
|
-
e.mode === "responsive" && (n.
|
|
8289
|
+
e.mode === "responsive" && (n.unmeasured || n.width > 0 && n.height > 0 || o.current || (o.current = !0, console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)));
|
|
8290
8290
|
}, [
|
|
8291
8291
|
e.mode,
|
|
8292
|
-
n.
|
|
8292
|
+
n.unmeasured,
|
|
8293
8293
|
n.width,
|
|
8294
8294
|
n.height
|
|
8295
8295
|
]), e.mode === "keepAspectRatio") {
|
|
8296
|
-
const { intrinsicSize: i, canRender: s, outerStyles: d, innerStyles: c } = R0(e, n.width, !n.
|
|
8296
|
+
const { intrinsicSize: i, canRender: s, outerStyles: d, innerStyles: c } = R0(e, n.width, !n.unmeasured);
|
|
8297
8297
|
return /* @__PURE__ */ l("div", {
|
|
8298
8298
|
ref: n.setElement,
|
|
8299
8299
|
style: d,
|
|
@@ -8316,7 +8316,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8316
8316
|
height: e.height
|
|
8317
8317
|
})
|
|
8318
8318
|
});
|
|
8319
|
-
const a = !n.
|
|
8319
|
+
const a = !n.unmeasured && n.width > 0 && n.height > 0;
|
|
8320
8320
|
return /* @__PURE__ */ l("div", {
|
|
8321
8321
|
ref: n.setElement,
|
|
8322
8322
|
style: {
|
|
@@ -8382,7 +8382,7 @@ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8382
8382
|
measurements: o
|
|
8383
8383
|
};
|
|
8384
8384
|
}, I0 = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, T0 = () => null, B0 = "_1vl0pke0", M0 = "_1vl0pke1";
|
|
8385
|
-
var O0 = [], N0 = ({ graphChrome: e,
|
|
8385
|
+
var O0 = [], N0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef: o, children: a }) => {
|
|
8386
8386
|
const { themeClass: i, inlineVarsStyle: s } = En(), d = e.strokeWidth, c = d > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + d, { shadow: g, alpha: f, blendMode: v, fill: m, overpaint: p = O0 } = e, A = st([m, ...p]), x = A(m), w = typeof m != "string", k = b(() => ({
|
|
8387
8387
|
...n,
|
|
8388
8388
|
borderRadius: `${h}px`,
|
|
@@ -8500,18 +8500,18 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8500
8500
|
h,
|
|
8501
8501
|
L,
|
|
8502
8502
|
a
|
|
8503
|
-
]), gs = Oe(), ke = O(), Dn = I(G0, ke), Fn = I(oa, ke), Gn = I(Cn, ke), Wn = I(W0, ke), fs = I(
|
|
8503
|
+
]), gs = Oe(), ke = O(), Dn = I(G0, ke), Fn = I(oa, ke), Gn = I(Cn, ke), Wn = I(W0, ke), fs = I(z0, ke), ps = I(V0, ke), ms = I(Y0, ke), { fontFamily: yr, textScale: ys, strokeWidth: xr, fill: xs } = Dn, zn = b(() => ja(P, {}, yr), [P, yr]), ct = b(() => ({
|
|
8504
8504
|
width: Math.max(0, e - 2 * xr),
|
|
8505
8505
|
height: Math.max(0, t - 2 * xr)
|
|
8506
8506
|
}), [
|
|
8507
8507
|
e,
|
|
8508
8508
|
t,
|
|
8509
8509
|
xr
|
|
8510
|
-
]),
|
|
8510
|
+
]), Vn = b(() => Fg(p.brandMark.enabled, ct, p.brandMark.variant), [
|
|
8511
8511
|
p.brandMark.enabled,
|
|
8512
8512
|
p.brandMark.variant,
|
|
8513
8513
|
ct
|
|
8514
|
-
]), As = p.brandMark.placement === "footer" ?
|
|
8514
|
+
]), As = p.brandMark.placement === "footer" ? Vn : "hidden", bs = p.brandMark.placement === "header" ? Vn : "hidden", qe = b(() => dt ? {
|
|
8515
8515
|
formatted: dt,
|
|
8516
8516
|
size: m.size,
|
|
8517
8517
|
position: m.position,
|
|
@@ -8523,7 +8523,7 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8523
8523
|
f
|
|
8524
8524
|
]), Ot = Jv({
|
|
8525
8525
|
textMeasurer: gs,
|
|
8526
|
-
metrics:
|
|
8526
|
+
metrics: zn,
|
|
8527
8527
|
overrides: du()
|
|
8528
8528
|
}), Yn = b(() => Js(Fn), [Fn]), ut = Zv({
|
|
8529
8529
|
measurer: Ot,
|
|
@@ -8562,16 +8562,16 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8562
8562
|
children: /* @__PURE__ */ l(Zh, {
|
|
8563
8563
|
colorScheme: P,
|
|
8564
8564
|
textScale: ys,
|
|
8565
|
-
graphBackground:
|
|
8565
|
+
graphBackground: z(xs),
|
|
8566
8566
|
graphFontFamily: yr,
|
|
8567
8567
|
headingFontFamily: Wn.fontFamily,
|
|
8568
|
-
children: /* @__PURE__ */ l(
|
|
8569
|
-
metrics:
|
|
8568
|
+
children: /* @__PURE__ */ l(zc, {
|
|
8569
|
+
metrics: zn,
|
|
8570
8570
|
children: /* @__PURE__ */ l(tg, { children: /* @__PURE__ */ l(xg, {
|
|
8571
8571
|
panelRect: ae.panel,
|
|
8572
8572
|
children: /* @__PURE__ */ l(N0, {
|
|
8573
8573
|
graphChrome: Dn,
|
|
8574
|
-
|
|
8574
|
+
editable: H,
|
|
8575
8575
|
mode: i,
|
|
8576
8576
|
contentRef: H ? ce : void 0,
|
|
8577
8577
|
style: {
|
|
@@ -8587,9 +8587,9 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8587
8587
|
headerRect: ae.header,
|
|
8588
8588
|
mode: i,
|
|
8589
8589
|
title: p.title,
|
|
8590
|
-
|
|
8590
|
+
showTitle: p.showTitle,
|
|
8591
8591
|
subtitle: p.subtitle,
|
|
8592
|
-
|
|
8592
|
+
showSubtitle: p.showSubtitle,
|
|
8593
8593
|
headingStyle: Wn,
|
|
8594
8594
|
subtitleStyle: fs,
|
|
8595
8595
|
brandMark: bs
|
|
@@ -8602,11 +8602,11 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8602
8602
|
panelRect: ae.panel,
|
|
8603
8603
|
axisRects: ae.axes,
|
|
8604
8604
|
axisLabelRects: ae.axisLabels,
|
|
8605
|
-
|
|
8605
|
+
animateTransitions: w,
|
|
8606
8606
|
formattingLocale: L ?? h,
|
|
8607
8607
|
plotBottomY: Ss,
|
|
8608
|
-
|
|
8609
|
-
|
|
8608
|
+
hasReservedFooterSpace: ws,
|
|
8609
|
+
editable: H,
|
|
8610
8610
|
showAnnotations: M.annotations
|
|
8611
8611
|
}),
|
|
8612
8612
|
/* @__PURE__ */ l(Ce, {
|
|
@@ -8614,9 +8614,9 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8614
8614
|
footerRect: ae.footer,
|
|
8615
8615
|
mode: i,
|
|
8616
8616
|
caption: p.caption,
|
|
8617
|
-
|
|
8617
|
+
showCaption: p.showCaption,
|
|
8618
8618
|
source: p.source,
|
|
8619
|
-
|
|
8619
|
+
showSource: p.showSource,
|
|
8620
8620
|
captionStyle: ps,
|
|
8621
8621
|
sourceStyle: ms,
|
|
8622
8622
|
brandMark: As
|
|
@@ -8630,13 +8630,13 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8630
8630
|
rect: Nt.rect,
|
|
8631
8631
|
resolvedSize: Nt.resolvedSize,
|
|
8632
8632
|
visibleItemCount: Nt.visibleItemCount,
|
|
8633
|
-
|
|
8633
|
+
inDonutHole: qe !== void 0 && wl(qe)
|
|
8634
8634
|
}),
|
|
8635
8635
|
H && X !== null && /* @__PURE__ */ l(vs, {
|
|
8636
8636
|
frameElement: X,
|
|
8637
8637
|
panelRect: ae.panel,
|
|
8638
8638
|
formattedAxes: jn,
|
|
8639
|
-
|
|
8639
|
+
animateTransitions: w
|
|
8640
8640
|
}),
|
|
8641
8641
|
n && M.tooltips && /* @__PURE__ */ l(Rv, {})
|
|
8642
8642
|
]
|
|
@@ -8646,10 +8646,10 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8646
8646
|
})
|
|
8647
8647
|
})
|
|
8648
8648
|
});
|
|
8649
|
-
}, G0 = (e) => e.graph().resolve(), W0 = (e) => e.heading.h1().resolve(),
|
|
8649
|
+
}, G0 = (e) => e.graph().resolve(), W0 = (e) => e.heading.h1().resolve(), z0 = (e) => e.heading.h2().resolve(), V0 = (e) => e.caption().resolve(), Y0 = (e) => ({
|
|
8650
8650
|
label: e.source().resolve(),
|
|
8651
8651
|
link: e.source.link().resolve()
|
|
8652
|
-
}),
|
|
8652
|
+
}), zy = (e) => {
|
|
8653
8653
|
const t = N(ua), r = nn();
|
|
8654
8654
|
return b(() => e || (t ? {
|
|
8655
8655
|
commands: t.commands,
|
|
@@ -8667,7 +8667,7 @@ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8667
8667
|
t,
|
|
8668
8668
|
r
|
|
8669
8669
|
]);
|
|
8670
|
-
},
|
|
8670
|
+
}, Vy = (e) => Ql(e.subscribe, e.getScene, e.getScene), Yy = () => {
|
|
8671
8671
|
const { commands: e } = ee();
|
|
8672
8672
|
return e;
|
|
8673
8673
|
}, jy = (e) => {
|
|
@@ -8684,7 +8684,7 @@ export {
|
|
|
8684
8684
|
My as B,
|
|
8685
8685
|
py as Bt,
|
|
8686
8686
|
gp as C,
|
|
8687
|
-
|
|
8687
|
+
ze as Cn,
|
|
8688
8688
|
Ay as Ct,
|
|
8689
8689
|
Xe as D,
|
|
8690
8690
|
ha as Dn,
|
|
@@ -8765,7 +8765,7 @@ export {
|
|
|
8765
8765
|
Yp as h,
|
|
8766
8766
|
Sa as hn,
|
|
8767
8767
|
Sy as ht,
|
|
8768
|
-
|
|
8768
|
+
zy as i,
|
|
8769
8769
|
cy as in,
|
|
8770
8770
|
rg as it,
|
|
8771
8771
|
Tn as j,
|
|
@@ -8791,7 +8791,7 @@ export {
|
|
|
8791
8791
|
$h as pt,
|
|
8792
8792
|
Bi as q,
|
|
8793
8793
|
gy as qt,
|
|
8794
|
-
|
|
8794
|
+
Vy as r,
|
|
8795
8795
|
lr as rn,
|
|
8796
8796
|
og as rt,
|
|
8797
8797
|
Jm as s,
|