Installation
npm install --save @types/d3-polygon
Summary
This package contains type definitions for d3-polygon (https://github.com/d3/d3-polygon/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-polygon/v1.
export function polygonArea(polygon: Array<[number, number]>): number;
export function polygonCentroid(polygon: Array<[number, number]>): [number, number];
export function polygonHull(points: Array<[number, number]>): Array<[number, number]> | null;
export function polygonContains(polygon: Array<[number, number]>, point: [number, number]): boolean;
export function polygonLength(polygon: Array<[number, number]>): number;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:37 GMT
- Dependencies: none
Credits
These definitions were written by Tom Wanzek, Alex Ford, Boris Yankov, and Nathan Bierema.