# Web FreeCAD 全功能初学者教案 · 接续点 更新:2026-11-13 计划:`/home/mes123456/.claude/plans/partitioned-puzzling-haven.md` ## 目标 单页中文 HTML 教案,覆盖 32 个模块;核心模块逐步精讲,专业模块 1–2 个工作流; 1492 条命令全部进附录;小缺口修 React/内核,大边界如实标注。 ## 已完成(P0) - `tools/manual/generate-features.mjs` → `manual/data/{manual-features,inventory-snapshot,coverage-audit}.json` - 32/32 模块有章节;1602 条命令记录(1492 桌面 + 110 注册路由); 196 native handler 全部映射;312 精讲 / 1287 覆盖 / 3 边界。 - 边界已识别:`CAM_Adaptive`、`FEM_ResultShow`、`TechDraw_PageDefault`; glTF/Cloud 等模块级边界待补入 gap ledger。 - `tools/manual/capture.mjs`:Playwright 动作 DSL(goto/wait/click/fill/select/press/ drag/eval/shot/save/assert),0 pageError/consoleError 门禁,截图 >5 KB,报告 JSON。 - `tools/manual/build-manual.mjs` + `template.html`:单页 HTML,侧栏/搜索/进度/灯箱/ 命令索引/移动端抽屉;输出 `teaching/manual.html` + `manual-assets/`。 - 第 1 章样章:`content/ch01-ui.md` + `scenarios/ch01-ui.json`; 7 张真实截图(界面/Box/Placement/属性/视口/保存/总结)。 - 页面检查通过:1440×900 与 390×844 均 0 错误、0 破坏图片、0 横向溢出; 搜索 `Part_Box` 命中 4 条;命令索引 1602 行。 - `package.json` 增加 `manual:features` / `build:manual` / `check:manual`。 - 第 2 章 Part:`content/ch02-part.md` + `scenarios/ch02-part.json`; 4 张截图(图元、Cut 通孔、CheckGeometry、结果);断言 Cylinder R15/H40/Z-10、 Cut 体积 81862.83 mm³、7 面/124 三角面;fixture 已保存。 - 手册当前 2 章、10 张图、1602 条命令;桌面/移动 0 错误、0 破图、0 溢出。 ## 真实残余 - 第 0、3–15 章正文与截图未开始(第 1、2 章已完成)。 - 边界只按精确命令匹配 3 条;需补 Fem/CAM/Cloud/Import 的模块级边界与桌面入口。 - 已验证状态(verified)尚未接入:当前 status 只有 detailed/overview/boundary; 截图断言通过后需回写矩阵与徽章。 - 第 1 章 `04-properties` 等图片为元素截图;后续章需统一全页 + 裁图规范。 - 命令索引 1602 行使 HTML 约 750 KB;后续章节图片外链,需持续监控体积。 - 未提交/推送;建议分支 `web-manual-20261113`。 ## 下一步精确入口 1. 第 3 章 Sketcher:`content/ch03-sketcher.md` + `scenarios/ch03-sketcher.json`; 覆盖线/矩形/圆/弧、约束、尺寸、ValidateSketch;再补第 0 章启动/OPFS 导读。 2. 边界补录:`generate-features.mjs` 的 `boundaries` 增加 Fem 原生对象、CAM 其余受限命令、Import_Gltf、Cloud、Material; 同步 `web/docs/current/web-freecad-manual-gaps.md`。 3. verified 回写:capture 成功后按 `chapter/workflow` 将截图与断言写回 `manual-features.json` 的 `screenshots[]` 与 `commands[].status`。 4. 每章完成:`npm run manual:features` → capture → `npm run build:manual` → `npm run check:manual` → 更新本文件。 ## 关键路径 - 应用:`http://127.0.0.1:5181/project.html?workbench=Part` - 教学服务:`http://127.0.0.1:5190/manual.html` - 矩阵输入:`web/public/api/workbench-command-matrix.json`、 `web/public/api/desktop-command-routes.json`、`web/src/module-registry.generated.ts` - 截图:`web/manual/assets///` - 证据:`web/manual/data/capture/-.json`