Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "earcut", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "The fastest and smallest JavaScript polygon triangulation library for your WebGL apps", | ||
@@ -5,0 +5,0 @@ "main": "src/earcut.js", |
@@ -7,2 +7,4 @@ ## Earcut | ||
[![Coverage Status](https://coveralls.io/repos/mapbox/earcut/badge.svg?branch=master)](https://coveralls.io/r/mapbox/earcut?branch=master) | ||
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mapbox/earcut.svg)](http://isitmaintained.com/project/mapbox/earcut "Average time to resolve an issue") | ||
[![Percentage of issues still open](http://isitmaintained.com/badge/open/mapbox/earcut.svg)](http://isitmaintained.com/project/mapbox/earcut "Percentage of issues still open") | ||
@@ -103,5 +105,9 @@ #### The algorithm | ||
##### 2.0.4 (Oct 8, 2015) | ||
- Fixed one more extremely rare race condition, lol! | ||
##### 2.0.3 (Oct 8, 2015) | ||
- Fixed yet another rare race conditions (multiple holes connected with colinear bridges). | ||
- Fixed yet another rare race condition (multiple holes connected with colinear bridges). | ||
- Fixed crash on empty input. | ||
@@ -108,0 +114,0 @@ |
@@ -270,3 +270,4 @@ 'use strict'; | ||
if (a.i !== b.i && intersects(data, a.i, node.i, node.next.i, b.i) && | ||
locallyInside(data, a, b) && locallyInside(data, b, a)) { | ||
locallyInside(data, a, b) && locallyInside(data, b, a) && | ||
orient(data, a.i, node.i, b.i) && orient(data, a.i, node.next.i, b.i)) { | ||
@@ -273,0 +274,0 @@ triangles.push(a.i / dim); |
@@ -16,3 +16,3 @@ 'use strict'; | ||
areaTest('water-huge', 5162, 0.0015); | ||
areaTest('water-huge2', 4456, 0.0020); | ||
areaTest('water-huge2', 4457, 0.0019); | ||
areaTest('degenerate', 0); | ||
@@ -26,2 +26,3 @@ areaTest('bad-hole', 34, 0.0420); | ||
areaTest('issue34', 139); | ||
areaTest('issue35', 844); | ||
areaTest('self-touching', 124, 3.4e-14); | ||
@@ -28,0 +29,0 @@ areaTest('outside-ring', 64); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
344976
34
2480
169