@antv/l7-layers 2.13.7 → 2.13.8

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.
@@ -381,6 +381,8 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
381
381
  }, {
382
382
  key: "log",
383
383
  value: function log(logType) {
384
+ var _this$debugService;
385
+
384
386
  var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'init';
385
387
 
386
388
  // @ts-ignore 瓦片、瓦片图层目前不参与日志
@@ -393,7 +395,7 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
393
395
  id: this.id,
394
396
  type: this.type
395
397
  };
396
- this.debugService.log(key, values);
398
+ (_this$debugService = this.debugService) === null || _this$debugService === void 0 ? void 0 : _this$debugService.log(key, values);
397
399
  }
398
400
  }, {
399
401
  key: "updateModelData",
@@ -554,9 +556,8 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
554
556
  value: function setData(data, options) {
555
557
  var _this4 = this;
556
558
 
557
- this.log(IDebugLog.SourceInitStart, ILayerStage.UPDATE);
558
-
559
559
  if (this.inited) {
560
+ this.log(IDebugLog.SourceInitStart, ILayerStage.UPDATE);
560
561
  this.layerSource.setData(data, options);
561
562
  this.log(IDebugLog.SourceInitEnd, ILayerStage.UPDATE);
562
563
  } else {
@@ -1007,7 +1008,7 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
1007
1008
  }, {
1008
1009
  key: "destroy",
1009
1010
  value: function destroy() {
1010
- var _this$multiPassRender, _this$layerModel2, _this$tileLayer;
1011
+ var _this$multiPassRender, _this$layerModel2, _this$tileLayer, _this$debugService2;
1011
1012
 
1012
1013
  var refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1013
1014
 
@@ -1039,7 +1040,7 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
1039
1040
  (_this$tileLayer = this.tileLayer) === null || _this$tileLayer === void 0 ? void 0 : _this$tileLayer.destroy();
1040
1041
  this.models = []; // 清除图层日志(如果有的话:非瓦片相关)
1041
1042
 
1042
- this.debugService.removeLog(this.id);
1043
+ (_this$debugService2 = this.debugService) === null || _this$debugService2 === void 0 ? void 0 : _this$debugService2.removeLog(this.id);
1043
1044
  this.emit('remove', {
1044
1045
  target: this,
1045
1046
  type: 'remove'
@@ -383,6 +383,8 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
383
383
  }, {
384
384
  key: "log",
385
385
  value: function log(logType) {
386
+ var _this$debugService;
387
+
386
388
  var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'init';
387
389
 
388
390
  // @ts-ignore 瓦片、瓦片图层目前不参与日志
@@ -395,7 +397,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
395
397
  id: this.id,
396
398
  type: this.type
397
399
  };
398
- this.debugService.log(key, values);
400
+ (_this$debugService = this.debugService) === null || _this$debugService === void 0 ? void 0 : _this$debugService.log(key, values);
399
401
  }
400
402
  }, {
401
403
  key: "updateModelData",
@@ -556,9 +558,8 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
556
558
  value: function setData(data, options) {
557
559
  var _this4 = this;
558
560
 
559
- this.log(_l7Core.IDebugLog.SourceInitStart, _l7Core.ILayerStage.UPDATE);
560
-
561
561
  if (this.inited) {
562
+ this.log(_l7Core.IDebugLog.SourceInitStart, _l7Core.ILayerStage.UPDATE);
562
563
  this.layerSource.setData(data, options);
563
564
  this.log(_l7Core.IDebugLog.SourceInitEnd, _l7Core.ILayerStage.UPDATE);
564
565
  } else {
@@ -1008,7 +1009,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
1008
1009
  }, {
1009
1010
  key: "destroy",
1010
1011
  value: function destroy() {
1011
- var _this$multiPassRender, _this$layerModel2, _this$tileLayer;
1012
+ var _this$multiPassRender, _this$layerModel2, _this$tileLayer, _this$debugService2;
1012
1013
 
1013
1014
  var refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1014
1015
 
@@ -1040,7 +1041,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
1040
1041
  (_this$tileLayer = this.tileLayer) === null || _this$tileLayer === void 0 ? void 0 : _this$tileLayer.destroy();
1041
1042
  this.models = []; // 清除图层日志(如果有的话:非瓦片相关)
1042
1043
 
1043
- this.debugService.removeLog(this.id);
1044
+ (_this$debugService2 = this.debugService) === null || _this$debugService2 === void 0 ? void 0 : _this$debugService2.removeLog(this.id);
1044
1045
  this.emit('remove', {
1045
1046
  target: this,
1046
1047
  type: 'remove'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-layers",
3
- "version": "2.13.7",
3
+ "version": "2.13.8",
4
4
  "description": "L7's collection of built-in layers",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -27,10 +27,10 @@
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
29
  "@antv/async-hook": "^2.2.9",
30
- "@antv/l7-core": "2.13.7",
31
- "@antv/l7-maps": "2.13.7",
32
- "@antv/l7-source": "2.13.7",
33
- "@antv/l7-utils": "2.13.7",
30
+ "@antv/l7-core": "2.13.8",
31
+ "@antv/l7-maps": "2.13.8",
32
+ "@antv/l7-source": "2.13.8",
33
+ "@antv/l7-utils": "2.13.8",
34
34
  "@babel/runtime": "^7.7.7",
35
35
  "@mapbox/martini": "^0.2.0",
36
36
  "@turf/clone": "^6.5.0",
@@ -53,7 +53,7 @@
53
53
  "reflect-metadata": "^0.1.13"
54
54
  },
55
55
  "devDependencies": {
56
- "@antv/l7-test-utils": "2.13.7",
56
+ "@antv/l7-test-utils": "2.13.8",
57
57
  "@types/d3-array": "^2.0.0",
58
58
  "@types/d3-color": "^1.2.2",
59
59
  "@types/d3-interpolate": "1.1.6",
@@ -62,7 +62,7 @@
62
62
  "@types/gl-matrix": "^2.4.5",
63
63
  "@types/lodash": "^4.14.138"
64
64
  },
65
- "gitHead": "322cff4a31491437a1409ec3f7d3a313ba8a3a2c",
65
+ "gitHead": "6ceb65535ca4bf3ad10df7b3021831e156ea9e40",
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  }