UNPKG

ag-charts-enterprise

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

7 lines (6 loc) 457 B
import type { Position } from 'ag-charts-core'; import { LonLatBBox } from './lonLatBbox'; export declare function polygonBbox(polygon: Position[], into: LonLatBBox | undefined): LonLatBBox | undefined; export declare function polygonCentroid(polygon: Position[]): Position | undefined; /** Distance from a point to a polygon. Negative if inside the polygon. */ export declare function polygonDistance(polygons: Position[][], x: number, y: number): number;