@antv/l7-layers 2.10.11 → 2.10.15
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.
- package/es/core/BaseLayer.js +0 -1
- package/es/line/models/line.js +9 -12
- package/lib/core/BaseLayer.js +0 -1
- package/lib/line/models/line.js +9 -12
- package/package.json +6 -6
package/es/core/BaseLayer.js
CHANGED
|
@@ -1010,7 +1010,6 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
1010
1010
|
(_this$layerModel2 = this.layerModel) === null || _this$layerModel2 === void 0 ? void 0 : _this$layerModel2.clearModels(refresh);
|
|
1011
1011
|
(_this$tileLayer = this.tileLayer) === null || _this$tileLayer === void 0 ? void 0 : _this$tileLayer.destroy();
|
|
1012
1012
|
this.models = [];
|
|
1013
|
-
this.layerService.cleanRemove(this, refresh);
|
|
1014
1013
|
this.emit('remove', {
|
|
1015
1014
|
target: this,
|
|
1016
1015
|
type: 'remove'
|
package/es/line/models/line.js
CHANGED
|
@@ -73,20 +73,18 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
73
73
|
}));
|
|
74
74
|
|
|
75
75
|
_defineProperty(_assertThisInitialized(_this), "updateTexture", function () {
|
|
76
|
+
var createTexture2D = _this.rendererService.createTexture2D;
|
|
77
|
+
|
|
76
78
|
if (_this.texture) {
|
|
79
|
+
_this.texture.update({
|
|
80
|
+
data: _this.iconService.getCanvas()
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
_this.layer.render();
|
|
84
|
+
|
|
77
85
|
return;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
console.log(_this.texture);
|
|
81
|
-
var createTexture2D = _this.rendererService.createTexture2D; // if (this.texture) {
|
|
82
|
-
// this.texture.update({
|
|
83
|
-
// data: this.iconService.getCanvas(),
|
|
84
|
-
// });
|
|
85
|
-
// this.layer.render();
|
|
86
|
-
// return;
|
|
87
|
-
// }
|
|
88
|
-
|
|
89
|
-
console.log('update texture');
|
|
90
88
|
_this.texture = createTexture2D({
|
|
91
89
|
data: _this.iconService.getCanvas(),
|
|
92
90
|
mag: gl.NEAREST,
|
|
@@ -160,7 +158,7 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
160
158
|
useLinearColor = 1;
|
|
161
159
|
}
|
|
162
160
|
|
|
163
|
-
if (
|
|
161
|
+
if (this.dataTextureTest && this.dataTextureNeedUpdate({
|
|
164
162
|
opacity: opacity
|
|
165
163
|
})) {
|
|
166
164
|
this.judgeStyleAttributes({
|
|
@@ -190,7 +188,6 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
190
188
|
width: 1,
|
|
191
189
|
height: 1
|
|
192
190
|
});
|
|
193
|
-
console.timeEnd('encodeData');
|
|
194
191
|
}
|
|
195
192
|
|
|
196
193
|
return {
|
package/lib/core/BaseLayer.js
CHANGED
|
@@ -1012,7 +1012,6 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
1012
1012
|
(_this$layerModel2 = this.layerModel) === null || _this$layerModel2 === void 0 ? void 0 : _this$layerModel2.clearModels(refresh);
|
|
1013
1013
|
(_this$tileLayer = this.tileLayer) === null || _this$tileLayer === void 0 ? void 0 : _this$tileLayer.destroy();
|
|
1014
1014
|
this.models = [];
|
|
1015
|
-
this.layerService.cleanRemove(this, refresh);
|
|
1016
1015
|
this.emit('remove', {
|
|
1017
1016
|
target: this,
|
|
1018
1017
|
type: 'remove'
|
package/lib/line/models/line.js
CHANGED
|
@@ -92,20 +92,18 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
92
92
|
height: 1
|
|
93
93
|
}));
|
|
94
94
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateTexture", function () {
|
|
95
|
+
var createTexture2D = _this.rendererService.createTexture2D;
|
|
96
|
+
|
|
95
97
|
if (_this.texture) {
|
|
98
|
+
_this.texture.update({
|
|
99
|
+
data: _this.iconService.getCanvas()
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
_this.layer.render();
|
|
103
|
+
|
|
96
104
|
return;
|
|
97
105
|
}
|
|
98
106
|
|
|
99
|
-
console.log(_this.texture);
|
|
100
|
-
var createTexture2D = _this.rendererService.createTexture2D; // if (this.texture) {
|
|
101
|
-
// this.texture.update({
|
|
102
|
-
// data: this.iconService.getCanvas(),
|
|
103
|
-
// });
|
|
104
|
-
// this.layer.render();
|
|
105
|
-
// return;
|
|
106
|
-
// }
|
|
107
|
-
|
|
108
|
-
console.log('update texture');
|
|
109
107
|
_this.texture = createTexture2D({
|
|
110
108
|
data: _this.iconService.getCanvas(),
|
|
111
109
|
mag: _l7Core.gl.NEAREST,
|
|
@@ -178,7 +176,7 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
178
176
|
useLinearColor = 1;
|
|
179
177
|
}
|
|
180
178
|
|
|
181
|
-
if (
|
|
179
|
+
if (this.dataTextureTest && this.dataTextureNeedUpdate({
|
|
182
180
|
opacity: opacity
|
|
183
181
|
})) {
|
|
184
182
|
this.judgeStyleAttributes({
|
|
@@ -208,7 +206,6 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
208
206
|
width: 1,
|
|
209
207
|
height: 1
|
|
210
208
|
});
|
|
211
|
-
console.timeEnd('encodeData');
|
|
212
209
|
}
|
|
213
210
|
|
|
214
211
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.15",
|
|
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.10.
|
|
31
|
-
"@antv/l7-maps": "2.10.
|
|
32
|
-
"@antv/l7-source": "2.10.
|
|
33
|
-
"@antv/l7-utils": "2.10.
|
|
30
|
+
"@antv/l7-core": "2.10.15",
|
|
31
|
+
"@antv/l7-maps": "2.10.15",
|
|
32
|
+
"@antv/l7-source": "2.10.15",
|
|
33
|
+
"@antv/l7-utils": "2.10.15",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/gl-matrix": "^2.4.5",
|
|
62
62
|
"@types/lodash": "^4.14.138"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b567d8c716b042eeb7ab8e05d7e5e0f666469f98",
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|