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.

12 lines (11 loc) 955 B
import type { ChartPoint, ChartValue, MarkScene } from './types.js'; export interface FilterMarkSceneOptions { interaction?: 'preserve' | 'remove'; } export interface StripMarkSceneInteractionOptions { conditional?: 'remove' | 'reject'; } /** Removes every interaction-owned scene field without changing painted geometry. */ export declare function stripMarkSceneInteraction<TDatum, TXValue extends ChartValue, TYValue extends ChartValue>(scene: MarkScene<TDatum, TXValue, TYValue>, options?: StripMarkSceneInteractionOptions): MarkScene<TDatum, TXValue, TYValue>; /** Filters painted mark output by semantic point after channels and scales resolve. */ export declare function filterMarkSceneByPoint<TDatum, TXValue extends ChartValue, TYValue extends ChartValue>(scene: MarkScene<TDatum, TXValue, TYValue>, include: (point: ChartPoint<TDatum, TXValue, TYValue>) => boolean, options?: FilterMarkSceneOptions): MarkScene<TDatum, TXValue, TYValue>;