From 2accb3b9cb5c1eb714b1a45419d819f52e63a817 Mon Sep 17 00:00:00 2001 From: Geoffrey Yefim Vedernikoff Date: Sun, 1 Mar 2015 19:54:17 -0500 Subject: [PATCH 1/2] Clear up the README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ecd0f32..d328c41 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,10 @@ the user is responsible for rendering the diagram. Roughly: -``` +``` javascript var voronoi = new Voronoi(); -var bbox = {xl:0,xr:800,yt:0,yb:600}; -var sites = [{x:200, y:200}, {x:50, y:250}, {x:400, y:100} /* , ... */]; +var bbox = {xl: 0, xr: 800, yt: 0, yb:600}; // xl is x-left, xr is x-right, yt is y-top, and yb is y-bottom +var sites = [ {x: 200, y: 200}, {x: 50, y: 250}, {x: 400, y: 100} /* , ... */ ]; // a 'vertex' is an object exhibiting 'x' and 'y' properties. The // Voronoi object will add a unique 'voronoiId' property to all @@ -103,7 +103,7 @@ Added on October 12, 2013: In order to help improve performance, `Voronoi.recycle()` has been added to allow the recycling of a returned Voronoi diagram. Usage: -``` +``` javascript var diagram; ... From 3702c743779b237ad18ab3a796265c1a08034d9a Mon Sep 17 00:00:00 2001 From: Geoffrey Yefim Vedernikoff Date: Sun, 1 Mar 2015 20:05:01 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d328c41..c0e85ec 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Roughly: ``` javascript var voronoi = new Voronoi(); -var bbox = {xl: 0, xr: 800, yt: 0, yb:600}; // xl is x-left, xr is x-right, yt is y-top, and yb is y-bottom +var bbox = {xl: 0, xr: 800, yt: 0, yb: 600}; // xl is x-left, xr is x-right, yt is y-top, and yb is y-bottom var sites = [ {x: 200, y: 200}, {x: 50, y: 250}, {x: 400, y: 100} /* , ... */ ]; // a 'vertex' is an object exhibiting 'x' and 'y' properties. The