gis-leaflet-helper 3.2.7 → 3.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13297,10 +13297,16 @@ q.Marker.include({
|
|
|
13297
13297
|
_applyRotation() {
|
|
13298
13298
|
this.options.rotation && (this._icon.style[q.DomUtil.TRANSFORM + "Origin"] = this.options.rotationOrigin, q.DomUtil.TRANSFORM === "msTransform" ? this._icon.style[q.DomUtil.TRANSFORM] = "rotate(" + this.options.rotation + "deg)" : this._icon.style[q.DomUtil.TRANSFORM] += " rotateZ(" + this.options.rotation + "deg)");
|
|
13299
13299
|
},
|
|
13300
|
+
startTwinkle(e = 200, r = 2e3) {
|
|
13301
|
+
this.twinkle(e, r);
|
|
13302
|
+
},
|
|
13303
|
+
endTwinkle() {
|
|
13304
|
+
clearTimeout(this.twinkleTimer);
|
|
13305
|
+
},
|
|
13300
13306
|
twinkle(e, r) {
|
|
13301
13307
|
let o = !1, c = 0;
|
|
13302
13308
|
const d = () => {
|
|
13303
|
-
c++, c > Math.floor(r / e) ? this.setOpacity(1) : (o ? (this.setOpacity(0), o = !1) : (this.setOpacity(1), o = !0), setTimeout(d, e));
|
|
13309
|
+
c++, c > Math.floor(r / e) ? (this.setOpacity(1), this.twinkleTimer = void 0) : (o ? (this.setOpacity(0), o = !1) : (this.setOpacity(1), o = !0), this.twinkleTimer = setTimeout(d, e));
|
|
13304
13310
|
};
|
|
13305
13311
|
d();
|
|
13306
13312
|
}
|
|
@@ -13499,10 +13505,16 @@ q.LatLng.prototype.toArray = function() {
|
|
|
13499
13505
|
return [this.lat, this.lng];
|
|
13500
13506
|
};
|
|
13501
13507
|
q.Path.include({
|
|
13508
|
+
startTwinkle(e = 200, r = 2e3) {
|
|
13509
|
+
this.twinkle(e, r);
|
|
13510
|
+
},
|
|
13511
|
+
endTwinkle() {
|
|
13512
|
+
clearTimeout(this.twinkleTimer);
|
|
13513
|
+
},
|
|
13502
13514
|
twinkle(e, r) {
|
|
13503
13515
|
let o = !1, c = 0;
|
|
13504
13516
|
const d = () => {
|
|
13505
|
-
c++, c > Math.floor(r / e) ? this.setStyle({ fill: !0 }) : (o ? (this.setStyle({ fill: !1 }), o = !1) : (this.setStyle({ fill: !0 }), o = !0), setTimeout(d, e));
|
|
13517
|
+
c++, c > Math.floor(r / e) ? (this.setStyle({ fill: !0, stroke: !0 }), this.twinkleTimer = void 0) : (o ? (this.setStyle({ fill: !1, stroke: !1 }), o = !1) : (this.setStyle({ fill: !0, stroke: !0 }), o = !0), this.twinkleTimer = setTimeout(d, e));
|
|
13506
13518
|
};
|
|
13507
13519
|
d();
|
|
13508
13520
|
},
|