@graphysdk/react-renderer 1.9.0-beta.1790605692550 → 1.9.0-beta.1790605867730

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.
@@ -22,6 +22,7 @@ import { PanelRootProps as PanelRootProps_2 } from '../panel/editor-panel';
22
22
  import { ReactNode } from 'react';
23
23
  import { Rect } from '@graphysdk/viz-engine';
24
24
  import { ResolvedHeadlineSize } from '@graphysdk/viz-engine';
25
+ import { ResolvedPaint } from '@graphysdk/viz-engine';
25
26
  import { Scene } from '@graphysdk/viz-engine';
26
27
  import { SceneLayer } from '@graphysdk/viz-engine';
27
28
  import { SourceContent } from '@graphysdk/viz-engine';
@@ -1337,7 +1338,13 @@ declare type SwatchShape = 'square' | 'line' | 'circle' | 'area' | 'slice';
1337
1338
  */
1338
1339
  declare interface SwatchSlotProps {
1339
1340
  shape: SwatchShape;
1341
+ /** The colour a stroke swatch draws with, and what a filled one falls back to without `paint`. */
1340
1342
  color: string;
1343
+ /**
1344
+ * The owning geom's gradient, pattern or image `fill`. A square or slice draws it; every other shape
1345
+ * draws the one colour it stands in as, as its geom does.
1346
+ */
1347
+ paint?: ResolvedPaint;
1341
1348
  surface: SwatchSurface;
1342
1349
  label?: string;
1343
1350
  lineType?: LineType;
@@ -1349,7 +1356,7 @@ declare interface SwatchSlotProps {
1349
1356
  alpha?: number;
1350
1357
  /** Square corner radius in px. Omit so {@link DefaultSwatch} keeps `rx={2}`. */
1351
1358
  cornerRadius?: number;
1352
- /** The glyph a circle swatch draws, the owning point layer's `symbol`. Omit for a circle. */
1359
+ /** The symbol a circle swatch draws, the owning point layer's `symbol`. Omit for a circle. */
1353
1360
  symbol?: StylePointSymbol;
1354
1361
  }
1355
1362
 
package/dist/editable.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as Qo, $t as ei, C as ti, D as ni, Dt as ri, E as ai, Et as j, F as k, Ft as oi, G as ii, Gt as li, H as si, It as Rr, J as Qt, K as Pn, Kt as ci, N as di, O as Dr, Ot as ui, P as hi, Q as ut, R as pi, S as mi, St as ue, T as xe, Tt as Ue, U as X, Ut as gi, V as vi, W as $, Wt as fi, X as _r, Xt as en, Y as tn, Yt as Fr, Z as nn, Zt as De, _ as Ie, _t as Ee, an as zr, at as In, b as Br, bt as bi, c as Hr, d as yi, dn as z, en as Si, et as Gr, f as Ci, ft as xi, g as Vr, h as rn, ht as wi, i as Ti, it as Ai, k as ht, l as ki, ln as _, lt as an, m as Li, mt as E, n as he, nn as Pi, o as Ii, ot as Ei, p as $r, pt as Oi, q as V, qt as Mi, r as U, rt as Ni, sn as Q, st as re, t as Ri, tt as Di, u as _i, v as Fi, x as zi, xt as Bi, y as Hi, yt as Gi, zt as Vi } from "./history-chords-BjOvCKPi.js";
1
+ import { $ as Qo, $t as ei, C as ti, D as ni, Dt as ri, E as ai, Et as j, F as k, Ft as oi, G as ii, Gt as li, H as si, It as Rr, J as Qt, K as Pn, Kt as ci, N as di, O as Dr, Ot as ui, P as hi, Q as ut, R as pi, S as mi, St as ue, T as xe, Tt as Ue, U as X, Ut as gi, V as vi, W as $, Wt as fi, X as _r, Xt as en, Y as tn, Yt as Fr, Z as nn, Zt as De, _ as Ie, _t as Ee, an as zr, at as In, b as Br, bt as bi, c as Hr, d as yi, dn as z, en as Si, et as Gr, f as Ci, ft as xi, g as Vr, h as rn, ht as wi, i as Ti, it as Ai, k as ht, l as ki, ln as _, lt as an, m as Li, mt as E, n as he, nn as Pi, o as Ii, ot as Ei, p as $r, pt as Oi, q as V, qt as Mi, r as U, rt as Ni, sn as Q, st as re, t as Ri, tt as Di, u as _i, v as Fi, x as zi, xt as Bi, y as Hi, yt as Gi, zt as Vi } from "./history-chords-D9nkMmz3.js";
2
2
  import { n as ge, t as Ur } from "./theme.contract.css-AyXDNf0F.js";
3
3
  import { ARROW_DEFAULTS as $i, ARROW_STICKER_DECLARATIONS as Ui, ARROW_STROKE_WIDTHS_PX as Pt, AddAnnotationCommand as ye, AddHighlightCommand as Wi, BORDER_RADIUS_TOKENS as En, COMBO_TYPES as On, CONSTANT_VARIABLES as Ki, DASH_PRESETS as qi, DEFAULT_BAR_CORNER_RADIUS as Xi, DEFAULT_GEOM_COLOR as Zi, DEFAULT_POINT_SIZE_PX as ji, DEFAULT_STROKE_WIDTH_PX as Yi, DIFFERENCE_ARROW_DEFAULTS as Wr, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Mn, InternalError as Ji, MAX_BAR_WIDTH_FRACTION as Qi, MIN_BAR_WIDTH_FRACTION as el, MoveAnnotationCommand as tl, RESTING_HOVER_STATE as on, RemoveAnnotationCommand as ze, RemoveHighlightCommand as nl, SHAPE_DEFAULTS as rl, SetAxisLabelCommand as al, SetAxisPositionCommand as ol, SetAxisTickModeCommand as il, SetAxisTicksVisibilityCommand as ll, SetAxisVisibilityCommand as sl, SetBarCornerRadiusCommand as cl, SetBarWidthCommand as dl, SetChartTypeCommand as Kr, SetContentCaptionCommand as qr, SetContentSourceCommand as ul, SetContentSubtitleCommand as Xr, SetContentTitleCommand as Zr, SetDataLabelsFormatCommand as hl, SetDifferenceArrowStyleCommand as pl, SetGridLineStyleCommand as ml, SetGridLineWidthCommand as gl, SetGridVisibilityCommand as vl, SetHeadlineCompareWithCommand as fl, SetHeadlinePositionCommand as bl, SetHeadlineShowCommand as Nn, SetHeadlineSizeCommand as yl, SetHighlightDimStyleCommand as Sl, SetLayerYScaleTypeCommand as Cl, SetLegendAlignCommand as xl, SetLegendDisplayCommand as wl, SetLegendPositionCommand as Tl, SetLineCurveCommand as Al, SetLineMissingValuesCommand as kl, SetLineWidthCommand as Rn, SetMappingCommand as Ll, SetNumberFormatAbbreviationCommand as Pl, SetNumberFormatDecimalsCommand as Dn, SetPointSizeCommand as Il, SetPolarInnerRadiusCommand as El, SetPolarStartAngleCommand as Ol, SetRuleLabelCommand as Ml, SetRuleValueCommand as Nl, SetScaleDomainCommand as It, SetScaleReverseCommand as Rl, SetScaleTransformCommand as Dl, SetStatLineCommand as _l, SetStyleRuleCommand as ke, TEXT_ANNOTATION_DEFAULTS as Fl, TEXT_ANNOTATION_FADE_ALPHA as zl, ToggleCategoryLabelsCommand as Bl, ToggleContentVisibilityCommand as pt, ToggleDataLabelsCommand as Hl, ToggleGoalLineCommand as Gl, ToggleLineFillCommand as Vl, ToggleLinePointsCommand as $l, ToggleStackTotalsCommand as Ul, UpdateAnnotationCommand as ie, alignUnitFractions as Wl, areAnchorsEqual as jr, areEditTargetsEqual as Kl, areEndpointsComparable as ql, buildEditMenuTriggerRegion as Xl, buildLayerStyleAddress as Zl, buildObservationPredicate as jl, buildObservationsTarget as ln, buildObservationsTargetAtValue as Yr, canAnchorDirectLabels as Yl, canBecomeCombo as Jl, canBecomeHeatmap as Ql, clampAnnotationTranslation as es, computeArrow as Jr, createObservationAnchorBuilder as ts, createObservationAnchorParser as ns, createStyleResolver as rs, createValueFormatter as as, filterLayersByGeoms as Dt, findAnnotation as os, findAverageLineLayer as is, findCompanionLayers as Qr, findGoalLineLayer as ls, findHighlightsAtObservation as ss, findKindStyleDeclarations as cs, findLayerByGeom as ea, findLayerById as ve, findObservationAttachment as ds, findStyleRule as Ce, findTrendLineLayer as us, formatDifferenceLabel as hs, getBoundingRect as _t, getX as ps, getY as ms, hasMultipleGroups as gs, inferDefaultDifferenceArrowEndpoints as vs, inferDifferenceArrowEndpoints as fs, isComboChartType as Ae, isCompanionLayer as sn, isObservationAttachmentKind as bs, isPointWithinEditMenuTrigger as cn, isSafeUrl as ys, isZeroAnchoredAxis as Ss, measureObservationsBoxes as ta, projectAnchorToPanel as nt, readBroadestObservationsScope as Cs, readChartType as na, readComboLineLayerId as xs, readCompanionRowsAtScopeKey as ws, readConstantValue as Ts, readEditTargetKey as mt, readGeomColor as As, readHighlightDimStyle as ks, readMainAxis as Ls, readMappableAesthetics as Ps, readMappedVariable as Is, readObservationIndex as ra, readRowScopeKey as Es, readRowsAtScopeKey as Os, readScopeXVariable as Ms, readVariableName as aa, resolveArrowAnnotationStyle as dn, resolveBarBandFraction as Ns, resolveComparisonBasis as Rs, resolveDifferenceArrowAnnotationStyle as Ds, resolveEditOutlineStyle as _s, resolveObservationPoint as oa, resolveObservationsTarget as _n, stepDifferenceArrowEndpoint as Fs, toDashPreset as Ft, toPaintColor as rt, toPanelCursor as gt } from "@graphysdk/viz-engine";
4
4
  import { Fragment as zs, createContext as Be, memo as ia, useCallback as ae, useContext as we, useEffect as F, useId as Le, useLayoutEffect as Pe, useMemo as I, useRef as ne, useState as ee } from "react";