leaflet-geometryutil
Advanced tools
Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "leaflet-geometryutil", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Leaflet utility functions on geometries", | ||
@@ -16,4 +16,4 @@ "keywords": [ | ||
"scripts": { | ||
"test-leaflet-0.7.7": "npm install leaflet@0.7.7 --no-save && node_modules/.bin/mocha-phantomjs spec/index.html", | ||
"test-leaflet-1.0.0": "npm install leaflet@^1.0.0 --no-save && node_modules/.bin/mocha-phantomjs spec/index.html", | ||
"test-leaflet-0.7.7": "npm install leaflet@0.7.7 --no-save && node_modules/.bin/mocha-chrome spec/index.html", | ||
"test-leaflet-1.0.0": "npm install leaflet@^1.0.0 --no-save && node_modules/.bin/mocha-chrome spec/index.html", | ||
"test": "npm run test-leaflet-0.7.7 && npm run test-leaflet-1.0.0", | ||
@@ -27,7 +27,7 @@ "generate-docs": "rm -rf docs; node_modules/.bin/jsdoc -c jsdoc.config -d ./docs/" | ||
"chai": "3.5.0", | ||
"jsdoc": "3.4.0", | ||
"jsdoc": "^3.6.3", | ||
"minami": "^1.1.1", | ||
"mocha": "5.2.0", | ||
"mocha-phantomjs": "4.1.0" | ||
"mocha": "^7.0.1", | ||
"mocha-chrome": "^2.2.0" | ||
} | ||
} |
@@ -33,6 +33,6 @@ Leaflet.GeometryUtil | ||
* Install [nodejs](http://nodejs.org) and [phantomjs](http://phantomjs.org) | ||
* Install [nodejs](http://nodejs.org) | ||
``` | ||
sudo apt-get install nodejs phantomjs | ||
sudo apt-get install nodejs | ||
@@ -51,4 +51,10 @@ npm install | ||
### master ### | ||
### 0.9.3 ### | ||
* Increase locateOnLine() tolerance | ||
### 0.9.2 ### | ||
* Fixes a crash if a multilinestring has an element with only one vertex (fixes #84, thanks @runette) | ||
### 0.9.1 ### | ||
@@ -55,0 +61,0 @@ |
@@ -543,3 +543,3 @@ // Packaging/modules magic dance. | ||
portion = lengths[i]; | ||
if (L.GeometryUtil.belongsSegment(point, l1, l2, 0.0001)) { | ||
if (L.GeometryUtil.belongsSegment(point, l1, l2, 0.001)) { | ||
portion += l1.distanceTo(point); | ||
@@ -546,0 +546,0 @@ found = true; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1652712
2455
160
71
1