@antv/l7-scene 2.13.6 → 2.13.7
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/index.d.ts +1 -1
- package/es/index.js +13 -15
- package/lib/index.js +6 -4
- package/package.json +9 -9
package/es/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bounds, ICameraOptions, IControl, IIconFontGlyph, IImage, ILayer,
|
|
1
|
+
import { Bounds, ICameraOptions, IControl, IDebugService, IIconFontGlyph, IImage, ILayer, ILngLat, IMapService, IMarker, IMarkerLayer, IPoint, IPopup, IPostProcessingPass, ISceneConfig, IStatusOptions, Point } from '@antv/l7-core';
|
|
2
2
|
import { Container } from 'inversify';
|
|
3
3
|
import ILayerManager from './ILayerManager';
|
|
4
4
|
import IMapController from './IMapController';
|
package/es/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var Scene = /*#__PURE__*/function () {
|
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* 对外暴露 debugService
|
|
119
|
-
* @returns
|
|
119
|
+
* @returns
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
122
|
}, {
|
|
@@ -132,13 +132,9 @@ var Scene = /*#__PURE__*/function () {
|
|
|
132
132
|
while (1) {
|
|
133
133
|
switch (_context.prev = _context.next) {
|
|
134
134
|
case 0:
|
|
135
|
-
_context.
|
|
136
|
-
return this.sceneService.exportPng(type);
|
|
135
|
+
return _context.abrupt("return", this.sceneService.exportPng(type));
|
|
137
136
|
|
|
138
|
-
case
|
|
139
|
-
return _context.abrupt("return", _context.sent);
|
|
140
|
-
|
|
141
|
-
case 3:
|
|
137
|
+
case 1:
|
|
142
138
|
case "end":
|
|
143
139
|
return _context.stop();
|
|
144
140
|
}
|
|
@@ -160,13 +156,9 @@ var Scene = /*#__PURE__*/function () {
|
|
|
160
156
|
while (1) {
|
|
161
157
|
switch (_context2.prev = _context2.next) {
|
|
162
158
|
case 0:
|
|
163
|
-
_context2.
|
|
164
|
-
return this.sceneService.exportPng(type);
|
|
165
|
-
|
|
166
|
-
case 2:
|
|
167
|
-
return _context2.abrupt("return", _context2.sent);
|
|
159
|
+
return _context2.abrupt("return", this.sceneService.exportPng(type));
|
|
168
160
|
|
|
169
|
-
case
|
|
161
|
+
case 1:
|
|
170
162
|
case "end":
|
|
171
163
|
return _context2.stop();
|
|
172
164
|
}
|
|
@@ -234,7 +226,10 @@ var Scene = /*#__PURE__*/function () {
|
|
|
234
226
|
_layer$getLayerConfig3 = _layer$getLayerConfig.maskOpacity,
|
|
235
227
|
maskOpacity = _layer$getLayerConfig3 === void 0 ? 0 : _layer$getLayerConfig3;
|
|
236
228
|
|
|
237
|
-
if (!mask || !maskfence)
|
|
229
|
+
if (!mask || !maskfence) {
|
|
230
|
+
return undefined;
|
|
231
|
+
}
|
|
232
|
+
|
|
238
233
|
var maskInstance = new MaskLayer().source(maskfence).shape('fill').style({
|
|
239
234
|
color: maskColor,
|
|
240
235
|
opacity: maskOpacity
|
|
@@ -244,7 +239,10 @@ var Scene = /*#__PURE__*/function () {
|
|
|
244
239
|
}, {
|
|
245
240
|
key: "addMask",
|
|
246
241
|
value: function addMask(mask, layerId) {
|
|
247
|
-
if (!mask)
|
|
242
|
+
if (!mask) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
|
|
248
246
|
var parent = this.getLayer(layerId);
|
|
249
247
|
|
|
250
248
|
if (parent) {
|
package/lib/index.js
CHANGED
|
@@ -104,10 +104,10 @@ var Scene = class {
|
|
|
104
104
|
return this.debugService;
|
|
105
105
|
}
|
|
106
106
|
async exportPng(type) {
|
|
107
|
-
return
|
|
107
|
+
return this.sceneService.exportPng(type);
|
|
108
108
|
}
|
|
109
109
|
async exportMap(type) {
|
|
110
|
-
return
|
|
110
|
+
return this.sceneService.exportPng(type);
|
|
111
111
|
}
|
|
112
112
|
registerRenderService(render) {
|
|
113
113
|
if (this.sceneService.loaded) {
|
|
@@ -144,8 +144,9 @@ var Scene = class {
|
|
|
144
144
|
maskColor = "#000",
|
|
145
145
|
maskOpacity = 0
|
|
146
146
|
} = layer.getLayerConfig();
|
|
147
|
-
if (!mask || !maskfence)
|
|
147
|
+
if (!mask || !maskfence) {
|
|
148
148
|
return void 0;
|
|
149
|
+
}
|
|
149
150
|
const maskInstance = new import_l7_layers.MaskLayer().source(maskfence).shape("fill").style({
|
|
150
151
|
color: maskColor,
|
|
151
152
|
opacity: maskOpacity
|
|
@@ -153,8 +154,9 @@ var Scene = class {
|
|
|
153
154
|
return maskInstance;
|
|
154
155
|
}
|
|
155
156
|
addMask(mask, layerId) {
|
|
156
|
-
if (!mask)
|
|
157
|
+
if (!mask) {
|
|
157
158
|
return;
|
|
159
|
+
}
|
|
158
160
|
const parent = this.getLayer(layerId);
|
|
159
161
|
if (parent) {
|
|
160
162
|
const layerContainer = (0, import_l7_core.createLayerContainer)(this.container);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-scene",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"author": "xiaoiver",
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@antv/l7-component": "2.13.
|
|
27
|
-
"@antv/l7-core": "2.13.
|
|
28
|
-
"@antv/l7-layers": "2.13.
|
|
29
|
-
"@antv/l7-maps": "2.13.
|
|
30
|
-
"@antv/l7-renderer": "2.13.
|
|
31
|
-
"@antv/l7-utils": "2.13.
|
|
26
|
+
"@antv/l7-component": "2.13.7",
|
|
27
|
+
"@antv/l7-core": "2.13.7",
|
|
28
|
+
"@antv/l7-layers": "2.13.7",
|
|
29
|
+
"@antv/l7-maps": "2.13.7",
|
|
30
|
+
"@antv/l7-renderer": "2.13.7",
|
|
31
|
+
"@antv/l7-utils": "2.13.7",
|
|
32
32
|
"@babel/runtime": "^7.7.7",
|
|
33
33
|
"eventemitter3": "^4.0.7",
|
|
34
34
|
"inversify": "^5.0.1",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"reflect-metadata": "^0.1.13"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@antv/l7-test-utils": "2.13.
|
|
39
|
+
"@antv/l7-test-utils": "2.13.7"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "322cff4a31491437a1409ec3f7d3a313ba8a3a2c",
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
}
|