SourceTermAnalysisSystem_vue/node_modules/@antv/x6-geometry/es/path/normalize.d.ts
2026-05-15 10:22:44 +08:00

14 lines
557 B
TypeScript

/**
* Converts provided SVG path data string into a normalized path data string.
*
* The normalization uses a restricted subset of path commands; all segments
* are translated into lineto, curveto, moveto, and closepath segments.
*
* Relative path commands are changed into their absolute counterparts,
* and chaining of coordinates is disallowed.
*
* The function will always return a valid path data string; if an input
* string cannot be normalized, 'M 0 0' is returned.
*/
export declare function normalizePathData(pathData: string): string;