|
|
|
@ -53,7 +53,7 @@ export interface IChat
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
private readonly _version = 44; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
private readonly _version = 45; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
@observable designer = ""; //一键布局的设计师
|
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
@ -197,7 +197,9 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
@observable throughModelSegmentedDrill: boolean = false;//挖穿造型分段排钻
|
|
|
|
|
@observable brRelativePosChangeCount: boolean = true; //绘制层板时等分切换靠上靠下时数量变成1,立板背板同理
|
|
|
|
|
|
|
|
|
|
@observable autoDeviation: boolean = false;
|
|
|
|
|
@observable autoDeviation: boolean = false;//排钻自动偏移
|
|
|
|
|
@observable drillShortPrior: boolean = false;//排钻的碰撞面短的优先排钻
|
|
|
|
|
|
|
|
|
|
constructor()
|
|
|
|
|
{
|
|
|
|
|
this.Init();
|
|
|
|
@ -315,6 +317,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
ARC_DRAW_CONFIG.ARC_RADIUS_MIN = this.splitParams.ARC_RADIUS_MIN;
|
|
|
|
|
ARC_DRAW_CONFIG.Arc_MinSplitCount = this.splitParams.Arc_MinSplitCount;
|
|
|
|
|
ARC_DRAW_CONFIG.ARC_MaxSplitCount = this.splitParams.ARC_MaxSplitCount;
|
|
|
|
|
this.drillShortPrior = false;
|
|
|
|
|
}
|
|
|
|
|
SaveConfig()
|
|
|
|
|
{
|
|
|
|
@ -377,6 +380,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
brRelativePosChangeCount: this.brRelativePosChangeCount,
|
|
|
|
|
autoDeviation: this.autoDeviation,
|
|
|
|
|
splitParams: toJS(this.splitParams),
|
|
|
|
|
drillShortPrior: this.drillShortPrior,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -581,6 +585,10 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
ARC_DRAW_CONFIG.Arc_MinSplitCount = this.splitParams.Arc_MinSplitCount;
|
|
|
|
|
ARC_DRAW_CONFIG.ARC_MaxSplitCount = this.splitParams.ARC_MaxSplitCount;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 44)
|
|
|
|
|
{
|
|
|
|
|
this.drillShortPrior = config.option.drillShortPrior;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|