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.6 to 2.0.7

dist/earcut.dev.js

20

package.json
{
"name": "earcut",
"version": "2.0.6",
"version": "2.0.7",
"description": "The fastest and smallest JavaScript polygon triangulation library for your WebGL apps",

@@ -11,2 +11,3 @@ "main": "src/earcut.js",

"build-min": "mkdirp dist && browserify src/earcut.js -s earcut | uglifyjs -c warnings=false -m > dist/earcut.min.js",
"prepublish": "npm run build-dev && npm run build-min",
"cov": "istanbul cover test/*.js",

@@ -18,11 +19,12 @@ "coveralls": "istanbul cover test/*.js && coveralls < ./coverage/lcov.info"

"devDependencies": {
"browserify": "^11.2.0",
"coveralls": "^2.11.2",
"eslint": "^1.6.0",
"benchmark": "^1.0.0",
"browserify": "^12.0.1",
"coveralls": "^2.11.4",
"eslint": "^1.9.0",
"eslint-config-mourner": "^1.0.1",
"istanbul": "^0.3.13",
"mkdirp": "^0.5.0",
"tape": "^4.0.0",
"uglify-js": "^2.4.21",
"watchify": "^3.4.0"
"istanbul": "^0.4.0",
"mkdirp": "^0.5.1",
"tape": "^4.2.2",
"uglify-js": "^2.6.1",
"watchify": "^3.6.1"
},

@@ -29,0 +31,0 @@ "eslintConfig": {

@@ -9,2 +9,3 @@ ## Earcut

[![Percentage of issues still open](http://isitmaintained.com/badge/open/mapbox/earcut.svg)](http://isitmaintained.com/project/mapbox/earcut "Percentage of issues still open")
[![](https://img.shields.io/badge/simply-awesome-brightgreen.svg)](https://github.com/mourner/projects)

@@ -33,6 +34,6 @@ #### The algorithm

------------------| ---- | --------- | -------- | -------- | --------- | ------
OSM building | 15 | _743,130_ | _50,640_ | _61,501_ | _122,966_ | _175,570_
dude shape | 94 | _35,039_ | _10,339_ | _8,784_ | _11,172_ | _13,557_
OSM building | 15 | _795,935_ | _50,640_ | _61,501_ | _122,966_ | _175,570_
dude shape | 94 | _35,658_ | _10,339_ | _8,784_ | _11,172_ | _13,557_
holed dude shape | 104 | _28,319_ | _8,883_ | _7,494_ | _2,130_ | n/a
complex OSM water | 2523 | _597_ | _77.54_ | failure | failure | n/a
complex OSM water | 2523 | _543_ | _77.54_ | failure | failure | n/a
huge OSM water | 5667 | _95_ | _29.30_ | failure | failure | n/a

@@ -83,9 +84,6 @@

Browser builds:
Browser builds on CDN:
```bash
npm install
npm run build-dev # builds dist/earcut.dev.js, a dev version with a source map
npm run build-min # builds dist/earcut.min.js, a minified production build
```
- [development build](https://npmcdn.com/earcut/dist/earcut.dev.js)
- [minified production build](https://npmcdn.com/earcut/dist/earcut.min.js)

@@ -107,2 +105,7 @@ Running tests:

##### 2.0.7 (Nov 18, 2015)
- Changed the algorithm to avoid filtering colinear/duplicate vertices unless it can't triangulate the polygon otherwise.
Improves performance on simpler shapes and fixes some 3D use cases.
##### 2.0.6 (Oct 26, 2015)

@@ -109,0 +112,0 @@

@@ -11,3 +11,3 @@ 'use strict';

outerLen = hasHoles ? holeIndices[0] * dim : data.length,
outerNode = filterPoints(linkedList(data, 0, outerLen, dim, true)),
outerNode = linkedList(data, 0, outerLen, dim, true),
triangles = [];

@@ -264,4 +264,3 @@

if (list === list.next) list.steiner = true;
list = filterPoints(list);
if (list) queue.push(getLeftmost(list));
queue.push(getLeftmost(list));
}

@@ -268,0 +267,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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