@antv/l7-scene 2.17.12 → 2.18.3

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.js CHANGED
@@ -8,7 +8,7 @@ import { Logo } from '@antv/l7-component';
8
8
  import { createLayerContainer, createSceneContainer, SceneEventList, TYPES } from '@antv/l7-core';
9
9
  import { MaskLayer } from '@antv/l7-layers';
10
10
  import { ReglRendererService } from '@antv/l7-renderer';
11
- import { DOM, isMini, SceneConifg, setMiniScene } from '@antv/l7-utils';
11
+ import { DOM, SceneConifg } from '@antv/l7-utils';
12
12
  import BoxSelect, { BoxSelectEventList } from "./boxSelect";
13
13
  /**
14
14
  * 暴露 Scene API
@@ -51,18 +51,13 @@ var Scene = /*#__PURE__*/function () {
51
51
  this.interactionService = sceneContainer.get(TYPES.IInteractionService);
52
52
  this.popupService = sceneContainer.get(TYPES.IPopupService);
53
53
  this.boxSelect = new BoxSelect(this, {});
54
- setMiniScene((config === null || config === void 0 ? void 0 : config.isMini) || false);
55
- if (isMini) {
56
- this.sceneService.initMiniScene(config);
57
- } else {
58
- this.initComponent(id);
54
+ this.initComponent(id);
59
55
 
60
- // 初始化 scene
61
- this.sceneService.init(config);
62
- // TODO: 初始化组件
56
+ // 初始化 scene
57
+ this.sceneService.init(config);
58
+ // TODO: 初始化组件
63
59
 
64
- this.initControl();
65
- }
60
+ this.initControl();
66
61
  }
67
62
  _createClass(Scene, [{
68
63
  key: "map",
@@ -353,18 +348,9 @@ var Scene = /*#__PURE__*/function () {
353
348
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
354
349
  while (1) switch (_context5.prev = _context5.next) {
355
350
  case 0:
356
- if (isMini) {
357
- _context5.next = 5;
358
- break;
359
- }
360
- _context5.next = 3;
351
+ _context5.next = 2;
361
352
  return this.iconService.addImage(id, img);
362
- case 3:
363
- _context5.next = 6;
364
- break;
365
- case 5:
366
- this.iconService.addImageMini(id, img, this.sceneService);
367
- case 6:
353
+ case 2:
368
354
  case "end":
369
355
  return _context5.stop();
370
356
  }
package/lib/index.js CHANGED
@@ -65,14 +65,9 @@ var Scene = class {
65
65
  );
66
66
  this.popupService = sceneContainer.get(import_l7_core.TYPES.IPopupService);
67
67
  this.boxSelect = new import_boxSelect.default(this, {});
68
- (0, import_l7_utils.setMiniScene)((config == null ? void 0 : config.isMini) || false);
69
- if (import_l7_utils.isMini) {
70
- this.sceneService.initMiniScene(config);
71
- } else {
72
- this.initComponent(id);
73
- this.sceneService.init(config);
74
- this.initControl();
75
- }
68
+ this.initComponent(id);
69
+ this.sceneService.init(config);
70
+ this.initControl();
76
71
  }
77
72
  get map() {
78
73
  return this.mapService.map;
@@ -226,11 +221,7 @@ var Scene = class {
226
221
  this.fontService.addFontFace(fontFamily, fontPath);
227
222
  }
228
223
  async addImage(id, img) {
229
- if (!import_l7_utils.isMini) {
230
- await this.iconService.addImage(id, img);
231
- } else {
232
- this.iconService.addImageMini(id, img, this.sceneService);
233
- }
224
+ await this.iconService.addImage(id, img);
234
225
  }
235
226
  hasImage(id) {
236
227
  return this.iconService.hasImage(id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-scene",
3
- "version": "2.17.12",
3
+ "version": "2.18.3",
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.17.12",
27
- "@antv/l7-core": "2.17.12",
28
- "@antv/l7-layers": "2.17.12",
29
- "@antv/l7-maps": "2.17.12",
30
- "@antv/l7-renderer": "2.17.12",
31
- "@antv/l7-utils": "2.17.12",
26
+ "@antv/l7-component": "2.18.3",
27
+ "@antv/l7-core": "2.18.3",
28
+ "@antv/l7-layers": "2.18.3",
29
+ "@antv/l7-maps": "2.18.3",
30
+ "@antv/l7-renderer": "2.18.3",
31
+ "@antv/l7-utils": "2.18.3",
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.17.12"
39
+ "@antv/l7-test-utils": "2.18.3"
40
40
  },
41
- "gitHead": "e1d345d25c580a3a44b79a112654d12953293fe6",
41
+ "gitHead": "882d6eaa2d503b4e50ad6d94b123f8f892c0f84c",
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  }