leaflet-lasso
Advanced tools
Comparing version 2.0.0-alpha5 to 2.0.0
{ | ||
"name": "leaflet-lasso", | ||
"version": "2.0.0-alpha5", | ||
"version": "2.0.0", | ||
"description": "Leaflet plugin for lasso selection", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ # leaflet-lasso | ||
<img src="docs/screenshot.jpg" srcset="docs/screenshot@2x.jpg 2x" alt="Screenshot"> | ||
![Screenshot](docs/screenshot.jpg) | ||
@@ -8,0 +8,0 @@ Supports all Leaflet vector layers: |
@@ -14,3 +14,3 @@ import L from 'leaflet'; | ||
map = L.map(container, { renderer: new L.SVG(), center: [0, 0], zoom: 12 }); | ||
map = L.map(container, { renderer: new L.SVG(), center: [0, 0], zoom: 12, maxZoom: 12 }); | ||
lasso = new LassoHandler(map); | ||
@@ -62,3 +62,2 @@ }); | ||
container.dispatchEvent(new MouseEvent('mousedown', { buttons: 1, clientX: 0, clientY: 0 })); | ||
expect(document.body.classList.contains(ACTIVE_CLASS)).toEqual(true); | ||
@@ -71,3 +70,2 @@ }); | ||
document.dispatchEvent(new MouseEvent('mouseup', { buttons: 1, clientX: 0, clientY: 0 })); | ||
expect(container.classList.contains(ACTIVE_CLASS)).toEqual(false); | ||
@@ -81,5 +79,4 @@ expect(document.body.classList.contains(ACTIVE_CLASS)).toEqual(false); | ||
document.dispatchEvent(new MouseEvent('mouseup', { buttons: 1, clientX: 0, clientY: 0 })); | ||
expect(lasso.enabled()).toEqual(false); | ||
}); | ||
}) |
@@ -18,3 +18,3 @@ import L from 'leaflet'; | ||
it('clicking button toggles handler', () => { | ||
it('toggles handler', () => { | ||
const button = container.querySelector('.leaflet-control-lasso') as HTMLElement; | ||
@@ -21,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
668381
35