import { BackgroundOptions } from '../../entities/background'; import { CaptionOptions } from '../../entities/caption'; import { LegendOptions } from '../../entities/legend'; import { HighlightOptions } from '../../features/highlight'; import { ChartListeners, SelectionOptions } from '../../features/selection'; import { TooltipOptions } from '../../features/tooltip'; import { AnimationOptions } from '../../shared/animation'; import { ChartWidgetModule, ChartState, ChartWidget, ImperativeOptions, ModuleRegistry, NodeRef, SelectedNode, ThemeContext } from '../../shared/kernel'; import { LocaleOptions } from '../../shared/locale'; import { Datum, PaddingValue } from '../../shared/options'; import { Group, Scene } from '../../shared/scene'; export interface StandaloneChartInputs { data?: Datum[]; series?: Array<{ type: string; }>; title?: CaptionOptions; subtitle?: CaptionOptions; padding?: PaddingValue; background?: BackgroundOptions; legend?: LegendOptions; tooltip?: TooltipOptions; highlight?: HighlightOptions; animation?: AnimationOptions; selection?: SelectionOptions; listeners?: ChartListeners; locale?: LocaleOptions; } /** Widget for axis-less series: hierarchy (treemap/sunburst/pyramid) and flow (sankey/chord). */ export declare class StandaloneChart implements ChartWidget { private readonly scene; private readonly registry; private readonly requestRender; private inputs; private theme; private series; private legend; private highlight; /** The data under an open tooltip has changed — it is re-read once the layout has run. */ private tooltipStale; /** Selected datum indices per series id (Data Selection). */ private readonly selectedMap; private readonly animator; private hasAnimated; private readonly tooltip; /** The rubber band being dragged, in chart coordinates. */ private selectRect; constructor(scene: Scene, registry: ModuleRegistry, requestRender: () => void, container?: HTMLElement); setOptions(inputs: StandaloneChartInputs, theme: ThemeContext): void; /** The rows of a single frame while an update flows into place. */ setData(data: Datum[]): void; valueFields(): string[]; /** * A highlight the new configuration can still answer for. A hierarchy numbers * the nodes it draws rather than the rows it was given, so the series is asked * whether the node is still there instead of the data being counted. */ private stillPointsAtSomething; /** The tooltip on screen, read off the data of the frame while it moves. */ private refreshTooltip; layoutAndRender(): void; handlePointerMove(x: number, y: number): void; handlePointerLeave(): void; /** The tooltip addressed by datum: no pointer, the node's own anchor stands in for one. */ showTooltip(target: NodeRef): boolean; hideTooltip(): void; handleClick(x: number, y: number): void; clickNode(target: NodeRef, options?: ImperativeOptions): boolean; getSelection(): SelectedNode[]; setSelection(targets: NodeRef[], options?: ImperativeOptions): void; private emitNodeClick; /** * The row a node stands for. A hierarchy numbers every node it draws, nested * ones included, so the index of a node addresses the data of the chart only * on a tree one level deep — the series is the one that knows. */ private datumOf; /** Click semantics of the selection: single replaces it, multiple toggles the node. */ private toggleSelected; private afterSelectionChange; private collectSelection; /** The node a reference points at; without a series id the visible ones answer in order. */ private resolveNode; handleDoubleClick(): void; handleWheel(): void; /** * Rubber-band selection: opt-in through `selection.boxSelect`, and only where * a selection can hold more than one node — a band that replaced the whole * selection with its last node would be a click with extra steps. */ handleDragStart(x: number, y: number): void; handleDragMove(x: number, y: number): void; handleDragEnd(): void; /** The band itself, drawn over everything while the pointer is down. */ protected renderSelectBox(layer: Group): void; getState(): ChartState; setState(): void; isZoomed(): boolean; resetZoom(): void; private pickNearest; destroy(): void; } export declare const standaloneChartModule: ChartWidgetModule;