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.

10 lines (9 loc) 538 B
import type { ColorValue } from 'react-native'; export interface NativePaintContext { color: ColorValue; /** Native equivalent of the browser `Canvas` system color. */ canvas?: ColorValue; } export type NativePaintResolver = (paint: string, context: NativePaintContext) => ColorValue; export declare function resolveNativePaint(paint: string, context: NativePaintContext): ColorValue; export declare function resolveNativeSolidPaint(paint: string, context: NativePaintContext, resolvePaint?: NativePaintResolver): ColorValue;