feat(web): object picker in workbench shell, verify sketch panel on stage
workbench.html routes Sketcher desktop commands to the standalone sketcher probe, which had no document, so Sketcher_EditSketch always failed with "The selected live document does not exist in this runtime". The shell also only exposed an object selection table for BIM, so no command could receive a selected sketch. - workbench shell: add a generic document object list (details .workbench-object-picker) that writes both the shell selection and the command payload selection for every module - ch03: document the working session path (NewSketch creates workbench_document/Sketch, then EditSketch on that selection) with two stage screenshots, plus the measured layout (panel left 284 vs stage left 260, zero horizontal overflow) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -147,6 +147,22 @@ Sketcher 在 Web 端有两个 React 任务面板,分别承担「画」与「
|
||||
|
||||

|
||||
|
||||
### 工作台页面里的草图编辑
|
||||
|
||||
在 `workbench.html?module=Sketcher` 里编辑草图时,草图面板挂在**主舞台**上,而不是右侧窄命令栏。
|
||||
这一步需要先让 Sketcher 运行时拥有草图:先执行 `Sketcher_NewSketch` 建草图,
|
||||
再执行 `Sketcher_EditSketch` 并选中该草图(`documentId` = `workbench_document`,`object` = `Sketch`)。
|
||||
面板出现后占满舞台宽度,约束与几何控件按列排布:
|
||||
|
||||

|
||||
|
||||
整页效果(左侧模块列表、中间草图面板、右侧命令栏):
|
||||
|
||||

|
||||
|
||||
实测布局读数:主舞台起点 260 px,草画面板起点 284 px,两者相差的 24 px 是舞台内边距;
|
||||
主舞台横向溢出 0、页面横向溢出 0。这条证据就是为了证明草图控件没有被挤进窄栏、也没有被截断。
|
||||
|
||||
## 自检
|
||||
|
||||
- [ ] 对象树里有 `ManualSketch`。
|
||||
|
||||
Reference in New Issue
Block a user