@antv/l7-scene 2.13.0 → 2.13.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,7 +34,12 @@ 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("selectstart", this.getLngLatBox(), this.startEvent, this.endEvent);
37
+ this.emit(
38
+ "selectstart",
39
+ this.getLngLatBox(),
40
+ this.startEvent,
41
+ this.endEvent
42
+ );
38
43
  };
39
44
  this.onDragging = (e) => {
40
45
  this.endEvent = e;
@@ -62,7 +67,11 @@ var BoxSelect = class extends import_eventemitter3.EventEmitter {
62
67
  });
63
68
  this.container.style.cursor = "crosshair";
64
69
  if (!this.box) {
65
- const box = import_l7_utils.DOM.create("div", void 0, this.container);
70
+ const box = import_l7_utils.DOM.create(
71
+ "div",
72
+ void 0,
73
+ this.container
74
+ );
66
75
  box.classList.add("l7-select-box");
67
76
  if (className) {
68
77
  box.classList.add(className);
package/lib/index.js CHANGED
@@ -16,7 +16,10 @@ 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(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
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
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/index.ts
@@ -39,13 +42,21 @@ var Scene = class {
39
42
  map.setContainer(sceneContainer, id, canvas, hasBaseMap);
40
43
  sceneContainer.bind(import_l7_core.TYPES.IRendererService).to(import_l7_renderer.ReglRendererService).inSingletonScope();
41
44
  this.sceneService = sceneContainer.get(import_l7_core.TYPES.ISceneService);
42
- this.mapService = sceneContainer.get(import_l7_core.TYPES.IMapService);
45
+ this.mapService = sceneContainer.get(
46
+ import_l7_core.TYPES.IMapService
47
+ );
43
48
  this.iconService = sceneContainer.get(import_l7_core.TYPES.IIconService);
44
49
  this.fontService = sceneContainer.get(import_l7_core.TYPES.IFontService);
45
- this.controlService = sceneContainer.get(import_l7_core.TYPES.IControlService);
50
+ this.controlService = sceneContainer.get(
51
+ import_l7_core.TYPES.IControlService
52
+ );
46
53
  this.layerService = sceneContainer.get(import_l7_core.TYPES.ILayerService);
47
- this.markerService = sceneContainer.get(import_l7_core.TYPES.IMarkerService);
48
- this.interactionService = sceneContainer.get(import_l7_core.TYPES.IInteractionService);
54
+ this.markerService = sceneContainer.get(
55
+ import_l7_core.TYPES.IMarkerService
56
+ );
57
+ this.interactionService = sceneContainer.get(
58
+ import_l7_core.TYPES.IInteractionService
59
+ );
49
60
  this.popupService = sceneContainer.get(import_l7_core.TYPES.IPopupService);
50
61
  this.boxSelect = new import_boxSelect.default(this, {});
51
62
  (0, import_l7_utils.setMiniScene)((config == null ? void 0 : config.isMini) || false);
@@ -307,10 +318,13 @@ var Scene = class {
307
318
  }
308
319
  fitBounds(bound, options) {
309
320
  const { fitBoundsOptions, animate } = this.sceneService.getSceneConfig();
310
- this.mapService.fitBounds(bound, options || {
311
- ...fitBoundsOptions,
312
- animate
313
- });
321
+ this.mapService.fitBounds(
322
+ bound,
323
+ options || {
324
+ ...fitBoundsOptions,
325
+ animate
326
+ }
327
+ );
314
328
  }
315
329
  setZoomAndCenter(zoom, center) {
316
330
  this.mapService.setZoomAndCenter(zoom, center);
@@ -360,9 +374,12 @@ var Scene = class {
360
374
  return this.sceneService.getPointSizeRange();
361
375
  }
362
376
  initComponent(id) {
363
- this.controlService.init({
364
- container: import_l7_utils.DOM.getContainer(id)
365
- }, this.container);
377
+ this.controlService.init(
378
+ {
379
+ container: import_l7_utils.DOM.getContainer(id)
380
+ },
381
+ this.container
382
+ );
366
383
  this.markerService.init(this.container);
367
384
  this.popupService.init(this.container);
368
385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-scene",
3
- "version": "2.13.0",
3
+ "version": "2.13.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.0",
27
- "@antv/l7-core": "2.13.0",
28
- "@antv/l7-layers": "2.13.0",
29
- "@antv/l7-maps": "2.13.0",
30
- "@antv/l7-renderer": "2.13.0",
31
- "@antv/l7-utils": "2.13.0",
26
+ "@antv/l7-component": "2.13.1",
27
+ "@antv/l7-core": "2.13.1",
28
+ "@antv/l7-layers": "2.13.1",
29
+ "@antv/l7-maps": "2.13.1",
30
+ "@antv/l7-renderer": "2.13.1",
31
+ "@antv/l7-utils": "2.13.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.0"
39
+ "@antv/l7-test-utils": "2.13.1"
40
40
  },
41
- "gitHead": "a87b58ebc6de89f13db8954f94fb603ef4bf72cd",
41
+ "gitHead": "6a7cbf5974ee1b3f38f926b3eaac97a144013ef2",
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  }