@graphysdk/react-renderer 1.9.0-beta.1791986576442 → 1.9.0-beta.1792062305376
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +3808 -3582
- package/dist/{history-chords-BPqfDj1I.js → history-chords-BRxNhg_4.js} +131 -128
- package/dist/{history-chords-B-jtYg4U.cjs → history-chords-C38FJsRv.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as cs, CachedTextMeasurer as Hn, DATA_LABEL_ROLES as us, DEFAULT_GEOM_COLOR as Wr, DEFAULT_HOVER_AFFORDANCE_COLOR as Gr, DEFAULT_POINT_SIZE_PX as $e, GROUP_VARIABLES as ne, HeuristicTextMeasurer as hs, HoverEngine as vs, InternalError as gs, LayoutCompiler as fs, NAMED_WEIGHTS as ct, POLAR_RIM_LABEL_GAP_PX as ps, POSITION_VARIABLES as ut, RESOLVED_DATA_LABEL_POSITIONS as ms, RESTING_HOVER_STATE as Gt, VISUAL_VARIABLES as Dn, alignUnitFractions as Oo, applyTextTransform as wt, areAnchorsEqual as ys, areEditMenuTriggersEqual as xs, areEditTargetsEqual as pt, areEndpointsComparable as Fn, arePointerRegionListsEqual as As, arePredicatesEqual as No, buildAverageLineSymbols as bs, buildBarRectBounds as ws, buildCalloutHitRegions as Ss, buildColumnKey as Vr, buildDataLabelsContent as ks, buildFontString as Es, buildHeadlineItemRows as Ho, buildLayerIntroPlan as Ps, buildObservationsTarget as Rs, buildPointSymbolInBox as Cs, buildPointSymbolPath as Ls, buildPolarBarArcPath as Fe, buildSliceGroupKey as zr, buildTooltipContent as Is, compositeColor as mr, computeArrow as Ts, computeDifferenceArrow as Bs, computeDirectLabelsLayout as Ms, computeLetterSpacingWidth as Os, computeLineBoxHeight as We, computePanelBorderPaths as Ns, computePanelBorderSizes as Hs, countLayerGeoms as Ds, createAreaPathGenerators as Yr, createDataLabelPlacementResolver as Fs, createLayerYValueFormatter as Ws, createLineFillAreaGenerator as Gs, createLinePathGenerator as jr, createPinnedNumberValueFormatter as Vs, createSegmentYReader as zs, createStableCellKeyGenerator as Ys, createStableKeyGenerator as we, ensureReadableTextColor as Kr, findAnnotation as js, findLayerById as qt, findPointerRegion as Wn, formatHeadline as Ks, formatLegends as Us, formatRuleValue as Qs, getAestheticFromScaleAestheticKey as Ae, getAlpha as Do, getAngleExtent as Xs, getBarRectBounds as Jt, getBoundingRect as qs, getDifferenceArrowLabelBox as Js, getGroup as ze, getHoverGuideLineProps as Zs, getHoverGuideRectProps as $s, getPaintedTileRect as Ur, getPointSymbolOuterRadius as _s, getPolarHoverGuideArcProps as el, getRadiusExtent as Fo, getShapeAnnotationStroke as tl, getSize as rl, getStackRole as nl, getUnionExtent as Wo, getX as q, getXMax as Go, getY as _, getYMax as Zt, isAnnotationMovable as ol, isFullTurnSweep as Qr, isGradientPaint as Vo, isImagePaint as al, isOpaquePaint as il, isPatternPaint as Xr, isPositionScale as Gn, isSafeUrl as qr, orderPointerRegions as sl, paintKey as kr, paintsInDonutHole as ll, pickFilters as dl, pickReadableTextColor as zo, placeCallouts as cl, polarToUnit as ul, positionToAngle as hl, prepareAreaObservations as Jr, prepareLineObservations as Zr, projectAnchorToPanel as At, projectRegionToPanel as $r, readAnchoredObservation as Yo, readColorGroupObservation as vl, readGeomColor as $t, readGeomEffects as J, readGroupRuleColor as jo, readMainAxis as St, removeAlpha as gl, resolveArrowAnnotationStyle as fl, resolveArrowColor as pl, resolveBarBorderTreatment as kt, resolveBarCornerRadiiPx as ml, resolveBarCornerRadiusPx as _r, resolveBarPaintOrigin as yl, resolveCalloutAnnotationStyle as Er, resolveChromeMargins as xl, resolveDataLabelStyle as Al, resolveDeferredAnchors as bl, resolveDifferenceArrowAnnotationStyle as Ko, resolveDirectLabelStyle as Uo, resolveGraphPadding as wl, resolveHeadlineItemStyle as Wt, resolveHeadlineNumberStyle as Qo, resolveHeadlinePlacement as Sl, resolveLegendItemStyle as Et, resolvePanelBorderStyle as Xo, resolvePolarBarCornerRadiusUnit as kl, resolveRuleLabelStyle as El, resolveSwatchGeomPaint as qo, resolveTooltipStyle as Pl, toFontSpec as te, toPaintColor as V, toPanelCursor as Rl, toPercent as C, toStrokeDasharray as
|
|
2
|
-
import { Fragment as _t, createContext as K, memo as ge, useCallback as
|
|
1
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as cs, CachedTextMeasurer as Hn, DATA_LABEL_ROLES as us, DEFAULT_GEOM_COLOR as Wr, DEFAULT_HOVER_AFFORDANCE_COLOR as Gr, DEFAULT_POINT_SIZE_PX as $e, GROUP_VARIABLES as ne, HeuristicTextMeasurer as hs, HoverEngine as vs, InternalError as gs, LayoutCompiler as fs, NAMED_WEIGHTS as ct, POLAR_RIM_LABEL_GAP_PX as ps, POSITION_VARIABLES as ut, RESOLVED_DATA_LABEL_POSITIONS as ms, RESTING_HOVER_STATE as Gt, VISUAL_VARIABLES as Dn, alignUnitFractions as Oo, applyTextTransform as wt, areAnchorsEqual as ys, areEditMenuTriggersEqual as xs, areEditTargetsEqual as pt, areEndpointsComparable as Fn, arePointerRegionListsEqual as As, arePredicatesEqual as No, buildAverageLineSymbols as bs, buildBarRectBounds as ws, buildCalloutHitRegions as Ss, buildColumnKey as Vr, buildDataLabelsContent as ks, buildFontString as Es, buildHeadlineItemRows as Ho, buildLayerIntroPlan as Ps, buildObservationsTarget as Rs, buildPointSymbolInBox as Cs, buildPointSymbolPath as Ls, buildPolarBarArcPath as Fe, buildSliceGroupKey as zr, buildTooltipContent as Is, compositeColor as mr, computeArrow as Ts, computeDifferenceArrow as Bs, computeDirectLabelsLayout as Ms, computeLetterSpacingWidth as Os, computeLineBoxHeight as We, computePanelBorderPaths as Ns, computePanelBorderSizes as Hs, countLayerGeoms as Ds, createAreaPathGenerators as Yr, createDataLabelPlacementResolver as Fs, createLayerYValueFormatter as Ws, createLineFillAreaGenerator as Gs, createLinePathGenerator as jr, createPinnedNumberValueFormatter as Vs, createSegmentYReader as zs, createStableCellKeyGenerator as Ys, createStableKeyGenerator as we, ensureReadableTextColor as Kr, findAnnotation as js, findLayerById as qt, findPointerRegion as Wn, formatHeadline as Ks, formatLegends as Us, formatRuleValue as Qs, getAestheticFromScaleAestheticKey as Ae, getAlpha as Do, getAngleExtent as Xs, getBarRectBounds as Jt, getBoundingRect as qs, getDifferenceArrowLabelBox as Js, getGroup as ze, getHoverGuideLineProps as Zs, getHoverGuideRectProps as $s, getPaintedTileRect as Ur, getPointSymbolOuterRadius as _s, getPolarHoverGuideArcProps as el, getRadiusExtent as Fo, getShapeAnnotationStroke as tl, getSize as rl, getStackRole as nl, getUnionExtent as Wo, getX as q, getXMax as Go, getY as _, getYMax as Zt, isAnnotationMovable as ol, isFullTurnSweep as Qr, isGradientPaint as Vo, isImagePaint as al, isOpaquePaint as il, isPatternPaint as Xr, isPositionScale as Gn, isSafeUrl as qr, orderPointerRegions as sl, paintKey as kr, paintsInDonutHole as ll, pickFilters as dl, pickReadableTextColor as zo, placeCallouts as cl, polarToUnit as ul, positionToAngle as hl, prepareAreaObservations as Jr, prepareLineObservations as Zr, projectAnchorToPanel as At, projectRegionToPanel as $r, readAnchoredObservation as Yo, readColorGroupObservation as vl, readGeomColor as $t, readGeomEffects as J, readGroupRuleColor as jo, readMainAxis as St, removeAlpha as gl, resolveArrowAnnotationStyle as fl, resolveArrowColor as pl, resolveBarBorderTreatment as kt, resolveBarCornerRadiiPx as ml, resolveBarCornerRadiusPx as _r, resolveBarPaintOrigin as yl, resolveCalloutAnnotationStyle as Er, resolveChromeMargins as xl, resolveDataLabelStyle as Al, resolveDeferredAnchors as bl, resolveDifferenceArrowAnnotationStyle as Ko, resolveDirectLabelStyle as Uo, resolveGraphPadding as wl, resolveHeadlineItemStyle as Wt, resolveHeadlineNumberStyle as Qo, resolveHeadlinePlacement as Sl, resolveLegendItemStyle as Et, resolvePanelBorderStyle as Xo, resolvePolarBarCornerRadiusUnit as kl, resolveRuleLabelStyle as El, resolveSwatchGeomPaint as qo, resolveTooltipStyle as Pl, toFontSpec as te, toPaintColor as V, toPanelCursor as Rl, toPercent as C, toStrokeDasharray as oe, toViewBoxX as Jo, toViewBoxY as Zo, truncateToWidth as $o, withAlpha as Cl } from "@graphysdk/viz-engine";
|
|
2
|
+
import { Fragment as _t, createContext as K, memo as ge, useCallback as he, useContext as W, useEffect as G, useId as U, useLayoutEffect as Ll, useMemo as b, useRef as D, useState as j, useSyncExternalStore as Il } from "react";
|
|
3
3
|
import { Fragment as T, jsx as s, jsxs as w } from "react/jsx-runtime";
|
|
4
4
|
import { useStore as _e } from "zustand";
|
|
5
5
|
import { animate as Pe, motion as z, useMotionValue as ye, useReducedMotion as Tl, useTransform as Nt } from "motion/react";
|
|
6
6
|
import { interpolatePath as Bl } from "d3-interpolate-path";
|
|
7
|
-
import { useShallow as
|
|
7
|
+
import { useShallow as le } from "zustand/react/shallow";
|
|
8
8
|
import { assignInlineVars as er } from "@vanilla-extract/dynamic";
|
|
9
9
|
import { createStore as en } from "zustand/vanilla";
|
|
10
10
|
import { createPortal as _o } from "react-dom";
|
|
@@ -22,7 +22,7 @@ import './history-chords.css';var Vn = Object.defineProperty, Hl = (e, t) => {
|
|
|
22
22
|
});
|
|
23
23
|
return t || Vn(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.1792062305376");
|
|
26
26
|
function Dl(e) {
|
|
27
27
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
28
28
|
}
|
|
@@ -149,7 +149,7 @@ var ra = K(null), ee = () => {
|
|
|
149
149
|
x: r,
|
|
150
150
|
y: r
|
|
151
151
|
};
|
|
152
|
-
},
|
|
152
|
+
}, se = (e, t, r = Xl) => {
|
|
153
153
|
const n = ul(e, t);
|
|
154
154
|
return {
|
|
155
155
|
x: r.centerX + n.x * r.radius,
|
|
@@ -158,8 +158,8 @@ var ra = K(null), ee = () => {
|
|
|
158
158
|
}, Ge = (e, t) => ({
|
|
159
159
|
x: Jo(e),
|
|
160
160
|
y: Zo(t)
|
|
161
|
-
}),
|
|
162
|
-
const r =
|
|
161
|
+
}), ve = (e, t) => {
|
|
162
|
+
const r = se(e, t);
|
|
163
163
|
return {
|
|
164
164
|
x: (r.x + 1) / 2,
|
|
165
165
|
y: (r.y + 1) / 2
|
|
@@ -498,7 +498,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
498
498
|
if (!v || !m) return;
|
|
499
499
|
const p = f[0];
|
|
500
500
|
if (!p) return;
|
|
501
|
-
const A = V(d.get("fill", p)), x = d.get("stroke", p) ?? A, S = d.get("strokeWidth", p), k =
|
|
501
|
+
const A = V(d.get("fill", p)), x = d.get("stroke", p) ?? A, S = d.get("strokeWidth", p), k = oe(d.get("dashArray", p), d.get("strokeWidth", p)), E = d.get("lineCap", p), R = d.get("lineJoin", p);
|
|
502
502
|
h.push({
|
|
503
503
|
key: u(p),
|
|
504
504
|
areaPath: v,
|
|
@@ -610,7 +610,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
610
610
|
i
|
|
611
611
|
]);
|
|
612
612
|
if (!l || !d) return null;
|
|
613
|
-
const c = V(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, v = o.get("strokeWidth", r.observation, "hovered"), m =
|
|
613
|
+
const c = V(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, v = o.get("strokeWidth", r.observation, "hovered"), m = oe(o.get("dashArray", r.observation, "hovered"), v), p = o.get("lineCap", r.observation, "hovered"), A = o.get("lineJoin", r.observation, "hovered");
|
|
614
614
|
return /* @__PURE__ */ w("g", {
|
|
615
615
|
"data-testid": "hovered-area",
|
|
616
616
|
children: [
|
|
@@ -743,7 +743,7 @@ var Un = "\0", ga = (e, t) => {
|
|
|
743
743
|
r.has(l) || a.current.has(l) || (a.current.add(l), xd(l).then((d) => {
|
|
744
744
|
o.current.has(l) && (a.current.delete(l), n((c) => new Map(c).set(l, d)));
|
|
745
745
|
}));
|
|
746
|
-
}, [t, r]),
|
|
746
|
+
}, [t, r]), he((i) => {
|
|
747
747
|
const l = Qn(i);
|
|
748
748
|
return l === void 0 ? void 0 : r.get(l);
|
|
749
749
|
}, [r]);
|
|
@@ -754,7 +754,7 @@ var Ad = 1 / 3, bd = {
|
|
|
754
754
|
}, wd = {
|
|
755
755
|
x: 0,
|
|
756
756
|
y: 0
|
|
757
|
-
},
|
|
757
|
+
}, de = ({ paints: e, unitsPerPixel: t = bd, origin: r = wd }) => {
|
|
758
758
|
const n = U(), o = b(() => {
|
|
759
759
|
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
760
760
|
for (const l of e) {
|
|
@@ -772,7 +772,7 @@ var Ad = 1 / 3, bd = {
|
|
|
772
772
|
return a;
|
|
773
773
|
}, [e, n]);
|
|
774
774
|
return {
|
|
775
|
-
fillFor:
|
|
775
|
+
fillFor: he((a) => {
|
|
776
776
|
if (typeof a == "string") return a;
|
|
777
777
|
const i = o.get(kr(a));
|
|
778
778
|
if (i === void 0) throw new Error("fillFor requires a paint supplied to usePaintDefs.");
|
|
@@ -1020,7 +1020,7 @@ var Ad = 1 / 3, bd = {
|
|
|
1020
1020
|
t,
|
|
1021
1021
|
r.mainAxis,
|
|
1022
1022
|
o
|
|
1023
|
-
]), { paints: i, paintAt: l } = Rt(e, o), { fillFor: d, defs: c } =
|
|
1023
|
+
]), { paints: i, paintAt: l } = Rt(e, o), { fillFor: d, defs: c } = de({
|
|
1024
1024
|
paints: i,
|
|
1025
1025
|
origin: an(t, r)
|
|
1026
1026
|
}), u = we(e.data, e.mapping, e.id), h = [];
|
|
@@ -1090,7 +1090,7 @@ var Ad = 1 / 3, bd = {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
}, Hd = (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, Tr = (e, t, r) => {
|
|
1092
1092
|
const n = r === void 0 ? e.activeIntro : r, o = D(n ? nn(n, t) : null), a = D(e.shouldAnimateTransitions);
|
|
1093
|
-
return a.current = e.shouldAnimateTransitions,
|
|
1093
|
+
return a.current = e.shouldAnimateTransitions, he(() => {
|
|
1094
1094
|
const i = o.current;
|
|
1095
1095
|
return o.current = null, i ?? rn(a.current);
|
|
1096
1096
|
}, []);
|
|
@@ -1121,7 +1121,7 @@ var Ad = 1 / 3, bd = {
|
|
|
1121
1121
|
width: e.width,
|
|
1122
1122
|
height: 0
|
|
1123
1123
|
}, Dd = ge(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
1124
|
-
const a = U(), i = F(t), l = or(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n), { paints: d, paintAt: c } = Rt(t, i), { fillFor: u, defs: h } =
|
|
1124
|
+
const a = U(), i = F(t), l = or(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n), { paints: d, paintAt: c } = Rt(t, i), { fillFor: u, defs: h } = de({
|
|
1125
1125
|
paints: d,
|
|
1126
1126
|
origin: an(t, r)
|
|
1127
1127
|
});
|
|
@@ -1364,7 +1364,7 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1364
1364
|
e,
|
|
1365
1365
|
t.mainAxis,
|
|
1366
1366
|
o
|
|
1367
|
-
]), c = o.get("fill", r.observation, "hovered"), { fillFor: u, defs: h } =
|
|
1367
|
+
]), c = o.get("fill", r.observation, "hovered"), { fillFor: u, defs: h } = de({
|
|
1368
1368
|
paints: [c],
|
|
1369
1369
|
origin: an(e, t)
|
|
1370
1370
|
}), g = Jt(t.mainAxis, r.observation), f = ma(d, t.mainAxis, o, r.observation);
|
|
@@ -1373,7 +1373,7 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1373
1373
|
cornerRadius: x,
|
|
1374
1374
|
mainAxis: t.mainAxis,
|
|
1375
1375
|
bounds: m
|
|
1376
|
-
}), E = Ie(v, 0), R = Ie(m, k), L = Ie(Xn(v, yr), 0), P = Ie(Xn(m, yr), k > 0 ? k + yr : 0), B = u(c), N = o.get("alpha", r.observation, "hovered") * o.get("fillAlpha", r.observation, "hovered"), $ = o.get("stroke", r.observation, "hovered"),
|
|
1376
|
+
}), E = Ie(v, 0), R = Ie(m, k), L = Ie(Xn(v, yr), 0), P = Ie(Xn(m, yr), k > 0 ? k + yr : 0), B = u(c), N = o.get("alpha", r.observation, "hovered") * o.get("fillAlpha", r.observation, "hovered"), $ = o.get("stroke", r.observation, "hovered"), ae = kt(A);
|
|
1377
1377
|
return /* @__PURE__ */ w("g", {
|
|
1378
1378
|
"data-testid": "hovered-bar",
|
|
1379
1379
|
style: Z(J(o, r.observation, "hovered")),
|
|
@@ -1412,14 +1412,14 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1412
1412
|
d: E,
|
|
1413
1413
|
fill: "none",
|
|
1414
1414
|
stroke: p,
|
|
1415
|
-
strokeWidth:
|
|
1415
|
+
strokeWidth: ae.separatorWidth,
|
|
1416
1416
|
opacity: N,
|
|
1417
1417
|
"data-testid": "hovered-bar-inner-border"
|
|
1418
1418
|
}), /* @__PURE__ */ s("path", {
|
|
1419
1419
|
d: R,
|
|
1420
1420
|
fill: "none",
|
|
1421
1421
|
stroke: p,
|
|
1422
|
-
strokeWidth:
|
|
1422
|
+
strokeWidth: ae.outlineWidth,
|
|
1423
1423
|
opacity: S
|
|
1424
1424
|
})] })]
|
|
1425
1425
|
})
|
|
@@ -1492,7 +1492,7 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1492
1492
|
if (!f) return;
|
|
1493
1493
|
const v = g[0];
|
|
1494
1494
|
if (!v) return;
|
|
1495
|
-
const m = l.get("fillAlpha", v), p = m === void 0 ? void 0 : i(g) ?? void 0, A = l.get("stroke", v), x = l.get("fill", v), S = x === void 0 ? A : V(x), k = l.get("strokeWidth", v), E =
|
|
1495
|
+
const m = l.get("fillAlpha", v), p = m === void 0 ? void 0 : i(g) ?? void 0, A = l.get("stroke", v), x = l.get("fill", v), S = x === void 0 ? A : V(x), k = l.get("strokeWidth", v), E = oe(l.get("dashArray", v), l.get("strokeWidth", v)), R = l.get("lineCap", v), L = l.get("lineJoin", v);
|
|
1496
1496
|
u.push({
|
|
1497
1497
|
key: c(v),
|
|
1498
1498
|
pathData: f,
|
|
@@ -1632,7 +1632,7 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1632
1632
|
o
|
|
1633
1633
|
]), i = b(() => jr(e.params)(a), [e.params, a]);
|
|
1634
1634
|
if (!i) return null;
|
|
1635
|
-
const l = n.get("stroke", t.observation, "hovered"), d = n.get("alpha", t.observation, "hovered"), c = n.get("strokeAlpha", t.observation, "hovered"), u = n.get("strokeWidth", t.observation, "hovered"), h =
|
|
1635
|
+
const l = n.get("stroke", t.observation, "hovered"), d = n.get("alpha", t.observation, "hovered"), c = n.get("strokeAlpha", t.observation, "hovered"), u = n.get("strokeWidth", t.observation, "hovered"), h = oe(n.get("dashArray", t.observation, "hovered"), u), g = n.get("lineCap", t.observation, "hovered"), f = n.get("lineJoin", t.observation, "hovered");
|
|
1636
1636
|
return /* @__PURE__ */ w("g", {
|
|
1637
1637
|
"data-testid": "hovered-line",
|
|
1638
1638
|
children: [
|
|
@@ -1948,7 +1948,7 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1948
1948
|
headingSm: 1.8,
|
|
1949
1949
|
headingMd: 2.2,
|
|
1950
1950
|
headingLg: 2.8
|
|
1951
|
-
},
|
|
1951
|
+
}, ue = {
|
|
1952
1952
|
xxs: 1,
|
|
1953
1953
|
xs: 1,
|
|
1954
1954
|
sm: 1.3,
|
|
@@ -1974,21 +1974,21 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1974
1974
|
fontSizeMd: me(pe.md),
|
|
1975
1975
|
fontSizeLg: me(pe.lg),
|
|
1976
1976
|
fontSizeXl: me(pe.xl),
|
|
1977
|
-
fontLineHeightXxs:
|
|
1978
|
-
fontLineHeightXs:
|
|
1979
|
-
fontLineHeightSm:
|
|
1980
|
-
fontLineHeightMd:
|
|
1981
|
-
fontLineHeightLg:
|
|
1982
|
-
fontLineHeightXl:
|
|
1977
|
+
fontLineHeightXxs: ue.xxs.toString(),
|
|
1978
|
+
fontLineHeightXs: ue.xs.toString(),
|
|
1979
|
+
fontLineHeightSm: ue.sm.toString(),
|
|
1980
|
+
fontLineHeightMd: ue.md.toString(),
|
|
1981
|
+
fontLineHeightLg: ue.lg.toString(),
|
|
1982
|
+
fontLineHeightXl: ue.xl.toString()
|
|
1983
1983
|
}, ka = {
|
|
1984
1984
|
fontSizeEditorBody: me(pe.editorBody),
|
|
1985
1985
|
fontSizeHeadingSm: me(pe.headingSm),
|
|
1986
1986
|
fontSizeHeadingMd: me(pe.headingMd),
|
|
1987
1987
|
fontSizeHeadingLg: me(pe.headingLg),
|
|
1988
|
-
fontLineHeightEditorBody:
|
|
1989
|
-
fontLineHeightHeadingSm:
|
|
1990
|
-
fontLineHeightHeadingMd:
|
|
1991
|
-
fontLineHeightHeadingLg:
|
|
1988
|
+
fontLineHeightEditorBody: ue.editorBody.toString(),
|
|
1989
|
+
fontLineHeightHeadingSm: ue.headingSm.toString(),
|
|
1990
|
+
fontLineHeightHeadingMd: ue.headingMd.toString(),
|
|
1991
|
+
fontLineHeightHeadingLg: ue.headingLg.toString()
|
|
1992
1992
|
}, H = (e, t, r, n = y.fontFamily) => `${e} ${t}/${r} ${n}`, Ea = {
|
|
1993
1993
|
fontUITooltip: H(y.fontWeightMedium, y.fontSizeMd, y.fontLineHeightMd),
|
|
1994
1994
|
fontUITooltipSecondary: H(y.fontWeightMedium, y.fontSizeSm, y.fontLineHeightSm, ht),
|
|
@@ -2353,7 +2353,7 @@ var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2353
2353
|
y2: "100%"
|
|
2354
2354
|
};
|
|
2355
2355
|
}, Oc = (e, t, r, n) => {
|
|
2356
|
-
const o =
|
|
2356
|
+
const o = oe(e, t), a = {
|
|
2357
2357
|
...r === void 0 ? {} : { strokeLinecap: r },
|
|
2358
2358
|
...n === void 0 ? {} : { strokeLinejoin: n }
|
|
2359
2359
|
};
|
|
@@ -2388,7 +2388,7 @@ function Vc(e) {
|
|
|
2388
2388
|
return "render" in e && "measure" in e;
|
|
2389
2389
|
}
|
|
2390
2390
|
var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, Xc = 2, qc = /* @__PURE__ */ new Set(["square", "slice"]), to = 0.375, Fa = 1, Ct = (e) => /* @__PURE__ */ s(xe("Swatch", Jc), { ...e }), Jc = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: o = jc, height: a = Kc, strokeWidth: i = Yc, alpha: l, cornerRadius: d, symbol: c, mainAxis: u = "x" }) => {
|
|
2391
|
-
const h = _c(e, t, r, Math.min(o, a)), g =
|
|
2391
|
+
const h = _c(e, t, r, Math.min(o, a)), g = de({ paints: [h] }), f = g.fillFor(h);
|
|
2392
2392
|
return /* @__PURE__ */ w("svg", {
|
|
2393
2393
|
className: zc,
|
|
2394
2394
|
width: o,
|
|
@@ -2706,7 +2706,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2706
2706
|
vectorEffect: "non-scaling-stroke"
|
|
2707
2707
|
});
|
|
2708
2708
|
}, iu = ge(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o, panelWidth: a }) {
|
|
2709
|
-
const i = Me(), l = Ce(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = M(
|
|
2709
|
+
const i = Me(), l = Ce(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = M(le((Q) => ({
|
|
2710
2710
|
guides: Q.guides,
|
|
2711
2711
|
numberFormat: Q.config.numberFormat,
|
|
2712
2712
|
specLayers: Q.spec.layers,
|
|
@@ -2737,8 +2737,8 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2737
2737
|
i
|
|
2738
2738
|
]), L = F(t), P = t.data.getFirst();
|
|
2739
2739
|
if (!P) return null;
|
|
2740
|
-
const B = L.get("stroke", P), N = su(S, B), $ = Bc(t, r),
|
|
2741
|
-
return
|
|
2740
|
+
const B = L.get("stroke", P), N = su(S, B), $ = Bc(t, r), ae = $ ? _(P) : q(P);
|
|
2741
|
+
return ae === null ? null : /* @__PURE__ */ w("g", {
|
|
2742
2742
|
"data-geom": "rule",
|
|
2743
2743
|
className: Tc,
|
|
2744
2744
|
children: [/* @__PURE__ */ s(au, {
|
|
@@ -2747,7 +2747,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2747
2747
|
lineCap: L.get("lineCap", P),
|
|
2748
2748
|
lineJoin: L.get("lineJoin", P),
|
|
2749
2749
|
isHorizontalLine: $,
|
|
2750
|
-
position:
|
|
2750
|
+
position: ae,
|
|
2751
2751
|
lineColor: B,
|
|
2752
2752
|
effects: Z(J(L, P)),
|
|
2753
2753
|
shouldAnimateTransitions: o
|
|
@@ -2757,7 +2757,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2757
2757
|
textWidth: R,
|
|
2758
2758
|
labelPosition: t.params.labelPosition,
|
|
2759
2759
|
isHorizontalLine: $,
|
|
2760
|
-
position:
|
|
2760
|
+
position: ae,
|
|
2761
2761
|
color: B,
|
|
2762
2762
|
textColor: N,
|
|
2763
2763
|
symbolShape: f,
|
|
@@ -2800,7 +2800,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2800
2800
|
transition: ca(e),
|
|
2801
2801
|
children: t
|
|
2802
2802
|
}), uu = ge(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2803
|
-
const o = n?.type === "fade" ? n : null, a = F(t), { paints: i, paintAt: l } = Rt(t, a), { fillFor: d, defs: c } =
|
|
2803
|
+
const o = n?.type === "fade" ? n : null, a = F(t), { paints: i, paintAt: l } = Rt(t, a), { fillFor: d, defs: c } = de({ paints: i }), u = b(() => {
|
|
2804
2804
|
const h = Ys(t.data, t.mapping, t.id), g = [];
|
|
2805
2805
|
let f = -1;
|
|
2806
2806
|
for (const v of t.data) {
|
|
@@ -2859,7 +2859,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2859
2859
|
stroke: t.stroke,
|
|
2860
2860
|
strokeWidth: t.strokeWidth
|
|
2861
2861
|
}), vu = ({ layer: e, primary: t, panelRect: r }) => {
|
|
2862
|
-
const n = F(e), o = n.get("fill", t.observation), { fillFor: a, defs: i } =
|
|
2862
|
+
const n = F(e), o = n.get("fill", t.observation), { fillFor: a, defs: i } = de({ paints: [o] }), l = Ur(t.observation);
|
|
2863
2863
|
if (!l) return null;
|
|
2864
2864
|
const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ?? Gr, h = n.get("strokeWidth", t.observation, "hovered"), g = n.get("cornerRadius", t.observation, "hovered"), f = l.x * r.width, v = l.y * r.height, m = l.width * r.width, p = l.height * r.height;
|
|
2865
2865
|
return /* @__PURE__ */ w("g", {
|
|
@@ -2907,10 +2907,10 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2907
2907
|
}, zt = ({ primary: e, companions: t }) => {
|
|
2908
2908
|
const r = /* @__PURE__ */ w(T, { children: [t.map((n) => /* @__PURE__ */ s(Be, {
|
|
2909
2909
|
hit: n,
|
|
2910
|
-
project:
|
|
2910
|
+
project: ve
|
|
2911
2911
|
}, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(nt, {
|
|
2912
2912
|
hit: e,
|
|
2913
|
-
project:
|
|
2913
|
+
project: ve
|
|
2914
2914
|
}) : null] });
|
|
2915
2915
|
return e ? /* @__PURE__ */ s("g", {
|
|
2916
2916
|
"data-testid": "hovered-point",
|
|
@@ -2929,7 +2929,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2929
2929
|
}, fu = (e) => ({
|
|
2930
2930
|
...rt(e),
|
|
2931
2931
|
digits: 2
|
|
2932
|
-
}), Ya = (e, t, r) =>
|
|
2932
|
+
}), Ya = (e, t, r) => se(e, t, rt(r)), Br = (e) => {
|
|
2933
2933
|
const [t, ...r] = e;
|
|
2934
2934
|
if (!t) return "";
|
|
2935
2935
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
@@ -2942,7 +2942,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2942
2942
|
if (!h) return;
|
|
2943
2943
|
const g = u[0];
|
|
2944
2944
|
if (!g) return;
|
|
2945
|
-
const f = n.get("fill", g);
|
|
2945
|
+
const f = n.get("fill", g), v = n.get("strokeWidth", g);
|
|
2946
2946
|
d.push({
|
|
2947
2947
|
key: l(g),
|
|
2948
2948
|
fillPath: h.fillPath,
|
|
@@ -2951,7 +2951,8 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2951
2951
|
stroke: n.get("stroke", g) ?? V(f),
|
|
2952
2952
|
fillOpacity: n.get("fillAlpha", g) * n.get("alpha", g),
|
|
2953
2953
|
strokeOpacity: n.get("strokeAlpha", g) * n.get("alpha", g),
|
|
2954
|
-
strokeWidth:
|
|
2954
|
+
strokeWidth: v,
|
|
2955
|
+
strokeDasharray: oe(n.get("dashArray", g), v)
|
|
2955
2956
|
});
|
|
2956
2957
|
}), d;
|
|
2957
2958
|
}, [
|
|
@@ -2959,7 +2960,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2959
2960
|
t.id,
|
|
2960
2961
|
t.mapping,
|
|
2961
2962
|
n
|
|
2962
|
-
]), { fillFor: a, defs: i } =
|
|
2963
|
+
]), { fillFor: a, defs: i } = de({
|
|
2963
2964
|
paints: b(() => o.map((l) => l.paint), [o]),
|
|
2964
2965
|
unitsPerPixel: Pt(r)
|
|
2965
2966
|
});
|
|
@@ -2981,6 +2982,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2981
2982
|
fill: "none",
|
|
2982
2983
|
stroke: l.stroke,
|
|
2983
2984
|
strokeWidth: l.strokeWidth,
|
|
2985
|
+
strokeDasharray: l.strokeDasharray,
|
|
2984
2986
|
opacity: l.strokeOpacity,
|
|
2985
2987
|
vectorEffect: "non-scaling-stroke"
|
|
2986
2988
|
})] }, l.key))]
|
|
@@ -2999,8 +3001,8 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
2999
3001
|
const a = q(o), { innerRadius: i, outerRadius: l } = Fo(o);
|
|
3000
3002
|
a === null || i === null || l === null || t.push({
|
|
3001
3003
|
angle: a,
|
|
3002
|
-
outer:
|
|
3003
|
-
inner:
|
|
3004
|
+
outer: se(a, l),
|
|
3005
|
+
inner: se(a, i)
|
|
3004
3006
|
});
|
|
3005
3007
|
}
|
|
3006
3008
|
if (t.length === 0) return null;
|
|
@@ -3035,12 +3037,12 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3035
3037
|
size: $e
|
|
3036
3038
|
}), n;
|
|
3037
3039
|
}, yu = ({ layer: e, primary: t, companions: r, panelRect: n }) => {
|
|
3038
|
-
const o = F(e), a = ze(t.observation), i = o.get("fill", t.observation, "hovered"), { fillFor: l, defs: d } =
|
|
3040
|
+
const o = F(e), a = ze(t.observation), i = o.get("fill", t.observation, "hovered"), { fillFor: l, defs: d } = de({
|
|
3039
3041
|
paints: [i],
|
|
3040
3042
|
unitsPerPixel: Pt(n)
|
|
3041
3043
|
}), c = b(() => ja([...e.data.filter(ne.group, "eq", a)]), [e.data, a]);
|
|
3042
3044
|
if (!c) return null;
|
|
3043
|
-
const u = o.get("stroke", t.observation, "hovered") ?? V(i), h = o.get("alpha", t.observation, "hovered"), g = o.get("fillAlpha", t.observation, "hovered") * h, f = o.get("strokeAlpha", t.observation, "hovered") * h, v = o.get("strokeWidth", t.observation, "hovered");
|
|
3045
|
+
const u = o.get("stroke", t.observation, "hovered") ?? V(i), h = o.get("alpha", t.observation, "hovered"), g = o.get("fillAlpha", t.observation, "hovered") * h, f = o.get("strokeAlpha", t.observation, "hovered") * h, v = o.get("strokeWidth", t.observation, "hovered"), m = oe(o.get("dashArray", t.observation, "hovered"), v);
|
|
3044
3046
|
return /* @__PURE__ */ w(T, { children: [
|
|
3045
3047
|
/* @__PURE__ */ w(Se, {
|
|
3046
3048
|
viewBox: "-1 -1 2 2",
|
|
@@ -3065,19 +3067,20 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3065
3067
|
fill: "none",
|
|
3066
3068
|
stroke: u,
|
|
3067
3069
|
strokeWidth: v,
|
|
3070
|
+
strokeDasharray: m,
|
|
3068
3071
|
opacity: f,
|
|
3069
3072
|
vectorEffect: "non-scaling-stroke",
|
|
3070
3073
|
"data-testid": "hovered-area-edge"
|
|
3071
3074
|
})
|
|
3072
3075
|
]
|
|
3073
3076
|
}),
|
|
3074
|
-
r.map((
|
|
3075
|
-
hit:
|
|
3076
|
-
project:
|
|
3077
|
-
}, `companion-${
|
|
3077
|
+
r.map((p) => /* @__PURE__ */ s(Be, {
|
|
3078
|
+
hit: p,
|
|
3079
|
+
project: ve
|
|
3080
|
+
}, `companion-${p.layerId}-${p.pointIndex}`)),
|
|
3078
3081
|
/* @__PURE__ */ s(nt, {
|
|
3079
3082
|
hit: t,
|
|
3080
|
-
project:
|
|
3083
|
+
project: ve,
|
|
3081
3084
|
"data-testid": "hovered-area-point"
|
|
3082
3085
|
})
|
|
3083
3086
|
] });
|
|
@@ -3101,7 +3104,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3101
3104
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3102
3105
|
const t = q(e), r = Zt(e) ?? _(e);
|
|
3103
3106
|
if (t === null || r === null) return null;
|
|
3104
|
-
const { x: n, y: o } =
|
|
3107
|
+
const { x: n, y: o } = ve(t, r);
|
|
3105
3108
|
return {
|
|
3106
3109
|
x: n,
|
|
3107
3110
|
y: 1 - o
|
|
@@ -3176,7 +3179,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3176
3179
|
strokeWidth: t,
|
|
3177
3180
|
vectorEffect: "non-scaling-stroke"
|
|
3178
3181
|
}), Su = ge(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o, panelRect: a }) {
|
|
3179
|
-
const i = U(), l = or(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), d = r.bandAxis !== "x", c = F(t), { paints: u, paintAt: h } = Rt(t, c), { fillFor: g, defs: f } =
|
|
3182
|
+
const i = U(), l = or(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), d = r.bandAxis !== "x", c = F(t), { paints: u, paintAt: h } = Rt(t, c), { fillFor: g, defs: f } = de({
|
|
3180
3183
|
paints: u,
|
|
3181
3184
|
unitsPerPixel: Pt(a)
|
|
3182
3185
|
}), v = b(() => {
|
|
@@ -3206,8 +3209,8 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3206
3209
|
effects: Z(J(c, t.data.getFirst() ?? void 0)),
|
|
3207
3210
|
className: fe,
|
|
3208
3211
|
children: [f, v.map((m, p) => {
|
|
3209
|
-
const { stroke: A, strokeWidth: x, strokeAlpha: S } = m.style, k = A !== void 0, E = kt(x), R = A === void 0 ? {} : Yt(A, E.separatorWidth), L = A === void 0 ? void 0 : Yt(A, E.outlineWidth), P = m.members.map((
|
|
3210
|
-
const { key: Q, ...Le } =
|
|
3212
|
+
const { stroke: A, strokeWidth: x, strokeAlpha: S } = m.style, k = A !== void 0, E = kt(x), R = A === void 0 ? {} : Yt(A, E.separatorWidth), L = A === void 0 ? void 0 : Yt(A, E.outlineWidth), P = m.members.map((ae) => {
|
|
3213
|
+
const { key: Q, ...Le } = ae;
|
|
3211
3214
|
return l.isAnimated ? /* @__PURE__ */ s(ku, {
|
|
3212
3215
|
...Le,
|
|
3213
3216
|
animation: l,
|
|
@@ -3407,7 +3410,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3407
3410
|
t,
|
|
3408
3411
|
r.bandAxis,
|
|
3409
3412
|
o
|
|
3410
|
-
]), { paints: i, paintAt: l } = Rt(e, o), { fillFor: d, defs: c } =
|
|
3413
|
+
]), { paints: i, paintAt: l } = Rt(e, o), { fillFor: d, defs: c } = de({
|
|
3411
3414
|
paints: i,
|
|
3412
3415
|
unitsPerPixel: Pt(n)
|
|
3413
3416
|
}), u = we(e.data, e.mapping, e.id), h = [];
|
|
@@ -3430,7 +3433,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3430
3433
|
children: [c, h]
|
|
3431
3434
|
});
|
|
3432
3435
|
}, mt = (e, t) => {
|
|
3433
|
-
const r =
|
|
3436
|
+
const r = se(t, e);
|
|
3434
3437
|
return `${r.x},${r.y}`;
|
|
3435
3438
|
}, no = (e, t, r) => {
|
|
3436
3439
|
if (e <= 0) return "";
|
|
@@ -3456,7 +3459,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3456
3459
|
e,
|
|
3457
3460
|
t.bandAxis,
|
|
3458
3461
|
o
|
|
3459
|
-
]), i = o.get("fill", r.observation, "hovered"), { fillFor: l, defs: d } =
|
|
3462
|
+
]), i = o.get("fill", r.observation, "hovered"), { fillFor: l, defs: d } = de({
|
|
3460
3463
|
paints: [i],
|
|
3461
3464
|
unitsPerPixel: Pt(n)
|
|
3462
3465
|
});
|
|
@@ -3520,7 +3523,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3520
3523
|
strokeWidth: r.get("strokeWidth", c),
|
|
3521
3524
|
lineCap: r.get("lineCap", c),
|
|
3522
3525
|
lineJoin: r.get("lineJoin", c),
|
|
3523
|
-
strokeDasharray:
|
|
3526
|
+
strokeDasharray: oe(r.get("dashArray", c), r.get("strokeWidth", c))
|
|
3524
3527
|
});
|
|
3525
3528
|
}), a;
|
|
3526
3529
|
}, [
|
|
@@ -3559,7 +3562,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3559
3562
|
const n = q(r), o = _(r);
|
|
3560
3563
|
n === null || o === null || t.push({
|
|
3561
3564
|
angle: n,
|
|
3562
|
-
point:
|
|
3565
|
+
point: se(n, o)
|
|
3563
3566
|
});
|
|
3564
3567
|
}
|
|
3565
3568
|
return t.sort((r, n) => r.angle - n.angle), t.map((r) => r.point);
|
|
@@ -3588,7 +3591,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3588
3591
|
}, Ou = ({ layer: e, primary: t, companions: r }) => {
|
|
3589
3592
|
const n = F(e), o = ze(t.observation), a = b(() => Ja([...e.data.filter(ne.group, "eq", o)]), [e.data, o]);
|
|
3590
3593
|
if (!a) return null;
|
|
3591
|
-
const i = n.get("stroke", t.observation, "hovered"), l = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), c = n.get("strokeWidth", t.observation, "hovered"), u =
|
|
3594
|
+
const i = n.get("stroke", t.observation, "hovered"), l = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), c = n.get("strokeWidth", t.observation, "hovered"), u = oe(n.get("dashArray", t.observation, "hovered"), c), h = n.get("lineCap", t.observation, "hovered"), g = n.get("lineJoin", t.observation, "hovered");
|
|
3592
3595
|
return /* @__PURE__ */ w(T, { children: [
|
|
3593
3596
|
/* @__PURE__ */ s(Se, {
|
|
3594
3597
|
viewBox: "-1 -1 2 2",
|
|
@@ -3615,11 +3618,11 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3615
3618
|
}),
|
|
3616
3619
|
r.map((f) => /* @__PURE__ */ s(Be, {
|
|
3617
3620
|
hit: f,
|
|
3618
|
-
project:
|
|
3621
|
+
project: ve
|
|
3619
3622
|
}, `companion-${f.layerId}-${f.pointIndex}`)),
|
|
3620
3623
|
/* @__PURE__ */ s(nt, {
|
|
3621
3624
|
hit: t,
|
|
3622
|
-
project:
|
|
3625
|
+
project: ve,
|
|
3623
3626
|
"data-testid": "hovered-line-point"
|
|
3624
3627
|
})
|
|
3625
3628
|
] });
|
|
@@ -3639,7 +3642,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3639
3642
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3640
3643
|
const t = q(e), r = _(e);
|
|
3641
3644
|
if (t === null || r === null) return null;
|
|
3642
|
-
const { x: n, y: o } =
|
|
3645
|
+
const { x: n, y: o } = ve(t, r);
|
|
3643
3646
|
return {
|
|
3644
3647
|
x: n,
|
|
3645
3648
|
y: 1 - o
|
|
@@ -3652,7 +3655,7 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3652
3655
|
let d = 0;
|
|
3653
3656
|
for (const c of t.data) l.push(/* @__PURE__ */ s(Aa, {
|
|
3654
3657
|
observation: c,
|
|
3655
|
-
project:
|
|
3658
|
+
project: ve,
|
|
3656
3659
|
styleReaders: o,
|
|
3657
3660
|
animation: a,
|
|
3658
3661
|
introKey: i?.(c)
|
|
@@ -3681,12 +3684,12 @@ var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, X
|
|
|
3681
3684
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(zt, { companions: e }),
|
|
3682
3685
|
getEditOutlineShapes: (e) => wa({
|
|
3683
3686
|
...e,
|
|
3684
|
-
project:
|
|
3687
|
+
project: ve
|
|
3685
3688
|
}),
|
|
3686
3689
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3687
3690
|
const t = q(e), r = _(e);
|
|
3688
3691
|
if (t === null || r === null) return null;
|
|
3689
|
-
const { x: n, y: o } =
|
|
3692
|
+
const { x: n, y: o } = ve(t, r);
|
|
3690
3693
|
return {
|
|
3691
3694
|
x: n,
|
|
3692
3695
|
y: 1 - o
|
|
@@ -3784,7 +3787,7 @@ var Vu = [
|
|
|
3784
3787
|
o.update(r);
|
|
3785
3788
|
}, [o, r]), o;
|
|
3786
3789
|
}, $a = K(null), Uu = ({ children: e }) => {
|
|
3787
|
-
const { layers: t, coordSystem: r } = M(
|
|
3790
|
+
const { layers: t, coordSystem: r } = M(le((l) => ({
|
|
3788
3791
|
layers: l.layers,
|
|
3789
3792
|
coordSystem: l.coordSystem
|
|
3790
3793
|
}))), n = Ku(t, r), [o] = j(() => Yu()), a = D(null), i = D(null);
|
|
@@ -3871,7 +3874,7 @@ var Xu = ({ hitTest: e, input: t }) => {
|
|
|
3871
3874
|
width: c.width,
|
|
3872
3875
|
height: c.height
|
|
3873
3876
|
}, t?.(c), n(c));
|
|
3874
|
-
}, e), i = D(null), l = D(null), d =
|
|
3877
|
+
}, e), i = D(null), l = D(null), d = he((c) => {
|
|
3875
3878
|
i.current !== c && (i.current && l.current?.unobserve(i.current), i.current = c, c && (l.current ??= new ResizeObserver(([u]) => {
|
|
3876
3879
|
if (!u) return;
|
|
3877
3880
|
const h = Math.round(u.contentBoxSize[0]?.inlineSize ?? u.contentRect.width), g = Math.round(u.contentBoxSize[0]?.blockSize ?? u.contentRect.height);
|
|
@@ -3888,7 +3891,7 @@ var Xu = ({ hitTest: e, input: t }) => {
|
|
|
3888
3891
|
};
|
|
3889
3892
|
};
|
|
3890
3893
|
function th() {
|
|
3891
|
-
const [e, t] = j(null), r = D(null), n = D(null), o = D(null), a =
|
|
3894
|
+
const [e, t] = j(null), r = D(null), n = D(null), o = D(null), a = he(() => {
|
|
3892
3895
|
o.current = null;
|
|
3893
3896
|
const c = n.current;
|
|
3894
3897
|
if (!c) return;
|
|
@@ -3904,9 +3907,9 @@ function th() {
|
|
|
3904
3907
|
height: u.height
|
|
3905
3908
|
}, g = r.current;
|
|
3906
3909
|
g && g.left === h.left && g.top === h.top && g.width === h.width && g.height === h.height || (r.current = h, t(h));
|
|
3907
|
-
}, []), i =
|
|
3910
|
+
}, []), i = he(() => {
|
|
3908
3911
|
o.current === null && (o.current = requestAnimationFrame(a));
|
|
3909
|
-
}, [a]), { setElement: l } = ei({ onResize: i }), d =
|
|
3912
|
+
}, [a]), { setElement: l } = ei({ onResize: i }), d = he((c) => {
|
|
3910
3913
|
n.current = c, l(c), c && a();
|
|
3911
3914
|
}, [l, a]);
|
|
3912
3915
|
return G(() => (window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
|
|
@@ -3918,7 +3921,7 @@ function th() {
|
|
|
3918
3921
|
}
|
|
3919
3922
|
function rh(e) {
|
|
3920
3923
|
const { engine: t, store: r } = Ke();
|
|
3921
|
-
return
|
|
3924
|
+
return he((n, o) => {
|
|
3922
3925
|
const { hover: a, setHoverState: i, setTooltipAnchor: l } = r.getState(), d = n === null ? Gt : t.resolveHoverByKey(e, n);
|
|
3923
3926
|
if (d.primary === null) {
|
|
3924
3927
|
a.primary?.layerId === e && (i(Gt), l(null));
|
|
@@ -4537,7 +4540,7 @@ var Kt = {
|
|
|
4537
4540
|
...Kt,
|
|
4538
4541
|
isWaitingForView: !0
|
|
4539
4542
|
}, hr = K(Kt), di = 0.4, $h = ({ intro: e, panelRect: t, children: r }) => {
|
|
4540
|
-
const { layers: n, coordSystem: o, scales: a } = M(
|
|
4543
|
+
const { layers: n, coordSystem: o, scales: a } = M(le((h) => ({
|
|
4541
4544
|
layers: h.layers,
|
|
4542
4545
|
coordSystem: h.coordSystem,
|
|
4543
4546
|
scales: h.scales
|
|
@@ -4642,7 +4645,7 @@ var Kt = {
|
|
|
4642
4645
|
boundary: [],
|
|
4643
4646
|
padding: av
|
|
4644
4647
|
}, sv = () => {
|
|
4645
|
-
const e = M(
|
|
4648
|
+
const e = M(le((x) => ({
|
|
4646
4649
|
layers: x.layers,
|
|
4647
4650
|
coordSystem: x.coordSystem,
|
|
4648
4651
|
scales: x.scales,
|
|
@@ -4846,7 +4849,7 @@ var Kt = {
|
|
|
4846
4849
|
width: l.width + i.paddingInline * 2,
|
|
4847
4850
|
height: l.height + i.paddingBlock * 2
|
|
4848
4851
|
};
|
|
4849
|
-
}, mv = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, te(n, t)), yv =
|
|
4852
|
+
}, mv = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, te(n, t)), yv = ue.sm, xv = ({ textMeasurer: e, familyDefault: t, itemGap: r, headlineItemStyles: n }) => (o, a) => {
|
|
4850
4853
|
const i = pi(o, n[a], e, t);
|
|
4851
4854
|
return {
|
|
4852
4855
|
width: mi(i.map((l) => l.width)) + Math.max(0, i.length - 1) * r,
|
|
@@ -5036,7 +5039,7 @@ var Kt = {
|
|
|
5036
5039
|
return e ?? t;
|
|
5037
5040
|
}, po = 0.5, yi = K(/* @__PURE__ */ new Map()), xi = K(() => {
|
|
5038
5041
|
}), Ai = K(/* @__PURE__ */ new Set()), Nv = ({ children: e }) => {
|
|
5039
|
-
const [t, r] = j(() => /* @__PURE__ */ new Map()), [n] = j(() => /* @__PURE__ */ new Set()), o = D(/* @__PURE__ */ new Map()), a =
|
|
5042
|
+
const [t, r] = j(() => /* @__PURE__ */ new Map()), [n] = j(() => /* @__PURE__ */ new Set()), o = D(/* @__PURE__ */ new Map()), a = he((i, l, d) => {
|
|
5040
5043
|
const c = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
5041
5044
|
if (d !== null) {
|
|
5042
5045
|
c.add(l), o.current.set(i, c), r((u) => Gv(u, i, d));
|
|
@@ -5197,7 +5200,7 @@ var ki = K(null), _v = ({ panelRect: e, children: t }) => {
|
|
|
5197
5200
|
start: r(e.start),
|
|
5198
5201
|
end: r(e.end)
|
|
5199
5202
|
}) ?? t.stroke, tg = (e) => {
|
|
5200
|
-
const { formattingLocale: t } = ee(), r = Me(), { fonts: n } = je(), o = Te((p) => xt(p, "difference-arrow-endpoint-drag")), a = Ul(), i = O(), { differenceArrows: l, mainAxis: d, parsingLocale: c } = M(
|
|
5203
|
+
const { formattingLocale: t } = ee(), r = Me(), { fonts: n } = je(), o = Te((p) => xt(p, "difference-arrow-endpoint-drag")), a = Ul(), i = O(), { differenceArrows: l, mainAxis: d, parsingLocale: c } = M(le((p) => ({
|
|
5201
5204
|
differenceArrows: p.annotations.differenceArrows,
|
|
5202
5205
|
mainAxis: St(p.coordSystem),
|
|
5203
5206
|
parsingLocale: p.config.parsingLocale
|
|
@@ -5775,7 +5778,7 @@ var df = "_1oj6yix2";
|
|
|
5775
5778
|
var cf = 8, uf = 16, hf = 2, vf = ({ indexedLegends: e, containerRect: t }) => {
|
|
5776
5779
|
const r = I(Uo, O()), n = We(r), { placements: o, hasOverlap: a } = gf(e, t, n), i = Ne(), l = X(r);
|
|
5777
5780
|
if (o.length === 0) return null;
|
|
5778
|
-
const d = a ? uf : cf, c = d - hf, u =
|
|
5781
|
+
const d = a ? uf : cf, c = d - hf, u = oe(r.dashArray, r.strokeWidth);
|
|
5779
5782
|
return /* @__PURE__ */ w(kn, {
|
|
5780
5783
|
as: "div",
|
|
5781
5784
|
className: lf,
|
|
@@ -6061,7 +6064,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6061
6064
|
font: R,
|
|
6062
6065
|
swatchGap: d.item.gap,
|
|
6063
6066
|
horizontalChrome: P
|
|
6064
|
-
}), $ = g.map(N),
|
|
6067
|
+
}), $ = g.map(N), ae = (f ? L + B : bo({
|
|
6065
6068
|
label: `+${g.length}`,
|
|
6066
6069
|
swatchInlineSize: 0,
|
|
6067
6070
|
textMeasurer: o,
|
|
@@ -6071,7 +6074,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6071
6074
|
})) + (Gi(d.item) ? 8 : 0);
|
|
6072
6075
|
return Uf({
|
|
6073
6076
|
pillSizes: $,
|
|
6074
|
-
overflowPillSize:
|
|
6077
|
+
overflowPillSize: ae,
|
|
6075
6078
|
containerSize: v,
|
|
6076
6079
|
gap: l.gap
|
|
6077
6080
|
});
|
|
@@ -6184,7 +6187,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6184
6187
|
}) });
|
|
6185
6188
|
}), qf = (e, t, r) => {
|
|
6186
6189
|
if (e.type === "cartesian") return Zs(e, t);
|
|
6187
|
-
const n = rt(r), o =
|
|
6190
|
+
const n = rt(r), o = se(t.x, e.innerRadius, n), a = se(t.x, 1, n);
|
|
6188
6191
|
return {
|
|
6189
6192
|
x1: o.x,
|
|
6190
6193
|
y1: o.y,
|
|
@@ -6197,7 +6200,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6197
6200
|
const a = n(o.geom, r.type);
|
|
6198
6201
|
return a ? a.guideMode ?? null : null;
|
|
6199
6202
|
}, Zf = ({ panelRect: e }) => {
|
|
6200
|
-
const { coordSystem: t, layers: r, scales: n } = M(
|
|
6203
|
+
const { coordSystem: t, layers: r, scales: n } = M(le((d) => ({
|
|
6201
6204
|
coordSystem: d.coordSystem,
|
|
6202
6205
|
layers: d.layers,
|
|
6203
6206
|
scales: d.scales
|
|
@@ -6442,7 +6445,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6442
6445
|
};
|
|
6443
6446
|
}, [e, o]);
|
|
6444
6447
|
}, gr = () => Te((e) => xt(e, "move-drag")?.annotationId ?? xt(e, "shape-resize-drag")?.annotationId ?? xt(e, "arrow-endpoint-drag")?.annotationId ?? null), Bt = (e) => {
|
|
6445
|
-
const t = M((i) => i.annotations), r = Hv(), n = Wv(), o =
|
|
6448
|
+
const t = M((i) => i.annotations), r = Hv(), n = Wv(), o = he((i) => wo(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = he((i) => wo(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
|
|
6446
6449
|
return b(() => bl({
|
|
6447
6450
|
annotations: t,
|
|
6448
6451
|
panelRect: e,
|
|
@@ -6862,7 +6865,7 @@ var Yp = "ph8bdc2", Eo = {
|
|
|
6862
6865
|
});
|
|
6863
6866
|
};
|
|
6864
6867
|
function Kp(e) {
|
|
6865
|
-
const t = Me(), { formattingLocale: r } = ee(), n = O(), o = M(
|
|
6868
|
+
const t = Me(), { formattingLocale: r } = ee(), n = O(), o = M(le((d) => ({
|
|
6866
6869
|
pinnedNumbers: d.annotations.pinnedNumbers,
|
|
6867
6870
|
comments: d.annotations.comments,
|
|
6868
6871
|
coordSystem: d.coordSystem,
|
|
@@ -6896,7 +6899,7 @@ function Kp(e) {
|
|
|
6896
6899
|
]);
|
|
6897
6900
|
}
|
|
6898
6901
|
var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o, n).width), Po = "callouts", Qp = ({ panelRect: e }) => {
|
|
6899
|
-
const { pinnedNumbers: t, comments: r } = M(
|
|
6902
|
+
const { pinnedNumbers: t, comments: r } = M(le((v) => ({
|
|
6900
6903
|
pinnedNumbers: v.annotations.pinnedNumbers,
|
|
6901
6904
|
comments: v.annotations.comments
|
|
6902
6905
|
}))), n = M((v) => v.coordSystem), o = Ce(), a = Ql(10), i = O(), l = Kp(e), { store: d } = Ke(), c = b(() => {
|
|
@@ -7095,7 +7098,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7095
7098
|
if (i !== void 0)
|
|
7096
7099
|
return mr(o, i);
|
|
7097
7100
|
}, dm = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", cm = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
7098
|
-
const o = Me(), a = je(), i = M(
|
|
7101
|
+
const o = Me(), a = je(), i = M(le((v) => ({
|
|
7099
7102
|
layers: v.layers,
|
|
7100
7103
|
coordSystem: v.coordSystem,
|
|
7101
7104
|
axes: v.guides.axes,
|
|
@@ -7408,7 +7411,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7408
7411
|
...m,
|
|
7409
7412
|
stroke: i.stroke,
|
|
7410
7413
|
strokeWidth: i.strokeWidth,
|
|
7411
|
-
strokeDasharray:
|
|
7414
|
+
strokeDasharray: oe(i.dashArray, i.strokeWidth),
|
|
7412
7415
|
pointerEvents: l ? "none" : void 0
|
|
7413
7416
|
}), /* @__PURE__ */ s(wm, {
|
|
7414
7417
|
edge: e.position,
|
|
@@ -7505,7 +7508,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7505
7508
|
if (u.geometry !== "linear" || !u.gridVisible) return null;
|
|
7506
7509
|
const h = Ae(u.scaleAestheticKey) === "x" ? i : l;
|
|
7507
7510
|
if (h.strokeWidth <= 0) return null;
|
|
7508
|
-
const g = u.position === "bottom" || u.position === "top", f = Im(h), v =
|
|
7511
|
+
const g = u.position === "bottom" || u.position === "top", f = Im(h), v = oe(h.dashArray, f);
|
|
7509
7512
|
return /* @__PURE__ */ s("g", { children: u.ticks.map((m, p) => {
|
|
7510
7513
|
const A = Bm(g, m.position);
|
|
7511
7514
|
if (A !== null && t[A] > 0) return null;
|
|
@@ -7568,7 +7571,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7568
7571
|
d: Om(a.segments),
|
|
7569
7572
|
fill: "none",
|
|
7570
7573
|
stroke: a.stroke,
|
|
7571
|
-
strokeDasharray:
|
|
7574
|
+
strokeDasharray: oe(a.dashArray, a.strokeWidth),
|
|
7572
7575
|
strokeWidth: a.strokeWidth,
|
|
7573
7576
|
...Xi
|
|
7574
7577
|
}, i))
|
|
@@ -7616,13 +7619,13 @@ var qi = (e, t) => {
|
|
|
7616
7619
|
children: [l?.isVisible && h.map(({ tick: f, tickIndex: v, radiusNorm: m }) => /* @__PURE__ */ s(Co, {
|
|
7617
7620
|
scaleAestheticKey: l.scaleAestheticKey,
|
|
7618
7621
|
tickIndex: v,
|
|
7619
|
-
placement: Lo(
|
|
7622
|
+
placement: Lo(se(d, m, a), "middle"),
|
|
7620
7623
|
label: f.formattedLabel,
|
|
7621
7624
|
labelStyle: g(l),
|
|
7622
7625
|
isHitTestable: n
|
|
7623
7626
|
}, `radial-label-${v}`)), i.isVisible && i.ticks.map((f, v) => {
|
|
7624
7627
|
if (f.position >= 1 - 1e-9) return null;
|
|
7625
|
-
const m = c(f.position), p =
|
|
7628
|
+
const m = c(f.position), p = se(m, (a.radius + ps) / a.radius, a);
|
|
7626
7629
|
return /* @__PURE__ */ s(Co, {
|
|
7627
7630
|
scaleAestheticKey: i.scaleAestheticKey,
|
|
7628
7631
|
tickIndex: v,
|
|
@@ -7710,7 +7713,7 @@ var qi = (e, t) => {
|
|
|
7710
7713
|
}),
|
|
7711
7714
|
d.gridVisible && d.ticks.map((f, v) => {
|
|
7712
7715
|
if (f.position >= 1 - 1e-9) return null;
|
|
7713
|
-
const m = h(f.position), p =
|
|
7716
|
+
const m = h(f.position), p = se(m, u, l), A = se(m, 1, l);
|
|
7714
7717
|
return /* @__PURE__ */ s(wr, {
|
|
7715
7718
|
axis: Ae(d.scaleAestheticKey),
|
|
7716
7719
|
lineStyle: a,
|
|
@@ -7885,7 +7888,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7885
7888
|
const r = e[ne.group];
|
|
7886
7889
|
return `${String(r ?? "")}\0${t}`;
|
|
7887
7890
|
}, Io = 64, Dr = ({ overlay: e, panelRect: t, children: r }) => {
|
|
7888
|
-
const n = U(), o = U(), { fillFor: a, defs: i } =
|
|
7891
|
+
const n = U(), o = U(), { fillFor: a, defs: i } = de({ paints: e }), l = /* @__PURE__ */ s("g", {
|
|
7889
7892
|
id: n,
|
|
7890
7893
|
children: r
|
|
7891
7894
|
});
|
|
@@ -7928,7 +7931,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7928
7931
|
r
|
|
7929
7932
|
]);
|
|
7930
7933
|
}, Qm = ({ layer: e, coordSystem: t, panelRect: r }) => {
|
|
7931
|
-
const { primary: n, group: o, related: a } = yt(
|
|
7934
|
+
const { primary: n, group: o, related: a } = yt(le((v) => ({
|
|
7932
7935
|
primary: v.hover.primary,
|
|
7933
7936
|
group: v.hover.group,
|
|
7934
7937
|
related: v.hover.related
|
|
@@ -7975,7 +7978,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7975
7978
|
};
|
|
7976
7979
|
}, [e, t]);
|
|
7977
7980
|
}, qm = "var(--to1jkx0)", Jm = "var(--to1jkx1)", Zm = "to1jkx2", $m = "to1jkx3", _m = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
7978
|
-
const { layers: n, coordSystem: o } = M(
|
|
7981
|
+
const { layers: n, coordSystem: o } = M(le((i) => ({
|
|
7979
7982
|
layers: i.layers,
|
|
7980
7983
|
coordSystem: i.coordSystem
|
|
7981
7984
|
}))), a = it() ? [] : n;
|
|
@@ -8333,19 +8336,19 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8333
8336
|
})
|
|
8334
8337
|
})
|
|
8335
8338
|
}) }) }), yy = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
|
|
8336
|
-
const a = ri(), i = vn(o), { axes: l, legends: d, layers: c, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: f, headline: v, headlineConfig: m, content: p, overflowStrategy: A } = M(
|
|
8337
|
-
axes:
|
|
8338
|
-
legends:
|
|
8339
|
-
layers:
|
|
8340
|
-
numberFormat:
|
|
8341
|
-
parsingLocale:
|
|
8342
|
-
annotations:
|
|
8343
|
-
coordSystem:
|
|
8344
|
-
headline:
|
|
8345
|
-
headlineConfig:
|
|
8346
|
-
content:
|
|
8347
|
-
overflowStrategy:
|
|
8348
|
-
}))), { intro: x, transitions: S } = dh(r, c), { headerRef: k, footerRef: E, measurements: R } = dy(), { formattingLocale: L, colorScheme: P } = ee(), B = Oe[i], N = B.editorSurface, [$,
|
|
8339
|
+
const a = ri(), i = vn(o), { axes: l, legends: d, layers: c, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: f, headline: v, headlineConfig: m, content: p, overflowStrategy: A } = M(le((ce) => ({
|
|
8340
|
+
axes: ce.guides.axes,
|
|
8341
|
+
legends: ce.guides.legends.drawn,
|
|
8342
|
+
layers: ce.layers,
|
|
8343
|
+
numberFormat: ce.config.numberFormat,
|
|
8344
|
+
parsingLocale: ce.config.parsingLocale,
|
|
8345
|
+
annotations: ce.annotations,
|
|
8346
|
+
coordSystem: ce.coordSystem,
|
|
8347
|
+
headline: ce.guides.headline,
|
|
8348
|
+
headlineConfig: ce.config.headline,
|
|
8349
|
+
content: ce.config.content,
|
|
8350
|
+
overflowStrategy: ce.config.panel.overflow
|
|
8351
|
+
}))), { intro: x, transitions: S } = dh(r, c), { headerRef: k, footerRef: E, measurements: R } = dy(), { formattingLocale: L, colorScheme: P } = ee(), B = Oe[i], N = B.editorSurface, [$, ae] = j(null), Q = xe("Header", Tg), Le = xe("Footer", kg), Zi = xe("Legend", Xf), $i = xe("Headline", $g), _i = xe("EditorSurface", uy), Rn = b(() => Us({
|
|
8349
8352
|
legends: d,
|
|
8350
8353
|
numberFormat: u,
|
|
8351
8354
|
parsingLocale: h,
|
|
@@ -8425,7 +8428,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8425
8428
|
In.gap
|
|
8426
8429
|
]);
|
|
8427
8430
|
if (!dt) return null;
|
|
8428
|
-
const { layout:
|
|
8431
|
+
const { layout: ie, formattedAxes: Nn, plotBottomY: ls } = dt, ds = ie.footer.height > 0;
|
|
8429
8432
|
return /* @__PURE__ */ s(Di.Provider, {
|
|
8430
8433
|
value: i,
|
|
8431
8434
|
children: /* @__PURE__ */ s(Mh, {
|
|
@@ -8437,23 +8440,23 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8437
8440
|
children: /* @__PURE__ */ s(yc, {
|
|
8438
8441
|
metrics: Bn,
|
|
8439
8442
|
children: /* @__PURE__ */ s(Nv, { children: /* @__PURE__ */ s(_v, {
|
|
8440
|
-
panelRect:
|
|
8443
|
+
panelRect: ie.panel,
|
|
8441
8444
|
children: /* @__PURE__ */ s(fy, {
|
|
8442
8445
|
graphChrome: Cn,
|
|
8443
8446
|
isEditable: N,
|
|
8444
8447
|
mode: i,
|
|
8445
|
-
contentRef: N ?
|
|
8448
|
+
contentRef: N ? ae : void 0,
|
|
8446
8449
|
style: {
|
|
8447
8450
|
width: "100%",
|
|
8448
8451
|
height: "100%"
|
|
8449
8452
|
},
|
|
8450
8453
|
children: /* @__PURE__ */ w($h, {
|
|
8451
8454
|
intro: x,
|
|
8452
|
-
panelRect:
|
|
8455
|
+
panelRect: ie.panel,
|
|
8453
8456
|
children: [
|
|
8454
8457
|
/* @__PURE__ */ s(Q, {
|
|
8455
8458
|
ref: k,
|
|
8456
|
-
headerRect:
|
|
8459
|
+
headerRect: ie.header,
|
|
8457
8460
|
mode: i,
|
|
8458
8461
|
title: p.title,
|
|
8459
8462
|
isTitleVisible: p.isTitleVisible,
|
|
@@ -8465,12 +8468,12 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8465
8468
|
}),
|
|
8466
8469
|
/* @__PURE__ */ s(oy, {
|
|
8467
8470
|
formattedAxes: Nn,
|
|
8468
|
-
plotRect:
|
|
8471
|
+
plotRect: ie.plot,
|
|
8469
8472
|
panelBorder: On,
|
|
8470
|
-
panelFrameRect:
|
|
8471
|
-
panelRect:
|
|
8472
|
-
axisRects:
|
|
8473
|
-
axisLabelRects:
|
|
8473
|
+
panelFrameRect: ie.panelFrame,
|
|
8474
|
+
panelRect: ie.panel,
|
|
8475
|
+
axisRects: ie.axes,
|
|
8476
|
+
axisLabelRects: ie.axisLabels,
|
|
8474
8477
|
shouldAnimateTransitions: S,
|
|
8475
8478
|
formattingLocale: L ?? h,
|
|
8476
8479
|
plotBottomY: ls,
|
|
@@ -8480,7 +8483,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8480
8483
|
}),
|
|
8481
8484
|
/* @__PURE__ */ s(Le, {
|
|
8482
8485
|
ref: E,
|
|
8483
|
-
footerRect:
|
|
8486
|
+
footerRect: ie.footer,
|
|
8484
8487
|
mode: i,
|
|
8485
8488
|
caption: p.caption,
|
|
8486
8489
|
isCaptionVisible: p.isCaptionVisible,
|
|
@@ -8492,7 +8495,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8492
8495
|
}),
|
|
8493
8496
|
/* @__PURE__ */ s(Zi, {
|
|
8494
8497
|
formattedLegends: Rn,
|
|
8495
|
-
rects:
|
|
8498
|
+
rects: ie.legends
|
|
8496
8499
|
}),
|
|
8497
8500
|
st && Ot && /* @__PURE__ */ s($i, {
|
|
8498
8501
|
headline: st,
|
|
@@ -8503,7 +8506,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8503
8506
|
}),
|
|
8504
8507
|
N && $ !== null && /* @__PURE__ */ s(_i, {
|
|
8505
8508
|
frameElement: $,
|
|
8506
|
-
panelRect:
|
|
8509
|
+
panelRect: ie.panel,
|
|
8507
8510
|
formattedAxes: Nn,
|
|
8508
8511
|
shouldAnimateTransitions: S
|
|
8509
8512
|
}),
|
|
@@ -8626,7 +8629,7 @@ export {
|
|
|
8626
8629
|
na as hn,
|
|
8627
8630
|
ai as ht,
|
|
8628
8631
|
v0 as i,
|
|
8629
|
-
|
|
8632
|
+
de as in,
|
|
8630
8633
|
Ov as it,
|
|
8631
8634
|
Hi as j,
|
|
8632
8635
|
Nr as jt,
|