@tanstack/charts
Version:
A chart grammar for TypeScript and JavaScript. Marks consume your data directly, channels describe visual encodings, and the engine compiles them into a renderer-neutral keyed scene. TanStack's compact scales cover common numeric and categorical mappings.
19 lines (18 loc) • 631 B
TypeScript
import type { SceneNode } from './types.js';
export declare const sceneMotionNode: unique symbol;
export interface SceneMotionPathGeometry {
readonly values: readonly number[];
readonly project: (values: readonly number[]) => string | undefined;
}
export interface SceneMotionHierarchy {
readonly markId: string;
readonly id: string;
readonly ancestorIds: readonly string[];
}
export interface SceneMotionMetadata {
readonly path?: SceneMotionPathGeometry;
readonly hierarchy?: SceneMotionHierarchy;
}
export type SceneMotionNode = SceneNode & {
readonly [sceneMotionNode]?: SceneMotionMetadata;
};