@antv/util
Version:
<h1 align="center">@antv/util</h1>
9 lines (8 loc) • 411 B
TypeScript
import type { PathArray, PathLengthFactoryOptions } from '../types';
/**
* Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
*
* The `normalizePath` version is lighter, faster, more efficient and more accurate
* with paths that are not `curveArray`.
*/
export declare function getTotalLength(pathInput: string | PathArray, options?: Partial<PathLengthFactoryOptions>): number;