@antv/l7-scene 2.13.9 → 2.14.1

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/lib/boxSelect.js CHANGED
@@ -34,12 +34,7 @@ var BoxSelect = class extends import_eventemitter3.EventEmitter {
34
34
  this.box.style.display = "block";
35
35
  this.startEvent = this.endEvent = e;
36
36
  this.syncBoxBound();
37
- this.emit(
38
- "selectstart",
39
- this.getLngLatBox(),
40
- this.startEvent,
41
- this.endEvent
42
- );
37
+ this.emit("selectstart", this.getLngLatBox(), this.startEvent, this.endEvent);
43
38
  };
44
39
  this.onDragging = (e) => {
45
40
  this.endEvent = e;
@@ -67,11 +62,7 @@ var BoxSelect = class extends import_eventemitter3.EventEmitter {
67
62
  });
68
63
  this.container.style.cursor = "crosshair";
69
64
  if (!this.box) {
70
- const box = import_l7_utils.DOM.create(
71
- "div",
72
- void 0,
73
- this.container
74
- );
65
+ const box = import_l7_utils.DOM.create("div", void 0, this.container);
75
66
  box.classList.add("l7-select-box");
76
67
  if (className) {
77
68
  box.classList.add(className);
package/lib/index.js CHANGED
@@ -16,10 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
23
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
21
 
25
22
  // src/index.ts
@@ -42,23 +39,15 @@ var Scene = class {
42
39
  map.setContainer(sceneContainer, id, canvas, hasBaseMap);
43
40
  sceneContainer.bind(import_l7_core.TYPES.IRendererService).to(import_l7_renderer.ReglRendererService).inSingletonScope();
44
41
  this.sceneService = sceneContainer.get(import_l7_core.TYPES.ISceneService);
45
- this.mapService = sceneContainer.get(
46
- import_l7_core.TYPES.IMapService
47
- );
42
+ this.mapService = sceneContainer.get(import_l7_core.TYPES.IMapService);
48
43
  this.iconService = sceneContainer.get(import_l7_core.TYPES.IIconService);
49
44
  this.fontService = sceneContainer.get(import_l7_core.TYPES.IFontService);
50
- this.controlService = sceneContainer.get(
51
- import_l7_core.TYPES.IControlService
52
- );
45
+ this.controlService = sceneContainer.get(import_l7_core.TYPES.IControlService);
53
46
  this.layerService = sceneContainer.get(import_l7_core.TYPES.ILayerService);
54
47
  this.debugService = sceneContainer.get(import_l7_core.TYPES.IDebugService);
55
48
  this.debugService.setEnable(config.debug);
56
- this.markerService = sceneContainer.get(
57
- import_l7_core.TYPES.IMarkerService
58
- );
59
- this.interactionService = sceneContainer.get(
60
- import_l7_core.TYPES.IInteractionService
61
- );
49
+ this.markerService = sceneContainer.get(import_l7_core.TYPES.IMarkerService);
50
+ this.interactionService = sceneContainer.get(import_l7_core.TYPES.IInteractionService);
62
51
  this.popupService = sceneContainer.get(import_l7_core.TYPES.IPopupService);
63
52
  this.boxSelect = new import_boxSelect.default(this, {});
64
53
  (0, import_l7_utils.setMiniScene)((config == null ? void 0 : config.isMini) || false);
@@ -325,13 +314,10 @@ var Scene = class {
325
314
  }
326
315
  fitBounds(bound, options) {
327
316
  const { fitBoundsOptions, animate } = this.sceneService.getSceneConfig();
328
- this.mapService.fitBounds(
329
- bound,
330
- options || {
331
- ...fitBoundsOptions,
332
- animate
333
- }
334
- );
317
+ this.mapService.fitBounds(bound, options || {
318
+ ...fitBoundsOptions,
319
+ animate
320
+ });
335
321
  }
336
322
  setZoomAndCenter(zoom, center) {
337
323
  this.mapService.setZoomAndCenter(zoom, center);
@@ -381,12 +367,9 @@ var Scene = class {
381
367
  return this.sceneService.getPointSizeRange();
382
368
  }
383
369
  initComponent(id) {
384
- this.controlService.init(
385
- {
386
- container: import_l7_utils.DOM.getContainer(id)
387
- },
388
- this.container
389
- );
370
+ this.controlService.init({
371
+ container: import_l7_utils.DOM.getContainer(id)
372
+ }, this.container);
390
373
  this.markerService.init(this.container);
391
374
  this.popupService.init(this.container);
392
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-scene",
3
- "version": "2.13.9",
3
+ "version": "2.14.1",
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.9",
27
- "@antv/l7-core": "2.13.9",
28
- "@antv/l7-layers": "2.13.9",
29
- "@antv/l7-maps": "2.13.9",
30
- "@antv/l7-renderer": "2.13.9",
31
- "@antv/l7-utils": "2.13.9",
26
+ "@antv/l7-component": "2.14.1",
27
+ "@antv/l7-core": "2.14.1",
28
+ "@antv/l7-layers": "2.14.1",
29
+ "@antv/l7-maps": "2.14.1",
30
+ "@antv/l7-renderer": "2.14.1",
31
+ "@antv/l7-utils": "2.14.1",
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.9"
39
+ "@antv/l7-test-utils": "2.14.1"
40
40
  },
41
- "gitHead": "be693790ae71475ad104c301aaa119ab0a059bd5",
41
+ "gitHead": "892e2cbffcaae6e5b2d0f62f90ad579f4eefd90c",
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  }