leaflet-editable-textbox
Advanced tools
Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "leaflet-editable-textbox", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "TextBox for Leaflet.Editable", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ # leaflet-schematic-textBox | ||
See `demo` for usage example. | ||
See [Demo](https://rumax.github.io/Leaflet.Editable.TextBox/demo/ "Demo") for example. | ||
@@ -8,0 +8,0 @@ ## License |
@@ -22,2 +22,3 @@ /** | ||
var textSize; | ||
var fontSizeAttr; | ||
@@ -27,11 +28,13 @@ if (0 < texts.length) { | ||
for (var ind = texts.length - 1; 0 <= ind; --ind) { | ||
textSize = parseFloat(texts[ind].getAttribute('font-size')); | ||
size += textSize; | ||
if (sizeMin > textSize) { | ||
sizeMin = textSize; | ||
fontSizeAttr = texts[ind].getAttribute('font-size'); | ||
if (null !== fontSizeAttr) { | ||
textSize = parseFloat(texts[ind].getAttribute('font-size')); | ||
size += textSize; | ||
if (sizeMin > textSize) { | ||
sizeMin = textSize; | ||
} | ||
if (sizeMax < textSize) { | ||
sizeMax = textSize; | ||
} | ||
} | ||
if (sizeMax < textSize) { | ||
sizeMax = textSize; | ||
} | ||
} | ||
@@ -38,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2667784
18
17042
2