!2302 修复:智能UCS开关点击

pull/2305/MERGE
黄诗津 1 year ago committed by ChenX
parent 2376956cb4
commit 2e316e045e

@ -10,7 +10,7 @@ import { PromptPointResult } from "./PromptResult";
export function GetPointUCS(ptRes: PromptPointResult): Matrix4 | undefined export function GetPointUCS(ptRes: PromptPointResult): Matrix4 | undefined
{ {
const downPanelStore = DownPanelStore.GetInstance(); const downPanelStore = DownPanelStore.GetInstance();
if (downPanelStore.EnableSmartUCS && ptRes.intersection) if (downPanelStore.smartUCS && ptRes.intersection)
{ {
let ucs = app.Editor.UCSMatrix; let ucs = app.Editor.UCSMatrix;
let ucsN = new Vector3().setFromMatrixColumn(ucs, 2); let ucsN = new Vector3().setFromMatrixColumn(ucs, 2);

@ -580,7 +580,7 @@ export class DownPanel extends React.Component<{ store: DownPanelStore; }, {}>
position={Position.TOP} position={Position.TOP}
> >
<Switch <Switch
checked={this.downStore.EnableSmartUCS} checked={this.downStore.smartUCS}
label="智能UCS" label="智能UCS"
style={switchStyle} style={switchStyle}
alignIndicator={Alignment.RIGHT} alignIndicator={Alignment.RIGHT}

@ -163,7 +163,7 @@ export class DownPanelStore
@observable isTopToolBarShowMin: boolean = false; @observable isTopToolBarShowMin: boolean = false;
@observable isBottomToolBarShowMin: boolean = false; @observable isBottomToolBarShowMin: boolean = false;
@observable showHideSync: boolean = false; //显隐同步 @observable showHideSync: boolean = false; //显隐同步
@observable EnableSmartUCS: boolean = false; //智能UCS @observable smartUCS: boolean = false; //智能UCS
private timeId; private timeId;
private constructor() private constructor()
{ {
@ -234,7 +234,7 @@ export class DownPanelStore
fontName: this.fontName, fontName: this.fontName,
lightsData: this.lightsData.map(l => l.enable), lightsData: this.lightsData.map(l => l.enable),
showHideSync: this.showHideSync, showHideSync: this.showHideSync,
smartUCS: this.EnableSmartUCS, smartUCS: this.smartUCS,
}; };
} }
async Upload() async Upload()
@ -316,7 +316,7 @@ export class DownPanelStore
this.SetSnapMode(); this.SetSnapMode();
this.showType = (this.isSmallScreen ? !this.isLeftToolBarShowMin : !this.isLeftToolBarShow) ? this.showType ^ ToolBarType.lefttoolbar : this.showType | ToolBarType.lefttoolbar; this.showType = (this.isSmallScreen ? !this.isLeftToolBarShowMin : !this.isLeftToolBarShow) ? this.showType ^ ToolBarType.lefttoolbar : this.showType | ToolBarType.lefttoolbar;
this.showHideSync = config.showHideSync ?? false; this.showHideSync = config.showHideSync ?? false;
this.EnableSmartUCS = config.smartUCS ?? false; this.smartUCS = config.smartUCS ?? false;
} }
toggleLeftToolBarShow() toggleLeftToolBarShow()

Loading…
Cancel
Save