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

mapbox-gl-controls

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-controls - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

4

lib/mapbox-gl-compass.js

@@ -38,4 +38,4 @@ 'use strict';

this.compassButton.style.background = 'url(\'data:image/svg+xml,' + compassSVG + '\') center no-repeat';
this.compassButton.style.width = '28px';
this.compassButton.style.height = '28px';
this.compassButton.style.width = '30px';
this.compassButton.style.height = '30px';
this.compassButton.style.cursor = 'pointer';

@@ -42,0 +42,0 @@ this.container.appendChild(this.compassButton);

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

node.textContent = style.name;
node.style.padding = '4px 8px';
node.style.padding = '5px 8px';
node.style.cursor = 'pointer';

@@ -47,0 +47,0 @@ node.style.float = 'left';

@@ -41,4 +41,4 @@ 'use strict';

[this.zoomIn, this.zoomOut].forEach(function (node) {
node.style.width = '28px';
node.style.height = '28px';
node.style.width = '30px';
node.style.height = '30px';
node.style.cursor = 'pointer';

@@ -45,0 +45,0 @@ _this.container.appendChild(node);

{
"name": "mapbox-gl-controls",
"version": "0.0.5",
"version": "0.0.6",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -22,4 +22,4 @@ const compassSVG = '<svg width="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"/><path fill="#212121" d="M12 3l4 8H8z"/><path fill="#9E9E9E" d="M12 21l-4-8h8z"/></g></svg>';

this.compassButton.style.background = `url('data:image/svg+xml,${compassSVG}') center no-repeat`;
this.compassButton.style.width = '28px';
this.compassButton.style.height = '28px';
this.compassButton.style.width = '30px';
this.compassButton.style.height = '30px';
this.compassButton.style.cursor = 'pointer';

@@ -26,0 +26,0 @@ this.container.appendChild(this.compassButton);

@@ -30,3 +30,3 @@ const stylesDefault = [

node.textContent = style.name;
node.style.padding = '4px 8px';
node.style.padding = '5px 8px';
node.style.cursor = 'pointer';

@@ -33,0 +33,0 @@ node.style.float = 'left';

@@ -23,4 +23,4 @@ const addSVG = '<svg fill="#232323" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>';

[this.zoomIn, this.zoomOut].forEach((node) => {
node.style.width = '28px';
node.style.height = '28px';
node.style.width = '30px';
node.style.height = '30px';
node.style.cursor = 'pointer';

@@ -27,0 +27,0 @@ this.container.appendChild(node);

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