Installation
npm install --save @types/delaunator
Summary
This package contains type definitions for delaunator (https://github.com/mapbox/delaunator#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/delaunator.
declare class Delaunator<A extends ArrayLike<number>> {
triangles: Uint32Array;
halfedges: Int32Array;
hull: Uint32Array;
coords: A;
constructor(points: A);
static from(points: ArrayLike<ArrayLike<number>>): Delaunator<Float64Array>;
static from<P>(
points: ArrayLike<P>,
getX: (point: P) => number,
getY: (point: P) => number,
): Delaunator<Float64Array>;
update(): void;
}
export = Delaunator;
Additional Details
- Last updated: Fri, 12 Jul 2024 23:07:20 GMT
- Dependencies: none
Credits
These definitions were written by Denis Carriere, Bradley Odell, and Tobias Kraus.