Interface design document and manual now share one authoritative surface inventory (333 surfaces across 9 categories, gap 0), and every chapter carries real Playwright screenshots of the panels it documents. - tools/fcweb: ui-surface-scan/ui-surface-inventory (deterministic --check), build-ui-doc renders panel catalog, workbench matrix and mapping tables; blank toolbar crops (<1 KB) are skipped and pruned instead of embedded - web/tools/manual: generate-panel-index (ch16), audit-ui-gaps, generate-final-status, generate-gaps-doc; pager is per-chapter so the manual no longer overflows horizontally - manual: 130 screenshot references / 128 PNGs, panel sections for ch02-ch13 - web/src: utility menus stop click propagation (menu reopened on item click); workbench shell gains an OPFS document picker so workbench.html can bind a real document instead of the fixed workbench-document id; Sketcher panel moves from the command column to the main stage Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
78 lines
5.1 KiB
Markdown
78 lines
5.1 KiB
Markdown
# Web FreeCAD 手册与界面文档 · 缺口与边界账本
|
||
|
||
> 本文件由 `web/tools/manual/generate-gaps-doc.mjs` 从真实产物派生,**不要手改**。
|
||
> 输入:`web/manual/data/final-status.json`、`web/manual/data/gap-ledger.json`、`docs/current/ui-design/data/gap-register.json`。
|
||
> 复核:`node web/tools/manual/generate-gaps-doc.mjs --check`。
|
||
|
||
## 口径
|
||
|
||
- 模块数 **31**(不含已整体摘除的 OpenSCAD)。
|
||
- 命令矩阵 **1573** 条,原生承接 **378** 条。
|
||
- 手工验证命令 **12** 条;已知边界 **11** 条。
|
||
- 手册 **17** 章(正文 15 章 + 附录章)、页面截图引用 **130** 处、磁盘 PNG **128** 个。
|
||
- UI 表面 **333** 项:。
|
||
- 表面状态:implemented 330 / partial 3 / gap **0**。
|
||
|
||
## 已实现的界面覆盖(不是缺口)
|
||
|
||
| 项 | 结果 |
|
||
|---|---|
|
||
| 界面设计文档 | `docs/current/web-freecad-ui-layout-and-functions.html`,17 章 + 命令附录 |
|
||
| 手册 | `web/teaching/manual.html`,15 章 164 节 |
|
||
| 截图 | 页面引用 130 处;磁盘 128 个 PNG;采集报告 26 份 |
|
||
| 浏览器校验 | 桌面 overflow 0 / 移动 overflow 0 / 破图 0 |
|
||
|
||
## 已知边界(11 条)
|
||
|
||
| ID | 模块 | 边界 | 状态 |
|
||
|---|---|---|---|
|
||
| `b-techdraw-worker` | TechDraw | 页面 Worker 未持有目标文档,TechDraw_PageDefault 报 Document does not exist;SVG 回退不是 TechDraw 输出。 | boundary |
|
||
| `b-fem-native` | Fem | FemMeshObject/FemResultObject 未随包发布,结果停留在 Worker;VTK 显示为 three.js 近似。 | boundary |
|
||
| `b-cam-opencamlib` | CAM | Adaptive/Surface/Waterline 依赖 OpenCAMLib 与完整 ToolBit/G-code 栈,WASM 包未提供。 | boundary |
|
||
| `b-gltf-native` | Import | OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。 | boundary |
|
||
| `b-cloud-remote` | Cloud | Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。 | boundary |
|
||
| `b-material-sparse` | Material | Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。 | boundary |
|
||
| `b-bim-no-creation` | BIM | BIM 命令停靠区只有 BIM_Nudge_Up / BIM_Unclone / BIM_Ungroup;Arch_Site / Arch_Wall / BIM_Slab 等创建命令一律无任务面板。实测可用的只有 BIM_Views、BIM_Library、BIM_Setup、BIM_Material 四个非创建类命令。 | boundary |
|
||
| `b-mesh-frompartshape` | Mesh | 实体转网格的标准入口 Mesh_FromPartShape 在 Web 端没有任务面板。可用替代是 Mesh_BuildRegularSolid,实测返回 nativeOperationCompleted=true、typeId=Mesh::Cube。 | boundary |
|
||
| `b-draft-needs-viewport` | Draft | Draft_Rectangle 面板填满数值后仍提示 Pick first corner,图元要求先在三维视口取点;工作台壳层页面没有 canvas,取不了点。Draft_Line / Draft_Wire / Draft_Array 连面板都没有。 | boundary |
|
||
| `b-robot-no-model` | Robot | Robot_CreateRobot 面板六个分组齐全,但 Joint angles 分组固定显示 Home: Not set — use Set Home;点 Set Home 与点动按钮后文本与数值均不变。 | boundary |
|
||
| `b-plot-no-canvas` | Plot | Plot_Axes 面板五个分组齐全,但点 New figure 与 Add axes 后页面既不新增 svg 也不新增 canvas,在 Download SVG 之前没有可视化反馈。 | boundary |
|
||
|
||
## 手工验证的用例
|
||
|
||
共 **12** 条(台账 `web/manual/data/gap-ledger.json`)。
|
||
- 草图编辑器已从右侧属性栏移到主舞台(project-shell 的 .stage-sketch-task),命令按宽度自动排成多列,1440 宽窗口下为 3 列;ch03 截图已按新布局重采。
|
||
- 项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。
|
||
- Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。
|
||
- 两套页面壳不可互换:project.html 能新建 Document 且工作台下拉给 30 个工作台;workbench.html?module=X 对多数模块绑定固定文档 id workbench-document,既不能新建也不能打开文档。
|
||
- 字段面板能填写并提交但缺父对象文档的失败属前置未满足,不记为产品回归。
|
||
|
||
## 界面表面审计(333 项,问题 0 项)
|
||
|
||
| 表面 | 分类 | 状态 | 注释 |
|
||
|---|---|---|---|
|
||
| — | menu | partial | — |
|
||
| — | menu | partial | — |
|
||
| — | toolbar | partial | — |
|
||
|
||
审计命令:`node web/tools/manual/audit-ui-gaps.mjs --check`。
|
||
|
||
## 复现命令
|
||
|
||
```bash
|
||
R="/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD"
|
||
node "$R/tools/fcweb/ui-surface-inventory.mjs" --check
|
||
node "$R/tools/fcweb/build-ui-doc.mjs" --check
|
||
node "$R/web/tools/manual/audit-ui-gaps.mjs" --check
|
||
node "$R/web/tools/manual/generate-gaps-doc.mjs" --check
|
||
cd "$R/web" && npm run build:manual && npm run check:manual
|
||
```
|
||
|
||
## 边界判定口径
|
||
|
||
- 前置未满足(缺文档、缺 Worker、缺原生对象)记边界并保留产品原始错误文本,不写成产品回归。
|
||
- GUI 控件缺口用 React 组件补齐,不以 GUI-only 名义留作 blocked。
|
||
- 空白或占位截图不得入库;空白工具栏裁剪由 `build-ui-doc.mjs` 的 1024 字节门槛自动跳过。
|
||
- 生成物(本文件、第 16 章、`final-status.json`)一律由脚本产出并带 `--check`。
|
||
|