@playcanvas/supersplat-viewer 1.17.2 → 1.17.3

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.17.2",
3
+ "version": "1.17.3",
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
@@ -74177,7 +74177,7 @@ class CameraManager {
74177
74177
  // holds the camera state
74178
74178
  camera = new Camera();
74179
74179
  constructor(global, bbox, collider = null) {
74180
- const { events, settings, state } = global;
74180
+ const { config, events, settings, state } = global;
74181
74181
  const camera0 = settings.cameras[0].initial;
74182
74182
  const frameCamera = createFrameCamera(bbox, camera0.fov);
74183
74183
  const resetCamera = createCamera(new Vec3(camera0.position), new Vec3(camera0.target), camera0.fov);
@@ -74219,7 +74219,7 @@ class CameraManager {
74219
74219
  state.hasAnimation = !!controllers.anim;
74220
74220
  state.animationDuration = controllers.anim ? controllers.anim.animState.cursor.duration : 0;
74221
74221
  // initialize camera mode and initial camera position
74222
- state.cameraMode = state.hasAnimation ? 'anim' : (isObjectExperience ? 'orbit' : (collider ? 'walk' : 'fly'));
74222
+ state.cameraMode = (state.hasAnimation && !config.noanim) ? 'anim' : (isObjectExperience ? 'orbit' : (collider ? 'walk' : 'fly'));
74223
74223
  this.camera.copy(resetCamera);
74224
74224
  const target = new Camera(this.camera); // the active controller updates this
74225
74225
  const from = new Camera(this.camera); // stores the previous camera state during transition
@@ -78134,7 +78134,7 @@ const initXr = (global) => {
78134
78134
  });
78135
78135
  };
78136
78136
 
78137
- var version = "1.17.2";
78137
+ var version = "1.17.3";
78138
78138
 
78139
78139
  const loadGsplat = async (app, config, progressCallback) => {
78140
78140
  const { contents, contentUrl, unified, aa } = config;