@antv/l7-scene 2.21.10 → 2.21.11-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/es/index.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +8 -8
package/es/index.js
CHANGED
|
@@ -47,10 +47,10 @@ 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, renderer = "device" } = config;
|
|
51
51
|
const sceneContainer = createSceneContainer();
|
|
52
52
|
this.container = sceneContainer;
|
|
53
|
-
map.setContainer(sceneContainer, id
|
|
53
|
+
map.setContainer(sceneContainer, id);
|
|
54
54
|
if (renderer === "regl") {
|
|
55
55
|
sceneContainer.rendererService = new ReglRendererService();
|
|
56
56
|
} else {
|
package/lib/index.js
CHANGED
|
@@ -77,10 +77,10 @@ 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, renderer = "device" } = config;
|
|
81
81
|
const sceneContainer = (0, import_l7_core.createSceneContainer)();
|
|
82
82
|
this.container = sceneContainer;
|
|
83
|
-
map.setContainer(sceneContainer, id
|
|
83
|
+
map.setContainer(sceneContainer, id);
|
|
84
84
|
if (renderer === "regl") {
|
|
85
85
|
sceneContainer.rendererService = new import_l7_renderer.ReglRendererService();
|
|
86
86
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-scene",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.11-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "https://github.com/orgs/antvis/people",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.7.7",
|
|
17
17
|
"eventemitter3": "^4.0.7",
|
|
18
|
-
"@antv/l7-component": "2.21.
|
|
19
|
-
"@antv/l7-core": "2.21.
|
|
20
|
-
"@antv/l7-layers": "2.21.
|
|
21
|
-
"@antv/l7-maps": "2.21.
|
|
22
|
-
"@antv/l7-renderer": "2.21.
|
|
23
|
-
"@antv/l7-utils": "2.21.
|
|
18
|
+
"@antv/l7-component": "2.21.11-beta.0",
|
|
19
|
+
"@antv/l7-core": "2.21.11-beta.0",
|
|
20
|
+
"@antv/l7-layers": "2.21.11-beta.0",
|
|
21
|
+
"@antv/l7-maps": "2.21.11-beta.0",
|
|
22
|
+
"@antv/l7-renderer": "2.21.11-beta.0",
|
|
23
|
+
"@antv/l7-utils": "2.21.11-beta.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@antv/l7-test-utils": "^2.21.
|
|
26
|
+
"@antv/l7-test-utils": "^2.21.11-beta.0"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|