feat(menu): add cancel translucent option to right-click menu

- Add cancelTranslucent i18n translations (zh-CN: 取消半透明, en-US: Cancel Translucent)
- Add unTranslucentModel() method to Engine layer
- Add unTranslucentModel() proxy to EngineManager
- Add menu item after 'Transparent Selected' (order: 4)
- Update menu item order numbers (5-8)
This commit is contained in:
yuding
2026-02-04 15:10:51 +08:00
parent 89783d0a9b
commit ad19934e19
5 changed files with 41 additions and 8 deletions

View File

@@ -819,6 +819,17 @@ export class Engine implements IBimComponent {
}
}
/**
* 取消半透明
*/
public unTranslucentModel(): void {
if (!this._isInitialized || !this.engine?.modelToolModule) {
console.warn('[Engine] Cannot cancel translucent: engine not initialized.');
return;
}
this.engine.modelToolModule.unTranslucentModel();
}
/**
* 隔离选中构件(隐藏其他)
*/