@soonspacejs/plugin-tiles 2.15.18 → 2.16.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/dist/index.esm.js +7 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -37,6 +37,7 @@ class pr {
|
|
|
37
37
|
}), this._tilesCamera = e.viewport.camera;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
+
ssp;
|
|
40
41
|
tilesMap = /* @__PURE__ */ new Map();
|
|
41
42
|
needsUpdate = !0;
|
|
42
43
|
cameraTransitionStart = !1;
|
|
@@ -99,6 +100,7 @@ class yr {
|
|
|
99
100
|
height: 0.1
|
|
100
101
|
}), this.tiles.registerPlugin(this.tilesFadePlugin), this.tiles.registerPlugin(this.updateOnChangePlugin), this.tiles.registerPlugin(this.quantizedPlugin), this.tiles.registerPlugin(this.customMaterialPlugin), this.tiles.registerPlugin(this.imageOverlayPlugin), this.tiles.registerPlugin(this.reorientationPlugin), this.tiles.maxDepth = 20, this.tiles.errorTarget = 1, this.tiles.addEventListener("needs-render", this.render), this.tiles.addEventListener("needs-update", this.render);
|
|
101
102
|
}
|
|
103
|
+
ssp;
|
|
102
104
|
tiles;
|
|
103
105
|
tilesFadePlugin;
|
|
104
106
|
updateOnChangePlugin;
|
|
@@ -189,6 +191,8 @@ class B {
|
|
|
189
191
|
constructor(e, t) {
|
|
190
192
|
this.imageOverlayPlugin = e, this.resourceManager = t;
|
|
191
193
|
}
|
|
194
|
+
imageOverlayPlugin;
|
|
195
|
+
resourceManager;
|
|
192
196
|
/** 存储所有 overlay 实例 */
|
|
193
197
|
static MAX_OVERLAY_INSTANCES = 10;
|
|
194
198
|
_instances = /* @__PURE__ */ new Map();
|
|
@@ -2468,6 +2472,7 @@ class vr {
|
|
|
2468
2472
|
url: r
|
|
2469
2473
|
}, this.terrainManager.add(this._currentTerrainConfig), this.terrainManager.setCurrentId(this._currentTerrainConfig.id), this.tiles = this._initTilesRenderer(this._currentTerrainConfig), this._initPlugins(this.tiles, this._currentTerrainConfig);
|
|
2470
2474
|
}
|
|
2475
|
+
ssp;
|
|
2471
2476
|
defaultTerrainId = "__default_terrain__";
|
|
2472
2477
|
defaultImageryId = "__default_imagery__";
|
|
2473
2478
|
tiles;
|
|
@@ -2987,6 +2992,7 @@ class tr {
|
|
|
2987
2992
|
constructor(e, t) {
|
|
2988
2993
|
this.ssp = e, this.options = t, "url" in this.options ? this.tiles = new E(this.options.url) : (this.tiles = new E(), this._initCesiumIon(this.options)), this._initBasePlugins(this.options);
|
|
2989
2994
|
}
|
|
2995
|
+
ssp;
|
|
2990
2996
|
tiles;
|
|
2991
2997
|
tilesFadePlugin;
|
|
2992
2998
|
updateOnChangePlugin;
|
|
@@ -3203,6 +3209,7 @@ class wr {
|
|
|
3203
3209
|
this.cameraTransitionStart = !1, this.needsUpdate = !0, r.state.useFreq = 60;
|
|
3204
3210
|
}), e.signals.beforeRender.add(this._beforeRenderHandler), e.signals.cameraObjectChange.add(this._onCameraObjectChange);
|
|
3205
3211
|
}
|
|
3212
|
+
ssp;
|
|
3206
3213
|
/** 存储多个 tiles 实例,key 为 url */
|
|
3207
3214
|
tilesMap = /* @__PURE__ */ new Map();
|
|
3208
3215
|
/** 按需渲染标志 */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-tiles",
|
|
3
3
|
"pluginName": "TilesPlugin",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.16.0",
|
|
5
5
|
"description": "3D Tiles plugin for SoonSpace.js",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"gitHead": "4a87dd85050651088e11c3da777c49fab3db7e5d",
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"um-3d-tiles-renderer": "^0.4.48",
|
|
22
|
-
"three": "^0.
|
|
22
|
+
"three": "^0.185.0",
|
|
23
23
|
"@mapbox/geojson-merge": "^1.1.1",
|
|
24
24
|
"cesium-to-three": "0.2.4",
|
|
25
|
-
"soonspacejs": "2.
|
|
25
|
+
"soonspacejs": "2.16.0"
|
|
26
26
|
}
|
|
27
27
|
}
|