@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
8 lines (7 loc) • 382 B
TypeScript
import type { PathArray, LengthFactory, PathLengthFactoryOptions } from '../types';
/**
* Returns a {x,y} point at a given length
* of a shape, the shape total length and
* the shape minimum and maximum {x,y} coordinates.
*/
export declare function pathLengthFactory(pathInput: string | PathArray, distance?: number, options?: Partial<PathLengthFactoryOptions>): LengthFactory;