From 68a58e24d7f5ca746d20178b0ce4ec0d6d0ae9b0 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Sat, 18 Apr 2020 14:09:47 +0200 Subject: [PATCH] update voronoi-core.d.ts to include inner class exports --- frontend/www/src/voronoi/voronoi-core.d.ts | 82 +++++++++++----------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/frontend/www/src/voronoi/voronoi-core.d.ts b/frontend/www/src/voronoi/voronoi-core.d.ts index 5d7ee4f..e908fbb 100644 --- a/frontend/www/src/voronoi/voronoi-core.d.ts +++ b/frontend/www/src/voronoi/voronoi-core.d.ts @@ -1,54 +1,56 @@ -declare class Point { - x: number; - y: number; -} +declare namespace Voronoi { + class Point { + x: number; + y: number; + } -declare class Site { - x: number; - y: number; - voronoiId: number; -} + class Site { + x: number; + y: number; + voronoiId: number; + } -declare class Cell { - site: Site; - halfedges: HalfEdge[]; - closeMe: boolean; -} + class Cell { + site: Site; + halfedges: HalfEdge[]; + closeMe: boolean; + } -declare class Edge { - lSite: Site; - rSite: Site; - vb: Point; - va: Point; -} + class Edge { + lSite: Site; + rSite: Site; + vb: Point; + va: Point; + } -declare class HalfEdge { - site: Site; - edge: Edge; - angle: number; - getStartpoint(): Point; - getEndpoint(): Point; -} + class HalfEdge { + site: Site; + edge: Edge; + angle: number; + getStartpoint(): Point; + getEndpoint(): Point; + } -declare class BBox { - xl: number; - xr: number; - yt: number; - yb: number; -} + class BBox { + xl: number; + xr: number; + yt: number; + yb: number; + } -declare class VoronoiDiagram { - site: any; - cells: Cell[]; - edges: Edge[]; - vertices: Point[]; - execTime: number; + class VoronoiDiagram { + site: any; + cells: Cell[]; + edges: Edge[]; + vertices: Point[]; + execTime: number; + } } declare class Voronoi { constructor(); - compute(sites: Point[], bbox: BBox): VoronoiDiagram; + compute(sites: Voronoi.Point[], bbox: Voronoi.BBox): Voronoi.VoronoiDiagram; } export = Voronoi;