Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle runs
addon.pathtools.boundingRectangle, which draws a live rectangle on the
selection's geometric bounding box, strokes left out. Add Bounding
Circle runs addon.pathtools.boundingCircle, which draws the smallest
live circle that holds the outlines of the selected objects. Paths and
compound paths count by their curves, clip groups and clipping
sublayers by their clipping paths, other sublayers by their shown
objects, images by their corners, and type and other objects by the
corners of their bounding box. Each curve is split until its pieces lie
within 0.01 pt of their chords (1,024 pieces at most, after which a
piece counts by its control points), and the circle's radius is 0.01 pt
larger than the smallest circle around those points, so it holds the
curves.
`offset` adds space around the objects, and `each` draws one shape
around each selected object instead of one around them all. Objects
with no outline, such as an empty group, and shapes with no size (the
rectangle around a straight horizontal line, the circle around a single
point) are not drawn; with `each`, `skipped` counts them.
The shapes get the current paint and go on top of the current layer or
of the isolated group, as Tangent Circle's circles do; inside an
isolated compound path they go beside it. The new shapes are selected,
and one undo removes them all.
The smallest circle is computed in the geometry crate
(shapes::enclosing_circle) from the convex hull of the points with a
fixed shuffle, relative to one of the points so small art far from the
origin keeps its exact circle. While the command gathers points from a
large selection, it keeps only the corners of their convex hull, which
bounds the memory it takes.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md,
ROADMAP. Menu labels in all 28 catalogs and messages in the 24
catalogs with complete messages.
Object › Transform › Rotate Bounding Box… asks for an angle and turns the
bounding box of the selected objects by it, leaving their art where it
is. Reset Bounding Box squares it again.
- object.rotateBoundingBox {angle, absolute?}: by default the box turns
by angle from the angle the selected objects share (0 when theirs
differ); absolute: true turns it to angle. Objects with different
angles get one shared angle, and the objects inside a group or a
linked opacity mask turn with it and keep their relative angle. A path
of a compound path selected on its own turns only its own box, the
same objects the transforms move. An angle within 1e-6° of 0 is
stored as 0. One undo step, none when every box is already at the
angle. A missing or non-numeric angle is an error. changed counts
every box that turned, as object.resetBoundingBox counts the boxes it
squares.
- object.resetBoundingBox squares only the box of a compound path's
path selected on its own, instead of the whole compound path.
- Menu labels in every catalog.
Docs: docs/mcp.md, docs/target-app-parity.md.
Part of #5954.
A floating Tools panel dropped on the canvas's left edge, right of panels
docked on the left, stayed floating unless Window > Toolbars > Keep Tools
Beside the Canvas was on. The canvas's left edge is now always a target:
a drop there docks Tools beside the canvas and turns the setting on, and a
drop on the window's left edge docks it there and turns the setting off,
so the menu item's check mark shows where Tools is.
This changes one existing behavior: with the setting on and panels docked
on the left, a drop on the window's left edge used to dock Tools beside the
canvas and keep the setting on. It now docks Tools at the window's edge and
turns the setting off.
With no panels docked on the left, both edges put Tools in the same place
(left of any toolbars made with New Toolbar docked there), so a drop on
either docks it where the setting puts it and leaves the setting as it is.
So does a drop in the column both edges share when left-side panels are
collapsed to icons narrower than the window's edge strip. A release in the
frame right after Tools floats out of its place at the window's edge skips
the canvas-edge strip, which that frame laid out right of the docked panel.
Part of #7837