leaflet.fullscreen
Advanced tools
Comparing version 2.2.0 to 2.3.0
/*! | ||
* Based on package 'screenfull' | ||
* v5.1.0 - 2020-12-24 | ||
* v5.2.0 - 2021-11-03 | ||
* (c) Sindre Sorhus; MIT License | ||
@@ -18,3 +18,3 @@ * Added definition for using screenfull as an amd module | ||
} | ||
}(this, function () { | ||
}(typeof self !== 'undefined' ? self : this, function () { | ||
'use strict'; | ||
@@ -202,3 +202,3 @@ | ||
} | ||
}(this, function (leaflet, screenfull) { | ||
}(typeof self !== 'undefined' ? self : this, function (leaflet, screenfull) { | ||
'use strict'; | ||
@@ -243,14 +243,11 @@ | ||
leaflet.DomEvent | ||
.off(this.link, 'click', leaflet.DomEvent.stopPropagation) | ||
.off(this.link, 'click', leaflet.DomEvent.preventDefault) | ||
.off(this.link, 'click', leaflet.DomEvent.stop) | ||
.off(this.link, 'click', this.toggleFullScreen, this); | ||
leaflet.DomEvent | ||
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stopPropagation) | ||
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.preventDefault) | ||
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.off(this._container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this); | ||
leaflet.DomEvent | ||
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stopPropagation) | ||
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.preventDefault) | ||
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.off(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this); | ||
@@ -268,15 +265,14 @@ }, | ||
L.DomEvent.disableClickPropagation(container); | ||
leaflet.DomEvent | ||
.on(this.link, 'click', leaflet.DomEvent.stopPropagation) | ||
.on(this.link, 'click', leaflet.DomEvent.preventDefault) | ||
.on(this.link, 'click', leaflet.DomEvent.stop) | ||
.on(this.link, 'click', fn, context); | ||
leaflet.DomEvent | ||
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stopPropagation) | ||
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.preventDefault) | ||
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.on(container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context); | ||
leaflet.DomEvent | ||
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stopPropagation) | ||
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.preventDefault) | ||
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.on(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context); | ||
@@ -283,0 +279,0 @@ |
{ | ||
"name": "leaflet.fullscreen", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Simple plugin for Leaflet that adds fullscreen button to your maps.", | ||
@@ -5,0 +5,0 @@ "main": "Control.FullScreen.js", |
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
18030
305