Files
FreeCADWasmDev/docs/current/web-commanddoc-8a27b616-boundaries.md
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

2.6 KiB

Web CommandDoc batch 8a27b6163c2362c1e44713f6

Implemented source changes: Std_New now enters the native standard-command handler and calls FreeCAD App.newDocument(), retaining native name allocation and document initialization. The Web adapter consumes the returned native identity, activates that document through the existing selection callback, and refreshes the mounted scene through the existing document-view event. Optional newDocumentName is validated; requests for another runtime owner are rejected explicitly. Scene refresh failures remain visible on the result without discarding the created document.

No builds, sync, tests, browser checks, benchmarks, or acceptance were run. The outer pipeline owns build and route receipts; these edits are not evidence of business acceptance.

Remaining boundaries:

  • Std_New: desktop default view orientation and ShowAxisCross preference need their view-host integration; DocumentProbe creation is not connected by this adapter. Native registration and transport handling still require the outer pipeline's receipts.
  • Std_Delete: selection deletion must retain edit-provider rules, dependency decisions, and document transactions.
  • Std_DependencyGraph: the existing native Graphviz export must be connected to a mounted graph view.
  • Std_DuplicateSelection: native object serialization/import, dependency selection, and external-link restrictions remain to be connected.
  • Std_Edit: the selected object's actual edit provider and task lifecycle remain to be connected.
  • Std_Export and Std_Import: registered native format handlers and browser file transfer remain to be connected.
  • Std_Expressions: native expression actions and their mounted controls remain to be connected.
  • Std_MergeProjects: actual FCStd import into the current document, self-merge prevention, and transaction handling remain to be connected.
  • Std_Paste: clipboard content and native object import remain to be connected.
  • Std_Placement: native placement properties, selected-object binding, and the placement task lifecycle remain to be connected.
  • Std_Print, Std_PrintPdf, and Std_PrintPreview: active-view rendering and the corresponding print/export hosts remain to be connected.
  • Std_ProjectInfo and Std_ProjectUtil: actual document metadata editing and project archive utilities remain to be connected.

The four supplemental source windows were used on WebViewCommands.h:1, web-desktop-adapter.ts:1 and :101, and NativeDocumentView.h:1. Desktop behavior was read from the packet's CommandDoc.cpp excerpts. No missing command was registered with a marker or fixed result.