@antv/l7-scene 2.21.3 → 2.21.4-beta.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/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.3",
3
+ "version": "2.21.4-beta.1",
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.3",
25
- "@antv/l7-core": "^2.21.3",
26
- "@antv/l7-layers": "^2.21.3",
27
- "@antv/l7-maps": "^2.21.3",
28
- "@antv/l7-renderer": "^2.21.3",
29
- "@antv/l7-utils": "^2.21.3",
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.1",
19
+ "@antv/l7-core": "2.21.4-beta.1",
20
+ "@antv/l7-layers": "2.21.4-beta.1",
21
+ "@antv/l7-maps": "2.21.4-beta.1",
22
+ "@antv/l7-renderer": "2.21.4-beta.1",
23
+ "@antv/l7-utils": "2.21.4-beta.1"
32
24
  },
33
- "devDependencies": {
34
- "@antv/l7-test-utils": "^2.21.3"
25
+ "peerDependencies": {
26
+ "@antv/l7-test-utils": "2.21.4-beta.1"
35
27
  },
36
28
  "publishConfig": {
37
- "access": "public"
29
+ "access": "public",
30
+ "registry": "https://registry.npmjs.org"
38
31
  },
39
- "gitHead": "522dec125e1d49bfe3b7325239bb6c9103311b2d"
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
+ }
package/CHANGELOG.md DELETED
@@ -1,275 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.1.12](https://github.com/antvis/L7/compare/v2.1.11...v2.1.12) (2020-04-10)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * 绘制组件高德地图mousedown事件不能监听的问题 ([1eb3313](https://github.com/antvis/L7/commit/1eb3313919b2c7c9162bee70a249846b897ef4b4))
12
-
13
-
14
-
15
-
16
-
17
- ## [2.1.11](https://github.com/antvis/L7/compare/v2.1.10...v2.1.11) (2020-04-07)
18
-
19
- **Note:** Version bump only for package @antv/l7-scene
20
-
21
-
22
-
23
-
24
-
25
- ## [2.1.8](https://github.com/antvis/L7/compare/v2.1.7...v2.1.8) (2020-03-26)
26
-
27
- **Note:** Version bump only for package @antv/l7-scene
28
-
29
-
30
-
31
-
32
-
33
- ## [2.1.7](https://github.com/antvis/L7/compare/v2.1.6...v2.1.7) (2020-03-26)
34
-
35
- **Note:** Version bump only for package @antv/l7-scene
36
-
37
-
38
-
39
-
40
-
41
- ## [2.1.5](https://github.com/antvis/L7/compare/v2.1.4...v2.1.5) (2020-03-20)
42
-
43
- **Note:** Version bump only for package @antv/l7-scene
44
-
45
-
46
-
47
-
48
-
49
- ## [2.1.3](https://github.com/antvis/L7/compare/v2.0.36...v2.1.3) (2020-03-17)
50
-
51
-
52
- ### Bug Fixes
53
-
54
- * mapbox 光照问题 ([20d2a6d](https://github.com/antvis/L7/commit/20d2a6d8b803ca3ad87cc1ef69a59d1e3d348cef))
55
-
56
-
57
-
58
-
59
-
60
- ## [2.1.2](https://github.com/antvis/L7/compare/v2.0.36...v2.1.2) (2020-03-15)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * mapbox 光照问题 ([20d2a6d](https://github.com/antvis/L7/commit/20d2a6d8b803ca3ad87cc1ef69a59d1e3d348cef))
66
-
67
-
68
-
69
-
70
-
71
- ## [2.1.1](https://github.com/antvis/L7/compare/v2.0.36...v2.1.1) (2020-03-15)
72
-
73
-
74
- ### Bug Fixes
75
-
76
- * mapbox 光照问题 ([20d2a6d](https://github.com/antvis/L7/commit/20d2a6d8b803ca3ad87cc1ef69a59d1e3d348cef))
77
-
78
-
79
-
80
-
81
-
82
- ## [2.0.34](https://github.com/antvis/L7/compare/v2.0.32...v2.0.34) (2020-03-02)
83
-
84
- **Note:** Version bump only for package @antv/l7-scene
85
-
86
-
87
-
88
-
89
-
90
- # [2.0.0-beta.28](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.28) (2020-01-02)
91
-
92
-
93
- ### Features
94
-
95
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
96
-
97
-
98
-
99
-
100
-
101
- # [2.0.0-beta.27](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.27) (2020-01-01)
102
-
103
-
104
- ### Features
105
-
106
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
107
-
108
-
109
-
110
-
111
-
112
- # [2.0.0-alpha.28](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-alpha.28) (2020-01-01)
113
-
114
-
115
- ### Features
116
-
117
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
118
-
119
-
120
-
121
-
122
-
123
- # [2.0.0-alpha.27](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-alpha.27) (2019-12-31)
124
-
125
-
126
- ### Features
127
-
128
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
129
-
130
-
131
-
132
-
133
-
134
- # [2.0.0-beta.26](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.26) (2019-12-30)
135
-
136
-
137
- ### Features
138
-
139
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
140
-
141
-
142
-
143
-
144
-
145
- # [2.0.0-beta.25](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.25) (2019-12-27)
146
-
147
-
148
- ### Features
149
-
150
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
151
-
152
-
153
-
154
-
155
-
156
- # [2.0.0-beta.24](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.24) (2019-12-23)
157
-
158
-
159
- ### Features
160
-
161
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
162
-
163
-
164
-
165
-
166
-
167
- # [2.0.0-beta.23](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.23) (2019-12-23)
168
-
169
-
170
- ### Features
171
-
172
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
173
-
174
-
175
-
176
-
177
-
178
- # [2.0.0-beta.21](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.21) (2019-12-18)
179
-
180
-
181
- ### Features
182
-
183
- * scene 实例化支持传入地图实例 & 更新文档 ([cb1d4b6](https://github.com/antvis/L7/commit/cb1d4b6c7d0e65a5e15138ae01adb56cd1b6ee43))
184
-
185
-
186
-
187
-
188
-
189
- # [2.0.0-beta.20](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.20) (2019-12-12)
190
-
191
- **Note:** Version bump only for package @antv/l7-scene
192
-
193
-
194
-
195
-
196
-
197
- # [2.0.0-beta.19](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.19) (2019-12-08)
198
-
199
- **Note:** Version bump only for package @antv/l7-scene
200
-
201
-
202
-
203
-
204
-
205
- # [2.0.0-beta.18](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.18) (2019-12-08)
206
-
207
- **Note:** Version bump only for package @antv/l7-scene
208
-
209
-
210
-
211
-
212
-
213
- # [2.0.0-beta.17](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.17) (2019-12-08)
214
-
215
- **Note:** Version bump only for package @antv/l7-scene
216
-
217
-
218
-
219
-
220
-
221
- # [2.0.0-beta.16](https://github.com/antvis/L7/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2019-11-29)
222
-
223
- **Note:** Version bump only for package @antv/l7-scene
224
-
225
-
226
-
227
-
228
-
229
- # [2.0.0-beta.15](https://github.com/antvis/L7/compare/v2.0.0-beta.14...v2.0.0-beta.15) (2019-11-29)
230
-
231
- **Note:** Version bump only for package @antv/l7-scene
232
-
233
-
234
-
235
-
236
-
237
- # [2.0.0-beta.13](https://github.com/antvis/L7/compare/v2.0.0-beta.12...v2.0.0-beta.13) (2019-11-28)
238
-
239
- **Note:** Version bump only for package @antv/l7-scene
240
-
241
-
242
-
243
-
244
-
245
- # [2.0.0-beta.12](https://github.com/antvis/L7/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2019-11-28)
246
-
247
-
248
- ### Bug Fixes
249
-
250
- * **component:** fix marker ([14d4818](https://github.com/antvis/L7/commit/14d48184a1579241b077110ed51a8358de25e010))
251
-
252
-
253
-
254
-
255
-
256
- # 2.0.0-beta.11 (2019-11-28)
257
-
258
-
259
- ### Bug Fixes
260
-
261
- * **merge branch:** fix confilt ([e7a46a6](https://github.com/antvis/L7/commit/e7a46a691d9e67a03d733fd565c6b152ee8715b6))
262
-
263
-
264
- ### Features
265
-
266
- * **add l7 site:** add websites ([0463ff8](https://github.com/antvis/L7/commit/0463ff874eab1c484b593e8c02f73c85a02c000c))
267
- * **component:** add layer control ([7f4646e](https://github.com/antvis/L7/commit/7f4646efd3b0004fde4e9f6860e618c7668af1a7))
268
- * **component:** add scale ,zoom, popup, marker map method ([a6baef4](https://github.com/antvis/L7/commit/a6baef4954c11d9c6582c27de2ba667f18538460))
269
- * **core:** add map method ([853c190](https://github.com/antvis/L7/commit/853c1901fbb8559a9d3bdb3631ec13a7dcaf0ea7))
270
- * **map:** adjust Scene API, use @antv/l7-maps instead ([77b8f21](https://github.com/antvis/L7/commit/77b8f21b0bcf8b06e88d8e0bef213935bf32b957)), closes [#86](https://github.com/antvis/L7/issues/86)
271
- * **multi-pass:** support TAA(Temporal Anti-Aliasing) ([2cf0824](https://github.com/antvis/L7/commit/2cf082439ad04eb84b96b2922e45082476452aec))
272
- * **picking:** support PixelPickingPass and highlight the picked feature ([ff0ffa0](https://github.com/antvis/L7/commit/ff0ffa057e2f533dc6ac92f40d3892f9dd57fafb))
273
- * **point image:** add point image ([89b2513](https://github.com/antvis/L7/commit/89b25133a17f308c3e884c49baebcd3cc7a9470a))
274
- * **post-processing:** add some post processing effects ([1d8e15c](https://github.com/antvis/L7/commit/1d8e15cec11abc62785bc68c8281550732550839))
275
- * **scene:** scene service inTransientScope ([ccf1ff4](https://github.com/antvis/L7/commit/ccf1ff464e1b220650e61c0999846725b075ef3a))