UNPKG

svg-path-d

Version:

SVG path data (path[d] attribute content) manipulation library.

13 lines (12 loc) 512 B
import { PathNode } from './path-node'; export declare type AlignmentOptions = { groupClosePoints?: { x: number; y: number; }[]; }; export declare type InterpolatorOptions = AlignmentOptions & { formatter?: (n: number) => string; }; export declare function align(src: PathNode[], dst: PathNode[], options?: AlignmentOptions): PathNode[][]; export declare function makeInterpolator(src: PathNode[], dst: PathNode[], options?: InterpolatorOptions): (t: number) => string[];