Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "earcut", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "The fastest and smallest JavaScript polygon triangulation library for your WebGL apps", | ||
@@ -5,0 +5,0 @@ "main": "src/earcut.js", |
@@ -85,3 +85,2 @@ 'use strict'; | ||
splitEarcut(ear, triangles); | ||
// logLinked(ear); | ||
break; | ||
@@ -92,12 +91,2 @@ } | ||
function logLinked(start) { | ||
var node = start; | ||
var points = []; | ||
do { | ||
points.push(node.p); | ||
node = node.next; | ||
} while (node !== start); | ||
console.log(JSON.stringify(points)); | ||
} | ||
// iterate through points to check if there's a reflex point inside a potential ear | ||
@@ -216,3 +205,2 @@ function isEar(ear) { | ||
if (!intersectsPolygon(node, node.p, holeNode.p)) { | ||
drawPoly([[holeNode.p, node.p]], 'blue'); | ||
splitPolygon(holeNode, node); | ||
@@ -219,0 +207,0 @@ return; |
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
81384
418