Set Fold Angle… (Object › Plug-ins › Packaging Tools) gives the selected
fold lines their own fold angle, from -180° to 180°, in place of their
role's 90° away from or toward the print, to the millionth of a degree;
reset: true takes it away. The angle is kept in the line's data under
vc-fold-angle, which native files and SVG with Preserve Editing keep and
plain SVG export leaves out of the path's attributes. A line keeps its
angle when it is given another role. The Fold Lines panel shows a Fold
Angle field for the selected lines it can change, empty when they
differ, and a Reset button.
- addon.packaging.setFoldAngle is one undo step, none when nothing
changes, and is dimmed while the selection holds no Crease, Partial Cut
or Perforation line that is neither locked nor hidden. An angle stored
as other text for the same number counts as unchanged.
- addon.packaging.roles also returns foldLines, foldAngle, ownAngles and
storedAngles for the lines Set Fold Angle can change, which are none
while nothing is selected.
- A hinge folds at the angle of the line with the most length in it,
counting a line the planar map splits into pieces whole and a line's
subpaths on top of each other once; among lines of equal length the
lowest id wins, in any line order. Before, it took the role of its
longest piece, so a hinge whose lines have different roles can now
fold the other way when a split line is the longer one.
- Fold Preview: a panel folded flat onto another (180°) is drawn behind
that panel's printed side, and at -180° in front of it; a flap folded
back over a folded panel lies between it and the panel before; a 0°
hinge keeps its panel level with its parent. Panels in one plane keep
their order when the panels they fold from are seen edge on, and a
panel that comes round onto another's plane lies on the side it came
from. Only panels in one plane stack by these rules; panels in
different planes go by depth, so folds a hair short of flat stay in
order wherever the blank lies in the document. The stack is worked out
from the blank's largest panel whichever panel the window folds about,
so a double-click on another panel moves the blank without changing
which panel shows. Panels that 90° folds bring into one plane, such as
a carton's closing flaps, now stack by these rules too.
- Set Fold Angle…'s dialog keeps the angle within -180° to 180° as it is
typed, as the panel's field does. Both show every decimal place the
angle has. ui.menuDialog opens the dialog for
addon.packaging.setFoldAngle, and gives the command's reason while
the selection holds no line it can change.
- Set Fold Angle skips a locked or hidden path of a compound path that is
named by id or selected without its compound. addon.packaging.setRole
(Make Cut Line and the other Make ... Line items) now skips it too;
before, it changed the whole compound.
- Folding: a hinge whose middle falls in a cutout turns its panel by the
side its parent lies on next to the hinge's own pieces, not by a point
anywhere inside the parent, which folded a panel the wrong way when
the parent also ran on past the hinge.
Docs: docs/mcp.md (Fold angles), ROADMAP.
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.