Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-lasso

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-lasso - npm Package Compare versions

Comparing version 2.0.0-alpha5 to 2.0.0

2

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

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