Files
FreeCADWasmDev/docs/current/draft-snap-batch-541174e987ceb3609544fd9d.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

1.4 KiB

Draft snap batch 541174e987ceb3609544fd9d

Selected commands: Draft_ShowSnapBar, Draft_Snap_Angle, Draft_Snap_Center, Draft_Snap_Dimensions.

Reused the existing Draft adapter, Worker/family facade, native snapModes preferences, and mounted toolbar checkboxes. The desktop command base at gui_snaps.py:53 passes an explicit boolean status; omitted status remains false. ShowSnapBar inherits the global Lock activation guard and shows the toolbar. These semantics are retained.

Changes: the shell now reads native preferences on entering Draft and when selecting Show Snap Bar, restoring the mounted toolbar from native visibility state without executing a mutation. Native snap dispatch rejects a supplied action other than read before changing preferences, matching adapter validation.

Remaining boundaries: Angle and Center geometric snap candidate generation, view picking, and Dimensions temporary X/Y trackers are not implemented by this preference handler. Their full interactive workflows are not accepted by these edits. Native preferences and toolbar checkbox state alone are insufficient evidence for those workflows. Worker recreation persistence also requires verification; this batch adds no browser-side substitute for native preferences.

Build, sync, type checking, and business acceptance are deferred to the outer pipeline as requested. No acceptance status or receipt was promoted to passed.