|
|
@ -84,6 +84,8 @@ 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)
|
|
|
|
|
|
|
|
{
|
|
|
|
if (screen.orientation.type.startsWith("portrait"))
|
|
|
|
if (screen.orientation.type.startsWith("portrait"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.shareViewStore.userFovPortrait = scale;
|
|
|
|
this.shareViewStore.userFovPortrait = scale;
|
|
|
@ -93,6 +95,7 @@ export class ShareViewCameraControl extends CameraControls
|
|
|
|
this.shareViewStore.userFovLandscape = scale;
|
|
|
|
this.shareViewStore.userFovLandscape = scale;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.Viewer.Zoom(scale, this._TouchScaleCenterWCS2);
|
|
|
|
this.Viewer.Zoom(scale, this._TouchScaleCenterWCS2);
|
|
|
|