@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
7 lines (6 loc) • 319 B
TypeScript
import type { LengthFactory } from '../types';
/**
* Returns a {x,y} point at a given length, the total length and
* the minimum and maximum {x,y} coordinates of a line (L,V,H,Z) segment.
*/
export declare function segmentLineFactory(x1: number, y1: number, x2: number, y2: number, distance: number): LengthFactory;