@graphysdk/react-renderer 0.0.1-alpha.20260714170734 → 0.0.1-alpha.20260721093629

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/index.d.ts CHANGED
@@ -213,11 +213,13 @@ export declare interface FontLength {
213
213
  unit: 'px' | 'em';
214
214
  }
215
215
 
216
+ /** Host font catalog mapping each font id a spec may reference to the CSS `font-family` string to render it with. */
216
217
  export declare type FontListInput = Array<{
217
218
  id: string;
218
219
  fontFamily: string;
219
220
  }>;
220
221
 
222
+ /** A CSS `font-style` keyword accepted by a measured font token override. */
221
223
  export declare type FontStyle = (typeof FONT_STYLES)[number];
222
224
 
223
225
  /**
@@ -249,6 +251,7 @@ export declare interface FooterSlotProps {
249
251
  isSourceVisible: boolean;
250
252
  }
251
253
 
254
+ /** A custom geom `renderHoverCompanions` handler's input: the layer plus the primary and related hover hits. */
252
255
  export declare type GeomHoverCompanionsRendererInput = HoverCompanionsRenderInput;
253
256
 
254
257
  /** Page-relative cursor coordinates the push-path tooltip anchors to. */
@@ -268,8 +271,10 @@ export declare interface GeomHoverPush {
268
271
  (key: null): void;
269
272
  }
270
273
 
274
+ /** A custom geom `renderHover` handler's input: the hovered layer plus the primary/group/related hover hits. */
271
275
  export declare type GeomHoverRendererInput = HoverRenderInput;
272
276
 
277
+ /** A custom geom `getOverlayAnchor` handler's input: the layer, coord system, and the matched observation. */
273
278
  export declare type GeomOverlayAnchorRendererInput = OverlayAnchorInput;
274
279
 
275
280
  /** An overlay-hosted geom's paint function — receives the guaranteed overlay wiring on `input.overlay`. */
@@ -328,8 +333,8 @@ export declare interface GeomRenderContract<G extends GeomName | string = string
328
333
  * Optional repaint of the matched subset for the highlight overlay. Omit it and the highlight layer
329
334
  * falls back to {@link render}. A geom overrides it when the plain column-grouped render would
330
335
  * misrepresent a matched subset — a bar repaints each matched observation as an isolated stack segment
331
- * (from its compiled stack cap), so a lone mid-stack match keeps its square-edged silhouette and
332
- * single-width border instead of regrouping into a standalone rounded, boxed bar.
336
+ * (from its compiled stack role), so a lone mid-stack match keeps its square-edged silhouette and
337
+ * single-width border instead of regrouping into a standalone rounded bar.
333
338
  */
334
339
  renderHighlight?: (input: HighlightRenderInput<G, C>) => ReactNode;
335
340
  renderHover: (input: HoverRenderInput<G, C>) => ReactNode;
@@ -450,6 +455,7 @@ export declare type GraphMode = 'readonly' | 'editable';
450
455
  */
451
456
  export declare const GraphProvider: ({ data, input, plugins, formattingLocale, onChange, onError, onWarnings, customPalettes, theme, fontList, themeOverrides: themeOverridesInput, children, }: GraphProviderProps) => JSX.Element;
452
457
 
458
+ /** Props for {@link GraphProvider}: the data and spec input to compile, plus theme, locale and plugin wiring. */
453
459
  export declare interface GraphProviderProps {
454
460
  data: Data;
455
461
  input: CompilerInput;
@@ -715,8 +721,10 @@ export declare interface PanelScreenRect {
715
721
 
716
722
  export { RenderHitTester }
717
723
 
724
+ /** Fires on each deduped size change — the shape of `GraphRenderer`'s `onResize` callback. */
718
725
  export declare type ResizeObserverOnResize = (state: ResizeObserverState) => void;
719
726
 
727
+ /** The observed element's content-box size in CSS pixels, rounded to integers. */
720
728
  export declare interface ResizeObserverState {
721
729
  width: number;
722
730
  height: number;
@@ -854,6 +862,7 @@ declare interface TooltipAnchor {
854
862
  placement: CalloutPlacement;
855
863
  }
856
864
 
865
+ /** Props for the Tooltip slot, overridable via `slots.Tooltip` on `GraphRenderer`. Positioning stays built in. */
857
866
  export declare interface TooltipSlotProps {
858
867
  /** Render-ready tooltip body, already formatted by the viz-engine runtime. */
859
868
  content: TooltipContent;