refactor: sync managers and section box actions

Wire section box scale/reverse/reset to clipping APIs and sync demo artifacts.
This commit is contained in:
yuding
2026-02-04 18:20:30 +08:00
parent b12940f49c
commit 191c571f40
64 changed files with 10569 additions and 7065 deletions

View File

@@ -538,6 +538,19 @@ const dialog = engine.dialog.create({
| `ConstructTreeManagerBtn` | `src/managers/construct-tree-manager-btn.ts` | 目录树按钮/弹窗管理器 | `BimComponent` |
| `ComponentDetailManager` | `src/managers/component-detail-manager.ts` | 构件详情弹窗管理器 | `BimComponent` |
#### 4.1.1 剖切盒SectionBox对接说明
- 相关文件:
- `src/managers/section-box-dialog-manager.ts`:剖切盒弹窗事件/回调对接
- `src/components/section-box-panel/index.ts`:剖切盒 UI 状态管理(隐藏/反向/滑块范围/重置)
- `src/components/engine/index.ts`:底层 3D 引擎能力封装
- `src/managers/engine-manager.ts`:对外暴露的 3D 引擎管理器 APIUI 通过此层调用)
- 关键交互约定:
- “适应”按钮:调用 `EngineManager.scaleSectionBox()`,对接底层 `engine.clipping.scaleBox()`
- “反向”按钮:调用 `EngineManager.reverseSection()`,对接底层 `engine.clipping.reverse()`(该接口为“切换一次”语义)
- “重置”按钮UI 强制恢复到默认状态(滑块 0-100、隐藏/反向按钮均为关闭),并通过 `deactivateSection()` → `activeSection('box')` 实现“关闭剖切再打开”
### 4.2 组件类清单
| 类名 | 文件路径 | 功能 | 实现接口 |