@antv/l7-scene 2.28.14 → 2.29.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/index.js +3 -7
- package/lib/index.js +2 -6
- package/package.json +12 -9
package/es/index.js
CHANGED
|
@@ -42,20 +42,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
42
42
|
import { Logo } from "@antv/l7-component";
|
|
43
43
|
import { SceneEventList, createLayerContainer, createSceneContainer } from "@antv/l7-core";
|
|
44
44
|
import { MaskLayer, TileLayer } from "@antv/l7-layers";
|
|
45
|
-
import { DeviceRendererService
|
|
45
|
+
import { DeviceRendererService } from "@antv/l7-renderer";
|
|
46
46
|
import { DOM, SceneConifg } from "@antv/l7-utils";
|
|
47
47
|
import BoxSelect, { BoxSelectEventList } from "./boxSelect";
|
|
48
48
|
var Scene = class {
|
|
49
49
|
constructor(config) {
|
|
50
|
-
const { id, map
|
|
50
|
+
const { id, map } = config;
|
|
51
51
|
const sceneContainer = createSceneContainer();
|
|
52
52
|
this.container = sceneContainer;
|
|
53
53
|
map.setContainer(sceneContainer, id);
|
|
54
|
-
|
|
55
|
-
sceneContainer.rendererService = new ReglRendererService();
|
|
56
|
-
} else {
|
|
57
|
-
sceneContainer.rendererService = new DeviceRendererService();
|
|
58
|
-
}
|
|
54
|
+
sceneContainer.rendererService = new DeviceRendererService();
|
|
59
55
|
this.sceneService = sceneContainer.sceneService;
|
|
60
56
|
this.mapService = sceneContainer.mapService;
|
|
61
57
|
this.iconService = sceneContainer.iconService;
|
package/lib/index.js
CHANGED
|
@@ -77,15 +77,11 @@ var import_l7_utils = require("@antv/l7-utils");
|
|
|
77
77
|
var import_boxSelect = __toESM(require("./boxSelect"));
|
|
78
78
|
var Scene = class {
|
|
79
79
|
constructor(config) {
|
|
80
|
-
const { id, map
|
|
80
|
+
const { id, map } = config;
|
|
81
81
|
const sceneContainer = (0, import_l7_core.createSceneContainer)();
|
|
82
82
|
this.container = sceneContainer;
|
|
83
83
|
map.setContainer(sceneContainer, id);
|
|
84
|
-
|
|
85
|
-
sceneContainer.rendererService = new import_l7_renderer.ReglRendererService();
|
|
86
|
-
} else {
|
|
87
|
-
sceneContainer.rendererService = new import_l7_renderer.DeviceRendererService();
|
|
88
|
-
}
|
|
84
|
+
sceneContainer.rendererService = new import_l7_renderer.DeviceRendererService();
|
|
89
85
|
this.sceneService = sceneContainer.sceneService;
|
|
90
86
|
this.mapService = sceneContainer.mapService;
|
|
91
87
|
this.iconService = sceneContainer.iconService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-scene",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "https://github.com/orgs/antvis/people",
|
|
@@ -15,21 +15,24 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.7.7",
|
|
17
17
|
"eventemitter3": "^4.0.7",
|
|
18
|
-
"@antv/l7-component": "2.
|
|
19
|
-
"@antv/l7-
|
|
20
|
-
"@antv/l7-
|
|
21
|
-
"@antv/l7-core": "2.
|
|
22
|
-
"@antv/l7-
|
|
23
|
-
"@antv/l7-
|
|
18
|
+
"@antv/l7-component": "2.29.1",
|
|
19
|
+
"@antv/l7-renderer": "2.29.1",
|
|
20
|
+
"@antv/l7-utils": "2.29.1",
|
|
21
|
+
"@antv/l7-core": "2.29.1",
|
|
22
|
+
"@antv/l7-maps": "2.29.1",
|
|
23
|
+
"@antv/l7-layers": "2.29.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@antv/l7-test-utils": "^2.
|
|
26
|
+
"@antv/l7-test-utils": "^2.29.1"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|
|
30
30
|
"registry": "https://registry.npmjs.org"
|
|
31
31
|
},
|
|
32
|
-
"repository":
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git@github.com:antvis/L7.git"
|
|
35
|
+
},
|
|
33
36
|
"scripts": {
|
|
34
37
|
"dev": "father dev",
|
|
35
38
|
"build": "npm run clean && father build",
|