@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.
7 lines (6 loc) • 636 B
TypeScript
export type SvgFocusGuidePlacement = 'under' | 'over';
export type SvgFocusGuideLayers = Partial<Record<SvgFocusGuidePlacement, SVGGElement>>;
export declare function detachSvgFocusGuideLayers(svg: SVGSVGElement | null): SvgFocusGuideLayers;
export declare function restoreSvgFocusGuideLayers(svg: SVGSVGElement, layers: SvgFocusGuideLayers, include?: (placement: SvgFocusGuidePlacement) => boolean): void;
export declare function ensureSvgFocusGuideLayer(svg: SVGSVGElement, placement: SvgFocusGuidePlacement): SVGGElement;
export declare function removeSvgFocusGuideLayer(svg: SVGSVGElement, placement: SvgFocusGuidePlacement): void;