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.

6 lines (5 loc) 482 B
import type { RectCornerRadii } from './types.js'; /** Resolve radii in top-left, top-right, bottom-right, bottom-left order. */ export declare function resolveRectCornerRadii(cornerRadii: RectCornerRadii | undefined, width: number, height: number): RectCornerRadii; /** Serialize a stable SVG path for a rectangle with physical corner radii. */ export declare function rectCornerRadiiPath(x: number, y: number, width: number, height: number, cornerRadii: RectCornerRadii): string;