Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

earcut

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

earcut - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc