diff --git a/web/docs/current/web-freecad-manual-gaps.md b/web/docs/current/web-freecad-manual-gaps.md index 748f6914..4c0a1ea8 100644 --- a/web/docs/current/web-freecad-manual-gaps.md +++ b/web/docs/current/web-freecad-manual-gaps.md @@ -1,8 +1,8 @@ # Web FreeCAD 教案缺口台账 -生成时间:2026-11-13T05:08:46.050Z +生成时间:2026-11-15T11:17:16.149Z -已验证命令:12;待修:0;边界:7 +已验证命令:12;待修:0;边界:11 | 模块 | 边界 | 原因 | 桌面源码入口 | |---|---|---|---| @@ -12,10 +12,16 @@ | Import | glTF 原生导入/导出 | OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。 | freecad-source/src/Mod/Import/App/ReaderGltf.cpp
freecad-source/src/Mod/Import/App/WriterGltf.cpp | | Cloud | Cloud 远程存储 | Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。 | web/src/cloud.worker.ts | | Material | Material 原生库兼容 | Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。 | freecad-source/src/Mod/Material/App/MaterialManager.cpp | -| OpenSCAD | OpenSCAD 二次编译崩溃 | 同一实例连续编译可能崩溃;逐次保存并重启实例。 | freecad-source/src/Mod/OpenSCAD/App/OpenSCADUtils.cpp | +| BIM | BIM 构件创建命令无面板 | BIM 命令停靠区只有 BIM_Nudge_Up / BIM_Unclone / BIM_Ungroup;Arch_Site / Arch_Wall / BIM_Slab 等创建命令一律无任务面板。实测可用的只有 BIM_Views、BIM_Library、BIM_Setup、BIM_Material 四个非创建类命令。 | freecad-source/src/Mod/BIM/ArchWall.py
freecad-source/src/Mod/BIM/ArchSite.py | +| Mesh | Mesh_FromPartShape 无面板 | 实体转网格的标准入口 Mesh_FromPartShape 在 Web 端没有任务面板。可用替代是 Mesh_BuildRegularSolid,实测返回 nativeOperationCompleted=true、typeId=Mesh::Cube。 | freecad-source/src/Mod/Mesh/App/AppMesh.cpp | +| Draft | Draft 图元需要三维视口取点 | Draft_Rectangle 面板填满数值后仍提示 Pick first corner,图元要求先在三维视口取点;工作台壳层页面没有 canvas,取不了点。Draft_Line / Draft_Wire / Draft_Array 连面板都没有。 | freecad-source/src/Mod/Draft/draftobjects/rectangle.py | +| Robot | Robot 面板未接可驱动机器人 | Robot_CreateRobot 面板六个分组齐全,但 Joint angles 分组固定显示 Home: Not set — use Set Home;点 Set Home 与点动按钮后文本与数值均不变。 | freecad-source/src/Mod/Robot/App/RobotObject.cpp | +| Plot | Plot 面板不渲染画布 | Plot_Axes 面板五个分组齐全,但点 New figure 与 Add axes 后页面既不新增 svg 也不新增 canvas,在 Download SVG 之前没有可视化反馈。 | freecad-source/src/Mod/Plot/plot/Plot.py | ## 布局/流程说明 -- 草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。 +- 草图编辑器已从右侧属性栏移到主舞台(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,既不能新建也不能打开文档。 +- 字段面板能填写并提交但缺父对象文档的失败属前置未满足,不记为产品回归。 diff --git a/web/manual/fixtures/ch03-sketch-rectangle.FCStd b/web/manual/fixtures/ch03-sketch-rectangle.FCStd index d825b1e6..6a77eae6 100644 Binary files a/web/manual/fixtures/ch03-sketch-rectangle.FCStd and b/web/manual/fixtures/ch03-sketch-rectangle.FCStd differ diff --git a/web/tools/manual/generate-features.mjs b/web/tools/manual/generate-features.mjs index a1eaf5c4..f6c3b1f5 100644 --- a/web/tools/manual/generate-features.mjs +++ b/web/tools/manual/generate-features.mjs @@ -25,6 +25,16 @@ const ledgerPath = path.join(webRoot, "docs/current/freecad-official-case-ledger const matrix = readJson(matrixPath); const routes = readJson(routesPath); const features = readJson(featuresPath); + +// The module registry is the single owner of "which modules exist on the web". +// The desktop command matrix is scraped from upstream source and keeps modules +// that have been removed from the port (OpenSCAD), so counting rows there would +// re-introduce a module the manual must not teach. Filter once, here. +const registrySource = fs.readFileSync(registryPath, "utf8"); +const webModules = new Set([...registrySource.matchAll(/\{ module: "([^"]+)"/g)].map(match => match[1])); +if (!webModules.size) throw new Error(`no modules parsed from ${registryPath}`); +const droppedRecords = (matrix.records ?? []).filter(record => !webModules.has(record.module)); +matrix.records = (matrix.records ?? []).filter(record => webModules.has(record.module)); const cases = readJson(casesPath); const ledger = readJson(ledgerPath); @@ -42,7 +52,7 @@ const chapters = [ { id: "ch10", order: 10, level: "specialist", title: "CAM 加工", moduleIds: ["CAM"] }, { id: "ch11", order: 11, level: "specialist", title: "TechDraw 工程图", moduleIds: ["TechDraw"] }, { id: "ch12", order: 12, level: "specialist", title: "FEM 有限元", moduleIds: ["Fem"] }, - { id: "ch13", order: 13, level: "specialist", title: "Draft、Plot、OpenSCAD 等", moduleIds: ["Draft", "Plot", "OpenSCAD", "Robot", "Cloud", "JtReader", "Sandbox", "Test", "Tux", "TemplatePyMod", "Show"] }, + { id: "ch13", order: 13, level: "specialist", title: "Draft、Plot、Robot 等专项工具", moduleIds: ["Draft", "Plot", "Robot", "Cloud", "JtReader", "Sandbox", "Test", "Tux", "TemplatePyMod", "Show"] }, { id: "ch14", order: 14, level: "case", title: "综合案例:27 件 GLB 产线", moduleIds: [] }, { id: "ch15", order: 15, level: "appendix", title: "附录:命令索引与缺口", moduleIds: [] }, ]; @@ -155,6 +165,8 @@ const stats = { overview: commands.filter(item => item.status === "overview").length, boundary: commands.filter(item => item.status === "boundary").length, verifiedCandidates: commands.filter(item => item.ledgerCaseId).length, + droppedDesktopRecords: droppedRecords.length, + droppedModules: [...new Set(droppedRecords.map(record => record.module))], screenshots: 0, workflows: 0, };