mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Update build
This commit is contained in:
Vendored
+8
-1
@@ -165,6 +165,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
addLayers: function (layersArray) {
|
addLayers: function (layersArray) {
|
||||||
var fg = this._featureGroup,
|
var fg = this._featureGroup,
|
||||||
npg = this._nonPointGroup,
|
npg = this._nonPointGroup,
|
||||||
|
chunked = this.options.chunkedLoading,
|
||||||
chunkInterval = this.options.chunkInterval,
|
chunkInterval = this.options.chunkInterval,
|
||||||
chunkProgress = this.options.chunkProgress,
|
chunkProgress = this.options.chunkProgress,
|
||||||
newMarkers, i, l, m;
|
newMarkers, i, l, m;
|
||||||
@@ -175,7 +176,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
var process = L.bind(function () {
|
var process = L.bind(function () {
|
||||||
var start = (new Date()).getTime();
|
var start = (new Date()).getTime();
|
||||||
for (; offset < layersArray.length; offset++) {
|
for (; offset < layersArray.length; offset++) {
|
||||||
if (offset % 200 === 0) {
|
if (chunked && offset % 200 === 0) {
|
||||||
// every couple hundred markers, instrument the time elapsed since processing started:
|
// every couple hundred markers, instrument the time elapsed since processing started:
|
||||||
var elapsed = (new Date()).getTime() - start;
|
var elapsed = (new Date()).getTime() - start;
|
||||||
if (elapsed > chunkInterval) {
|
if (elapsed > chunkInterval) {
|
||||||
@@ -903,10 +904,16 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
|
|||||||
_animationZoomIn: function (previousZoomLevel, newZoomLevel) {
|
_animationZoomIn: function (previousZoomLevel, newZoomLevel) {
|
||||||
this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, previousZoomLevel);
|
this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, previousZoomLevel);
|
||||||
this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
|
this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
|
||||||
|
|
||||||
|
//We didn't actually animate, but we use this event to mean "clustering animations have finished"
|
||||||
|
this.fire('animationend');
|
||||||
},
|
},
|
||||||
_animationZoomOut: function (previousZoomLevel, newZoomLevel) {
|
_animationZoomOut: function (previousZoomLevel, newZoomLevel) {
|
||||||
this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, previousZoomLevel);
|
this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, previousZoomLevel);
|
||||||
this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
|
this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
|
||||||
|
|
||||||
|
//We didn't actually animate, but we use this event to mean "clustering animations have finished"
|
||||||
|
this.fire('animationend');
|
||||||
},
|
},
|
||||||
_animationAddLayer: function (layer, newCluster) {
|
_animationAddLayer: function (layer, newCluster) {
|
||||||
this._animationAddLayerNonAnimated(layer, newCluster);
|
this._animationAddLayerNonAnimated(layer, newCluster);
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user