|
|
|
@ -5,8 +5,8 @@ import { RenderType } from "../GraphicsSystem/RenderType";
|
|
|
|
|
import { IConfigOption } from "../UI/Components/Board/UserConfigComponent";
|
|
|
|
|
import { IBaseOption, IGrooveOption } from "../UI/Store/BoardInterface";
|
|
|
|
|
import { IConfigStore } from "../UI/Store/BoardStore";
|
|
|
|
|
import { DrillingOption } from "../UI/Store/drillInterface";
|
|
|
|
|
import { IWineRackOption } from "../UI/Store/WineRackInterface";
|
|
|
|
|
import { DrillingOption } from "../UI/Store/drillInterface";
|
|
|
|
|
import { ICursorConfig } from "./ICursorConfig";
|
|
|
|
|
|
|
|
|
|
export interface IMaxSizeProps extends IBaseOption
|
|
|
|
@ -44,7 +44,7 @@ export interface IChat
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
private readonly _version = 33; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
private readonly _version = 34; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
@observable designer = ""; //一键布局的设计师
|
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
@ -95,6 +95,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
@observable isModifyMaterial: boolean = true;//右侧工具栏应用时覆盖新的材质
|
|
|
|
|
@observable isHighlightMaterial: boolean = true;//亮显材质球
|
|
|
|
|
@observable cabinetSpacing: number = 1000; //柜子移动到0点配置 柜子间距
|
|
|
|
|
@observable testModeSpacing = 50; //模拟走刀图形间距
|
|
|
|
|
@observable ConceptualEdgeColor = 7;//概念线框的颜色
|
|
|
|
|
ConceptualOpacity = 1;//概念透明的透明度
|
|
|
|
|
|
|
|
|
@ -254,6 +255,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
this.titleWidthMap = new Map();
|
|
|
|
|
this.dxfImportFrontView = false;
|
|
|
|
|
this.designer = "";
|
|
|
|
|
this.testModeSpacing = 50;
|
|
|
|
|
}
|
|
|
|
|
SaveConfig()
|
|
|
|
|
{
|
|
|
|
@ -303,7 +305,8 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
titleWidthMap: Object.fromEntries(this.titleWidthMap.entries()),
|
|
|
|
|
dxfImportFrontView: this.dxfImportFrontView,
|
|
|
|
|
designer: this.designer,
|
|
|
|
|
showOpenDirLines: this.showOpenDirLines
|
|
|
|
|
showOpenDirLines: this.showOpenDirLines,
|
|
|
|
|
testModeSpacing: this.testModeSpacing,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -449,7 +452,13 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
this.designer = config.option.designer;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 32)
|
|
|
|
|
{
|
|
|
|
|
this.showOpenDirLines = config.option.showOpenDirLines;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 33)
|
|
|
|
|
{
|
|
|
|
|
this.testModeSpacing = config.option.testModeSpacing;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|