|
|
|
@ -33,7 +33,7 @@ export interface ICursorConfig extends IBaseOption
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
private readonly _version = 22;
|
|
|
|
|
private readonly _version = 23;
|
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
|
isShow: false,
|
|
|
|
@ -121,6 +121,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
@observable openHistoryList = true;
|
|
|
|
|
isOpenCabinet: boolean = false; //是否时开启门板、抽屉动作
|
|
|
|
|
@observable lightHelper: boolean = false; //是否显示灯光助手
|
|
|
|
|
@observable isShowSkyBox: boolean = false;//是否显示天空球,仅在透视相机下显示
|
|
|
|
|
|
|
|
|
|
constructor()
|
|
|
|
|
{
|
|
|
|
@ -200,6 +201,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
this.synchronousEnable = false;
|
|
|
|
|
this.isLargeIcon = false;
|
|
|
|
|
this.isModifyMaterial = false;
|
|
|
|
|
this.isShowSkyBox = false;
|
|
|
|
|
}
|
|
|
|
|
SaveConfig()
|
|
|
|
|
{
|
|
|
|
@ -236,6 +238,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
synchronousEnable: this.synchronousEnable,
|
|
|
|
|
isLargeIcon: this.isLargeIcon,
|
|
|
|
|
isModifyMaterial: this.isModifyMaterial,
|
|
|
|
|
isShowSkyBox: this.isShowSkyBox,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -337,6 +340,10 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
this.openHistoryList = config.option.openHistoryList;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 22)
|
|
|
|
|
{
|
|
|
|
|
this.isShowSkyBox = config.option.isShowSkyBox;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|