New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@remix/mapbox-gl-draw

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remix/mapbox-gl-draw - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

2

package.json
{
"name": "@remix/mapbox-gl-draw",
"version": "1.4.2",
"version": "1.4.3",
"description": "A drawing component for Mapbox GL JS",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/remix/mapbox-gl-draw",

@@ -187,3 +187,11 @@ const setupModeHandler = require('./lib/mode_handler');

function changeMode(modename, nextModeOptions, eventOptions = {}) {
if (ctx.map === null) {
// It is possible that the control unloaded already
return;
}
currentMode.stop();
if (ctx.map === null) {
// It is possible that the control unloaded after stopping the current mode
return;
}

@@ -190,0 +198,0 @@ const modebuilder = modes[modename];

@@ -41,2 +41,6 @@

handle.fn.call(ctx, event);
if (DrawContext.map === null) {
// It is possible that the control unloaded due to the handler
return;
}
DrawContext.store.render();

@@ -43,0 +47,0 @@ DrawContext.ui.updateMapClasses();

@@ -59,2 +59,4 @@ const CommonSelectors = require('../lib/common_selectors');

DrawPolygon.onTap = DrawPolygon.onClick = function(state, e) {
// While in draw mode, a click always does something, so we mark it as handled
e.srcEvent.handledByMapboxGlDraw = true;
if (CommonSelectors.isVertex(e)) return this.clickOnVertex(state, e);

@@ -61,0 +63,0 @@ return this.clickAnywhere(state, e);

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