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 2.0.3 to 2.0.4

test/fixtures/issue35.json

2

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

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