@playcanvas/supersplat-viewer 1.18.2 → 1.18.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/dist/index.js +1 -1
- package/package.json +1 -1
- package/public/index.js +3 -3
- package/public/index.js.map +1 -1
package/package.json
CHANGED
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 {
|
|
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 =
|
|
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
|
|
@@ -78215,7 +78215,7 @@ const initXr = (global) => {
|
|
|
78215
78215
|
});
|
|
78216
78216
|
};
|
|
78217
78217
|
|
|
78218
|
-
var version = "1.18.
|
|
78218
|
+
var version = "1.18.3";
|
|
78219
78219
|
|
|
78220
78220
|
const loadGsplat = async (app, config, progressCallback) => {
|
|
78221
78221
|
const { contents, contentUrl, unified, aa } = config;
|