The monitor list for floating panels now carries each monitor's work
area: rcWork from GetMonitorInfo on Windows, and visibleFrame on macOS,
turned into the top-left origin and physical pixels of the monitor's
rect. The work area is converted to points with the same scale and zoom
as the rect, and craft-ui uses it to decide whether a reopened panel's
title bar can be grabbed and where to move it. A work area with no width
or height is left out.
Restoring the main window now keeps it inside its monitor's work area
too, so a window saved at the top edge of a monitor with a taskbar along
its top opens below the taskbar, and a window taller or wider than the
work area is made to fit it, with room for a system title bar and
border when the window has them.
On Windows the panel list stays empty when the monitors have different
scale factors, as before, and a build without the wgpu feature reads no
work areas. Linux and the BSDs keep the whole monitor rect.
docs/mcp.md now says that an edit made by another command during a
drag ends the path whether it changes the path or other art, and that
with the realTimeDrawing preference off such a press adds no piece
while the edit stays. A flip or size change made during a drag is part
of that piece's undo step; one made between presses is its own step.
The paragraph is wrapped at the file's width again.
The progress line lists a dragged piece ending at the release point and
C, [ and ] changing the arc being dragged with VectorCraft's own rules.
The bracket test checks that the arc being dragged is drawn again, the
drag test checks that the next click starts a new path, and new tests
cover an edit to other art during a click and an edit during a drag
with realTimeDrawing off. The tool no longer keeps the path as it was
before a press once the press ends.
A selected Live Paint group left with only its hidden source paths is still a selection, so appearance.addFill and appearance.addStroke with target contents return without a change instead of reporting an empty selection. An empty selection is still refused.
Show the native point marker at the existing cut target, respecting consumer endpoint eligibility/canonicalization and current snapping/selection. Keep cut commands unchanged.
Closes#8655.
A dragged piece now ends where the press is let go, also when the
pointer moved after the last drag event, and a press let go a drag's
distance away with no drag in between places the piece there.
An edit made to the path by another command during a press (a point
moved, its stroke changed) ends the path: the next drag no longer
previews the stored path over the edit, and the press keeps the
document as it is. An edit made to other art during a drag stays too,
and the piece stays as last shown.
C and the bracket keys change the sharp-corner arc being dragged, inside
the press's one undo step. Typed brackets now reach the Quick Pen while
a press is under way.
With Align New Objects to Pixel Grid on, the tool goes on drawing the
same path: it compares the path with what the document held after its
own last edit, and each piece is drawn on the points the path already
has, so earlier points keep their place on the grid.
Follows #8690.