@graphysdk/react-renderer 1.9.0-beta.1788784687575 → 1.9.0-beta.1788802947113

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.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { $ as oo, A as io, At as lo, B as qn, C as Zn, D as x, Dt as so, E as co, Et as Xn, F as X, Ft as G, G as uo, H as et, I as U, J as ho, K as jn, L as V, N as po, Nt as _, Ot as mo, P as go, Q as Qt, R as Et, S as vo, T as fo, U as bo, V as Mt, W as Yn, X as Co, Z as yo, _ as Jn, at as So, b as Nt, c as xo, d as wo, dt as To, et as ee, f as Qn, ft as le, g as Ao, gt as J, h as ko, ht as Ot, i as Lo, kt as Po, l as Io, lt as Eo, m as tt, n as se, nt, o as Mo, ot as k, p as er, q as No, r as $, st as Oo, t as Ro, u as Do, ut as zo, v as tr, w as _o, x as Fo, y as fe, z as Rt } from "./history-chords-B6gL7Ye8.js";
2
- import { d as nr, f as he, n as rr } from "./dev.utils-HBVa4Fj9.js";
1
+ import { $ as oo, A as io, At as lo, B as qn, C as Zn, D as x, Dt as so, E as co, Et as Xn, F as X, Ft as G, G as uo, H as et, I as U, J as ho, K as jn, L as V, N as po, Nt as _, Ot as mo, P as go, Q as Qt, R as Et, S as vo, T as fo, U as bo, V as Mt, W as Yn, X as Co, Z as yo, _ as Jn, at as So, b as Nt, c as xo, d as wo, dt as To, et as ee, f as Qn, ft as le, g as Ao, gt as J, h as ko, ht as Ot, i as Lo, kt as Po, l as Io, lt as Eo, m as tt, n as se, nt, o as Mo, ot as k, p as er, q as No, r as $, st as Oo, t as Ro, u as Do, ut as zo, v as tr, w as _o, x as Fo, y as fe, z as Rt } from "./history-chords-CarULN0D.js";
2
+ import { d as nr, f as ce, n as rr } from "./dev.utils-HBVa4Fj9.js";
3
3
  import { ARROW_DEFAULTS as Ho, ARROW_STICKER_DECLARATIONS as Bo, ARROW_STROKE_WIDTHS as pt, AddAnnotationCommand as pe, AddHighlightCommand as Vo, BORDER_RADIUS_TOKENS as en, COMBO_TYPES as tn, CONSTANT_VARIABLES as Go, DEFAULT_BAR_BORDER_RADIUS as $o, DEFAULT_POINT_SIZE as Uo, DEFAULT_STROKE_WIDTH as Wo, DIFFERENCE_ARROW_DEFAULTS as ar, DIFFERENCE_ARROW_SIZE_DECLARATIONS as nn, MAX_BAR_WIDTH as Ko, MIN_BAR_WIDTH as qo, MoveAnnotationCommand as Zo, RESTING_HOVER_STATE as or, RemoveAnnotationCommand as ke, RemoveHighlightCommand as Xo, SHAPE_DEFAULTS as jo, SetAppearanceTextScaleCommand as Yo, SetAxisLabelCommand as Jo, SetAxisPositionCommand as Qo, SetAxisTickModeCommand as ei, SetAxisTicksVisibilityCommand as ti, SetAxisVisibilityCommand as ni, SetBarBorderRadiusCommand as ri, SetBarWidthCommand as ai, SetChartTypeCommand as ir, SetContentCaptionCommand as lr, SetContentSourceCommand as oi, SetContentSubtitleCommand as sr, SetContentTitleCommand as cr, SetDataLabelsFormatCommand as ii, SetDifferenceArrowStyleCommand as li, SetGridLineStyleCommand as si, SetGridLineWidthCommand as ci, SetGridVisibilityCommand as di, SetHeadlineCompareWithCommand as ui, SetHeadlinePositionCommand as hi, SetHeadlineShowCommand as rn, SetHeadlineSizeCommand as pi, SetHighlightDimStyleCommand as mi, SetLayerYScaleTypeCommand as gi, SetLegendAlignCommand as vi, SetLegendDisplayCommand as fi, SetLegendPositionCommand as bi, SetLineInterpolationCommand as Ci, SetLineMissingValuesCommand as yi, SetLineWidthCommand as an, SetMappingCommand as Si, SetNumberFormatAbbreviationCommand as xi, SetNumberFormatDecimalsCommand as on, SetPointSizeCommand as wi, SetPolarInnerRadiusCommand as Ti, SetPolarStartAngleCommand as Ai, SetRuleLabelCommand as ki, SetRuleValueCommand as Li, SetScaleDomainCommand as He, SetScaleReverseCommand as Pi, SetScaleTransformCommand as Ii, SetScaleZeroCommand as ln, SetStatLineCommand as Ei, SetStyleRuleCommand as Ne, TEXT_ANNOTATION_DEFAULTS as Mi, TEXT_ANNOTATION_FADE_ALPHA as Ni, ToggleCategoryLabelsCommand as Oi, ToggleContentVisibilityCommand as rt, ToggleDataLabelsCommand as Ri, ToggleGoalLineCommand as Di, ToggleLineFillCommand as zi, ToggleLinePointsVisibilityCommand as _i, ToggleStackTotalsCommand as Fi, UpdateAnnotationCommand as re, alignUnitFractions as Hi, areAnchorsEqual as dr, areEndpointsComparable as Bi, buildEditMenuTriggerRegion as Vi, buildLayerStyleAddress as Gi, buildObservationPredicate as $i, canAnchorDirectLabels as Ui, canBecomeCombo as Wi, canBecomeHeatmap as Ki, canPlaceDataLabels as qi, clampAnnotationTranslation as Zi, computeArrow as ur, createObservationAnchorBuilder as Xi, createObservationAnchorParser as ji, createStyleResolver as at, createValueFormatter as Yi, extractConstantValue as Ji, extractVariableName as Qi, filterLayersByGeoms as bt, findAnnotation as el, findAverageLineLayer as tl, findGoalLineLayer as nl, findHighlightsAtObservation as rl, findKindStyleDeclarations as al, findLayerByGeom as hr, findObservationAttachment as ol, findStyleRule as Te, findTrendLineLayer as il, formatDifferenceLabel as ll, hasMultipleGroups as sl, inferDefaultDifferenceArrowEndpoints as cl, inferDifferenceArrowEndpoints as dl, isComboChartType as ve, isCompanionLayer as pr, isObservationAttachmentKind as ul, isPointWithinEditMenuTrigger as mr, isSafeUrl as hl, projectAnchorToPanel as Ue, readChartType as gr, readComboLineLayerId as pl, readHighlightDimStyle as ml, readMappableAesthetics as gl, readMappedVariable as vl, readObservationIndex as fl, resolveBarBandFraction as bl, resolveComparisonBasis as Cl, resolveGridLineStyle as yl, resolveObservationPoint as vr, resolveShapeAnnotationStyle as Sl, stepDifferenceArrowEndpoint as xl, toPanelCursor as Dt } from "@graphysdk/viz-engine";
4
4
  import { createContext as Oe, useCallback as ie, useContext as Le, useEffect as O, useId as Ae, useMemo as M, useRef as te, useState as Q } from "react";
5
5
  import { Fragment as j, jsx as n, jsxs as m } from "react/jsx-runtime";
6
6
  import { useShallow as Pe } from "zustand/react/shallow";
7
7
  import { createPortal as fr } from "react-dom";
8
- import ce from "clsx";
8
+ import de from "clsx";
9
9
  import { autoUpdate as wl, flip as Tl, offset as Al, shift as kl, useFloating as Ll } from "@floating-ui/react-dom";
10
10
  import { assignInlineVars as br } from "@vanilla-extract/dynamic";
11
11
  import { Extension as Cr } from "@tiptap/core";
@@ -22,7 +22,7 @@ import { Underline as _l } from "@tiptap/extension-underline";
22
22
  import { Placeholder as zt, UndoRedo as Fl } from "@tiptap/extensions";
23
23
  import { Paragraph as Sr } from "@tiptap/extension-paragraph";
24
24
  import { EditorContent as xr, useEditor as Hl, useEditorState as Bl } from "@tiptap/react";
25
- import { Toolbar as de } from "@base-ui/react/toolbar";
25
+ import { Toolbar as ue } from "@base-ui/react/toolbar";
26
26
  import { Tooltip as xe } from "@base-ui/react/tooltip";
27
27
  import { Popover as Y } from "@base-ui/react/popover";
28
28
  import { HexColorInput as Vl, HexColorPicker as Gl } from "react-colorful";
@@ -2446,7 +2446,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2446
2446
  })]
2447
2447
  })
2448
2448
  })
2449
- }), Er = "transparent", yt = nr.map((e) => he[e]), Is = Object.fromEntries(nr.map((e) => [he[e], e])), Es = (e) => yt.some((t) => Nr(t, e)), Ms = ({ color: e, onChange: t, isOpen: r, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: u = !1 }) => {
2449
+ }), Er = "transparent", yt = nr.map((e) => ce[e]), Is = Object.fromEntries(nr.map((e) => [ce[e], e])), Es = (e) => yt.some((t) => Nr(t, e)), Ms = ({ color: e, onChange: t, isOpen: r, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: u = !1 }) => {
2450
2450
  const d = k(), h = Os(), v = u ? [Er, ...yt] : yt, p = (g) => {
2451
2451
  t(g), a(!1);
2452
2452
  };
@@ -2454,7 +2454,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2454
2454
  open: r,
2455
2455
  onOpenChange: a,
2456
2456
  children: [/* @__PURE__ */ n(Y.Trigger, {
2457
- render: /* @__PURE__ */ n(de.Button, {}),
2457
+ render: /* @__PURE__ */ n(ue.Button, {}),
2458
2458
  "aria-label": i ?? d("graph.toolbar.color.label"),
2459
2459
  className: ps,
2460
2460
  onMouseDown: (g) => g.preventDefault(),
@@ -2597,7 +2597,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2597
2597
  }, [e]);
2598
2598
  }, Mr = (e) => e === "transparent" ? {
2599
2599
  background: kr,
2600
- border: `1px solid ${he.border100}`
2600
+ border: `1px solid ${ce.border100}`
2601
2601
  } : {
2602
2602
  background: e,
2603
2603
  border: `1px solid ${mo(e, 0.1)}`
@@ -2626,15 +2626,15 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2626
2626
  disabled: r,
2627
2627
  onClick: a,
2628
2628
  children: e
2629
- }), $s = ({ className: e, ...t }) => /* @__PURE__ */ n(xe.Provider, { children: /* @__PURE__ */ n(de.Root, {
2629
+ }), $s = ({ className: e, ...t }) => /* @__PURE__ */ n(xe.Provider, { children: /* @__PURE__ */ n(ue.Root, {
2630
2630
  ...t,
2631
- className: ce(Ds, e)
2632
- }) }), Us = ({ className: e, ...t }) => /* @__PURE__ */ n(de.Group, {
2631
+ className: de(Ds, e)
2632
+ }) }), Us = ({ className: e, ...t }) => /* @__PURE__ */ n(ue.Group, {
2633
2633
  ...t,
2634
- className: ce(zs, e)
2635
- }), Ws = ({ className: e, ...t }) => /* @__PURE__ */ n(de.Separator, {
2634
+ className: de(zs, e)
2635
+ }), Ws = ({ className: e, ...t }) => /* @__PURE__ */ n(ue.Separator, {
2636
2636
  ...t,
2637
- className: ce(_s, e)
2637
+ className: de(_s, e)
2638
2638
  }), Ks = ({ children: e }) => {
2639
2639
  const t = le();
2640
2640
  return t === null ? null : fr(/* @__PURE__ */ n(ee, { children: e }), t);
@@ -2643,7 +2643,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2643
2643
  Root: $s,
2644
2644
  Group: Us,
2645
2645
  Separator: Ws,
2646
- Button: de.Button,
2646
+ Button: ue.Button,
2647
2647
  ColorPicker: Ms,
2648
2648
  MenuPopup: Vs,
2649
2649
  MenuItem: Gs
@@ -2695,7 +2695,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2695
2695
  open: r,
2696
2696
  onOpenChange: a,
2697
2697
  children: [/* @__PURE__ */ m(z.Trigger, {
2698
- render: /* @__PURE__ */ n(de.Button, {}),
2698
+ render: /* @__PURE__ */ n(ue.Button, {}),
2699
2699
  "aria-label": o("graph.toolbar.font.ariaLabel"),
2700
2700
  className: Or,
2701
2701
  onMouseDown: (s) => s.preventDefault(),
@@ -2730,28 +2730,28 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2730
2730
  }, Fr = {
2731
2731
  id: "text",
2732
2732
  translationKey: "graph.toolbar.heading.text",
2733
- previewFont: he.fontTextEditorBody
2733
+ previewFont: ce.fontTextEditorBody
2734
2734
  }, un = [
2735
2735
  {
2736
2736
  id: "caption",
2737
2737
  translationKey: "graph.toolbar.heading.caption",
2738
- previewFont: he.fontTextEditorH6
2738
+ previewFont: ce.fontTextEditorH6
2739
2739
  },
2740
2740
  Fr,
2741
2741
  {
2742
2742
  id: "h3",
2743
2743
  translationKey: "graph.toolbar.heading.heading3",
2744
- previewFont: he.fontTextEditorH3
2744
+ previewFont: ce.fontTextEditorH3
2745
2745
  },
2746
2746
  {
2747
2747
  id: "h2",
2748
2748
  translationKey: "graph.toolbar.heading.heading2",
2749
- previewFont: he.fontTextEditorH2
2749
+ previewFont: ce.fontTextEditorH2
2750
2750
  },
2751
2751
  {
2752
2752
  id: "h1",
2753
2753
  translationKey: "graph.toolbar.heading.heading1",
2754
- previewFont: he.fontTextEditorH1
2754
+ previewFont: ce.fontTextEditorH1
2755
2755
  }
2756
2756
  ], Qs = ({ editor: e, activeStyle: t, isOpen: r, onOpenChange: a }) => {
2757
2757
  const o = k(), i = un.find((l) => l.id === t) ?? Fr;
@@ -2759,7 +2759,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2759
2759
  open: r,
2760
2760
  onOpenChange: a,
2761
2761
  children: [/* @__PURE__ */ m(z.Trigger, {
2762
- render: /* @__PURE__ */ n(de.Button, {}),
2762
+ render: /* @__PURE__ */ n(ue.Button, {}),
2763
2763
  "aria-label": o("graph.toolbar.heading.ariaLabel"),
2764
2764
  className: Or,
2765
2765
  onMouseDown: (l) => l.preventDefault(),
@@ -2868,7 +2868,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2868
2868
  open: a,
2869
2869
  onOpenChange: o,
2870
2870
  children: [/* @__PURE__ */ n(Y.Trigger, {
2871
- render: /* @__PURE__ */ n(de.Button, {}),
2871
+ render: /* @__PURE__ */ n(ue.Button, {}),
2872
2872
  "aria-label": i("graph.toolbar.formatting.link"),
2873
2873
  "data-active": r,
2874
2874
  className: ic,
@@ -2974,7 +2974,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
2974
2974
  const o = (i) => i.preventDefault();
2975
2975
  return /* @__PURE__ */ m(xe.Root, { children: [/* @__PURE__ */ n(xe.Trigger, {
2976
2976
  render: /* @__PURE__ */ n($l, {
2977
- render: /* @__PURE__ */ n(de.Button, {}),
2977
+ render: /* @__PURE__ */ n(ue.Button, {}),
2978
2978
  pressed: t,
2979
2979
  onPressedChange: () => r()
2980
2980
  }),
@@ -3229,7 +3229,7 @@ var Lr = "d0bl03", ms = "d0bl04", Pr = "d0bl05", Ct = "d0bl06", gs = "d0bl07", v
3229
3229
  },
3230
3230
  fontSize: {
3231
3231
  default: null,
3232
- renderHTML: (e) => typeof e.fontSize == "number" && Number.isFinite(e.fontSize) ? { style: `font-size: ${e.fontSize / 10}em` } : {}
3232
+ renderHTML: (e) => typeof e.fontSize == "number" && Number.isFinite(e.fontSize) ? { style: `font-size: calc(${e.fontSize}px * ${ce.textScale})` } : {}
3233
3233
  }
3234
3234
  }
3235
3235
  }];
@@ -6035,26 +6035,26 @@ var xa = [
6035
6035
  })), Ph = (e) => xa.find((t) => t.id === (e ?? "modern")) ?? null;
6036
6036
  var wa = [
6037
6037
  {
6038
- size: 8,
6038
+ size: 12,
6039
6039
  key: "graph.annotations.textToolbar.fontSize.small"
6040
6040
  },
6041
6041
  {
6042
- size: 10,
6042
+ size: 15,
6043
6043
  key: "graph.annotations.textToolbar.fontSize.medium"
6044
6044
  },
6045
6045
  {
6046
- size: 12,
6046
+ size: 18,
6047
6047
  key: "graph.annotations.textToolbar.fontSize.large"
6048
6048
  },
6049
6049
  {
6050
- size: 16,
6050
+ size: 24,
6051
6051
  key: "graph.annotations.textToolbar.fontSize.extraLarge"
6052
6052
  },
6053
6053
  {
6054
- size: 20,
6054
+ size: 30,
6055
6055
  key: "graph.annotations.textToolbar.fontSize.huge"
6056
6056
  }
6057
- ], Ih = (e) => wa.find((t) => t.size === (e ?? 10)) ?? null, Eh = (e) => `${e / 10}em`, Mh = [
6057
+ ], Ih = (e) => wa.find((t) => t.size === (e ?? 15)) ?? null, Eh = (e) => `${e}px`, Mh = [
6058
6058
  {
6059
6059
  alignment: "left",
6060
6060
  Icon: Gr
@@ -6431,14 +6431,14 @@ var Yh = "_1tyillx1", Jh = {
6431
6431
  "aria-hidden": "true",
6432
6432
  "data-testid": "observation-menu-trigger",
6433
6433
  "data-state": o,
6434
- className: ce(Yh, Jh[o]),
6434
+ className: de(Yh, Jh[o]),
6435
6435
  style: {
6436
6436
  left: t.x + i.center.x,
6437
6437
  top: t.y + i.center.y,
6438
6438
  ...br({ [Xh]: a.color })
6439
6439
  },
6440
6440
  children: /* @__PURE__ */ n("span", {
6441
- className: ce(Qh, e1[o === "open" ? "open" : "closed"]),
6441
+ className: de(Qh, e1[o === "open" ? "open" : "closed"]),
6442
6442
  children: /* @__PURE__ */ n(Zh, { size: "lg" })
6443
6443
  })
6444
6444
  });
@@ -7033,7 +7033,7 @@ var N1 = 6, O1 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
7033
7033
  ariaLabelledBy: c
7034
7034
  }), h = i === "swatch", { commitAfterChange: v, gestureHandlers: p } = ct(a);
7035
7035
  return /* @__PURE__ */ n(Tr, {
7036
- className: ce(E1, R1(o ?? e.length)),
7036
+ className: de(E1, R1(o ?? e.length)),
7037
7037
  value: t,
7038
7038
  onValueChange: (g) => {
7039
7039
  r(g), v();
@@ -7044,7 +7044,7 @@ var N1 = 6, O1 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
7044
7044
  children: e.map((g) => /* @__PURE__ */ m(wr.Root, {
7045
7045
  value: g.value,
7046
7046
  disabled: g.isDisabled,
7047
- className: ce(M1, h && "_1b7s5f8"),
7047
+ className: de(M1, h && "_1b7s5f8"),
7048
7048
  "aria-label": h ? g.label : void 0,
7049
7049
  children: [g.icon, !h && /* @__PURE__ */ n("span", {
7050
7050
  className: "_1b7s5f9",
@@ -7215,7 +7215,7 @@ var lp = ({ options: e, value: t, onChange: r, onCommit: a, itemLayout: o = "inl
7215
7215
  children: e.map((p) => /* @__PURE__ */ m(wr.Root, {
7216
7216
  value: p.value,
7217
7217
  disabled: p.isDisabled,
7218
- className: ce(ip, d && "cnu9yl2"),
7218
+ className: de(ip, d && "cnu9yl2"),
7219
7219
  "aria-label": sp(p, d),
7220
7220
  children: [p.icon, Na(p, d) && /* @__PURE__ */ n("span", {
7221
7221
  className: "cnu9yl3",
@@ -7276,7 +7276,7 @@ var bp = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
7276
7276
  value: d,
7277
7277
  children: /* @__PURE__ */ n(Ee.Root, {
7278
7278
  [gp]: "",
7279
- className: ce(mp, o, { [l]: !fp(o) }),
7279
+ className: de(mp, o, { [l]: !fp(o) }),
7280
7280
  style: s,
7281
7281
  value: c,
7282
7282
  onValueChange: (h) => u(h),
@@ -7457,10 +7457,10 @@ var Tp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7457
7457
  if (!i) return null;
7458
7458
  const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", v = i.config.axes[e], p = i.scales[e], g = p?.spec, f = g?.scaleType === "continuous" ? g : void 0;
7459
7459
  if (h === "circular" || h === "radial" && f === void 0) return null;
7460
- const y = g !== void 0 && "reverse" in g ? g : void 0, P = g?.scaleType === "continuous" || g?.scaleType === "datetime", C = e === "y" && f !== void 0 && i.layers.some((w) => w.yScaleType === "primary" && w.geom === "bar"), A = f?.transform === "log", L = f?.domainMax ?? null, R = Mp(f), F = (w, ue) => w.map((Fe) => ({
7460
+ const y = g !== void 0 && "reverse" in g ? g : void 0, P = g?.scaleType === "continuous" || g?.scaleType === "datetime", C = e === "y" && f !== void 0 && i.layers.some((w) => w.yScaleType === "primary" && w.geom === "bar"), A = f?.transform === "log", L = f?.domainMax ?? null, R = Mp(f), F = (w, he) => w.map((Fe) => ({
7461
7461
  value: Fe,
7462
- label: ue(Fe)
7463
- })), D = i.guides.axes.find((w) => w.scaleAestheticKey === e)?.position, E = Pp[D === "bottom" || D === "top" || D === void 0 && e === "x" ? "horizontal" : "vertical"], N = e === "y" ? pl(i.spec) : null, T = N === null ? void 0 : i.spec.layers.find((w) => w.id === N), b = i.guides.legends.drawn.some((w) => E.some((ue) => ue === w.position)), Z = E.map((w) => ({
7462
+ label: he(Fe)
7463
+ })), D = i.guides.axes.find((w) => w.scaleAestheticKey === e)?.position, E = Pp[D === "bottom" || D === "top" || D === void 0 && e === "x" ? "horizontal" : "vertical"], N = e === "y" ? pl(i.spec) : null, T = N === null ? void 0 : i.spec.layers.find((w) => w.id === N), b = i.guides.legends.drawn.some((w) => E.some((he) => he === w.position)), Z = E.map((w) => ({
7464
7464
  value: w,
7465
7465
  label: l(Ip[w])
7466
7466
  })), ye = F(["auto", "edges"], (w) => l(w === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), _e = F(["linear", "log"], (w) => l(w === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), $a = F([
@@ -7527,10 +7527,10 @@ var Tp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7527
7527
  }));
7528
7528
  }
7529
7529
  }, no = (w) => {
7530
- const ue = w === "custom" ? zn(p?.domain, "end") : null;
7530
+ const he = w === "custom" ? zn(p?.domain, "end") : null;
7531
7531
  o.commands.dispatch(new He({
7532
7532
  scaledAesthetic: e,
7533
- domainMax: ue
7533
+ domainMax: he
7534
7534
  }));
7535
7535
  }, ro = (w) => {
7536
7536
  T !== void 0 && o.commands.dispatch(new gi({
@@ -7538,10 +7538,10 @@ var Tp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7538
7538
  yScaleType: w === "double" ? "secondary" : "primary"
7539
7539
  }));
7540
7540
  }, ao = (w) => {
7541
- const ue = E.find((Fe) => Fe === w);
7542
- ue && o.commands.dispatch(new Qo({
7541
+ const he = E.find((Fe) => Fe === w);
7542
+ he && o.commands.dispatch(new Qo({
7543
7543
  axis: e,
7544
- position: ue
7544
+ position: he
7545
7545
  }));
7546
7546
  };
7547
7547
  return /* @__PURE__ */ n(W, {