feat(clipping): implement hide/recover toggle for all section dialogs

Update all three section dialogs to support hide/show toggle:

SectionAxisDialogManager:
- onHideToggle now calls hideSection()/recoverSection()

SectionBoxDialogManager:
- onHideToggle now calls hideSection()/recoverSection()

SectionPlanePanel:
- Add isHidden state tracking
- Change onHide to onHideToggle(isHidden)
- Add setHiddenState/getHiddenState methods
- Update button to toggle active state

SectionPlaneDialogManager:
- Switch to onHideToggle callback
- Call hideSection()/recoverSection() based on toggle state

Behavior: Click hide button to hide section, click again to recover.
This commit is contained in:
yuding
2026-02-02 16:36:17 +08:00
parent 41abd9ed67
commit 4a09d52283
44 changed files with 17877 additions and 10807 deletions

View File

@@ -178,5 +178,28 @@ export const enUS: TranslationDictionary = {
},
map: {
dialogTitle: 'Map'
},
aiChat: {
title: 'AI Assistant',
placeholder: 'Ask a question...',
quickPrompt: {
summarize: 'Summarize this model',
explain: 'Explain selected component',
generate: 'Generate report'
},
action: {
new: 'New Chat',
history: 'History',
settings: 'Settings',
close: 'Close'
},
helper: {
newline: 'Shift + Enter for new line',
send: 'Enter to send'
},
thinking: 'Thinking...',
other: 'Other',
otherPlaceholder: 'Enter custom answer',
submit: 'Submit'
}
};

View File

@@ -202,6 +202,29 @@ export interface TranslationDictionary {
map: {
dialogTitle: string;
};
aiChat: {
title: string;
placeholder: string;
quickPrompt: {
summarize: string;
explain: string;
generate: string;
};
action: {
new: string;
history: string;
settings: string;
close: string;
};
helper: {
newline: string;
send: string;
};
thinking: string;
other: string;
otherPlaceholder: string;
submit: string;
};
}
/**

View File

@@ -178,5 +178,28 @@ export const zhCN: TranslationDictionary = {
},
map: {
dialogTitle: '地图'
},
aiChat: {
title: 'AI 助手',
placeholder: '输入你的问题...',
quickPrompt: {
summarize: '总结这个模型',
explain: '解释选中的构件',
generate: '生成报告'
},
action: {
new: '新建对话',
history: '历史记录',
settings: '设置',
close: '关闭'
},
helper: {
newline: 'Shift + Enter 换行',
send: 'Enter 发送'
},
thinking: '正在思考...',
other: '其他',
otherPlaceholder: '请输入自定义答案',
submit: '提交'
}
};