Skip to content

Commit

Permalink
update dist and package.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
sashadev-sky committed Dec 4, 2019
1 parent 686e01a commit f537898
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions dist/leaflet.distortableimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,23 @@ L.DistortableImage.Edit = L.Handler.extend({
}
},

replaceTool: function(old, next) {
if (next.baseClass !== 'leaflet-toolbar-icon' || this.hasTool(next)) {
return;
}

this.editActions.some(function(item, idx) {
if (this.editActions[idx] === old) {
this._removeToolbar();
this.editActions[idx] = next;
this._addToolbar();
return true;
} else {
return false;
}
}, this);
},

addTool: function(value) {
if (value.baseClass === 'leaflet-toolbar-icon' && !this.hasTool(value)) {
this._removeToolbar();
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leaflet-distortableimage",
"version": "0.8.6",
"version": "0.8.7",
"description": "Leaflet plugin enabling image overlays to be distorted, stretched, and warped (built for Public Lab's MapKnitter: http://publiclab.org).",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down

0 comments on commit f537898

Please sign in to comment.