@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/
23 lines (22 loc) • 777 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;
/** Physical baseline used to grow a Cartesian bar from its semantic start. */
readonly bar?: {
readonly baseline: number;
};
}
export type SceneMotionNode = SceneNode & {
readonly [sceneMotionNode]?: SceneMotionMetadata;
};