@tanstack/charts
Version:
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/
12 lines (11 loc) • 847 B
TypeScript
import type { ChartPoint, SceneNode } from './types.js';
export interface ScenePointLookup {
points: readonly ChartPoint[];
keys: ReadonlyMap<string, readonly ChartPoint[]>;
marks: ReadonlyMap<string, readonly ChartPoint[]>;
}
/** Indexes structural point identity without treating opaque keys as prefixes. */
export declare function createScenePointLookup(points: readonly ChartPoint[]): ScenePointLookup;
/** Returns the semantic points explicitly or structurally owned by one node. */
export declare function sceneNodeOwnedPoints(node: SceneNode, scope: readonly ChartPoint[], lookup: ScenePointLookup, fallback?: readonly ChartPoint[]): readonly ChartPoint[];
export declare function sceneKeyOwnedPoints(key: string, scope: readonly ChartPoint[], lookup: ScenePointLookup, fallback?: readonly ChartPoint[]): readonly ChartPoint[];