The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:
- The row is a Row with a Swatch named Background (a color well whose value is
the background's hex value) and Text for the ratio and the AA and AAA
results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
menu's items (ui.colorWheel.contrast, contrastFor.<id>,
contrastBackground.below and contrastBackground.current), after Show
Opacity. Current Color is gray, and its row answers an error, while the
active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
state. The answer's key also holds whether the Live Paint Bucket paints,
which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
runs an interaction whose previews set the fill, as the Show Document Colors
drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
opacity and the contrast keys.
After a selection square is clicked, Shift-clicking another selects the
art of every row listed from the last square clicked to this one, down or
up and across sublayers and groups. Shift+Ctrl/Cmd-click adds that art to
the selection. Hidden and locked rows and art outside the isolated group
are left out, and a range does not move where the next Shift-click
starts. Before any square is clicked, Shift-click still adds one row's
art or takes it out. Ctrl/Cmd-click on a square now does the same; it
used to select the row's art alone, as a plain click does.
The panel menu's Select Art of Highlighted Rows selects the art of the
highlighted rows by the same rules.
- layer.selectAll takes {range: [id...], add?}, gathered with
Selection::target_range as the target circles' ranges are.
- layer.selectHighlighted {add?} is new. Neither is an undo step, and
the highlighted rows stay.
- Docs: docs/mcp.md, docs/target-app-parity.md.
Object › Plug-ins › Path Precision Tools › Add Inscribed Circle
(`addon.pathtools.inscribedCircle`) draws the largest live circle inside
each selected closed path or compound path, centered on its pole of
inaccessibility. Part of #6966.
- The outline is resolved under its fill rule into outer contours and
holes, so overlapping subpaths count as the area they fill and holes
bound the circle down to 1e-6 pt wide, the path operations'
resolution. Square cells are searched best
first, and the radius is measured from the center to the curves:
within 0.02 pt of the largest, or a thousandth of the narrower side
for a shape less than 10 pt across.
- The circle is drawn up to 0.03% smaller, by as much as its four curves
reach past a true circle, so it stays inside where it touches.
- Open paths, other objects, shapes that fill no area, and outlines past
262,144 flattened pieces or the search's work limit are errors that
leave the document unchanged. The first cells are sized to the work
limit.
- The circles get the current paint, go on top of the current layer or
the isolated group, and are one undo step.
- Docs: docs/mcp.md, docs/target-app-parity.md, docs/ui-parity.md,
ROADMAP.
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 Quick Pen tool shows a handle beyond the start and the end of the
path being drawn, or, while none is, of the selected path, where that
end is a straight line or a circular arc. Dragging the handle changes
the length of the line or arc there, as the Quick Pen help page
describes:
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.html
- A line keeps its other point and its direction. An arc keeps its
other point, its circle and the way it turns; its sweep follows the
pointer around the circle, up to 359 degrees. A drag stops where the
path would reach past the canvas.
- Each drag is one undo step, and Escape during the drag takes it back.
The path being drawn goes on from the new end. The pieces the drag
does not change stay pieces, so C and [ ] still change the last one,
and a dragged last arc keeps at least 1 degree.
- A click on a handle that does not drag adds a point, closes the path
or starts one, as a click anywhere else does.
- path.quickPenLength {id, subpath?, end?, length} sets the same length
for agents and scripts (params text and docs/mcp.md).
The handle's place 20 screen points beyond the end, the 359 degree
limit, the 1 degree minimum, Escape during a drag, the handles on a
selected path and the dragged end not snapping to Smart Guides are
VectorCraft's own rules.
Part of #2660 (reported by earlvanze).
A new tool in the Pen tool's group, chosen with Alt+P (Option+P on
macOS), draws paths of straight lines and circular arcs, as the Quick
Pen help pages describe:
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.htmlhttps://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/quick-pen-tool-keyboard-shortcuts.html
- A click sets the start point; each click, or a press dragged to where
it is let go, adds a line, a continuous arc (it leaves the last point
in the path's direction) or a sharp-corner arc, as the tool's action
says. Each piece is one undo step.
- Alt (Option) pressed and let go on its own switches to the next
action. C flips the last sharp-corner arc to the other side of its
chord, and [ and ] make the arc size 15 degrees smaller or larger.
- A click on the first point closes the path, a click on an end of an
open path continues it, and Escape or Enter ends it. An edit made to
the path from outside the tool also ends it.
- path.quickPen {start | id, subpath?, keep?, pieces, closed?} draws
the same path for agents and scripts. The action and arc size are
kept with the preferences.
The 180 degree default arc size, its 15 degree steps, the side an arc
bulges to and Enter ending the path are VectorCraft's own rules.
Part of #2660 (reported by earlvanze). Not yet: the on-canvas toolbar,
dragging a path's ends to change its length, Ctrl+scroll for the arc
size, and editing and deleting with the tool.
Window › Retype shows a panel that lists the fonts whose glyphs the
selected outlined text exactly matches. Find Matching Fonts lists ten,
ranked by how many shapes each matches and then by how closely, and
Find more font matches adds the next five from the same search. Each
row shows a sample in the font, at the size the panel menu sets (Small,
Medium, Large) and with the text typed in the panel. A click on a row
sets the font on the selected live type. Reset Retype Panel clears the
list.
- type.retypeFonts {count?} returns the ranked fonts without changing
the document. It compares shapes with the glyphs of up to 96 loaded
fonts, those of the document's live type first, by type.retype's
matching. A shape counts once for each font it fits. Of two loaded
versions of a font, only the version its name gives is compared.
- RetypeIndex::all_matches returns every fit of a shape, so fonts past
the first 16 fits are ranked too.
- retype.find, retype.list, retype.preview and retype.reset drive the
panel.
- Rows for the panel's labels and the commands' errors in every
complete catalog. The Retype row also translates the Type › Retype
menu item.
Docs: docs/mcp.md (Retype panel), docs/target-app-parity.md,
docs/ui-parity.md, docs/gaps.md, docs/type-parity.md.
Part of #4934. Builds on #8441.