@antv/l7-core
Advanced tools
Comparing version 2.21.2 to 2.21.3
@@ -98,12 +98,5 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
if (parentLayer) { | ||
const layerChildren = parentLayer.layerChildren; | ||
const layerIndex = layerChildren.indexOf(layer); | ||
if (layerIndex > -1) { | ||
parentLayer.layerChildren = layerChildren.slice().splice(layerIndex, 1); | ||
} | ||
parentLayer.layerChildren = parentLayer.layerChildren.filter(item => item !== layer); | ||
} else { | ||
const layerIndex = _this2.layers.indexOf(layer); | ||
if (layerIndex > -1) { | ||
_this2.layers = _this2.layers.slice().splice(layerIndex, 1); | ||
} | ||
_this2.layers = _this2.layers.filter(item => item !== layer); | ||
} | ||
@@ -110,0 +103,0 @@ layer.destroy(); |
@@ -105,12 +105,5 @@ "use strict"; | ||
if (parentLayer) { | ||
const layerChildren = parentLayer.layerChildren; | ||
const layerIndex = layerChildren.indexOf(layer); | ||
if (layerIndex > -1) { | ||
parentLayer.layerChildren = layerChildren.slice().splice(layerIndex, 1); | ||
} | ||
parentLayer.layerChildren = parentLayer.layerChildren.filter(item => item !== layer); | ||
} else { | ||
const layerIndex = _this2.layers.indexOf(layer); | ||
if (layerIndex > -1) { | ||
_this2.layers = _this2.layers.slice().splice(layerIndex, 1); | ||
} | ||
_this2.layers = _this2.layers.filter(item => item !== layer); | ||
} | ||
@@ -117,0 +110,0 @@ layer.destroy(); |
{ | ||
"name": "@antv/l7-core", | ||
"version": "2.21.2", | ||
"version": "2.21.3", | ||
"description": "", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"@antv/async-hook": "^2.2.9", | ||
"@antv/l7-utils": "^2.21.2", | ||
"@antv/l7-utils": "^2.21.3", | ||
"@babel/runtime": "^7.7.7", | ||
@@ -47,3 +47,3 @@ "@mapbox/tiny-sdf": "^1.2.5", | ||
}, | ||
"gitHead": "5c2d29d2ac1d631bdecf741cb1725316c0d6f9b9" | ||
"gitHead": "522dec125e1d49bfe3b7325239bb6c9103311b2d" | ||
} |
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
864035
21039
Updated@antv/l7-utils@^2.21.3