leaflet-editable-textbox
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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) { |
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
1434440
2
17
967
0
13
1
- Removedleaflet-editable@github:leaflet/leaflet.editable#gh-pages
- Removedleaflet@1.0.0-beta.2(transitive)
Updatedleaflet@^1.0.0-beta.2