From daf7b88f161ffb0c07b7ee5fa860960457ad8411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Mon, 2 Sep 2019 08:27:42 +0200 Subject: [PATCH] =?UTF-8?q?reverting=20https://github.com/Fil/d3-geo-voron?= =?UTF-8?q?oi/commit/de77a8d14cfd4436a178bb23b4c848a7d193d1d2=20:=20for=20?= =?UTF-8?q?edges=20>=20180=C2=B0=20we'll=20have=20to=20add=20an=20intermed?= =?UTF-8?q?iate=20point?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/voronoi.js | 2 +- test/geo-voronoi-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/voronoi.js b/src/voronoi.js index b89be69..0d68a30 100644 --- a/src/voronoi.js +++ b/src/voronoi.js @@ -107,7 +107,7 @@ export function geoVoronoi(data) { tri.center = v.delaunay.centers[index]; return tri; }) - //.filter(tri => excess(tri) > 0) + .filter(tri => excess(tri) > 0) .map(tri => ({ type: "Feature", properties: { diff --git a/test/geo-voronoi-test.js b/test/geo-voronoi-test.js index 4d21819..6b16d4c 100644 --- a/test/geo-voronoi-test.js +++ b/test/geo-voronoi-test.js @@ -114,7 +114,7 @@ tape("geoVoronoi.links(sites) returns links.", function(test) { tape("geoVoronoi.triangles(sites) returns geojson.", function(test) { const tri = geoVoronoi.geoVoronoi().triangles(sites); test.equal(tri.type, "FeatureCollection"); - test.equal(tri.features.length, 2); + test.equal(tri.features.length, 1); test.end(); });