@graphysdk/react-renderer 1.9.0-beta.1793273433114 → 1.9.0-beta.1793288163741

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.
@@ -1,5 +1,6 @@
1
1
  import { AxisKey } from '@graphysdk/viz-engine';
2
2
  import { Command } from '@graphysdk/viz-engine';
3
+ import { CommandContext } from '@graphysdk/viz-engine';
3
4
  import { ComponentType } from 'react';
4
5
  import { CoordSystem } from '@graphysdk/viz-engine';
5
6
  import { CoordType } from '@graphysdk/viz-engine';
@@ -168,7 +169,7 @@ export declare const CaptionSection: ({ title, layout, preview }: OverridableSec
168
169
  /** The color row for a selection. Renders nothing where the command has nowhere to write. */
169
170
  export declare const ColorRow: {
170
171
  ({ target }: ResolvedObservations): JSX.Element | null;
171
- hasRows(target: ObservationsTarget, { scene }: EditMenuRowsInputs): boolean;
172
+ hasRows(target: ObservationsTarget, { scene, findGeom }: EditMenuRowsInputs): boolean;
172
173
  };
173
174
 
174
175
  /** A grid of color chips, for picking one color from a fixed set such as the palette. */
@@ -673,10 +674,12 @@ declare interface EditMenuRows<Target> {
673
674
  hasRows?: (target: Target, inputs: EditMenuRowsInputs) => boolean;
674
675
  }
675
676
 
676
- /** What an edit menu reads to say whether it has rows: the scene, and the placement strategies plugins extend. */
677
+ /** What an edit menu reads to say whether it has rows: the scene, and the lookups plugins extend. */
677
678
  declare interface EditMenuRowsInputs {
678
679
  scene: Scene;
679
680
  dataLabelPlacement: DataLabelPlacementResolver;
681
+ /** Left out, only the built-in geoms are read. */
682
+ findGeom?: CommandContext['findGeom'];
680
683
  }
681
684
 
682
685
  /** The edit menus Graphy or a host registers, where `null` answers with none and `undefined` reads as left out. */
package/dist/editable.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as Fn, $t as rs, A as Ot, An as os, C as as, Ct as Bo, D as is, Dn as $, Dt as ls, E as ss, Et as Te, F as cs, Ft as ee, G as Q, Gt as wr, H as ds, I as us, It as hs, J as kr, K as q, Kt as ps, L as I, Lt as gs, Nn as zn, O as Ho, Ot as ms, P as vs, Pt as Qe, Q as Bn, S as fs, St as M, T as de, Tn as Go, Tt as bs, U as ys, W as Ss, X as Cs, Y as xs, Yt as ws, Z as K, _ as Fe, _n as ks, an as Vo, at as Hn, b as $o, bt as Ts, c as Wo, cn as Be, ct as As, d as Ps, dt as Ls, en as Is, et as Uo, f as Ms, ft as me, g as Ko, gt as Rt, h as et, ht as Es, i as Gn, in as Xo, it as jo, jn as H, k as pn, kn as R, kt as Os, l as Rs, lt as Ns, m as Ds, mt as _s, n as ue, nn as Fs, nt as Nt, o as zs, on as se, p as qo, pt as Se, q as Bs, r as W, rt as Hs, sn as Vn, st as Gs, t as Vs, tn as Zo, tt as $n, u as $s, ut as Tr, v as Ws, vn as Us, wt as Ks, x as Xs, xn as js, xt as qs, y as Zs, yt as Ys } from "./history-chords-Bsno14mi.js";
2
- import { ARROW_DEFAULTS as Js, ARROW_STICKER_DECLARATIONS as Qs, ARROW_STROKE_WIDTHS_PX as Jt, AddAnnotationCommand as Le, AddHighlightCommand as ec, BORDER_RADIUS_TOKENS as Ar, COMBO_TYPES as Pr, CONSTANT_VARIABLES as tc, DASH_PRESETS as nc, DEFAULT_BAR_CORNER_RADIUS as rc, DEFAULT_GEOM_COLOR as oc, DEFAULT_POINT_SIZE_PX as Yo, DEFAULT_STROKE_WIDTH_PX as ac, DIFFERENCE_ARROW_DEFAULTS as Jo, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Lr, InternalError as ic, MAX_BAR_WIDTH_FRACTION as lc, MIN_BAR_WIDTH_FRACTION as sc, MoveAnnotationCommand as cc, RESTING_HOVER_STATE as Wn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as dc, SHAPE_DEFAULTS as uc, SequenceCommand as je, SetAxisLabelCommand as Qo, SetAxisPositionCommand as ea, SetAxisTickModeCommand as ta, SetAxisTicksVisibilityCommand as hc, SetAxisVisibilityCommand as gn, SetBarCornerRadiusCommand as pc, SetBarWidthCommand as na, SetContentCaptionCommand as ra, SetContentSourceCommand as gc, SetContentSubtitleCommand as oa, SetContentTitleCommand as aa, SetDataLabelsFormatCommand as ia, SetDifferenceArrowStyleCommand as mc, SetGraphTypeCommand as Un, SetGridLineStyleCommand as la, SetGridVisibilityCommand as mn, SetHeadlineCompareWithCommand as vc, SetHeadlinePositionCommand as fc, SetHeadlineShowCommand as Ir, SetHeadlineSizeCommand as bc, SetHighlightDimStyleCommand as yc, SetLayerYScaleTypeCommand as Sc, SetLegendAlignCommand as Cc, SetLegendDisplayCommand as xc, SetLegendPlacementCommand as wc, SetLegendPositionCommand as vn, SetLineCurveCommand as sa, SetLineMissingValuesCommand as ca, SetLineStyleCommand as ke, SetMappingCommand as kc, SetNumberFormatAbbreviationCommand as Tc, SetNumberFormatDecimalsCommand as Mr, SetObservationsColorCommand as Ac, SetPointSizeCommand as Kn, SetPolarInnerRadiusCommand as Pc, SetPolarStartAngleCommand as Lc, SetRuleLabelCommand as Ic, SetRuleValueCommand as Mc, SetScaleDomainCommand as Ze, SetScaleRangeCommand as Ec, SetScaleReverseCommand as Oc, SetScaleTransformCommand as da, SetStatLineCommand as Rc, SetStyleRuleCommand as Ne, TEXT_ANNOTATION_DEFAULTS as Nc, TEXT_ANNOTATION_FADE_ALPHA as Dc, ToggleCategoryLabelsCommand as ua, ToggleContentVisibilityCommand as Re, ToggleDataLabelsCommand as ha, ToggleGoalLineCommand as _c, ToggleLinePointsCommand as Xn, ToggleStackTotalsCommand as pa, UpdateAnnotationCommand as ve, alignUnitFractions as Fc, areAnchorsEqual as ga, areEditTargetsEqual as jn, areEndpointsComparable as zc, buildEditMenuTriggerRegion as Bc, buildLayerStyleAddress as Ge, buildObservationPredicate as Hc, buildObservationsTarget as We, buildObservationsTargetAtValue as ma, canAnchorDirectLabels as Gc, canBecomeCombo as Vc, canBecomeHeatmap as $c, clampAnnotationTranslation as Wc, combineKindStyleDeclarations as Er, computeArrow as va, createObservationAnchorBuilder as Uc, createObservationAnchorParser as Kc, createStyleResolver as Xc, createStyleRuleMatcher as jc, createValueFormatter as fa, createXValueReader as qc, filterLayersByGeoms as fn, findAnnotation as Zc, findAverageLineLayer as Yc, findAxisGuide as ba, findCompanionLayers as ya, findGoalLineLayer as Jc, findHighlightsAtObservation as Qc, findHostLayer as Dt, findKindStyleDeclarations as yt, findLayerByGeom as Sa, findLayerById as j, findObservationAttachment as ed, findStyleRule as Ie, findTrendLineLayer as td, formatDifferenceLabel as nd, getBoundingRect as bn, getGroupVariables as Ca, getXBand as rd, getYBand as od, hasMainAxisBand as ad, hasMultipleGroups as _t, inferDefaultDifferenceArrowEndpoints as id, inferDifferenceArrowEndpoints as ld, isComboGraphType as le, isCompanionLayer as xa, isGeomStyleRule as sd, isLayerSpecOf as Ft, isObservationAttachmentKind as cd, isPointWithinEditMenuTrigger as qn, isSafeUrl as dd, isZeroAnchoredAxis as wa, measureObservationsBoxes as ka, projectAnchorToPanel as St, readBroadestObservationsScope as ud, readColorChoices as hd, readComboLineLayerId as pd, readCompanionRowsAtScopeKey as gd, readConstantValue as md, readEditTargetKey as zt, readGeomColor as vd, readGraphType as Bt, readHighlightDimStyle as fd, readMainAxis as bd, readMappableAesthetics as yd, readMappedVariable as Sd, readObservationIndex as Zn, readObservationsColor as Cd, readObservationsColorRoute as Yn, readReachableLevels as xd, readRowScopeKey as wd, readRowsAtScopeKey as kd, readScopeXVariable as Td, readStyleCoord as ce, readStyleRulesBeneath as Ad, readVariableName as Ht, resolveArrowAnnotationStyle as Jn, resolveBarBandFraction as Ta, resolveComparisonBasis as Pd, resolveDifferenceArrowAnnotationStyle as Ld, resolveEditOutlineStyle as Id, resolveLayerAxisValueFormat as Md, resolveObservationPoint as Aa, resolveObservationsTarget as De, stepDifferenceArrowEndpoint as Ed, toDashPreset as _e, toPaintColor as Ct, toPanelCursor as Gt, toStrokeDasharray as Pa } from "@graphysdk/viz-engine";
1
+ import { $ as Fn, $t as rs, A as Ot, An as os, C as as, Ct as Bo, D as is, Dn as $, Dt as ls, E as ss, Et as Te, F as cs, Ft as ee, G as Q, Gt as wr, H as ds, I as us, It as hs, J as kr, K as q, Kt as ps, L as I, Lt as gs, Nn as zn, O as Ho, Ot as ms, P as vs, Pt as et, Q as Bn, S as fs, St as M, T as de, Tn as Go, Tt as bs, U as ys, W as Ss, X as Cs, Y as xs, Yt as ws, Z as K, _ as Fe, _n as ks, an as Vo, at as Hn, b as $o, bt as Ts, c as Wo, cn as Be, ct as As, d as Ps, dt as Ls, en as Is, et as Uo, f as Ms, ft as me, g as Ko, gt as Rt, h as tt, ht as Es, i as Gn, in as Xo, it as jo, jn as H, k as pn, kn as R, kt as Os, l as Rs, lt as Ns, m as Ds, mt as _s, n as ue, nn as Fs, nt as Nt, o as zs, on as se, p as qo, pt as Se, q as Bs, r as W, rt as Hs, sn as Vn, st as Gs, t as Vs, tn as Zo, tt as $n, u as $s, ut as Tr, v as Ws, vn as Us, wt as Ks, x as Xs, xn as js, xt as qs, y as Zs, yt as Ys } from "./history-chords-CaoYNtzG.js";
2
+ import { ARROW_DEFAULTS as Js, ARROW_STICKER_DECLARATIONS as Qs, ARROW_STROKE_WIDTHS_PX as Jt, AddAnnotationCommand as Le, AddHighlightCommand as ec, BORDER_RADIUS_TOKENS as Ar, COMBO_TYPES as Pr, CONSTANT_VARIABLES as tc, DASH_PRESETS as nc, DEFAULT_BAR_CORNER_RADIUS as rc, DEFAULT_GEOM_COLOR as oc, DEFAULT_POINT_SIZE_PX as Yo, DEFAULT_STROKE_WIDTH_PX as ac, DIFFERENCE_ARROW_DEFAULTS as Jo, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Lr, InternalError as ic, MAX_BAR_WIDTH_FRACTION as lc, MIN_BAR_WIDTH_FRACTION as sc, MoveAnnotationCommand as cc, RESTING_HOVER_STATE as Wn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as dc, SHAPE_DEFAULTS as uc, SequenceCommand as qe, SetAxisLabelCommand as Qo, SetAxisPositionCommand as ea, SetAxisTickModeCommand as ta, SetAxisTicksVisibilityCommand as hc, SetAxisVisibilityCommand as gn, SetBarCornerRadiusCommand as pc, SetBarWidthCommand as na, SetContentCaptionCommand as ra, SetContentSourceCommand as gc, SetContentSubtitleCommand as oa, SetContentTitleCommand as aa, SetDataLabelsFormatCommand as ia, SetDifferenceArrowStyleCommand as mc, SetGraphTypeCommand as Un, SetGridLineStyleCommand as la, SetGridVisibilityCommand as mn, SetHeadlineCompareWithCommand as vc, SetHeadlinePositionCommand as fc, SetHeadlineShowCommand as Ir, SetHeadlineSizeCommand as bc, SetHighlightDimStyleCommand as yc, SetLayerYScaleTypeCommand as Sc, SetLegendAlignCommand as Cc, SetLegendDisplayCommand as xc, SetLegendPlacementCommand as wc, SetLegendPositionCommand as vn, SetLineCurveCommand as sa, SetLineMissingValuesCommand as ca, SetLineStyleCommand as ke, SetMappingCommand as kc, SetNumberFormatAbbreviationCommand as Tc, SetNumberFormatDecimalsCommand as Mr, SetObservationsColorCommand as Ac, SetPointSizeCommand as Kn, SetPolarInnerRadiusCommand as Pc, SetPolarStartAngleCommand as Lc, SetRuleLabelCommand as Ic, SetRuleValueCommand as Mc, SetScaleDomainCommand as Ye, SetScaleRangeCommand as Ec, SetScaleReverseCommand as Oc, SetScaleTransformCommand as da, SetStatLineCommand as Rc, SetStyleRuleCommand as Ne, TEXT_ANNOTATION_DEFAULTS as Nc, TEXT_ANNOTATION_FADE_ALPHA as Dc, ToggleCategoryLabelsCommand as ua, ToggleContentVisibilityCommand as Re, ToggleDataLabelsCommand as ha, ToggleGoalLineCommand as _c, ToggleLinePointsCommand as Xn, ToggleStackTotalsCommand as pa, UpdateAnnotationCommand as ve, alignUnitFractions as Fc, areAnchorsEqual as ga, areEditTargetsEqual as jn, areEndpointsComparable as zc, buildEditMenuTriggerRegion as Bc, buildLayerStyleAddress as Ge, buildObservationPredicate as Hc, buildObservationsTarget as We, buildObservationsTargetAtValue as ma, canAnchorDirectLabels as Gc, canBecomeCombo as Vc, canBecomeHeatmap as $c, clampAnnotationTranslation as Wc, combineKindStyleDeclarations as Er, computeArrow as va, createObservationAnchorBuilder as Uc, createObservationAnchorParser as Kc, createStyleResolver as Xc, createStyleRuleMatcher as jc, createValueFormatter as fa, createXValueReader as qc, filterLayersByGeoms as fn, findAnnotation as Zc, findAverageLineLayer as Yc, findAxisGuide as ba, findCompanionLayers as ya, findGoalLineLayer as Jc, findHighlightsAtObservation as Qc, findHostLayer as Dt, findKindStyleDeclarations as yt, findLayerByGeom as Sa, findLayerById as j, findObservationAttachment as ed, findStyleRule as Ie, findTrendLineLayer as td, formatDifferenceLabel as nd, getBoundingRect as bn, getGroupVariables as Ca, getXBand as rd, getYBand as od, hasMainAxisBand as ad, hasMultipleGroups as _t, inferDefaultDifferenceArrowEndpoints as id, inferDifferenceArrowEndpoints as ld, isComboGraphType as le, isCompanionLayer as xa, isGeomStyleRule as sd, isLayerSpecOf as Ft, isObservationAttachmentKind as cd, isPointWithinEditMenuTrigger as qn, isSafeUrl as dd, isZeroAnchoredAxis as wa, measureObservationsBoxes as ka, projectAnchorToPanel as St, readBroadestObservationsScope as ud, readColorChoices as hd, readComboLineLayerId as pd, readCompanionRowsAtScopeKey as gd, readConstantValue as md, readEditTargetKey as zt, readGeomColor as vd, readGraphType as Bt, readHighlightDimStyle as fd, readMainAxis as bd, readMappableAesthetics as yd, readMappedVariable as Sd, readObservationIndex as Zn, readObservationsColor as Cd, readObservationsColorRoute as Yn, readReachableLevels as xd, readRowScopeKey as wd, readRowsAtScopeKey as kd, readScopeXVariable as Td, readStyleCoord as ce, readStyleRulesBeneath as Ad, readVariableName as Ht, resolveArrowAnnotationStyle as Jn, resolveBarBandFraction as Ta, resolveComparisonBasis as Pd, resolveDifferenceArrowAnnotationStyle as Ld, resolveEditOutlineStyle as Id, resolveLayerAxisValueFormat as Md, resolveObservationPoint as Aa, resolveObservationsTarget as De, stepDifferenceArrowEndpoint as Ed, toDashPreset as _e, toPaintColor as Ct, toPanelCursor as Gt, toStrokeDasharray as Pa } from "@graphysdk/viz-engine";
3
3
  import { Fragment as La, createContext as Oe, memo as Ia, useCallback as te, useContext as he, useEffect as z, useId as Me, useLayoutEffect as Ee, useMemo as E, useRef as ne, useState as X, useSyncExternalStore as Od } from "react";
4
4
  import { Fragment as V, jsx as r, jsxs as v } from "react/jsx-runtime";
5
5
  import { motion as Rd } from "motion/react";
@@ -16,7 +16,7 @@ import { Radio as Ma } from "@base-ui/react/radio";
16
16
  import { RadioGroup as Ea } from "@base-ui/react/radio-group";
17
17
  import { Tooltip as pe } from "@base-ui/react/tooltip";
18
18
  import { Select as be } from "@base-ui/react/select";
19
- import { Slider as Ke } from "@base-ui/react/slider";
19
+ import { Slider as Xe } from "@base-ui/react/slider";
20
20
  import { Switch as Rr } from "@base-ui/react/switch";
21
21
  import { Input as Vd } from "@base-ui/react/input";
22
22
  import { DirectionProvider as er } from "@base-ui/react/direction-provider";
@@ -38,7 +38,7 @@ import { EditorContent as Da, useEditor as tu, useEditorState as nu } from "@tip
38
38
  import { Toolbar as Ae } from "@base-ui/react/toolbar";
39
39
  import { Menu as ae } from "@base-ui/react/menu";
40
40
  import { Toggle as ru } from "@base-ui/react/toggle";
41
- import { Accordion as qe } from "@base-ui/react/accordion";
41
+ import { Accordion as Ze } from "@base-ui/react/accordion";
42
42
  import './editable.css';var _a = (e, t) => {
43
43
  if (e.scope !== "observation") return null;
44
44
  const n = j(t.layers, e.layerId);
@@ -241,7 +241,7 @@ var Ga = "transparent", Va = (e) => e === "transparent" ? {
241
241
  }, $a = (e, t) => t !== null && e.toLowerCase() === t.toLowerCase(), we = "_18ja6qr0", bu = "data-graphy-chart-chrome", yu = "data-graphy-chart-menu", Su = { [yu]: "" }, Vt = (e) => ({ [bu]: e }), ft = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, Wa = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, yn = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, Ua = (e, t, n) => n !== null && qn({
242
242
  x: e.clientX - t.x,
243
243
  y: e.clientY - t.y
244
- }, n), Ye = (e, t, n) => e instanceof Node && (t.contains(e) || ft(e, n)), Cu = "cml7ha0", Ka = Oe(null), xu = ({ children: e }) => {
244
+ }, n), Je = (e, t, n) => e instanceof Node && (t.contains(e) || ft(e, n)), Cu = "cml7ha0", Ka = Oe(null), xu = ({ children: e }) => {
245
245
  const { chartId: t } = H(), [n] = X(me), [o, a] = X(null);
246
246
  return n === null ? null : /* @__PURE__ */ v(V, { children: [Qn(/* @__PURE__ */ r("div", {
247
247
  ref: a,
@@ -638,7 +638,7 @@ var lh = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix:
638
638
  }, !1), m = sh(e, l, s), { commitUnlessHeldKey: g, gestureHandlers: b } = Wt(n);
639
639
  return /* @__PURE__ */ v("div", {
640
640
  className: th,
641
- children: [/* @__PURE__ */ r(Ke.Root, {
641
+ children: [/* @__PURE__ */ r(Xe.Root, {
642
642
  className: nh,
643
643
  value: e,
644
644
  onValueChange: (f) => t(f),
@@ -649,11 +649,11 @@ var lh = ({ value: e, onChange: t, onCommit: n, min: o, max: a, step: i, suffix:
649
649
  max: a,
650
650
  step: i,
651
651
  disabled: d,
652
- children: /* @__PURE__ */ r(Ke.Control, {
652
+ children: /* @__PURE__ */ r(Xe.Control, {
653
653
  className: rh,
654
- children: /* @__PURE__ */ v(Ke.Track, {
654
+ children: /* @__PURE__ */ v(Xe.Track, {
655
655
  className: oh,
656
- children: [/* @__PURE__ */ r(Ke.Indicator, { className: ah }), /* @__PURE__ */ r(Ke.Thumb, {
656
+ children: [/* @__PURE__ */ r(Xe.Indicator, { className: ah }), /* @__PURE__ */ r(Xe.Thumb, {
657
657
  className: ih,
658
658
  ...b,
659
659
  ...p
@@ -918,7 +918,7 @@ var Ch = ({ graph: e, axis: t }) => {
918
918
  placeholder: o("editor.axesPanel.startFrom.auto"),
919
919
  disabled: c,
920
920
  onChange: (L) => {
921
- e.commands.dispatch(new Ze({
921
+ e.commands.dispatch(new Ye({
922
922
  scaledAesthetic: t,
923
923
  domainMin: L
924
924
  }), { transient: !0 });
@@ -933,7 +933,7 @@ var Ch = ({ graph: e, axis: t }) => {
933
933
  placeholder: o("editor.axesPanel.endAt.auto"),
934
934
  disabled: c,
935
935
  onChange: (L) => {
936
- e.commands.dispatch(new Ze({
936
+ e.commands.dispatch(new Ye({
937
937
  scaledAesthetic: t,
938
938
  domainMax: L
939
939
  }), { transient: !0 });
@@ -959,45 +959,45 @@ var Ch = ({ graph: e, axis: t }) => {
959
959
  fill: "currentColor"
960
960
  })
961
961
  });
962
- }, kh = 6, tt = ({ target: e }) => {
963
- const { commands: t } = H(), { ColorSwatches: n, CustomColor: o } = D(), a = M(), i = $(), l = R((h) => h), s = ti(e, l), c = hd(l.scales.color).slice(0, kh);
962
+ }, kh = 6, Ke = ({ target: e }) => {
963
+ const { commands: t, findGeom: n } = H(), { ColorSwatches: o, CustomColor: a } = D(), i = M(), l = $(), s = R((p) => p), c = ti(e, s, n), d = hd(s.scales.color).slice(0, kh);
964
964
  z(() => () => t.commit(), [t]);
965
- const d = E(() => Cd({
966
- readers: i,
967
- layers: l.layers,
965
+ const u = E(() => Cd({
966
+ readers: l,
967
+ layers: s.layers,
968
968
  target: e,
969
- parsingLocale: l.config.parsingLocale
969
+ parsingLocale: s.config.parsingLocale
970
970
  }), [
971
- i,
972
- l.config.parsingLocale,
973
- l.layers,
971
+ l,
972
+ s.config.parsingLocale,
973
+ s.layers,
974
974
  e
975
975
  ]);
976
- if (s === null) return null;
977
- const u = (h, p) => {
976
+ if (c === null) return null;
977
+ const h = (p, m) => {
978
978
  t.dispatch(new Ac({
979
979
  target: e,
980
- color: h
981
- }), p ? { transient: !0 } : void 0);
980
+ color: p
981
+ }), m ? { transient: !0 } : void 0);
982
982
  };
983
983
  return /* @__PURE__ */ r(T, {
984
- label: s[0]?.property === "stroke" ? a("editor.overlayMenu.lineColor") : a("editor.overlayMenu.fillColor"),
984
+ label: c[0]?.property === "stroke" ? i("editor.overlayMenu.lineColor") : i("editor.overlayMenu.fillColor"),
985
985
  layout: "stack",
986
- children: /* @__PURE__ */ r(n, {
987
- colors: Th(c, d),
988
- value: d,
989
- onChange: (h) => u(h, !1),
990
- trailing: /* @__PURE__ */ r(o, {
986
+ children: /* @__PURE__ */ r(o, {
987
+ colors: Th(d, u),
988
+ value: u,
989
+ onChange: (p) => h(p, !1),
990
+ trailing: /* @__PURE__ */ r(a, {
991
991
  variant: "chip",
992
- value: d,
993
- onChange: (h) => u(h, !0),
992
+ value: u,
993
+ onChange: (p) => h(p, !0),
994
994
  onCommit: () => t.commit()
995
995
  })
996
996
  })
997
997
  });
998
998
  };
999
- tt.hasRows = (e, { scene: t }) => ti(e, t) !== null;
1000
- var ti = (e, t) => j(t.layers, e.layerId) === void 0 ? null : Yn(t.spec, e), Th = (e, t) => t === null || e.some((n) => $a(n, t)) ? e : [...e, t], Qt = [
999
+ Ke.hasRows = (e, { scene: t, findGeom: n }) => ti(e, t, n) !== null;
1000
+ var ti = (e, t, n) => j(t.layers, e.layerId) === void 0 ? null : Yn(t.spec, e, n), Th = (e, t) => t === null || e.some((n) => $a(n, t)) ? e : [...e, t], Qt = [
1001
1001
  {
1002
1002
  name: "narrow",
1003
1003
  width: 0.4
@@ -1022,7 +1022,7 @@ var ti = (e, t) => j(t.layers, e.layerId) === void 0 ? null : Yn(t.spec, e), Th
1022
1022
  label: o(`editor.graphPanel.barSection.widths.${p}`),
1023
1023
  icon: /* @__PURE__ */ r(wh, { barWidth: p })
1024
1024
  })), u = l === null ? null : Ta(l.params, t.coordSystem.type), h = Qt.find(({ width: p }) => p === u)?.name ?? "";
1025
- return /* @__PURE__ */ v(V, { children: [/* @__PURE__ */ r(tt, { target: e }), l !== null && !s ? /* @__PURE__ */ r(T, {
1025
+ return /* @__PURE__ */ v(V, { children: [/* @__PURE__ */ r(Ke, { target: e }), l !== null && !s ? /* @__PURE__ */ r(T, {
1026
1026
  label: o("editor.graphPanel.barSection.thickness"),
1027
1027
  children: /* @__PURE__ */ r(a, {
1028
1028
  value: h,
@@ -1031,7 +1031,7 @@ var ti = (e, t) => j(t.layers, e.layerId) === void 0 ? null : Yn(t.spec, e), Th
1031
1031
  })
1032
1032
  }) : null] });
1033
1033
  };
1034
- ni.hasRows = tt.hasRows;
1034
+ ni.hasRows = Ke.hasRows;
1035
1035
  var Ah = {
1036
1036
  smooth: "M2 13C6 13 7 5 10 5s4 6 6 6",
1037
1037
  linear: "M2 13l5-8 4 6 5-4"
@@ -1818,7 +1818,7 @@ var xn = [
1818
1818
  })
1819
1819
  ]
1820
1820
  })
1821
- }), tp = 0.55, np = 0.15, Je = [
1821
+ }), tp = 0.55, np = 0.15, Qe = [
1822
1822
  {
1823
1823
  name: "column",
1824
1824
  icon: Vh,
@@ -1994,7 +1994,7 @@ var xn = [
1994
1994
  position: "identity"
1995
1995
  }
1996
1996
  }
1997
- ], rp = 0.05, ii = (e, t) => le(e) ? Vc(t) : e.geom === "tile" ? $c(t) : !0, wt = (e) => e === null ? null : Je.find((t) => op(t.summary, e)) ?? null, li = (e, t) => t === null || le(e) ? e : e.position === "dodge" && si(t) ? {
1997
+ ], rp = 0.05, ii = (e, t) => le(e) ? Vc(t) : e.geom === "tile" ? $c(t) : !0, wt = (e) => e === null ? null : Qe.find((t) => op(t.summary, e)) ?? null, li = (e, t) => t === null || le(e) ? e : e.position === "dodge" && si(t) ? {
1998
1998
  ...e,
1999
1999
  position: "identity"
2000
2000
  } : e.coordType !== "polar" || !kt(e.innerRadius) || t.coordType !== "polar" || !kt(t.innerRadius) ? e : {
@@ -2108,10 +2108,10 @@ var ap = "_1a90obs1", ip = [
2108
2108
  })
2109
2109
  ] });
2110
2110
  }, ci = (e, t) => le(e) || le(t) ? le(e) && le(t) : e.coordType === "polar" ? wt(e) === wt(t) : e.coordType === t.coordType && e.geom === t.geom, di = lp.flatMap(([e, t]) => {
2111
- const n = Je.find((o) => o.name === t);
2111
+ const n = Qe.find((o) => o.name === t);
2112
2112
  return n === void 0 ? [] : [{
2113
2113
  name: e,
2114
- arrangements: [n, ...[...Je, ...ip].filter((o) => o !== n && ci(n.summary, o.summary))]
2114
+ arrangements: [n, ...[...Qe, ...ip].filter((o) => o !== n && ci(n.summary, o.summary))]
2115
2115
  }];
2116
2116
  }), zr = di.filter(({ name: e }) => e !== "combo"), hp = ({ type: e, arrangement: t, onPick: n, onCommit: o }) => {
2117
2117
  const a = M(), { ToggleGroup: i } = D(), l = e.arrangements.map(({ summary: c, icon: d }) => {
@@ -2327,13 +2327,13 @@ var ap = "_1a90obs1", ip = [
2327
2327
  });
2328
2328
  }, $r = ["smooth", "linear"], fi = () => {
2329
2329
  const e = R((S) => S), t = $(), n = zn(), o = ue(), a = M(), { Switch: i, ToggleGroup: l } = D(), s = bi(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: y }) => S(y)).map(({ layer: y }) => y), d = wp(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = xn.filter((S) => h.some((y) => y.missingValueOptions.includes(S))), m = Pp(u), g = Lp(h), b = (S) => {
2330
- o.dispatch(new je({ commands: d.map((y) => new Xn({
2330
+ o.dispatch(new qe({ commands: d.map((y) => new Xn({
2331
2331
  layerId: y.layerId,
2332
2332
  showPoints: S
2333
2333
  })) }));
2334
2334
  }, f = (S) => {
2335
2335
  const y = $r.find((N) => N === S);
2336
- y !== void 0 && o.dispatch(new je({ commands: u.map((N) => new sa({
2336
+ y !== void 0 && o.dispatch(new qe({ commands: u.map((N) => new sa({
2337
2337
  layerId: N.layerId,
2338
2338
  curve: y
2339
2339
  })) }));
@@ -2344,9 +2344,9 @@ var ap = "_1a90obs1", ip = [
2344
2344
  layerId: G.layerId,
2345
2345
  missingValues: y
2346
2346
  }));
2347
- N.length !== 0 && o.dispatch(new je({ commands: N }));
2347
+ N.length !== 0 && o.dispatch(new qe({ commands: N }));
2348
2348
  }, A = d.filter((S) => S.showFill !== null), x = d.filter((S) => S.showPoints), w = kp(e, t, d), P = A.some((S) => Tp(e, S)), k = (S) => {
2349
- S.length > 0 && o.dispatch(new je({ commands: S }));
2349
+ S.length > 0 && o.dispatch(new qe({ commands: S }));
2350
2350
  }, L = (S) => {
2351
2351
  k(d.map((y) => new ke({
2352
2352
  layerId: y.layerId,
@@ -2538,7 +2538,7 @@ var bi = (e, t, n) => e.filter((o) => o.interactive).map((o) => ({
2538
2538
  const a = ue(), { Switch: i } = D();
2539
2539
  if (t.length === 0) return null;
2540
2540
  const l = (s) => {
2541
- a.dispatch(new je({ commands: t.map((c) => o(c.id, s)) }));
2541
+ a.dispatch(new qe({ commands: t.map((c) => o(c.id, s)) }));
2542
2542
  };
2543
2543
  return /* @__PURE__ */ r(T, {
2544
2544
  label: e,
@@ -2784,7 +2784,7 @@ var _p = ({ graph: e, target: t }) => {
2784
2784
  }));
2785
2785
  }, P = Yn(n.spec, t)?.some((k) => k.geomKind === "line" || k.geomKind === "area") === !0;
2786
2786
  return /* @__PURE__ */ v(V, { children: [
2787
- /* @__PURE__ */ r(tt, { target: t }),
2787
+ /* @__PURE__ */ r(Ke, { target: t }),
2788
2788
  /* @__PURE__ */ r(pi, {
2789
2789
  widthPx: m,
2790
2790
  onChange: A
@@ -3632,7 +3632,7 @@ var qp = (e) => {
3632
3632
  }), _i = {
3633
3633
  geoms: {
3634
3634
  point: {
3635
- style: tt,
3635
+ style: Ke,
3636
3636
  annotate: f1
3637
3637
  },
3638
3638
  line: {
@@ -3647,8 +3647,14 @@ var qp = (e) => {
3647
3647
  style: ni,
3648
3648
  annotate: bt
3649
3649
  },
3650
- rule: { annotate: bt },
3651
- tile: { annotate: bt }
3650
+ rule: {
3651
+ style: null,
3652
+ annotate: bt
3653
+ },
3654
+ tile: {
3655
+ style: null,
3656
+ annotate: bt
3657
+ }
3652
3658
  },
3653
3659
  legend: Np,
3654
3660
  axis: ei,
@@ -3661,33 +3667,37 @@ var qp = (e) => {
3661
3667
  children: t
3662
3668
  });
3663
3669
  }, k1 = (e) => {
3664
- const t = he(lr), n = R((i) => i), o = zn(), a = Fi(de());
3670
+ const t = he(lr), n = R((l) => l), { findGeom: o } = H(), a = zn(), i = Fi(de());
3665
3671
  return E(() => e === null ? null : zi(e, t, {
3666
3672
  scene: n,
3667
- dataLabelPlacement: o
3668
- }, a), [
3673
+ dataLabelPlacement: a,
3674
+ findGeom: o
3675
+ }, i), [
3669
3676
  e,
3670
3677
  t,
3671
3678
  n,
3679
+ a,
3672
3680
  o,
3673
- a
3681
+ i
3674
3682
  ]);
3675
3683
  }, T1 = () => {
3676
- const e = he(lr), { store: t } = H(), n = zn(), o = Fi(de());
3677
- return te((a) => zi(a, e, {
3684
+ const e = he(lr), { store: t, findGeom: n } = H(), o = zn(), a = Fi(de());
3685
+ return te((i) => zi(i, e, {
3678
3686
  scene: t.getState().scene,
3679
- dataLabelPlacement: n
3680
- }, o) !== null, [
3687
+ dataLabelPlacement: o,
3688
+ findGeom: n
3689
+ }, a) !== null, [
3681
3690
  e,
3682
3691
  t,
3692
+ o,
3683
3693
  n,
3684
- o
3694
+ a
3685
3695
  ]);
3686
3696
  }, Fi = (e) => e === bs.annotate ? "annotate" : "style", zi = (e, t, n, o) => {
3687
3697
  if (o === "annotate" && e.kind !== "observations") return null;
3688
3698
  switch (e.kind) {
3689
3699
  case "observations": {
3690
- const a = Ip(e.layerId, n.scene), i = a === null ? null : Mp(a, t, o, o === "annotate" ? bt : null);
3700
+ const a = Ip(e.layerId, n.scene), i = a === null ? null : Mp(a, t, o, o === "annotate" ? bt : Ke);
3691
3701
  return i === null || i.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ r(i, { target: e });
3692
3702
  }
3693
3703
  case "legend": {
@@ -7657,7 +7667,7 @@ var lo = (e, t) => {
7657
7667
  };
7658
7668
  }
7659
7669
  }, jm = () => {
7660
- const e = et()[0] ?? null, { layers: t, parsingLocale: n } = R(Ce((o) => ({
7670
+ const e = tt()[0] ?? null, { layers: t, parsingLocale: n } = R(Ce((o) => ({
7661
7671
  layers: o.layers,
7662
7672
  parsingLocale: o.config.parsingLocale
7663
7673
  })));
@@ -8381,7 +8391,7 @@ var lo = (e, t) => {
8381
8391
  }), /* @__PURE__ */ r(La, { children: o }, l)]
8382
8392
  });
8383
8393
  }, X2 = (e) => {
8384
- const t = et(), [n, o] = X(e), a = n !== null && jn(t[0] ?? null, n.target), i = e ?? (a ? n : null);
8394
+ const t = tt(), [n, o] = X(e), a = n !== null && jn(t[0] ?? null, n.target), i = e ?? (a ? n : null);
8385
8395
  return i !== n && o(i), i;
8386
8396
  }, j2 = ({ frameRect: e }) => {
8387
8397
  const { targetBoundaryStore: t } = H(), n = Q((l) => l.selectedOutline), { left: o, top: a } = e, i = E(() => {
@@ -8479,7 +8489,7 @@ var lo = (e, t) => {
8479
8489
  })
8480
8490
  });
8481
8491
  }, ot = () => {
8482
- const e = et();
8492
+ const e = tt();
8483
8493
  return En(e);
8484
8494
  }, En = (e) => {
8485
8495
  if (e.length !== 1) return null;
@@ -8554,12 +8564,12 @@ var lo = (e, t) => {
8554
8564
  /* @__PURE__ */ r("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" })
8555
8565
  ]
8556
8566
  })
8557
- }), e0 = "var(--pvjfpx0)", t0 = "var(--pvjfpx1)", n0 = "pvjfpx2", r0 = "pvjfpx3", o0 = "pvjfpx4", a0 = "pvjfpx6 pvjfpx5", i0 = "pvjfpx7 pvjfpx6 pvjfpx5", l0 = "pvjfpx8 pvjfpx5", Xe = 8, s0 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: o }) => {
8558
- const a = t.y + e.y, i = a + e.height, l = a - 8 - 36, s = i + 8, c = Ve(l >= Xe ? l : s, Xe, o - Xe - 36), d = Xe;
8567
+ }), e0 = "var(--pvjfpx0)", t0 = "var(--pvjfpx1)", n0 = "pvjfpx2", r0 = "pvjfpx3", o0 = "pvjfpx4", a0 = "pvjfpx6 pvjfpx5", i0 = "pvjfpx7 pvjfpx6 pvjfpx5", l0 = "pvjfpx8 pvjfpx5", je = 8, s0 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: o }) => {
8568
+ const a = t.y + e.y, i = a + e.height, l = a - 8 - 36, s = i + 8, c = Ve(l >= je ? l : s, je, o - je - 36), d = je;
8559
8569
  return {
8560
8570
  top: c,
8561
8571
  left: d,
8562
- available: Math.max(0, n - Xe * 2),
8572
+ available: Math.max(0, n - je * 2),
8563
8573
  centre: t.x + e.x + e.width / 2 - d
8564
8574
  };
8565
8575
  }, c0 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: o, label: a, testId: i, children: l }) => {
@@ -9401,7 +9411,7 @@ var X0 = "ydgo3h1", j0 = "ydgo3h2", q0 = "ydgo3h3", Z0 = ({ clientPoint: e, pane
9401
9411
  });
9402
9412
  }
9403
9413
  }, Q0 = ({ arrow: e, panelOrigin: t, panelRect: n }) => {
9404
- const { commands: o, anchorResolver: a } = H(), { engine: i } = Qe(), l = q(), s = ee({
9414
+ const { commands: o, anchorResolver: a } = H(), { engine: i } = et(), l = q(), s = ee({
9405
9415
  arrow: e,
9406
9416
  panelOrigin: t,
9407
9417
  panelRect: n,
@@ -10667,7 +10677,7 @@ var bf = "_1tyillx2", yf = {
10667
10677
  z(() => {
10668
10678
  if (t === null) return;
10669
10679
  const a = (i) => {
10670
- if (i.key !== "Tab" || i.defaultPrevented || !Ye(i.target, e, n) || Wa(i.target) || o.getState().standingInteraction?.kind === "chrome-popup") return;
10680
+ if (i.key !== "Tab" || i.defaultPrevented || !Je(i.target, e, n) || Wa(i.target) || o.getState().standingInteraction?.kind === "chrome-popup") return;
10671
10681
  const l = [...t.querySelectorAll(kf)];
10672
10682
  if (l.length === 0) return;
10673
10683
  i.preventDefault();
@@ -10719,7 +10729,7 @@ var bf = "_1tyillx2", yf = {
10719
10729
  ]);
10720
10730
  z(() => {
10721
10731
  const u = (h) => {
10722
- if (!Ye(h.target, e, o) || Wa(h.target)) return;
10732
+ if (!Je(h.target, e, o) || Wa(h.target)) return;
10723
10733
  const p = br(h.target), m = a.getState().caret !== null && !ft(h.target, o);
10724
10734
  if (!(p && !m))
10725
10735
  switch (h.key) {
@@ -10753,10 +10763,10 @@ var bf = "_1tyillx2", yf = {
10753
10763
  u?.kind === "annotation" && u.target.id === d?.annotationId || e.focus({ preventScroll: !0 });
10754
10764
  }, l = (c) => {
10755
10765
  const { selection: d, clearSelection: u } = t.getState();
10756
- d.length !== 0 && (Ye(c.target, e, n) || u());
10766
+ d.length !== 0 && (Je(c.target, e, n) || u());
10757
10767
  }, s = (c) => {
10758
- t.getState().selection.length !== 0 && Ye(c.target, e, n) && c.relatedTarget === null && (a !== null && cancelAnimationFrame(a), a = requestAnimationFrame(() => {
10759
- a = null, document.hasFocus() && (Ye(document.activeElement, e, n) || t.getState().clearSelection());
10768
+ t.getState().selection.length !== 0 && Je(c.target, e, n) && c.relatedTarget === null && (a !== null && cancelAnimationFrame(a), a = requestAnimationFrame(() => {
10769
+ a = null, document.hasFocus() && (Je(document.activeElement, e, n) || t.getState().clearSelection());
10760
10770
  }));
10761
10771
  };
10762
10772
  return e.addEventListener("pointerdown", i), document.addEventListener("focusin", l), document.addEventListener("focusout", s), () => {
@@ -11080,7 +11090,7 @@ var bf = "_1tyillx2", yf = {
11080
11090
  o
11081
11091
  ]);
11082
11092
  }, $f = (e, t) => {
11083
- const n = q(), { store: o } = H(), { engine: a, overlayRef: i } = Qe(), l = ee(t), { annotations: s, observationsPress: c, guidePress: d, tolerance: u } = Te[de()], h = Gs(), p = rt(), m = c && !h;
11093
+ const n = q(), { store: o } = H(), { engine: a, overlayRef: i } = et(), l = ee(t), { annotations: s, observationsPress: c, guidePress: d, tolerance: u } = Te[de()], h = Gs(), p = rt(), m = c && !h;
11084
11094
  return te(() => ({
11085
11095
  frameElement: e,
11086
11096
  captureRect: i.current,
@@ -11136,7 +11146,7 @@ var bf = "_1tyillx2", yf = {
11136
11146
  l
11137
11147
  ]);
11138
11148
  }, Uf = () => {
11139
- const { raisesTrigger: e, layers: t, coordSystem: n, parsingLocale: o, anchorResolver: a, geom: i, hasOverlayMenu: l } = Ml(), [s] = et(), c = s?.kind === "observations" && s.scope === "observation" ? s : null;
11149
+ const { raisesTrigger: e, layers: t, coordSystem: n, parsingLocale: o, anchorResolver: a, geom: i, hasOverlayMenu: l } = Ml(), [s] = tt(), c = s?.kind === "observations" && s.scope === "observation" ? s : null;
11140
11150
  return E(() => {
11141
11151
  if (!e || c === null || !l(c)) return null;
11142
11152
  const d = t.find((p) => p.id === c.layerId);
@@ -11207,7 +11217,7 @@ var bf = "_1tyillx2", yf = {
11207
11217
  t
11208
11218
  ]);
11209
11219
  }, Xf = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, jf = (e, t, n) => {
11210
- const o = q(), { selectionStore: a } = H(), { store: i, engine: l } = Qe(), s = ee(e), c = ee(t), d = ee(n);
11220
+ const o = q(), { selectionStore: a } = H(), { store: i, engine: l } = et(), s = ee(e), c = ee(t), d = ee(n);
11211
11221
  z(() => {
11212
11222
  const u = (f) => Ua(f, c.current, o.getState().menuTrigger), h = (f) => {
11213
11223
  if (u(f) || a.getState().selection.length > 0) return;
@@ -11250,7 +11260,7 @@ var bf = "_1tyillx2", yf = {
11250
11260
  d
11251
11261
  ]);
11252
11262
  }, qf = (e, t, n) => {
11253
- const o = q(), { store: a } = H(), { store: i } = Qe(), l = ee(t), s = Te[de()].observationsPress;
11263
+ const o = q(), { store: a } = H(), { store: i } = et(), l = ee(t), s = Te[de()].observationsPress;
11254
11264
  z(() => (i.getState().setEditorOwnsQuery(s), () => i.getState().setEditorOwnsQuery(!1)), [i, s]), z(() => {
11255
11265
  let c = null, d = null, u = !1;
11256
11266
  const h = (w) => {
@@ -11321,7 +11331,7 @@ var bf = "_1tyillx2", yf = {
11321
11331
  return !1;
11322
11332
  }
11323
11333
  }, Po = "editor", Lo = [], Yf = (e, t, n, o, a) => {
11324
- const i = Ol(), { store: l } = Qe(), s = et().length > 0, c = Te[de()].holdsHoverWhileSelected, d = Q((m) => m.menuTrigger), u = E(() => d === null ? Lo : [Bc(d)], [d]), h = $f(e, t);
11334
+ const i = Ol(), { store: l } = et(), s = tt().length > 0, c = Te[de()].holdsHoverWhileSelected, d = Q((m) => m.menuTrigger), u = E(() => d === null ? Lo : [Bc(d)], [d]), h = $f(e, t);
11325
11335
  qf(e, t, h), Vf(e, t, n, h, a), jf(i, t, n), Lf(e), Pf(e), Tf(e, o), z(() => (l.getState().publishPointerRegions(Po, u), () => l.getState().publishPointerRegions(Po, Lo)), [l, u]);
11326
11336
  const p = s && c;
11327
11337
  z(() => (l.getState().setSuspendsHover(p), () => l.getState().setSuspendsHover(!1)), [l, p]), z(() => {
@@ -11501,7 +11511,7 @@ var u5 = () => () => {
11501
11511
  controls: n,
11502
11512
  children: /* @__PURE__ */ r(a5, {
11503
11513
  value: u,
11504
- children: /* @__PURE__ */ r(qe.Root, {
11514
+ children: /* @__PURE__ */ r(Ze.Root, {
11505
11515
  [s5]: "",
11506
11516
  className: ye(l5, a, { [l]: !d5(a) }),
11507
11517
  style: s,
@@ -11582,15 +11592,15 @@ var y5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
11582
11592
  });
11583
11593
  }, C5 = ({ title: e, preview: t, accessory: n, onOpenChange: o, children: a }) => {
11584
11594
  const i = M();
11585
- return /* @__PURE__ */ v(qe.Item, {
11595
+ return /* @__PURE__ */ v(Ze.Item, {
11586
11596
  value: e,
11587
11597
  className: yr,
11588
11598
  onOpenChange: o,
11589
- children: [/* @__PURE__ */ v(qe.Header, {
11599
+ children: [/* @__PURE__ */ v(Ze.Header, {
11590
11600
  className: Sr,
11591
11601
  render: /* @__PURE__ */ r("div", {}),
11592
11602
  children: [
11593
- /* @__PURE__ */ r(qe.Trigger, {
11603
+ /* @__PURE__ */ r(Ze.Trigger, {
11594
11604
  className: v5,
11595
11605
  "aria-label": i("editor.accessibility.toggleSection", { title: e })
11596
11606
  }),
@@ -11611,7 +11621,7 @@ var y5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
11611
11621
  children: /* @__PURE__ */ r(m5, { size: "sm" })
11612
11622
  })
11613
11623
  ]
11614
- }), /* @__PURE__ */ r(qe.Panel, { children: /* @__PURE__ */ r("div", { children: a }) })]
11624
+ }), /* @__PURE__ */ r(Ze.Panel, { children: /* @__PURE__ */ r("div", { children: a }) })]
11615
11625
  });
11616
11626
  }, x5 = ({ title: e, checked: t, onToggle: n, disabled: o, preview: a, children: i }) => {
11617
11627
  const { expandSection: l, collapseAllSections: s } = i5(), { Switch: c } = D();
@@ -11689,7 +11699,7 @@ var y5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
11689
11699
  transform: O === "log" ? "log" : "linear"
11690
11700
  }));
11691
11701
  }, xr = (O) => {
11692
- a.commands.dispatch(new Ze({
11702
+ a.commands.dispatch(new Ye({
11693
11703
  scaledAesthetic: e,
11694
11704
  ...O
11695
11705
  }), { transient: !0 });
@@ -11699,13 +11709,13 @@ var y5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
11699
11709
  O !== null && xr({ domainMax: O });
11700
11710
  }, Ql = (O) => {
11701
11711
  const fe = O === "auto" ? null : O === "zero" ? 0 : Mo(m?.domain, "start");
11702
- a.commands.dispatch(new Ze({
11712
+ a.commands.dispatch(new Ye({
11703
11713
  scaledAesthetic: e,
11704
11714
  domainMin: fe
11705
11715
  }));
11706
11716
  }, es = (O) => {
11707
11717
  const fe = O === "custom" ? Mo(m?.domain, "end") : null;
11708
- a.commands.dispatch(new Ze({
11718
+ a.commands.dispatch(new Ye({
11709
11719
  scaledAesthetic: e,
11710
11720
  domainMax: fe
11711
11721
  }));
@@ -12465,7 +12475,7 @@ var y5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
12465
12475
  ] })
12466
12476
  });
12467
12477
  }, tb = 3, T3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12468
- const o = U(), a = W(o), i = M(), { RadioGrid: l } = D(), s = E(() => Je.map(({ name: h, icon: p, summary: m }) => ({
12478
+ const o = U(), a = W(o), i = M(), { RadioGrid: l } = D(), s = E(() => Qe.map(({ name: h, icon: p, summary: m }) => ({
12469
12479
  value: h,
12470
12480
  label: i(`editor.graphTypes.${h}`),
12471
12481
  icon: /* @__PURE__ */ r(p, { size: "md" }),
@@ -12473,7 +12483,7 @@ var y5 = "_40zvwv8", Z = ({ title: e, layout: t = "fixed", preview: n, accessory
12473
12483
  })), [i, a]);
12474
12484
  if (!a) return null;
12475
12485
  const c = Bt(a.spec), d = wt(c), u = (h) => {
12476
- const p = Je.find((m) => m.name === h);
12486
+ const p = Qe.find((m) => m.name === h);
12477
12487
  p && o.commands.dispatch(new Un(li(p.summary, c)));
12478
12488
  };
12479
12489
  return /* @__PURE__ */ r(Z, {
@@ -13165,7 +13175,7 @@ export {
13165
13175
  hu as Button,
13166
13176
  C3 as CalloutsSection,
13167
13177
  P5 as CaptionSection,
13168
- tt as ColorRow,
13178
+ Ke as ColorRow,
13169
13179
  fu as ColorSwatches,
13170
13180
  x3 as ComboSection,
13171
13181
  yh as ControlRegistryProvider,
@@ -22,7 +22,7 @@ import './history-chords.css';var eo = Object.defineProperty, gd = (e, t) => {
22
22
  });
23
23
  return t || eo(r, Symbol.toStringTag, { value: "Module" }), r;
24
24
  };
25
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1793273433114");
25
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1793288163741");
26
26
  function fd(e) {
27
27
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
28
28
  }