UNPKG

411 BTypeScriptView Raw
1import type { PathArray, PathLengthFactoryOptions } from '../types';
2/**
3 * Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
4 *
5 * The `normalizePath` version is lighter, faster, more efficient and more accurate
6 * with paths that are not `curveArray`.
7 */
8export declare function getTotalLength(pathInput: string | PathArray, options?: Partial<PathLengthFactoryOptions>): number;