|
|
@ -84,13 +84,16 @@ export class ShareViewCameraControl extends CameraControls
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// ShareView中用更改FOV的方式替换原有的透视相机缩放逻辑(CameraControl难以重写)
|
|
|
|
// ShareView中用更改FOV的方式替换原有的透视相机缩放逻辑(CameraControl难以重写)
|
|
|
|
this.Viewer.CameraControl.Fov = clamp(this.Viewer.CameraControl.Fov * scale, this.minFov, this.maxFov);
|
|
|
|
this.Viewer.CameraControl.Fov = clamp(this.Viewer.CameraControl.Fov * scale, this.minFov, this.maxFov);
|
|
|
|
if (screen.orientation.type.startsWith("portrait"))
|
|
|
|
if (screen.orientation)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.shareViewStore.userFovPortrait = scale;
|
|
|
|
if (screen.orientation.type.startsWith("portrait"))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
else if (screen.orientation.type.startsWith("landscape"))
|
|
|
|
this.shareViewStore.userFovPortrait = scale;
|
|
|
|
{
|
|
|
|
}
|
|
|
|
this.shareViewStore.userFovLandscape = scale;
|
|
|
|
else if (screen.orientation.type.startsWith("landscape"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.shareViewStore.userFovLandscape = scale;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|