mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 13:33:19 +00:00
The zero point dragged out of the box where the rulers meet snaps as a Pen or shape tool's point does: with Smart Guides onto the anchors, centres, edges and paths of the art and the artboards or into line with them, with Snap to Point onto the anchors and along the ruler guides, else onto whole pixels or the grid. The guides showing what it snapped to show during the drag and go when it is released or cancelled (Escape, focus loss, another document). The origin is still set once, on release (document.setRulerOrigin, one undo step). The engine snaps it (Session::ruler_origin_drag, with the tools crate's rulerguide::OriginDrag over PointSnap::drawn), as it does a guide dragged out of a ruler.