@graphysdk/react-renderer 2.0.0-beta.1788422316760 → 2.0.0-beta.1788434377445

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.
@@ -912,6 +912,11 @@ declare interface HeadlineSlotProps {
912
912
  resolvedSize: ResolvedHeadlineSize;
913
913
  /** Leading strip items to paint; the rest are hidden because they would overflow the band. */
914
914
  visibleItemCount: number;
915
+ /**
916
+ * Whether this figure sits in the donut hole. Strip polar totals reuse the grand-total class, so
917
+ * paint cannot infer the hole from CSS — only the placement input knows.
918
+ */
919
+ isInDonutHole?: boolean;
915
920
  }
916
921
 
917
922
  declare type I18nLocale = keyof typeof dictionaries;
package/dist/editable.mjs CHANGED
@@ -1,5 +1,5 @@
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, G as uo, H as et, I as U, J as ho, K as jn, L as V, Mt as _, N as po, Ot as mo, P as go, Pt as G, 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-DKxxemv0.js";
2
- import { d as nr, f as he, n as rr } from "./dev.utils-DepuGtOF.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, G as uo, H as et, I as U, J as ho, K as jn, L as V, Mt as _, N as po, Ot as mo, P as go, Pt as G, 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-D3KvTN5M.js";
2
+ import { d as nr, f as he, n as rr } from "./dev.utils-SaP1jpou.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";
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./dev.utils-Cu9g-Xx9.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...f(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=i=>i===void 0?void 0:n.find(d=>d.id===i)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},f=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(a.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){c(r,o);continue}n[r]=t}else n[r]=o;return n},c=(e,n)=>{a.IS_DEV&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./dev.utils-CgbFVnHz.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...f(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=i=>i===void 0?void 0:n.find(d=>d.id===i)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},f=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(a.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){c(r,o);continue}n[r]=t}else n[r]=o;return n},c=(e,n)=>{a.IS_DEV&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
@@ -107,9 +107,6 @@ declare const vars: {
107
107
  legendTextColor: `var(--${string})`;
108
108
  dimmedSeriesLabelTextColor: `var(--${string})`;
109
109
  dimmedSeriesLabelLineColor: `var(--${string})`;
110
- trendNegativeColor: `var(--${string})`;
111
- trendPositiveColor: `var(--${string})`;
112
- trendNeutralColor: `var(--${string})`;
113
110
  annotationFrameBorderColor: `var(--${string})`;
114
111
  editMenuTriggerIconColor: `var(--${string})`;
115
112
  heatmapEmptyTileBackground: `var(--${string})`;
@@ -120,7 +117,6 @@ declare const vars: {
120
117
  tooltipRowGap: `var(--${string})`;
121
118
  tooltipShadow: `var(--${string})`;
122
119
  editorControlHeight: `var(--${string})`;
123
- legendItemGap: `var(--${string})`;
124
120
  legendSwatchGap: `var(--${string})`;
125
121
  legendSwatchWidth: `var(--${string})`;
126
122
  legendSwatchHeight: `var(--${string})`;
@@ -128,7 +124,6 @@ declare const vars: {
128
124
  legendPillPaddingBlock: `var(--${string})`;
129
125
  legendPillBorderWidth: `var(--${string})`;
130
126
  headlineRowGap: `var(--${string})`;
131
- headlineItemGap: `var(--${string})`;
132
127
  canvasDefault: `var(--${string})`;
133
128
  canvasBlue: `var(--${string})`;
134
129
  canvasCyan: `var(--${string})`;
@@ -175,7 +170,6 @@ declare const vars: {
175
170
  fontWeightSemibold: `var(--${string})`;
176
171
  fontWeightBold: `var(--${string})`;
177
172
  fontWeightExtraBold: `var(--${string})`;
178
- fontWeightBlack: `var(--${string})`;
179
173
  textScale: `var(--${string})`;
180
174
  fontSizeXxs: `var(--${string})`;
181
175
  fontSizeXs: `var(--${string})`;
@@ -199,8 +193,6 @@ declare const vars: {
199
193
  fontLineHeightHeadingLg: `var(--${string})`;
200
194
  fontLegendLabel: `var(--${string})`;
201
195
  fontSeriesLabel: `var(--${string})`;
202
- fontTrendTag: `var(--${string})`;
203
- fontTrendTagSmall: `var(--${string})`;
204
196
  fontPieLabel: `var(--${string})`;
205
197
  fontPieChartTotal: `var(--${string})`;
206
198
  fontButton: `var(--${string})`;
@@ -1,4 +1,4 @@
1
- import { c as d, t as s } from "./dev.utils-DepuGtOF.js";
1
+ import { c as d, t as s } from "./dev.utils-SaP1jpou.js";
2
2
  import { parseFontShorthand as v } from "@graphysdk/viz-engine/graph-config";
3
3
  var y = (e, n) => {
4
4
  const r = e.appearance?.textStyle;