@antv/l7-scene 2.21.2 → 2.21.4-beta.0

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 AntV team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/es/boxSelect.d.ts CHANGED
@@ -19,5 +19,5 @@ export default class BoxSelect extends EventEmitter {
19
19
  protected onDragging: (e: any) => void;
20
20
  protected onDragEnd: (e: any) => void;
21
21
  protected syncBoxBound(): void;
22
- protected getLngLatBox(): import("@turf/helpers").BBox;
22
+ protected getLngLatBox(): import("@antv/l7-utils").BBox;
23
23
  }
package/es/boxSelect.js CHANGED
@@ -10,12 +10,7 @@ var BoxSelect = class extends EventEmitter {
10
10
  this.box.style.display = "block";
11
11
  this.startEvent = this.endEvent = e;
12
12
  this.syncBoxBound();
13
- this.emit(
14
- "selectstart",
15
- this.getLngLatBox(),
16
- this.startEvent,
17
- this.endEvent
18
- );
13
+ this.emit("selectstart", this.getLngLatBox(), this.startEvent, this.endEvent);
19
14
  };
20
15
  this.onDragging = (e) => {
21
16
  this.endEvent = e;
@@ -43,11 +38,7 @@ var BoxSelect = class extends EventEmitter {
43
38
  });
44
39
  this.container.style.cursor = "crosshair";
45
40
  if (!this.box) {
46
- const box = DOM.create(
47
- "div",
48
- void 0,
49
- this.container
50
- );
41
+ const box = DOM.create("div", void 0, this.container);
51
42
  box.classList.add("l7-select-box");
52
43
  if (className) {
53
44
  box.classList.add(className);
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Bounds, ICameraOptions, IControl, IDebugService, IIconFontGlyph, IImage, ILayer, ILngLat, IMapService, IMarker, IMarkerLayer, IPoint, IPopup, IPostProcessingPass, ISceneConfig, IStatusOptions, Point, L7Container } from '@antv/l7-core';
1
+ import type { Bounds, ICameraOptions, IControl, IDebugService, IIconFontGlyph, IImage, ILayer, ILngLat, IMapService, IMarker, IMarkerLayer, IPoint, IPopup, IPostProcessingPass, ISceneConfig, IStatusOptions, L7Container, Point } from '@antv/l7-core';
2
2
  import type { IProtocolHandler } from '@antv/l7-utils';
3
3
  import type ILayerManager from './ILayerManager';
4
4
  import type IMapController from './IMapController';
package/es/index.js CHANGED
@@ -40,11 +40,7 @@ var __async = (__this, __arguments, generator) => {
40
40
 
41
41
  // src/index.ts
42
42
  import { Logo } from "@antv/l7-component";
43
- import {
44
- SceneEventList,
45
- createLayerContainer,
46
- createSceneContainer
47
- } from "@antv/l7-core";
43
+ import { SceneEventList, createLayerContainer, createSceneContainer } from "@antv/l7-core";
48
44
  import { MaskLayer, TileLayer } from "@antv/l7-layers";
49
45
  import { DeviceRendererService, ReglRendererService } from "@antv/l7-renderer";
50
46
  import { DOM, SceneConifg } from "@antv/l7-utils";
@@ -165,12 +161,7 @@ var Scene = class {
165
161
  }
166
162
  // 兼容历史接口
167
163
  initMask(layer) {
168
- const {
169
- mask,
170
- maskfence,
171
- maskColor = "#000",
172
- maskOpacity = 0
173
- } = layer.getLayerConfig();
164
+ const { mask, maskfence, maskColor = "#000", maskOpacity = 0 } = layer.getLayerConfig();
174
165
  if (!mask || !maskfence) {
175
166
  return void 0;
176
167
  }
@@ -19,5 +19,5 @@ export default class BoxSelect extends EventEmitter {
19
19
  protected onDragging: (e: any) => void;
20
20
  protected onDragEnd: (e: any) => void;
21
21
  protected syncBoxBound(): void;
22
- protected getLngLatBox(): import("@turf/helpers").BBox;
22
+ protected getLngLatBox(): import("@antv/l7-utils").BBox;
23
23
  }
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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Bounds, ICameraOptions, IControl, IDebugService, IIconFontGlyph, IImage, ILayer, ILngLat, IMapService, IMarker, IMarkerLayer, IPoint, IPopup, IPostProcessingPass, ISceneConfig, IStatusOptions, Point, L7Container } from '@antv/l7-core';
1
+ import type { Bounds, ICameraOptions, IControl, IDebugService, IIconFontGlyph, IImage, ILayer, ILngLat, IMapService, IMarker, IMarkerLayer, IPoint, IPopup, IPostProcessingPass, ISceneConfig, IStatusOptions, L7Container, Point } from '@antv/l7-core';
2
2
  import type { IProtocolHandler } from '@antv/l7-utils';
3
3
  import type ILayerManager from './ILayerManager';
4
4
  import type IMapController from './IMapController';
package/lib/index.js CHANGED
@@ -191,12 +191,7 @@ var Scene = class {
191
191
  }
192
192
  // 兼容历史接口
193
193
  initMask(layer) {
194
- const {
195
- mask,
196
- maskfence,
197
- maskColor = "#000",
198
- maskOpacity = 0
199
- } = layer.getLayerConfig();
194
+ const { mask, maskfence, maskColor = "#000", maskOpacity = 0 } = layer.getLayerConfig();
200
195
  if (!mask || !maskfence) {
201
196
  return void 0;
202
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-scene",
3
- "version": "2.21.2",
3
+ "version": "2.21.4-beta.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "https://github.com/orgs/antvis/people",
@@ -12,29 +12,29 @@
12
12
  "lib",
13
13
  "es"
14
14
  ],
15
- "scripts": {
16
- "dev": "father dev",
17
- "build": "npm run clean && father build",
18
- "check-deps": "father doctor",
19
- "lint": "eslint src __tests__",
20
- "clean": "rimraf dist es lib",
21
- "sync": "tnpm sync"
22
- },
23
15
  "dependencies": {
24
- "@antv/l7-component": "^2.21.2",
25
- "@antv/l7-core": "^2.21.2",
26
- "@antv/l7-layers": "^2.21.2",
27
- "@antv/l7-maps": "^2.21.2",
28
- "@antv/l7-renderer": "^2.21.2",
29
- "@antv/l7-utils": "^2.21.2",
30
16
  "@babel/runtime": "^7.7.7",
31
- "eventemitter3": "^4.0.7"
17
+ "eventemitter3": "^4.0.7",
18
+ "@antv/l7-component": "2.21.4-beta.0",
19
+ "@antv/l7-core": "2.21.4-beta.0",
20
+ "@antv/l7-layers": "2.21.4-beta.0",
21
+ "@antv/l7-maps": "2.21.4-beta.0",
22
+ "@antv/l7-renderer": "2.21.4-beta.0",
23
+ "@antv/l7-utils": "2.21.4-beta.0"
32
24
  },
33
- "devDependencies": {
34
- "@antv/l7-test-utils": "^2.21.2"
25
+ "peerDependencies": {
26
+ "@antv/l7-test-utils": "2.21.4-beta.0"
35
27
  },
36
28
  "publishConfig": {
37
- "access": "public"
29
+ "access": "public",
30
+ "registry": "https://registry.npmjs.org"
38
31
  },
39
- "gitHead": "5c2d29d2ac1d631bdecf741cb1725316c0d6f9b9"
40
- }
32
+ "repository": "git@github.com:antvis/L7.git",
33
+ "scripts": {
34
+ "dev": "father dev",
35
+ "build": "npm run clean && father build",
36
+ "check-deps": "father doctor",
37
+ "lint": "eslint src __tests__",
38
+ "clean": "rimraf dist es lib"
39
+ }
40
+ }