update voronoi-core.d.ts to include inner class exports

This commit is contained in:
ajuvercr 2020-04-18 14:09:47 +02:00
parent 4645f8d392
commit 68a58e24d7

View file

@ -1,54 +1,56 @@
declare class Point { declare namespace Voronoi {
class Point {
x: number; x: number;
y: number; y: number;
} }
declare class Site { class Site {
x: number; x: number;
y: number; y: number;
voronoiId: number; voronoiId: number;
} }
declare class Cell { class Cell {
site: Site; site: Site;
halfedges: HalfEdge[]; halfedges: HalfEdge[];
closeMe: boolean; closeMe: boolean;
} }
declare class Edge { class Edge {
lSite: Site; lSite: Site;
rSite: Site; rSite: Site;
vb: Point; vb: Point;
va: Point; va: Point;
} }
declare class HalfEdge { class HalfEdge {
site: Site; site: Site;
edge: Edge; edge: Edge;
angle: number; angle: number;
getStartpoint(): Point; getStartpoint(): Point;
getEndpoint(): Point; getEndpoint(): Point;
} }
declare class BBox { class BBox {
xl: number; xl: number;
xr: number; xr: number;
yt: number; yt: number;
yb: number; yb: number;
} }
declare class VoronoiDiagram { class VoronoiDiagram {
site: any; site: any;
cells: Cell[]; cells: Cell[];
edges: Edge[]; edges: Edge[];
vertices: Point[]; vertices: Point[];
execTime: number; execTime: number;
}
} }
declare class Voronoi { declare class Voronoi {
constructor(); constructor();
compute(sites: Point[], bbox: BBox): VoronoiDiagram; compute(sites: Voronoi.Point[], bbox: Voronoi.BBox): Voronoi.VoronoiDiagram;
} }
export = Voronoi; export = Voronoi;