@graphysdk/react-renderer 1.9.0-beta.1791533454856 → 1.9.0-beta.1791540436599

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.
@@ -15,6 +15,7 @@ import { IntroStaggerOrder } from '@graphysdk/viz-engine';
15
15
  import { JSX } from 'react/jsx-runtime';
16
16
  import { LegendPosition } from '@graphysdk/viz-engine';
17
17
  import { LineType } from '@graphysdk/viz-engine';
18
+ import { MainAxis } from '@graphysdk/viz-engine';
18
19
  import { ReactElement } from 'react';
19
20
  import { ReactNode } from 'react';
20
21
  import { Rect } from '@graphysdk/viz-engine';
@@ -1432,8 +1433,9 @@ export declare const SubtitleSection: ({ title, layout, preview }: OverridableSe
1432
1433
  * - `area` — a filled region with a stroke accent (areas)
1433
1434
  * - `circle` — a filled dot (points)
1434
1435
  * - `slice` — a pie / donut wedge (polar bars)
1436
+ * - `interval` — a stem capped at both ends, upright unless the chart is flipped (error bars)
1435
1437
  */
1436
- declare type SwatchShape = 'square' | 'line' | 'circle' | 'area' | 'slice';
1438
+ declare type SwatchShape = 'square' | 'line' | 'circle' | 'area' | 'slice' | 'interval';
1437
1439
 
1438
1440
  /**
1439
1441
  * Props for the Swatch slot (`slots.Swatch` on `GraphRenderer`). An override must paint inside the
@@ -1464,6 +1466,8 @@ declare interface SwatchSlotProps {
1464
1466
  cornerRadius?: number;
1465
1467
  /** The symbol a circle swatch draws, the owning point layer's `symbol`. Omit for a circle. */
1466
1468
  symbol?: StylePointSymbol;
1469
+ /** The chart's category axis, `'y'` under `coord.flip()`. An `interval` swatch runs along the other one. */
1470
+ mainAxis?: MainAxis;
1467
1471
  }
1468
1472
 
1469
1473
  /** The UI surface a swatch is painted on. Lets a Swatch slot restyle one surface and delegate the rest. */
package/dist/editable.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as Xr, $t as jr, At as ee, Bt as Zr, C as Ii, Ct as Ei, D as Oi, E as Mi, Et as ue, F as Ni, G as V, H as Ri, I as L, J as Di, Jt as _i, K as Fi, Mt as zi, N as Bi, O as Yr, P as Hi, Q as mn, Qt as Jr, S as Gi, T as Le, Tt as Vi, U as $i, Ut as Wi, W as Q, X as U, Xt as Ui, Y as Ki, Yt as Qr, Z as gn, _ as Ne, _n as B, _t as qi, an as Xi, b as ea, c as ta, cn as ji, ct as Zi, d as Yi, dn as na, dt as le, en as ce, et as vn, f as Ji, g as ra, gt as Qi, h as yt, hn as N, i as aa, it as oa, jt as el, k as St, kt as je, l as tl, lt as Gn, m as nl, n as ie, nn as Ge, nt as rl, o as al, on as ol, ot as il, p as ia, pn as j, pt as Ct, q as Vn, qt as ll, r as K, rt as la, st as sl, t as cl, tn as fn, tt as xt, u as dl, ut as ul, v as hl, vt as I, wt as pl, x as ml, xt as Re, y as gl, yn as vl, yt as fl, z as bl, zt as yl } from "./history-chords-BAnQMWuy.js";
1
+ import { $ as Xr, $t as jr, At as ee, Bt as Zr, C as Ii, Ct as Ei, D as Oi, E as Mi, Et as ue, F as Ni, G as V, H as Ri, I as L, J as Di, Jt as _i, K as Fi, Mt as zi, N as Bi, O as Yr, P as Hi, Q as mn, Qt as Jr, S as Gi, T as Le, Tt as Vi, U as $i, Ut as Wi, W as Q, X as U, Xt as Ui, Y as Ki, Yt as Qr, Z as gn, _ as Ne, _n as B, _t as qi, an as Xi, b as ea, c as ta, cn as ji, ct as Zi, d as Yi, dn as na, dt as le, en as ce, et as vn, f as Ji, g as ra, gt as Qi, h as yt, hn as N, i as aa, it as oa, jt as el, k as St, kt as je, l as tl, lt as Gn, m as nl, n as ie, nn as Ge, nt as rl, o as al, on as ol, ot as il, p as ia, pn as j, pt as Ct, q as Vn, qt as ll, r as K, rt as la, st as sl, t as cl, tn as fn, tt as xt, u as dl, ut as ul, v as hl, vt as I, wt as pl, x as ml, xt as Re, y as gl, yn as vl, yt as fl, z as bl, zt as yl } from "./history-chords-DCOO6eos.js";
2
2
  import { ARROW_DEFAULTS as Sl, ARROW_STICKER_DECLARATIONS as Cl, ARROW_STROKE_WIDTHS_PX as zt, AddAnnotationCommand as we, AddHighlightCommand as xl, BORDER_RADIUS_TOKENS as $n, COMBO_TYPES as Wn, CONSTANT_VARIABLES as wl, DASH_PRESETS as Tl, DEFAULT_BAR_CORNER_RADIUS as Al, DEFAULT_GEOM_COLOR as kl, DEFAULT_POINT_SIZE_PX as Ll, DEFAULT_STROKE_WIDTH_PX as Pl, DIFFERENCE_ARROW_DEFAULTS as sa, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Un, InternalError as Il, MAX_BAR_WIDTH_FRACTION as El, MIN_BAR_WIDTH_FRACTION as Ol, MoveAnnotationCommand as Ml, RESTING_HOVER_STATE as bn, RemoveAnnotationCommand as We, RemoveHighlightCommand as Nl, SHAPE_DEFAULTS as Rl, SequenceCommand as Dl, SetAxisLabelCommand as ca, SetAxisPositionCommand as da, SetAxisTickModeCommand as ua, SetAxisTicksVisibilityCommand as _l, SetAxisVisibilityCommand as Kt, SetBarCornerRadiusCommand as Fl, SetBarWidthCommand as zl, SetChartTypeCommand as ha, SetContentCaptionCommand as pa, SetContentSourceCommand as Bl, SetContentSubtitleCommand as ma, SetContentTitleCommand as ga, SetDataLabelsFormatCommand as va, SetDifferenceArrowStyleCommand as Hl, SetGridLineStyleCommand as Gl, SetGridLineWidthCommand as Vl, SetGridVisibilityCommand as qt, SetHeadlineCompareWithCommand as $l, SetHeadlinePositionCommand as Wl, SetHeadlineShowCommand as Kn, SetHeadlineSizeCommand as Ul, SetHighlightDimStyleCommand as Kl, SetLayerYScaleTypeCommand as ql, SetLegendAlignCommand as Xl, SetLegendDisplayCommand as jl, SetLegendPlacementCommand as Zl, SetLegendPositionCommand as Xt, SetLineCurveCommand as Yl, SetLineMissingValuesCommand as Jl, SetLineWidthCommand as qn, SetMappingCommand as Ql, SetNumberFormatAbbreviationCommand as es, SetNumberFormatDecimalsCommand as Xn, SetObservationsColorCommand as ts, SetPointSizeCommand as ns, SetPolarInnerRadiusCommand as rs, SetPolarStartAngleCommand as as, SetRuleLabelCommand as os, SetRuleValueCommand as is, SetScaleDomainCommand as Ie, SetScaleReverseCommand as ls, SetScaleTransformCommand as fa, SetStatLineCommand as ss, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as cs, TEXT_ANNOTATION_FADE_ALPHA as ds, ToggleCategoryLabelsCommand as ba, ToggleContentVisibilityCommand as wt, ToggleDataLabelsCommand as ya, ToggleGoalLineCommand as us, ToggleLineFillCommand as hs, ToggleLinePointsCommand as ps, ToggleStackTotalsCommand as Sa, UpdateAnnotationCommand as he, alignUnitFractions as ms, areAnchorsEqual as Ca, areEditTargetsEqual as yn, areEndpointsComparable as gs, buildEditMenuTriggerRegion as vs, buildLayerStyleAddress as fs, buildObservationPredicate as bs, buildObservationsTarget as Tt, buildObservationsTargetAtValue as xa, canAnchorDirectLabels as ys, canBecomeCombo as Ss, canBecomeHeatmap as Cs, clampAnnotationTranslation as xs, combineKindStyleDeclarations as jn, computeArrow as wa, createObservationAnchorBuilder as ws, createObservationAnchorParser as Ts, createStyleResolver as As, createValueFormatter as Ta, createXValueReader as ks, filterLayersByGeoms as jt, findAnnotation as Ls, findAverageLineLayer as Ps, findAxisGuide as Is, findCompanionLayers as Aa, findGoalLineLayer as Es, findHighlightsAtObservation as Os, findHostLayer as Ms, findLayerByGeom as ka, findLayerById as ve, findObservationAttachment as Ns, findStyleRule as Ae, findTrendLineLayer as Rs, formatDifferenceLabel as Ds, getBoundingRect as Zt, getGroupVariables as _s, getXBand as Fs, getYBand as zs, hasMainAxisBand as Bs, hasMultipleGroups as Hs, inferDefaultDifferenceArrowEndpoints as Gs, inferDifferenceArrowEndpoints as Vs, isComboChartType as Ee, isCompanionLayer as La, isObservationAttachmentKind as $s, isPointWithinEditMenuTrigger as Sn, isSafeUrl as Ws, isZeroAnchoredAxis as Pa, measureObservationsBoxes as Ia, projectAnchorToPanel as dt, readBroadestObservationsScope as Us, readChartType as Ea, readComboLineLayerId as Ks, readCompanionRowsAtScopeKey as qs, readConstantValue as Xs, readEditTargetKey as At, readGeomColor as js, readHighlightDimStyle as Zs, readMainAxis as Ys, readMappableAesthetics as Js, readMappedVariable as Qs, readObservationIndex as Oa, readObservationsColorRoute as ec, readPaletteChoices as tc, readPresentedObservationsColor as nc, readReachableLevels as rc, readRowScopeKey as ac, readRowsAtScopeKey as oc, readScopeXVariable as ic, readStyleCoord as De, readStyleRulesBeneath as lc, readVariableName as kt, resolveArrowAnnotationStyle as Cn, resolveBarBandFraction as sc, resolveComparisonBasis as cc, resolveDifferenceArrowAnnotationStyle as dc, resolveEditOutlineStyle as uc, resolveObservationPoint as Ma, resolveObservationsTarget as Zn, stepDifferenceArrowEndpoint as hc, toDashPreset as Yt, toPaintColor as ut, toPanelCursor as Lt } from "@graphysdk/viz-engine";
3
3
  import { Fragment as pc, createContext as _e, memo as Na, useCallback as ae, useContext as ye, useEffect as F, useId as ke, useLayoutEffect as Me, useMemo as O, useRef as ne, useState as X } from "react";
4
4
  import { Fragment as q, jsx as r, jsxs as m } from "react/jsx-runtime";
@@ -8930,11 +8930,15 @@ var Ig = "_1tyillx2", Eg = {
8930
8930
  const s = e || a ? oi(n.clientX, n.clientY, i) : qg(n.target, i);
8931
8931
  return s === null ? null : (s.kind === "annotation" ? a : o) ? s : null;
8932
8932
  }, qg = (e, t) => e instanceof Element ? St([e], t) : null, Xg = (e, t, n) => {
8933
- const a = {
8933
+ const a = Lt({
8934
8934
  x: e.clientX - t.left,
8935
8935
  y: e.clientY - t.top
8936
- };
8937
- return n.engine.query(Lt(a, t), n.tolerance, t);
8936
+ }, t);
8937
+ return n.engine.query(a, {
8938
+ tolerance: n.tolerance,
8939
+ viewport: t,
8940
+ includeAttached: !0
8941
+ });
8938
8942
  }, jg = class extends Qe {
8939
8943
  constructor(...e) {
8940
8944
  super(...e), this.kind = "move-drag";