feat: 优化测量功能架构与引擎组件
- 重构测量激活逻辑,在 Engine 组件中添加统一的 activateMeasure(mode) 方法 - 简化 MeasureDialogManager,移除冗余的 handleMeasureTypeChange 方法 - 添加 EngineManager.activateMeasure 转发方法 - 修复 loadModel 错误,正确调用 Engine 组件方法 - 为 Engine 组件设置固定背景渐变色 - MeasurePanel 初始化时触发 onModeChange 回调 - 添加 MeasureMode 共享类型定义 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -134,6 +134,11 @@ export class MeasurePanel implements IBimComponent {
|
||||
this.applyActiveModeState();
|
||||
this.applyViewState();
|
||||
this.renderResult();
|
||||
|
||||
// 触发初始测量模式的回调(让外部知道默认激活了哪个模式)
|
||||
if (this.options.onModeChange) {
|
||||
this.options.onModeChange(this.activeMode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user