storysplat-viewer 2.2.5 → 2.2.8

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.
@@ -40,6 +40,8 @@ export interface CameraControlsConfig {
40
40
  zoomRange?: pc.Vec2;
41
41
  gamepadDeadZone?: pc.Vec2;
42
42
  mobileInputLayout?: MobileInputLayout;
43
+ /** Invert camera rotation (Y-axis) for inverted mouse/touch controls */
44
+ invertRotation?: boolean;
43
45
  }
44
46
  /**
45
47
  * CameraControls class - Manages camera with orbit, fly, and focus modes
@@ -79,6 +81,8 @@ export declare class CameraControls {
79
81
  zoomPinchSens: number;
80
82
  keyboardSpeedMultiplier: number;
81
83
  gamepadDeadZone: pc.Vec2;
84
+ /** Invert camera rotation (Y-axis) */
85
+ invertRotation: boolean;
82
86
  joystickEventName: string;
83
87
  private _destroyHandler;
84
88
  constructor(camera: pc.Entity, app: pc.Application, config?: CameraControlsConfig);
@@ -58,6 +58,11 @@ export interface ViewerConfig {
58
58
  playerHeight?: number;
59
59
  cameraMovementSpeed?: number;
60
60
  cameraRotationSensitivity?: number;
61
+ invertCameraRotation?: boolean;
62
+ scrollSpeed?: number;
63
+ scrollAmount?: number;
64
+ scrollButtonMode?: 'continuous' | 'incremental' | 'percentage' | 'waypoint';
65
+ transitionSpeed?: number;
61
66
  /** Speed of autoplay in progress per second (default: calculated from waypoint durations) */
62
67
  autoplaySpeed?: number;
63
68
  /** Loop behavior for playback: 'loop' restarts at beginning, 'pingpong' reverses direction, 'none' stops at end */
@@ -391,13 +391,15 @@ export interface SceneData {
391
391
  allowedCameraModes?: string[];
392
392
  cameraMovementSpeed?: number;
393
393
  cameraRotationSensitivity?: number;
394
+ invertCameraRotation?: boolean;
394
395
  cameraPosition?: number[];
395
396
  cameraRotation?: number[];
396
397
  fov?: number;
397
398
  includeScrollControls?: boolean;
398
- scrollButtonMode?: 'continuous' | 'incremental';
399
+ scrollButtonMode?: 'continuous' | 'incremental' | 'percentage' | 'waypoint';
399
400
  scrollAmount?: number;
400
401
  scrollSpeed?: number;
402
+ transitionSpeed?: number;
401
403
  autoPlayEnabled?: boolean;
402
404
  /** Speed of autoplay in progress per second (default: 0.1 = 10 seconds per full tour) */
403
405
  autoplaySpeed?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storysplat-viewer",
3
- "version": "2.2.5",
3
+ "version": "2.2.8",
4
4
  "description": "PlayCanvas-based 3D viewer for StorySplat scenes - HTML export & dynamic embedding",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -60,7 +60,7 @@
60
60
  "@rollup/plugin-terser": "^0.4.4",
61
61
  "@rollup/plugin-typescript": "^12.1.1",
62
62
  "@types/node": "^22.10.2",
63
- "playcanvas": "2.14.4",
63
+ "playcanvas": "2.14.3",
64
64
  "rollup": "^4.28.1",
65
65
  "tslib": "^2.6.0",
66
66
  "typescript": "^5.7.2"