@playcanvas/supersplat-viewer 1.18.2 → 1.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcanvas/supersplat-viewer",
3
- "version": "1.18.2",
3
+ "version": "1.18.4",
4
4
  "author": "PlayCanvas <support@playcanvas.com>",
5
5
  "homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
6
6
  "description": "Viewer for https://superspl.at",
package/public/index.js CHANGED
@@ -74233,7 +74233,7 @@ class CameraManager {
74233
74233
  // holds the camera state
74234
74234
  camera = new Camera();
74235
74235
  constructor(global, bbox, collider = null) {
74236
- const { config, events, settings, state } = global;
74236
+ const { events, settings, state } = global;
74237
74237
  const camera0 = settings.cameras[0]?.initial;
74238
74238
  const defaultFov = camera0?.fov ?? 75;
74239
74239
  const frameCamera = createFrameCamera(bbox, defaultFov);
@@ -74280,7 +74280,7 @@ class CameraManager {
74280
74280
  state.hasAnimation = !!controllers.anim;
74281
74281
  state.animationDuration = controllers.anim ? controllers.anim.animState.cursor.duration : 0;
74282
74282
  // initialize camera mode and initial camera position
74283
- state.cameraMode = (state.hasAnimation && !config.noanim) ? 'anim' : (isObjectExperience ? 'orbit' : (collider ? 'walk' : 'fly'));
74283
+ state.cameraMode = state.hasAnimation ? 'anim' : (isObjectExperience ? 'orbit' : (collider ? 'walk' : 'fly'));
74284
74284
  this.camera.copy(resetCamera);
74285
74285
  const target = new Camera(this.camera); // the active controller updates this
74286
74286
  const from = new Camera(this.camera); // stores the previous camera state during transition
@@ -76271,7 +76271,7 @@ class Viewer {
76271
76271
  // handle quality mode changes
76272
76272
  const updateLod = () => {
76273
76273
  const settings = state.retinaDisplay ? quality.high : quality.low;
76274
- results[0].gsplat.splatBudget = settings * 1000000;
76274
+ gsplat.splatBudget = settings * 1000000;
76275
76275
  gsplat.lodRangeMin = 0;
76276
76276
  gsplat.lodRangeMax = 1000;
76277
76277
  };
@@ -78215,7 +78215,7 @@ const initXr = (global) => {
78215
78215
  });
78216
78216
  };
78217
78217
 
78218
- var version = "1.18.2";
78218
+ var version = "1.18.4";
78219
78219
 
78220
78220
  const loadGsplat = async (app, config, progressCallback) => {
78221
78221
  const { contents, contentUrl, unified, aa } = config;