UNPKG

295 BTypeScriptView Raw
1import type { PathArray, NormalArray } from '../types';
2/**
3 * @example
4 * const path = 'M0 0 H50';
5 * const normalizedPath = SVGPathCommander.normalizePath(path);
6 * // result => [['M', 0, 0], ['L', 50, 0]]
7 */
8export declare function normalizePath(pathInput: string | PathArray): NormalArray;