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.4.1 to 1.4.2

test/fixtures/issue17.json

2

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

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