3dtiles-inspector 0.2.3 → 0.2.4
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/CHANGELOG.md +16 -0
- package/dist/inspector-assets/viewer/app.js +595 -51
- package/package.json +1 -1
- package/src/server/viewerHtml.js +1 -1
- package/src/viewer/app.js +7 -2
- package/src/viewer/navigation/cameraFlyTo.js +730 -0
- package/src/viewer/navigation/flyTo.js +78 -16
- package/src/viewer/scene/cameraController.js +2 -2
- package/src/viewer/scene/sceneSetup.js +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3dtiles-inspector",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Inspect, align, and save local 3D Tiles root transforms in an interactive browser session.",
|
|
5
5
|
"author": "William Liu <lyz15972107087@gmail.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
package/src/server/viewerHtml.js
CHANGED
|
@@ -854,11 +854,11 @@ function buildViewerHtml(viewerConfig) {
|
|
|
854
854
|
<div class="coordinate-actions">
|
|
855
855
|
<button id="crop-screen-select" class="wide" type="button">Draw Region</button>
|
|
856
856
|
</div>
|
|
857
|
-
<div id="crop-list" class="crop-list"></div>
|
|
858
857
|
<div class="status-actions">
|
|
859
858
|
<button id="crop-screen-confirm" type="button">Confirm</button>
|
|
860
859
|
<button id="crop-screen-cancel" type="button">Cancel</button>
|
|
861
860
|
</div>
|
|
861
|
+
<div id="crop-list" class="crop-list"></div>
|
|
862
862
|
</div>
|
|
863
863
|
</div>
|
|
864
864
|
<div class="toolbar-section status-panel">
|
package/src/viewer/app.js
CHANGED
|
@@ -469,9 +469,13 @@ function loadTileset(url, { frameOnLoad = true } = {}) {
|
|
|
469
469
|
if (framed) {
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
if (
|
|
472
|
+
if (
|
|
473
|
+
flyTo.frameTileset({
|
|
474
|
+
activeStatus: 'Framing tileset...',
|
|
475
|
+
doneStatus: 'Tileset ready.',
|
|
476
|
+
})
|
|
477
|
+
) {
|
|
473
478
|
framed = true;
|
|
474
|
-
setStatus('Tileset ready.');
|
|
475
479
|
}
|
|
476
480
|
};
|
|
477
481
|
|
|
@@ -602,6 +606,7 @@ loadTileset(TILESET_URL);
|
|
|
602
606
|
|
|
603
607
|
function frame() {
|
|
604
608
|
cameraController.update();
|
|
609
|
+
flyTo.update();
|
|
605
610
|
rootTransform.flush();
|
|
606
611
|
globeController.update();
|
|
607
612
|
tiles?.update();
|