@micrio/client 7.5.0-alpha.4 → 7.5.0-alpha.5

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/micrio.min.d.ts CHANGED
@@ -1041,6 +1041,16 @@ declare module '@micrio/client' {
1041
1041
  height: number;
1042
1042
  visible: boolean;
1043
1043
  }
1044
+ interface CameraPose {
1045
+ target: {
1046
+ x: number;
1047
+ y: number;
1048
+ z: number;
1049
+ };
1050
+ radius: number;
1051
+ phi: number;
1052
+ theta: number;
1053
+ }
1044
1054
  interface Controller {
1045
1055
  readonly ready: Promise<void>;
1046
1056
  goto: (pageIdx: number, opts?: FlipOptions) => Promise<void>;
@@ -1052,6 +1062,14 @@ declare module '@micrio/client' {
1052
1062
  flyToView: (imageId: string, view: Camera.View, opts?: CameraFlyOptions) => Promise<void>;
1053
1063
  flyToFullView: (opts?: Camera.AnimationOptions) => Promise<void>;
1054
1064
  flyToPose: (opts: PoseOptions) => Promise<void>;
1065
+ /** Resolve the exact resting, viewport-clamped 3D camera pose for a view on any page without moving the camera. */
1066
+ resolveViewPose: (imageId: string, view: Camera.View, opts?: Omit<CameraFlyOptions, 'duration'>) => CameraPose | null;
1067
+ /** Resolve the viewport-clamped full-spread 3D camera pose without moving the camera. */
1068
+ getFullSpreadPose: (opts?: Omit<PoseOptions, 'duration'>) => CameraPose | null;
1069
+ /** Read the current live 3D camera pose. */
1070
+ getCameraPose: () => CameraPose | null;
1071
+ /** Apply a continuous 3D camera pose immediately (for external spline/timeline camera drivers). */
1072
+ setCameraPose: (pose: CameraPose) => void;
1055
1073
  setLighting: (preset: string, opts?: LightingOptions) => void;
1056
1074
  setFlipSpeed: (speed: number) => void;
1057
1075
  setArcPeak: (peak: number) => void;