diff --git a/web/docs/current/desktop-parity-continuation.md b/web/docs/current/desktop-parity-continuation.md index 9287081c..2df6e86f 100644 --- a/web/docs/current/desktop-parity-continuation.md +++ b/web/docs/current/desktop-parity-continuation.md @@ -73,7 +73,13 @@ BoxSelection 等不再打开 TaskFrame,而是走 `DesktopCommandDispatcher` 的 scene/dock 命令(20 秒超时)。快捷键实测 `Std_ViewFitAll` 已进入内核, 返回 “The current document has no mounted 3D view”(空文档前置未满足,符合预期)。 -- 说明:Python 控制台尚未接入;原生 Shortcut 参数同步待 P3。 +- **外部工作台已嵌入主舞台**:`shell/workbench-frame.tsx`。 + - Part/Sketcher/PartDesign/Spreadsheet/Surface/Assembly/Draft 继续用原生工作区; + - BIM/CAM/Fem/Mesh/TechDraw 等切换到对应 `/workbench.html?module=` 工作台, + 原 Part 视口隐藏;BIM 实测 iframe 挂载、视口 display:none、0 pageError; + 截图 `BIM-workbench-frame.png`。 +- 说明:外部工作台仍是 iframe,未共享项目文档;Python 控制台尚未接入; + 原生 Shortcut 参数同步待 P3。 - 非 Part 菜单命令改为打开 **React TaskFrame 模态**(`web/src/shell/task-frame.tsx`), iframe 复用 `/workbench.html?module=&command=` 的现有任务面板; BIM_TogglePanels 实测弹出 "Bottom panels" 任务并可点按钮,0 pageError; diff --git a/web/docs/current/desktop-parity-evidence/BIM-workbench-frame.png b/web/docs/current/desktop-parity-evidence/BIM-workbench-frame.png new file mode 100644 index 00000000..ae2b570e Binary files /dev/null and b/web/docs/current/desktop-parity-evidence/BIM-workbench-frame.png differ diff --git a/web/src/project-shell.tsx b/web/src/project-shell.tsx index e9739ed3..069a1ed0 100644 --- a/web/src/project-shell.tsx +++ b/web/src/project-shell.tsx @@ -90,6 +90,7 @@ import { PreferencesDialog, loadWebPreferences } from "./shell/preferences-dialo import { formatLength, formatVolume, unitInfo } from "./shell/units.js"; import { ShortcutEditor, ShortcutManager } from "./shell/shortcut-manager.js"; import { BottomDock } from "./shell/bottom-dock.js"; +import { WorkbenchFrame, isExternalWorkbench } from "./shell/workbench-frame.js"; import { DesktopCommandDispatcher } from "./desktop-command-dispatcher.js"; import type { WorkbenchCommandRecord } from "./workbench-command-facade.js"; import { DocumentTree, type DocumentTreeNode } from "./document-tree.js"; @@ -2198,7 +2199,8 @@ function App() { {openScadSnapshots[active] && selectPrimaryObject(`native:${name}`)} />} -
+
+ {isExternalWorkbench(workbench) && }
{([["translate", "移动"], ["rotate", "旋转"], ["off", "关闭"]] as const).map(([mode, label]) => (