mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 23:05:05 +00:00
The new General preference Show Bounding Box While Moving and Drawing (`boundingBoxWhileMovingAndDrawing`, off by default) keeps the bounding box and its handles visible during two kinds of drag, with View › Show Bounding Box on. While a drag moves the selection (a Selection tool move, an Alt-drag copy, or a shape tool's move by the center point), the box is drawn where the drag has moved the selection. The box is measured once when the drag starts and offset by each step's move. While the Rectangle, Rounded Rectangle, Ellipse, Polygon and Star tools draw a shape, the box is drawn around the shape. A rotation and a widget drag still hide the box until the release. The Line Segment tool, the Pen, the Pencil and the Paintbrush draw no box. With the preference off, the box hides during a move (#737, for #712) and while a shape is drawn (#5839), as before. A Selection tool move with Real-time Drawing off still moves the box with the pointer, and a shape tool's move by the center point hides it in both modes. With Real-time Drawing off, the box of a shape being drawn is measured from the pending preview, in the color of the layer the shape goes on. A shape being drawn shows no box until a preview step has succeeded, so a failed preview does not show the box of the selection from before the drag. The preference's label has a row in every catalog. Session::deferred_move() is replaced by Session::move_drag_box(), which returns the moved box, and Session::deferred_transform_box() now also returns the layer color of the box. Docs: docs/mcp.md, docs/target-app-parity.md.