@antv/l7-layers 2.13.6 → 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.
- package/es/Geometry/models/billboard.js +2 -6
- package/es/Geometry/models/plane.js +2 -6
- package/es/Geometry/models/sprite.js +2 -6
- package/es/citybuliding/models/build.js +2 -6
- package/es/core/BaseLayer.d.ts +1 -1
- package/es/core/BaseLayer.js +18 -11
- package/es/earth/models/atmosphere.js +2 -6
- package/es/earth/models/base.js +2 -6
- package/es/earth/models/bloomsphere.js +2 -6
- package/es/heatmap/models/grid.js +2 -6
- package/es/heatmap/models/grid3d.js +2 -6
- package/es/heatmap/models/heatmap.js +2 -6
- package/es/heatmap/models/hexagon.js +2 -6
- package/es/image/models/image.js +2 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/es/line/models/arc.js +2 -6
- package/es/line/models/arc_3d.js +2 -6
- package/es/line/models/earthArc_3d.js +2 -6
- package/es/line/models/great_circle.js +2 -6
- package/es/line/models/half.js +2 -6
- package/es/line/models/line.js +2 -2
- package/es/line/models/linearline.js +2 -6
- package/es/line/models/simpleLine.js +2 -6
- package/es/line/models/wall.js +2 -6
- package/es/mask/models/fill.js +6 -7
- package/es/plugins/DataMappingPlugin.js +10 -6
- package/es/plugins/DataSourcePlugin.js +4 -4
- package/es/plugins/FeatureScalePlugin.js +8 -6
- package/es/plugins/LayerModelPlugin.js +8 -6
- package/es/point/models/earthExtrude.js +2 -6
- package/es/point/models/earthFill.js +2 -6
- package/es/point/models/extrude.js +2 -6
- package/es/point/models/normal.js +5 -7
- package/es/point/models/radar.js +3 -7
- package/es/point/models/simplePoint.js +2 -6
- package/es/polygon/models/extrude.js +4 -8
- package/es/polygon/models/fill.js +2 -6
- package/es/polygon/models/ocean.js +2 -6
- package/es/polygon/models/water.js +2 -6
- package/es/raster/models/raster.js +3 -7
- package/es/raster/models/rasterRgb.js +5 -9
- package/es/raster/models/rasterTerrainRgb.js +3 -7
- package/es/tile/manager/base.d.ts +1 -1
- package/es/tile/manager/base.js +16 -4
- package/es/tile/service/TileLayerService.d.ts +3 -3
- package/es/tile/service/TileLayerService.js +16 -18
- package/es/tile/service/TileSourceService.js +1 -1
- package/es/tile/tileFactory/DebugTile.js +3 -3
- package/es/tile/tileFactory/ImageTile.js +1 -0
- package/es/tile/tileFactory/MaskTile.js +5 -1
- package/es/tile/tileFactory/RasterRGBTile.js +1 -0
- package/es/tile/tileFactory/RasterTerrainRGBTile.js +1 -0
- package/es/tile/tileFactory/RasterTile.js +3 -2
- package/es/tile/tileFactory/Tile.js +5 -3
- package/es/tile/tileFactory/VectorTile.js +0 -1
- package/es/tile/tileFactory/index.d.ts +4 -4
- package/es/tile/tileFactory/index.js +4 -4
- package/es/tile/tileFactory/layers/TileDebugLayer.js +3 -0
- package/es/tile/tileFactory/util.d.ts +1 -1
- package/es/tile/tileFactory/util.js +1 -1
- package/es/tile/tileLayer/BaseLayer.d.ts +1 -1
- package/es/tile/tileLayer/BaseLayer.js +6 -4
- package/es/wind/models/wind.js +2 -6
- package/lib/Geometry/models/billboard.js +2 -6
- package/lib/Geometry/models/plane.js +2 -6
- package/lib/Geometry/models/sprite.js +2 -6
- package/lib/citybuliding/models/build.js +2 -6
- package/lib/core/BaseLayer.js +17 -10
- package/lib/earth/models/atmosphere.js +2 -6
- package/lib/earth/models/base.js +2 -6
- package/lib/earth/models/bloomsphere.js +2 -6
- package/lib/heatmap/models/grid.js +2 -6
- package/lib/heatmap/models/grid3d.js +2 -6
- package/lib/heatmap/models/heatmap.js +2 -6
- package/lib/heatmap/models/hexagon.js +2 -6
- package/lib/image/models/image.js +2 -6
- package/lib/line/models/arc.js +2 -6
- package/lib/line/models/arc_3d.js +2 -6
- package/lib/line/models/earthArc_3d.js +2 -6
- package/lib/line/models/great_circle.js +2 -6
- package/lib/line/models/half.js +2 -6
- package/lib/line/models/line.js +2 -2
- package/lib/line/models/linearline.js +2 -6
- package/lib/line/models/simpleLine.js +2 -6
- package/lib/line/models/wall.js +2 -6
- package/lib/mask/models/fill.js +6 -7
- package/lib/plugins/DataMappingPlugin.js +9 -5
- package/lib/plugins/DataSourcePlugin.js +3 -3
- package/lib/plugins/FeatureScalePlugin.js +7 -5
- package/lib/plugins/LayerModelPlugin.js +7 -5
- package/lib/point/models/earthExtrude.js +2 -6
- package/lib/point/models/earthFill.js +2 -6
- package/lib/point/models/extrude.js +2 -6
- package/lib/point/models/normal.js +5 -7
- package/lib/point/models/radar.js +4 -8
- package/lib/point/models/simplePoint.js +2 -6
- package/lib/polygon/models/extrude.js +4 -8
- package/lib/polygon/models/fill.js +2 -6
- package/lib/polygon/models/ocean.js +2 -6
- package/lib/polygon/models/water.js +2 -6
- package/lib/raster/models/raster.js +2 -6
- package/lib/raster/models/rasterRgb.js +5 -9
- package/lib/raster/models/rasterTerrainRgb.js +2 -6
- package/lib/tile/manager/base.js +16 -4
- package/lib/tile/service/TileLayerService.js +16 -18
- package/lib/tile/service/TileSourceService.js +1 -1
- package/lib/tile/tileFactory/DebugTile.js +3 -3
- package/lib/tile/tileFactory/ImageTile.js +1 -0
- package/lib/tile/tileFactory/MaskTile.js +5 -1
- package/lib/tile/tileFactory/RasterRGBTile.js +1 -0
- package/lib/tile/tileFactory/RasterTerrainRGBTile.js +1 -0
- package/lib/tile/tileFactory/RasterTile.js +4 -3
- package/lib/tile/tileFactory/Tile.js +5 -3
- package/lib/tile/tileFactory/VectorTile.js +0 -1
- package/lib/tile/tileFactory/index.js +5 -5
- package/lib/tile/tileFactory/layers/TileDebugLayer.js +3 -0
- package/lib/tile/tileFactory/util.js +2 -2
- package/lib/tile/tileLayer/BaseLayer.js +7 -5
- package/lib/wind/models/wind.js +2 -6
- package/package.json +7 -6
|
@@ -13,9 +13,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
13
13
|
|
|
14
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
15
|
|
|
16
|
+
import { getDefaultDomain } from '@antv/l7-utils';
|
|
16
17
|
import RasterLayer from "../../raster";
|
|
17
18
|
import Tile from "./Tile";
|
|
18
|
-
import { getDefaultDomain } from '@antv/l7-utils';
|
|
19
19
|
var DEFAULT_COLOR_TEXTURE_OPTION = {
|
|
20
20
|
positions: [0, 1],
|
|
21
21
|
colors: ['#000', '#fff']
|
|
@@ -50,6 +50,7 @@ var RasterTile = /*#__PURE__*/function (_Tile) {
|
|
|
50
50
|
layer = new RasterLayer(_objectSpread(_objectSpread({}, layerOptions), {}, {
|
|
51
51
|
colorTexture: this.colorTexture
|
|
52
52
|
})).source(sourceOptions.data, sourceOptions.options); // 初始化数据映射
|
|
53
|
+
// tslint:disable-next-line: no-unused-expression
|
|
53
54
|
|
|
54
55
|
attributes && Object.keys(attributes).forEach(function (type) {
|
|
55
56
|
var _attributes$attr, _attributes$attr2;
|
|
@@ -100,7 +101,7 @@ var RasterTile = /*#__PURE__*/function (_Tile) {
|
|
|
100
101
|
}
|
|
101
102
|
/**
|
|
102
103
|
* 用于 style 更新 colorTexture 的优化
|
|
103
|
-
* @param arg
|
|
104
|
+
* @param arg
|
|
104
105
|
*/
|
|
105
106
|
|
|
106
107
|
}, {
|
|
@@ -34,7 +34,9 @@ var Tile = /*#__PURE__*/function () {
|
|
|
34
34
|
|
|
35
35
|
}, {
|
|
36
36
|
key: "styleUpdate",
|
|
37
|
-
value: function styleUpdate() {
|
|
37
|
+
value: function styleUpdate() {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
38
40
|
}, {
|
|
39
41
|
key: "lnglatInBounds",
|
|
40
42
|
value: function lnglatInBounds(lnglat) {
|
|
@@ -148,8 +150,8 @@ var Tile = /*#__PURE__*/function () {
|
|
|
148
150
|
}
|
|
149
151
|
/**
|
|
150
152
|
* 在一个 Tile 中可能存在一个相同 ID 的 feature
|
|
151
|
-
* @param id
|
|
152
|
-
* @returns
|
|
153
|
+
* @param id
|
|
154
|
+
* @returns
|
|
153
155
|
*/
|
|
154
156
|
|
|
155
157
|
}, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ILayer } from '@antv/l7-core';
|
|
2
|
-
import VectorTile from './VectorTile';
|
|
3
2
|
import DebugTile from './DebugTile';
|
|
4
3
|
import ImageTile from './ImageTile';
|
|
5
|
-
import
|
|
4
|
+
import MaskLayer from './MaskTile';
|
|
6
5
|
import RasterRGBTile from './RasterRGBTile';
|
|
7
6
|
import RasterTerrainRGBTile from './RasterTerrainRGBTile';
|
|
8
|
-
import
|
|
7
|
+
import RasterTile from './RasterTile';
|
|
8
|
+
import VectorTile from './VectorTile';
|
|
9
9
|
export type TileType = 'VectorTile' | 'DebugTile' | 'PolygonLayer' | 'PointLayer' | 'LineLayer' | 'RasterLayer' | 'image' | 'MaskLayer' | 'TileDebugLayer';
|
|
10
|
-
export declare function getTileFactory(layer: ILayer): typeof
|
|
10
|
+
export declare function getTileFactory(layer: ILayer): typeof DebugTile | typeof ImageTile | typeof MaskLayer | typeof RasterRGBTile | typeof RasterTerrainRGBTile | typeof RasterTile | typeof VectorTile;
|
|
11
11
|
export * from '../interface';
|
|
12
12
|
export * from './Tile';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import VectorTile from "./VectorTile";
|
|
2
1
|
import DebugTile from "./DebugTile";
|
|
3
2
|
import ImageTile from "./ImageTile";
|
|
4
|
-
import
|
|
3
|
+
import MaskLayer from "./MaskTile";
|
|
5
4
|
import RasterRGBTile from "./RasterRGBTile";
|
|
6
5
|
import RasterTerrainRGBTile from "./RasterTerrainRGBTile";
|
|
7
|
-
import
|
|
6
|
+
import RasterTile from "./RasterTile";
|
|
7
|
+
import VectorTile from "./VectorTile";
|
|
8
8
|
export function getTileFactory(layer) {
|
|
9
9
|
var tileType = layer.type;
|
|
10
10
|
|
|
@@ -36,7 +36,7 @@ export function getTileFactory(layer) {
|
|
|
36
36
|
case 'customArrayBuffer':
|
|
37
37
|
return RasterTile;
|
|
38
38
|
|
|
39
|
-
case
|
|
39
|
+
case 'terrainRGB':
|
|
40
40
|
return RasterTerrainRGBTile;
|
|
41
41
|
|
|
42
42
|
default:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PointLayer from '../../point/index';
|
|
2
1
|
import LineLayer from '../../line';
|
|
2
|
+
import PointLayer from '../../point/index';
|
|
3
3
|
import PolygonLayer from '../../polygon';
|
|
4
4
|
export declare function getTileLayer(type: string): typeof LineLayer | typeof PointLayer | typeof PolygonLayer;
|
|
5
5
|
export declare function isNeedMask(type: string): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IInteractionTarget, ILayer, ILayerService, IMapService, IPickingService, IRendererService } from '@antv/l7-core';
|
|
2
2
|
import { SourceTile, TilesetManager } from '@antv/l7-utils';
|
|
3
3
|
import { TileLayerService } from '../service/TileLayerService';
|
|
4
4
|
import { TilePickService } from '../service/TilePickService';
|
|
@@ -4,11 +4,11 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
import { TYPES } from '@antv/l7-core';
|
|
7
|
+
import { debounce } from 'lodash';
|
|
7
8
|
import { TileLayerService } from "../service/TileLayerService";
|
|
8
9
|
import { TilePickService } from "../service/TilePickService";
|
|
9
|
-
import { debounce } from 'lodash';
|
|
10
|
-
import { getTileFactory } from "../tileFactory";
|
|
11
10
|
import { ProxyFuncs } from "../style/constants";
|
|
11
|
+
import { getTileFactory } from "../tileFactory";
|
|
12
12
|
|
|
13
13
|
var BaseTileLayer = /*#__PURE__*/function () {
|
|
14
14
|
// 瓦片数据管理器
|
|
@@ -287,7 +287,9 @@ var BaseTileLayer = /*#__PURE__*/function () {
|
|
|
287
287
|
|
|
288
288
|
}, {
|
|
289
289
|
key: "setPickState",
|
|
290
|
-
value: function setPickState(layers) {
|
|
290
|
+
value: function setPickState(layers) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
291
293
|
}, {
|
|
292
294
|
key: "pickRender",
|
|
293
295
|
value: function pickRender(target) {
|
|
@@ -305,7 +307,7 @@ var BaseTileLayer = /*#__PURE__*/function () {
|
|
|
305
307
|
}
|
|
306
308
|
/**
|
|
307
309
|
* 实现 TileLayer 对子图层方法的代理
|
|
308
|
-
* @param parent
|
|
310
|
+
* @param parent
|
|
309
311
|
*/
|
|
310
312
|
|
|
311
313
|
}, {
|
package/es/wind/models/wind.js
CHANGED
|
@@ -188,13 +188,9 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
188
188
|
while (1) {
|
|
189
189
|
switch (_context2.prev = _context2.next) {
|
|
190
190
|
case 0:
|
|
191
|
-
_context2.
|
|
192
|
-
return this.initModels();
|
|
191
|
+
return _context2.abrupt("return", this.initModels());
|
|
193
192
|
|
|
194
|
-
case
|
|
195
|
-
return _context2.abrupt("return", _context2.sent);
|
|
196
|
-
|
|
197
|
-
case 3:
|
|
193
|
+
case 1:
|
|
198
194
|
case "end":
|
|
199
195
|
return _context2.stop();
|
|
200
196
|
}
|
|
@@ -178,13 +178,9 @@ var BillBoardModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
178
178
|
while (1) {
|
|
179
179
|
switch (_context2.prev = _context2.next) {
|
|
180
180
|
case 0:
|
|
181
|
-
_context2.
|
|
182
|
-
return this.initModels();
|
|
181
|
+
return _context2.abrupt("return", this.initModels());
|
|
183
182
|
|
|
184
|
-
case
|
|
185
|
-
return _context2.abrupt("return", _context2.sent);
|
|
186
|
-
|
|
187
|
-
case 3:
|
|
183
|
+
case 1:
|
|
188
184
|
case "end":
|
|
189
185
|
return _context2.stop();
|
|
190
186
|
}
|
|
@@ -256,13 +256,9 @@ var PlaneModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
256
256
|
while (1) {
|
|
257
257
|
switch (_context2.prev = _context2.next) {
|
|
258
258
|
case 0:
|
|
259
|
-
_context2.
|
|
260
|
-
return this.initModels();
|
|
259
|
+
return _context2.abrupt("return", this.initModels());
|
|
261
260
|
|
|
262
|
-
case
|
|
263
|
-
return _context2.abrupt("return", _context2.sent);
|
|
264
|
-
|
|
265
|
-
case 3:
|
|
261
|
+
case 1:
|
|
266
262
|
case "end":
|
|
267
263
|
return _context2.stop();
|
|
268
264
|
}
|
|
@@ -279,13 +279,9 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
279
279
|
while (1) {
|
|
280
280
|
switch (_context2.prev = _context2.next) {
|
|
281
281
|
case 0:
|
|
282
|
-
_context2.
|
|
283
|
-
return this.initModels();
|
|
282
|
+
return _context2.abrupt("return", this.initModels());
|
|
284
283
|
|
|
285
|
-
case
|
|
286
|
-
return _context2.abrupt("return", _context2.sent);
|
|
287
|
-
|
|
288
|
-
case 3:
|
|
284
|
+
case 1:
|
|
289
285
|
case "end":
|
|
290
286
|
return _context2.stop();
|
|
291
287
|
}
|
|
@@ -122,13 +122,9 @@ var CityBuildModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
122
122
|
case 0:
|
|
123
123
|
this.calCityGeo();
|
|
124
124
|
this.startModelAnimate();
|
|
125
|
-
_context.
|
|
126
|
-
return this.buildModels();
|
|
125
|
+
return _context.abrupt("return", this.buildModels());
|
|
127
126
|
|
|
128
|
-
case
|
|
129
|
-
return _context.abrupt("return", _context.sent);
|
|
130
|
-
|
|
131
|
-
case 5:
|
|
127
|
+
case 3:
|
|
132
128
|
case "end":
|
|
133
129
|
return _context.stop();
|
|
134
130
|
}
|
package/lib/core/BaseLayer.js
CHANGED
|
@@ -382,23 +382,22 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
382
382
|
}()
|
|
383
383
|
}, {
|
|
384
384
|
key: "log",
|
|
385
|
-
value: function log(logType
|
|
385
|
+
value: function log(logType) {
|
|
386
|
+
var _this$debugService;
|
|
387
|
+
|
|
388
|
+
var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'init';
|
|
389
|
+
|
|
386
390
|
// @ts-ignore 瓦片、瓦片图层目前不参与日志
|
|
387
391
|
if (this.tileLayer || this.isTileLayer) {
|
|
388
392
|
return;
|
|
389
393
|
}
|
|
390
394
|
|
|
391
|
-
var key = "".concat(this.id, ".").concat(logType);
|
|
395
|
+
var key = "".concat(this.id, ".").concat(step, ".").concat(logType);
|
|
392
396
|
var values = {
|
|
393
397
|
id: this.id,
|
|
394
398
|
type: this.type
|
|
395
399
|
};
|
|
396
|
-
|
|
397
|
-
if (time) {
|
|
398
|
-
values.time = time;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
this.debugService.log(key, values);
|
|
400
|
+
(_this$debugService = this.debugService) === null || _this$debugService === void 0 ? void 0 : _this$debugService.log(key, values);
|
|
402
401
|
}
|
|
403
402
|
}, {
|
|
404
403
|
key: "updateModelData",
|
|
@@ -560,9 +559,13 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
560
559
|
var _this4 = this;
|
|
561
560
|
|
|
562
561
|
if (this.inited) {
|
|
562
|
+
this.log(_l7Core.IDebugLog.SourceInitStart, _l7Core.ILayerStage.UPDATE);
|
|
563
563
|
this.layerSource.setData(data, options);
|
|
564
|
+
this.log(_l7Core.IDebugLog.SourceInitEnd, _l7Core.ILayerStage.UPDATE);
|
|
564
565
|
} else {
|
|
565
566
|
this.on('inited', function () {
|
|
567
|
+
_this4.log(_l7Core.IDebugLog.SourceInitStart, _l7Core.ILayerStage.UPDATE);
|
|
568
|
+
|
|
566
569
|
var currentSource = _this4.getSource();
|
|
567
570
|
|
|
568
571
|
if (!currentSource) {
|
|
@@ -571,6 +574,10 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
571
574
|
} else {
|
|
572
575
|
_this4.layerSource.setData(data, options);
|
|
573
576
|
}
|
|
577
|
+
|
|
578
|
+
_this4.layerSource.once('update', function () {
|
|
579
|
+
_this4.log(_l7Core.IDebugLog.SourceInitEnd, _l7Core.ILayerStage.UPDATE);
|
|
580
|
+
});
|
|
574
581
|
});
|
|
575
582
|
}
|
|
576
583
|
|
|
@@ -1002,7 +1009,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
1002
1009
|
}, {
|
|
1003
1010
|
key: "destroy",
|
|
1004
1011
|
value: function destroy() {
|
|
1005
|
-
var _this$multiPassRender, _this$layerModel2, _this$tileLayer;
|
|
1012
|
+
var _this$multiPassRender, _this$layerModel2, _this$tileLayer, _this$debugService2;
|
|
1006
1013
|
|
|
1007
1014
|
var refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
1008
1015
|
|
|
@@ -1034,7 +1041,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
1034
1041
|
(_this$tileLayer = this.tileLayer) === null || _this$tileLayer === void 0 ? void 0 : _this$tileLayer.destroy();
|
|
1035
1042
|
this.models = []; // 清除图层日志(如果有的话:非瓦片相关)
|
|
1036
1043
|
|
|
1037
|
-
this.debugService.removeLog(this.id);
|
|
1044
|
+
(_this$debugService2 = this.debugService) === null || _this$debugService2 === void 0 ? void 0 : _this$debugService2.removeLog(this.id);
|
|
1038
1045
|
this.emit('remove', {
|
|
1039
1046
|
target: this,
|
|
1040
1047
|
type: 'remove'
|
|
@@ -68,13 +68,9 @@ var EarthAtomSphereModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
68
68
|
while (1) {
|
|
69
69
|
switch (_context.prev = _context.next) {
|
|
70
70
|
case 0:
|
|
71
|
-
_context.
|
|
72
|
-
return this.buildModels();
|
|
71
|
+
return _context.abrupt("return", this.buildModels());
|
|
73
72
|
|
|
74
|
-
case
|
|
75
|
-
return _context.abrupt("return", _context.sent);
|
|
76
|
-
|
|
77
|
-
case 3:
|
|
73
|
+
case 1:
|
|
78
74
|
case "end":
|
|
79
75
|
return _context.stop();
|
|
80
76
|
}
|
package/lib/earth/models/base.js
CHANGED
|
@@ -136,13 +136,9 @@ var BaseEarthModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
136
136
|
|
|
137
137
|
_this2.layerService.reRender();
|
|
138
138
|
});
|
|
139
|
-
_context.
|
|
140
|
-
return this.buildModels();
|
|
139
|
+
return _context.abrupt("return", this.buildModels());
|
|
141
140
|
|
|
142
|
-
case
|
|
143
|
-
return _context.abrupt("return", _context.sent);
|
|
144
|
-
|
|
145
|
-
case 9:
|
|
141
|
+
case 7:
|
|
146
142
|
case "end":
|
|
147
143
|
return _context.stop();
|
|
148
144
|
}
|
|
@@ -68,13 +68,9 @@ var EarthBloomSphereModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
68
68
|
while (1) {
|
|
69
69
|
switch (_context.prev = _context.next) {
|
|
70
70
|
case 0:
|
|
71
|
-
_context.
|
|
72
|
-
return this.buildModels();
|
|
71
|
+
return _context.abrupt("return", this.buildModels());
|
|
73
72
|
|
|
74
|
-
case
|
|
75
|
-
return _context.abrupt("return", _context.sent);
|
|
76
|
-
|
|
77
|
-
case 3:
|
|
73
|
+
case 1:
|
|
78
74
|
case "end":
|
|
79
75
|
return _context.stop();
|
|
80
76
|
}
|
|
@@ -72,13 +72,9 @@ var GridModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
72
72
|
while (1) {
|
|
73
73
|
switch (_context.prev = _context.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
_context.
|
|
76
|
-
return this.buildModels();
|
|
75
|
+
return _context.abrupt("return", this.buildModels());
|
|
77
76
|
|
|
78
|
-
case
|
|
79
|
-
return _context.abrupt("return", _context.sent);
|
|
80
|
-
|
|
81
|
-
case 3:
|
|
77
|
+
case 1:
|
|
82
78
|
case "end":
|
|
83
79
|
return _context.stop();
|
|
84
80
|
}
|
|
@@ -72,13 +72,9 @@ var Grid3DModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
72
72
|
while (1) {
|
|
73
73
|
switch (_context.prev = _context.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
_context.
|
|
76
|
-
return this.buildModels();
|
|
75
|
+
return _context.abrupt("return", this.buildModels());
|
|
77
76
|
|
|
78
|
-
case
|
|
79
|
-
return _context.abrupt("return", _context.sent);
|
|
80
|
-
|
|
81
|
-
case 3:
|
|
77
|
+
case 1:
|
|
82
78
|
case "end":
|
|
83
79
|
return _context.stop();
|
|
84
80
|
}
|
|
@@ -168,13 +168,9 @@ var HeatMapModel = (_dec = (0, _inversify.injectable)(), _dec(_class = /*#__PURE
|
|
|
168
168
|
while (1) {
|
|
169
169
|
switch (_context2.prev = _context2.next) {
|
|
170
170
|
case 0:
|
|
171
|
-
_context2.
|
|
172
|
-
return this.initModels();
|
|
171
|
+
return _context2.abrupt("return", this.initModels());
|
|
173
172
|
|
|
174
|
-
case
|
|
175
|
-
return _context2.abrupt("return", _context2.sent);
|
|
176
|
-
|
|
177
|
-
case 3:
|
|
173
|
+
case 1:
|
|
178
174
|
case "end":
|
|
179
175
|
return _context2.stop();
|
|
180
176
|
}
|
|
@@ -72,13 +72,9 @@ var HexagonModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
72
72
|
while (1) {
|
|
73
73
|
switch (_context.prev = _context.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
_context.
|
|
76
|
-
return this.buildModels();
|
|
75
|
+
return _context.abrupt("return", this.buildModels());
|
|
77
76
|
|
|
78
|
-
case
|
|
79
|
-
return _context.abrupt("return", _context.sent);
|
|
80
|
-
|
|
81
|
-
case 3:
|
|
77
|
+
case 1:
|
|
82
78
|
case "end":
|
|
83
79
|
return _context.stop();
|
|
84
80
|
}
|
|
@@ -169,13 +169,9 @@ var ImageModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
169
169
|
while (1) {
|
|
170
170
|
switch (_context2.prev = _context2.next) {
|
|
171
171
|
case 0:
|
|
172
|
-
_context2.
|
|
173
|
-
return this.initModels();
|
|
172
|
+
return _context2.abrupt("return", this.initModels());
|
|
174
173
|
|
|
175
|
-
case
|
|
176
|
-
return _context2.abrupt("return", _context2.sent);
|
|
177
|
-
|
|
178
|
-
case 3:
|
|
174
|
+
case 1:
|
|
179
175
|
case "end":
|
|
180
176
|
return _context2.stop();
|
|
181
177
|
}
|
package/lib/line/models/arc.js
CHANGED
|
@@ -228,13 +228,9 @@ var ArcModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
228
228
|
case 0:
|
|
229
229
|
this.updateTexture();
|
|
230
230
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
231
|
-
_context.
|
|
232
|
-
return this.buildModels();
|
|
231
|
+
return _context.abrupt("return", this.buildModels());
|
|
233
232
|
|
|
234
|
-
case
|
|
235
|
-
return _context.abrupt("return", _context.sent);
|
|
236
|
-
|
|
237
|
-
case 5:
|
|
233
|
+
case 3:
|
|
238
234
|
case "end":
|
|
239
235
|
return _context.stop();
|
|
240
236
|
}
|
|
@@ -220,13 +220,9 @@ var Arc3DModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
220
220
|
case 0:
|
|
221
221
|
this.updateTexture();
|
|
222
222
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
223
|
-
_context.
|
|
224
|
-
return this.buildModels();
|
|
223
|
+
return _context.abrupt("return", this.buildModels());
|
|
225
224
|
|
|
226
|
-
case
|
|
227
|
-
return _context.abrupt("return", _context.sent);
|
|
228
|
-
|
|
229
|
-
case 5:
|
|
225
|
+
case 3:
|
|
230
226
|
case "end":
|
|
231
227
|
return _context.stop();
|
|
232
228
|
}
|
|
@@ -220,13 +220,9 @@ var Arc3DModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
220
220
|
case 0:
|
|
221
221
|
this.updateTexture();
|
|
222
222
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
223
|
-
_context.
|
|
224
|
-
return this.buildModels();
|
|
223
|
+
return _context.abrupt("return", this.buildModels());
|
|
225
224
|
|
|
226
|
-
case
|
|
227
|
-
return _context.abrupt("return", _context.sent);
|
|
228
|
-
|
|
229
|
-
case 5:
|
|
225
|
+
case 3:
|
|
230
226
|
case "end":
|
|
231
227
|
return _context.stop();
|
|
232
228
|
}
|
|
@@ -205,13 +205,9 @@ var GreatCircleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
205
205
|
case 0:
|
|
206
206
|
this.updateTexture();
|
|
207
207
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
208
|
-
_context.
|
|
209
|
-
return this.buildModels();
|
|
208
|
+
return _context.abrupt("return", this.buildModels());
|
|
210
209
|
|
|
211
|
-
case
|
|
212
|
-
return _context.abrupt("return", _context.sent);
|
|
213
|
-
|
|
214
|
-
case 5:
|
|
210
|
+
case 3:
|
|
215
211
|
case "end":
|
|
216
212
|
return _context.stop();
|
|
217
213
|
}
|
package/lib/line/models/half.js
CHANGED
|
@@ -135,13 +135,9 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
135
135
|
while (1) {
|
|
136
136
|
switch (_context.prev = _context.next) {
|
|
137
137
|
case 0:
|
|
138
|
-
_context.
|
|
139
|
-
return this.buildModels();
|
|
138
|
+
return _context.abrupt("return", this.buildModels());
|
|
140
139
|
|
|
141
|
-
case
|
|
142
|
-
return _context.abrupt("return", _context.sent);
|
|
143
|
-
|
|
144
|
-
case 3:
|
|
140
|
+
case 1:
|
|
145
141
|
case "end":
|
|
146
142
|
return _context.stop();
|
|
147
143
|
}
|
package/lib/line/models/line.js
CHANGED
|
@@ -153,8 +153,8 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
153
153
|
dashArray.push(0, 0);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
if (this.rendererService.getDirty()) {
|
|
157
|
-
this.texture
|
|
156
|
+
if (this.rendererService.getDirty() && this.texture) {
|
|
157
|
+
this.texture.bind();
|
|
158
158
|
} // 转化渐变色
|
|
159
159
|
|
|
160
160
|
|
|
@@ -163,13 +163,9 @@ var LinearLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
163
163
|
switch (_context.prev = _context.next) {
|
|
164
164
|
case 0:
|
|
165
165
|
this.updateTexture();
|
|
166
|
-
_context.
|
|
167
|
-
return this.buildModels();
|
|
166
|
+
return _context.abrupt("return", this.buildModels());
|
|
168
167
|
|
|
169
|
-
case
|
|
170
|
-
return _context.abrupt("return", _context.sent);
|
|
171
|
-
|
|
172
|
-
case 4:
|
|
168
|
+
case 2:
|
|
173
169
|
case "end":
|
|
174
170
|
return _context.stop();
|
|
175
171
|
}
|
|
@@ -130,13 +130,9 @@ var SimpleLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
130
130
|
while (1) {
|
|
131
131
|
switch (_context.prev = _context.next) {
|
|
132
132
|
case 0:
|
|
133
|
-
_context.
|
|
134
|
-
return this.buildModels();
|
|
133
|
+
return _context.abrupt("return", this.buildModels());
|
|
135
134
|
|
|
136
|
-
case
|
|
137
|
-
return _context.abrupt("return", _context.sent);
|
|
138
|
-
|
|
139
|
-
case 3:
|
|
135
|
+
case 1:
|
|
140
136
|
case "end":
|
|
141
137
|
return _context.stop();
|
|
142
138
|
}
|
package/lib/line/models/wall.js
CHANGED
|
@@ -159,13 +159,9 @@ var LineWallModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
159
159
|
case 0:
|
|
160
160
|
this.updateTexture();
|
|
161
161
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
162
|
-
_context.
|
|
163
|
-
return this.buildModels();
|
|
162
|
+
return _context.abrupt("return", this.buildModels());
|
|
164
163
|
|
|
165
|
-
case
|
|
166
|
-
return _context.abrupt("return", _context.sent);
|
|
167
|
-
|
|
168
|
-
case 5:
|
|
164
|
+
case 3:
|
|
169
165
|
case "end":
|
|
170
166
|
return _context.stop();
|
|
171
167
|
}
|
package/lib/mask/models/fill.js
CHANGED
|
@@ -73,13 +73,9 @@ var MaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
73
73
|
while (1) {
|
|
74
74
|
switch (_context.prev = _context.next) {
|
|
75
75
|
case 0:
|
|
76
|
-
_context.
|
|
77
|
-
return this.buildModels();
|
|
76
|
+
return _context.abrupt("return", this.buildModels());
|
|
78
77
|
|
|
79
|
-
case
|
|
80
|
-
return _context.abrupt("return", _context.sent);
|
|
81
|
-
|
|
82
|
-
case 3:
|
|
78
|
+
case 1:
|
|
83
79
|
case "end":
|
|
84
80
|
return _context.stop();
|
|
85
81
|
}
|
|
@@ -151,7 +147,10 @@ var MaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
151
147
|
key: "clearModels",
|
|
152
148
|
value: function clearModels() {
|
|
153
149
|
var refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
154
|
-
|
|
150
|
+
|
|
151
|
+
if (refresh) {
|
|
152
|
+
this.layerService.clear();
|
|
153
|
+
}
|
|
155
154
|
}
|
|
156
155
|
}, {
|
|
157
156
|
key: "registerBuiltinAttributes",
|