3dtiles-inspector 0.1.3 → 0.1.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 CHANGED
@@ -6,6 +6,12 @@ The format is based on Keep a Changelog and this project follows Semantic Versio
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.4] - 2026-04-25
10
+
11
+ ### Changed
12
+
13
+ - Raised the default tileset and terrain geometric-error targets to `16` for more consistent LOD behavior.
14
+
9
15
  ## [0.1.3] - 2026-04-25
10
16
 
11
17
  ### Fixed
@@ -65490,8 +65490,8 @@ var saveButton = document.getElementById("save");
65490
65490
  var GEOMETRIC_ERROR_SCALE_MIN_EXPONENT = -4;
65491
65491
  var GEOMETRIC_ERROR_SCALE_MAX_EXPONENT = 4;
65492
65492
  var GEOMETRIC_ERROR_SCALE_STEP = 0.1;
65493
- var DEFAULT_ERROR_TARGET = 6;
65494
- var DEFAULT_TERRAIN_ERROR_TARGET = 2;
65493
+ var DEFAULT_ERROR_TARGET = 16;
65494
+ var DEFAULT_TERRAIN_ERROR_TARGET = 16;
65495
65495
  var RUNTIME_STATS_UPDATE_INTERVAL_MS = 250;
65496
65496
  function normalizeLocalResourceUrl(value) {
65497
65497
  if (typeof value !== "string" || value.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3dtiles-inspector",
3
- "version": "0.1.3",
3
+ "version": "0.1.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/viewer/app.js CHANGED
@@ -106,8 +106,8 @@ const saveButton = document.getElementById('save');
106
106
  const GEOMETRIC_ERROR_SCALE_MIN_EXPONENT = -4;
107
107
  const GEOMETRIC_ERROR_SCALE_MAX_EXPONENT = 4;
108
108
  const GEOMETRIC_ERROR_SCALE_STEP = 0.1;
109
- const DEFAULT_ERROR_TARGET = 6;
110
- const DEFAULT_TERRAIN_ERROR_TARGET = 2;
109
+ const DEFAULT_ERROR_TARGET = 16;
110
+ const DEFAULT_TERRAIN_ERROR_TARGET = 16;
111
111
  const RUNTIME_STATS_UPDATE_INTERVAL_MS = 250;
112
112
 
113
113
  function normalizeLocalResourceUrl(value) {
@@ -496,8 +496,7 @@ function updateTilesetErrorTarget() {
496
496
  return;
497
497
  }
498
498
 
499
- tiles.errorTarget =
500
- DEFAULT_ERROR_TARGET / getEffectiveGeometricErrorScale();
499
+ tiles.errorTarget = DEFAULT_ERROR_TARGET / getEffectiveGeometricErrorScale();
501
500
  }
502
501
 
503
502
  function updateGeometricErrorScaleDisplay() {
@@ -572,7 +571,10 @@ function updateRuntimeStats(force = false) {
572
571
  }
573
572
 
574
573
  const now = performance.now();
575
- if (!force && now - lastRuntimeStatsUpdateTime < RUNTIME_STATS_UPDATE_INTERVAL_MS) {
574
+ if (
575
+ !force &&
576
+ now - lastRuntimeStatsUpdateTime < RUNTIME_STATS_UPDATE_INTERVAL_MS
577
+ ) {
576
578
  return;
577
579
  }
578
580
 
@@ -581,7 +583,9 @@ function updateRuntimeStats(force = false) {
581
583
  const cacheBytes = tiles?.lruCache?.cachedBytes ?? 0;
582
584
  const activeSparkSplats = getActiveSparkSplatsCount();
583
585
  const splatCount =
584
- activeSparkSplats !== null ? activeSparkSplats : getLoadedGaussianSplatCount();
586
+ activeSparkSplats !== null
587
+ ? activeSparkSplats
588
+ : getLoadedGaussianSplatCount();
585
589
 
586
590
  cacheBytesValueEl.textContent = formatBytes(cacheBytes);
587
591
  splatsCountValueEl.textContent = formatInteger(splatCount);