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>
34 lines
1.5 KiB
Markdown
34 lines
1.5 KiB
Markdown
# Web FreeCAD 全功能初学者图文教案
|
||
|
||
单页中文 HTML 教案:31 个模块、1573 条命令索引、17 章(含全功能面板索引)、129 处真实运行截图引用(页面计数)、专业模块工作流与边界说明。
|
||
|
||
## 目录
|
||
|
||
- `content/*.md`:章节正文(front-matter: id/order/title/level)。
|
||
- `scenarios/*.json`:Playwright 动作脚本,用于截图与断言。
|
||
- `assets/<chapter>/<workflow>/`:真实界面截图。
|
||
- `data/manual-features.json`:命令覆盖矩阵。
|
||
- `data/inventory-snapshot.json`:输入文件 sha256。
|
||
- `data/coverage-audit.json`:模块/章节/状态计数。
|
||
- `data/capture/*.json`:每章截图与断言证据。
|
||
- `fixtures/`:capture 保存的 FCStd。
|
||
|
||
## 构建
|
||
|
||
```bash
|
||
cd /home/mes123456/FreeCADWasmDev/working/FreeCAD/web
|
||
npm run manual:features # 生成命令矩阵
|
||
node tools/manual/capture.mjs --scenario manual/scenarios/ch01-ui.json
|
||
npm run build:manual # 生成 teaching/manual.html + manual-assets/
|
||
npm run check:manual # 桌面/移动、图片、搜索、命令索引
|
||
```
|
||
|
||
访问 `http://127.0.0.1:5190/manual.html`。
|
||
|
||
## 口径
|
||
|
||
- 命令状态:`detailed` 精讲、`overview` 覆盖、`boundary` 边界、`verified` 已验证。
|
||
- 大边界(TechDraw 跨 Worker、FEM 原生对象、CAM OpenCAMLib、glTF 原生导入导出、
|
||
Material/Cloud)只标注,不写成可用。
|
||
- 截图必须来自真实应用;0 pageError/consoleError、图片 >5 KB 才入库。
|