|
|
|
@ -53,7 +53,7 @@ export interface IChat
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
private readonly _version = 45; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
private readonly _version = 46; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
@observable designer = ""; //一键布局的设计师
|
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
@ -198,6 +198,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
@observable brRelativePosChangeCount: boolean = true; //绘制层板时等分切换靠上靠下时数量变成1,立板背板同理
|
|
|
|
|
|
|
|
|
|
@observable autoDeviation: boolean = false;//排钻自动偏移
|
|
|
|
|
@observable autoDeviationMinDist: number = 200; //排钻自动偏移的最小排钻面
|
|
|
|
|
@observable drillShortPrior: boolean = false;//排钻的碰撞面短的优先排钻
|
|
|
|
|
|
|
|
|
|
constructor()
|
|
|
|
@ -318,6 +319,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
ARC_DRAW_CONFIG.Arc_MinSplitCount = this.splitParams.Arc_MinSplitCount;
|
|
|
|
|
ARC_DRAW_CONFIG.ARC_MaxSplitCount = this.splitParams.ARC_MaxSplitCount;
|
|
|
|
|
this.drillShortPrior = false;
|
|
|
|
|
this.autoDeviationMinDist = 200;
|
|
|
|
|
}
|
|
|
|
|
SaveConfig()
|
|
|
|
|
{
|
|
|
|
@ -381,6 +383,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
autoDeviation: this.autoDeviation,
|
|
|
|
|
splitParams: toJS(this.splitParams),
|
|
|
|
|
drillShortPrior: this.drillShortPrior,
|
|
|
|
|
autoDeviationMinDist: this.autoDeviationMinDist,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -589,6 +592,10 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
this.drillShortPrior = config.option.drillShortPrior;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 45)
|
|
|
|
|
{
|
|
|
|
|
this.autoDeviationMinDist = config.option.autoDeviationMinDist;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|