@antv/util
Version:
<h1 align="center">@antv/util</h1>
8 lines (7 loc) • 341 B
TypeScript
import type { Point, PathArray, PointProperties } from '../types';
/**
* Returns the point and segment in path closest to a given point as well as
* the distance to the path stroke.
* @see https://bl.ocks.org/mbostock/8027637
*/
export declare function getPropertiesAtPoint(pathInput: string | PathArray, point: Point): PointProperties;