Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "earcut", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "The fastest and smallest JavaScript polygon triangulation library for your WebGL apps", | ||
@@ -5,0 +5,0 @@ "main": "src/earcut.js", |
@@ -93,2 +93,6 @@ ## Earcut | ||
##### 1.4.2 (Mar 18, 2015) | ||
- Fixed another rare edge case with a tiny hole in a huge polygon. | ||
##### 1.4.1 (Mar 17, 2015) | ||
@@ -95,0 +99,0 @@ |
@@ -293,4 +293,3 @@ 'use strict'; | ||
// a self-intersection where edge (v[i-1],v[i]) intersects (v[i+1],v[i+2]) | ||
if (intersects(a.p, node.p, node.next.p, b.p) && | ||
locallyInside(a, b) && locallyInside(b, a) && !equals(a.p, b.p)) { | ||
if (a.p !== b.p && intersects(a.p, node.p, node.next.p, b.p) && locallyInside(a, b) && locallyInside(b, a)) { | ||
@@ -332,3 +331,3 @@ if (indexed) { | ||
while (b !== a.prev) { | ||
if (isValidDiagonal(a, b)) { | ||
if (a.p !== b.p && isValidDiagonal(a, b)) { | ||
// split the polygon in two by the diagonal | ||
@@ -335,0 +334,0 @@ var c = splitPolygon(a, b); |
@@ -22,2 +22,3 @@ 'use strict'; | ||
areaTest('issue16'); | ||
areaTest('issue17'); | ||
@@ -24,0 +25,0 @@ indicesCreationTest('indices-2d'); |
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
321685
28
2434
136