UNPKG

@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.

23 lines (22 loc) 777 B
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; };