UNPKG

664 BTypeScriptView Raw
1import Path, { PathProps } from '../graphic/Path';
2import { MatrixArray } from '../core/matrix';
3declare type SVGPathOption = Omit<PathProps, 'shape' | 'buildPath'>;
4declare class SVGPath extends Path {
5 applyTransform(m: MatrixArray): void;
6}
7export declare function createFromString(str: string, opts?: SVGPathOption): SVGPath;
8export declare function extendFromString(str: string, defaultOpts?: SVGPathOption): typeof SVGPath;
9export declare function mergePath(pathEls: Path[], opts: PathProps): Path<PathProps>;
10export declare function clonePath(sourcePath: Path, opts?: {
11 bakeTransform?: boolean;
12 toLocal?: boolean;
13}): Path<PathProps>;
14export {};