feat(menu): implement right-click menu functions for model operations

- Add i18n translations for quick select menu (zh-CN, en-US)
- Add 8 model operation methods to Engine layer
- Add 8 proxy methods to EngineManager layer
- Implement right-click menu handlers for hide/translucent/isolate/show all
- Add quick select submenu (same type/level/level+type)
- Replace console.log placeholders with actual API calls
This commit is contained in:
yuding
2026-02-03 18:01:31 +08:00
parent 7a1a44bb5c
commit 89783d0a9b
5 changed files with 550 additions and 117 deletions

View File

@@ -41,7 +41,11 @@ export const enUS: TranslationDictionary = {
hideOthers: 'Hide Others',
transparentOthers: 'Transparent Others',
fitSectionBox: 'Fit Section Box',
showAll: 'Show All'
showAll: 'Show All',
quickSelect: 'Quick Select',
selectSameType: 'Select Same Type',
selectSameLevel: 'Select Same Level',
selectSameLevelType: 'Select Same Level & Type'
},
tree: {
searchPlaceholder: 'Please enter content to search',
@@ -107,15 +111,6 @@ export const enUS: TranslationDictionary = {
slope: 'Slope:',
}
},
units: {
mm: 'mm',
cm: 'cm',
m: 'm',
km: 'km',
deg: '°',
m2: 'm²',
percent: '%',
},
settings: {
title: 'Settings',
unit: 'Unit:',
@@ -173,11 +168,23 @@ export const enUS: TranslationDictionary = {
},
exit: 'Exit',
path: {
dialogTitle: 'Path Walk'
dialogTitle: 'Path Roaming',
duration: 'Duration',
durationUnit: 's',
loop: 'Loop',
addPoint: 'Add Point',
deleteAll: 'Delete All',
point: 'Point',
play: 'Play',
stop: 'Stop',
noPoints: 'No points yet'
}
},
map: {
dialogTitle: 'Map'
info: {
dialogTitle: 'Basic Info',
meshCount: 'Mesh Count',
totalTriangles: 'Total Triangles',
totalVertices: 'Total Vertices',
},
aiChat: {
title: 'AI Assistant',