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

leaflet-editable-textbox

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-editable-textbox - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

.editorconfig

2

demo/js/index.js

@@ -77,3 +77,3 @@ var L = require('leaflet');

position: 'topleft',
callback: L.Editable.startTextBox,
callback: L.Editable.prototype.startTextBox,
kind: 'text',

@@ -80,0 +80,0 @@ html: 'T'

@@ -0,1 +1,4 @@

/*eslint no-undef: "error"*/
/*eslint-env node*/
var L = require('leaflet');

@@ -6,4 +9,4 @@ require('leaflet-editable');

require('./src/Util');
require('./src/Editable.Textbox')
require('./src/Editable.Textbox');
module.exports = L.Editable.TextBox;
{
"name": "leaflet-editable-textbox",
"version": "1.0.2",
"version": "1.0.3",
"description": "TextBox for Leaflet.Editable",

@@ -12,3 +12,3 @@ "main": "index.js",

"serve": "serve -p 3002",
"lint": "eslint ./src/",
"lint": "eslint index.js && eslint ./src/",
"build": "npm run lint && npm run build-js && npm run compress",

@@ -24,7 +24,7 @@ "start": "npm run watch & npm run serve"

"dependencies": {
"leaflet": "1.0.0-beta.2",
"leaflet-editable": "github:leaflet/leaflet.editable#gh-pages",
"leaflet": "^1.0.0-beta.2",
"leaflet-path-transform": "^1.0.0-beta.4"
},
"devDependencies": {
"leaflet-editable": "github:leaflet/leaflet.editable#gh-pages",
"babel-preset-es2015": "^6.3.13",

@@ -31,0 +31,0 @@ "babelify": "^7.2.0",

@@ -95,3 +95,4 @@ /**

tspan.firstChild.nodeValue = line;
var lineLength = layer.options.padding + tspan.getBBox().width;
var lineLength = layer.options.padding +
tspan.getComputedTextLength();

@@ -98,0 +99,0 @@ if (lineLength > maxWidth && 1 <= line.length) {

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