UNPKG

@liammartens/svg-path-properties

Version:

Calculate the length for an SVG path, to use it with node or a Canvas element

14 lines (13 loc) 649 B
import SVGPathProperties from "./svg-path-properties"; declare class _svgPathProperties { inst: SVGPathProperties; constructor(svgPath: string); getTotalLength: () => number; getPointAtLength: (fractionLength: number) => import("./types").Point; getTangentAtLength: (fractionLength: number) => import("./types").Point; getPropertiesAtLength: (fractionLength: number) => import("./types").PointProperties; getParts: () => import("./types").PartProperties[]; } type svgPathProperties = _svgPathProperties; export declare const svgPathProperties: typeof _svgPathProperties & ((val: string) => svgPathProperties); export {};