Swap Fill and Stroke on a whole Live Paint group compared the faces'
fills without gradient placement, so faces with freeform gradients
counted as one shared fill and the edges took a freeform gradient
without its points. A freeform gradient on any face or edge now counts
as a paint the parts do not share, and the group keeps its paint.
- docs/mcp.md says that a face or edge given with its whole group follows
the group's rule, and that Default Fill and Stroke replaces the parts'
appearance also when the Default Graphic Style is redefined.
- The progress-doc line states the behavior as VectorCraft's own rule and
lists all eight tests.
- Tests cover freeform faces in Swap, an edge given with its group, and
Default Fill and Stroke with a redefined Default Graphic Style.
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.
With a tool other than the Live Paint Bucket, a fill given to a whole
selected Live Paint group paints its faces only and a stroke paints its
edges only, instead of applying to the group as a whole. The hidden
source paths keep their paint.
- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
paint.lastGradient, paint.editGradient, paint.setGradientGeom, the
paint.freeform point and line edits, paint.invert and
paint.complement go to the faces for a fill and the edges for a
stroke, also for a group given in ids or inside a selected group.
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
change the edges.
- The Fill proxy shows the faces' fill, and the Stroke proxy, the Stroke
panel and the Control bar show the edges' stroke. When the first
selected object is a Live Paint group with no faces (or no edges),
they show the next selected object's paint.
- paint.swap gives the faces the stroke the edges share and gives the
edges the fill the faces share, with a gradient fitted to each face
or edge. A group whose faces' fills or edges' strokes differ, or that
has no face or no edge, is left as it is.
- paint.default leaves the faces with no fill and gives the edges a
0.5 pt black stroke; with only Live Paint groups selected, the
settings for new art take the same.
Docs: docs/mcp.md (Live Paint), docs/target-app-parity.md (Live Paint
evidence), params text of the changed commands.
stroke.weightUp and stroke.weightDown now go through bucket_color_params and
item_target, as stroke.set and stroke.setAdvanced do, instead of skipping
item_target while the Live Paint Bucket is active. Each command still
refuses `target` and `aligned` with any tool, since neither is one of its
parameters.
- live_paint_bucket_refuses_a_bad_target_or_aligned (renamed from
live_paint_bucket_refuses_a_bad_target) runs with the Selection tool and
with the bucket, and adds stroke.set, stroke.weightUp, stroke.weightDown,
paint.swap and paint.default.
- live_paint_bucket_paint_and_stroke_commands_leave_the_selection_unpainted
adds stroke.set with `ids: null` and stroke.weightUp with `id: null`.
- The params text of the bucket-routed commands says a null ids or id
counts as none.
- docs/mcp.md names gradient.presets.apply next to paint.editGradient for a
picked symbol part, lists when a stop selected on the bucket's gradient is
deselected, and rewraps the two long lines.
- While the Live Paint Bucket is active, a paint or stroke command with
a null ids or id goes to the bucket's colors, as one without them does.
Before, it painted the selection, since other commands read a null ids
or id as no target.
- A bad target or aligned value is refused while the bucket is active,
as it is with any other tool, instead of changing the bucket's colors.
- stroke.weightUp and stroke.weightDown no longer read the selection's
active Appearance row while the bucket takes the weight, as stroke.set
and stroke.setAdvanced already do. The row was not used in that case.
- The params text of gradient.selectStop says that, while the bucket is
active, it selects a stop of the default paint's gradient, also with an
object of a symbol instance picked. docs/mcp.md says the same, and that
paint.editGradient without ids, id or item then changes the bucket's
gradient.
- docs/mcp.md again says that another tool chosen after the bucket keeps
its colors until a command or a new selection changes them.
While the Live Paint Bucket is the active tool:
- each preview in one interaction starts from the colors the
interaction began with, so previewing paint.swap twice and committing
swaps once;
- a gradient stop selected on the selection's gradient is not selected,
and one selected on the bucket's gradient is not selected after
another tool is chosen;
- gradient.selectStop selects a stop of the bucket's gradient even
with an object of a symbol instance picked;
- gradient.presets.apply picks the fill or stroke by the active proxy,
not by the selection's active Appearance row;
- stroke.set and stroke.setAdvanced no longer read the selection's
Appearance row;
- the Stroke panel's Align Stroke buttons are on, as with nothing
selected, matching stroke.set, which takes every alignment.
The params text of paint.sampleColor, gradient.presets.apply,
stroke.set, stroke.weightUp and stroke.setAdvanced, the set_paint note
and the Live Paint paragraph of docs/mcp.md now describe this, and say
that the bucket takes only the color and weight of the stroke for new
art.
On a cubic that counts as a circular arc but strays slightly from the arc's circle, the circle on the other side was placed against the arc's circle, a few points off the path. It now sits one radius out from the point on the path. The Undo test also checks that the click after Undo draws the first circle's own circle.
An isolated ruler guide left the Layers panel with no rows, since the
panel lists no object row for a ruler guide. object.isolate now returns
"ruler guides can't be isolated" and isolation mode stays as it was.
The Sizer's and the Sprayer's Average compare each instance's size on the page, so a set that
holds instances of different symbols meets at their mean drawn size. A symbol without a recorded
size is measured by its art, once per command. With Size: Average and no instance under the brush,
a sprayed instance has its symbol's own size whatever `scale` is, and new instances are spaced by
the size they are placed at. With Use Pressure Pen, a drag sample at the same position is kept when
the pressure changes by 0.05 or more.
OK closes the dialog and renames nothing when another document has
become the active one, or when the color group at the group's place in
the list no longer has the name and swatches the dialog opened with.
swatch.renameGroup makes a drag still in progress an undo step of its
own first, so canceling or undoing the drag leaves the rename.
ui.colorGroupOptions without group opens on the color group selected
alone in the Swatches panel, as long as the panel's selection still
belongs to the active document and art.
The panel's selection follows renames in a command.batch only up to the
first step that may switch documents or replace a group. Ungroup Color
Group and Delete Swatch take the names they removed out of the
selection.
The es catalog had the missing `group` and no colour group `{group}`
rows twice after the last merge of main; the duplicates are removed.
path.setHandle with link: true treated a request as a change whenever the
whole anchor differed after the other handle was turned again. Turning it
again from its stored end measures its length anew, which can round its
end differently in the last bit, so the same request sent twice recorded
a second Reshape step and moved the other handle by one unit in the last
place.
The request now also counts as unchanged when the anchor is smooth, the
requested handle is already at (x, y), and the other handle sits exactly
where turning it puts it at some positive length, with the same
arithmetic. Any other handle is turned and records a step, including one
slightly off line, a short one at right angles, one on the same side, and
a retracted one that is pulled out.
Enter between the press and the release of a click now ends that press,
so the release sets no reference point and starts no Reflect axis behind
the dialog. A press the engine drops ends whether or not it became a
drag, and drops a waiting axis, so the release sent after it starts no
axis. A press whose document or selection changes before it becomes a
drag is dropped, so the reference point or axis set for one selection
is never applied to another.
The engine test checks that the Alt copy is reflected across y = 300.
The docs state that the first click is a plain click, that the 3 px
check compares the snapped points, and what a double-click does while
an axis waits.
With a Live Paint group selected and the Live Paint Bucket active,
choosing a fill color (a swatch, the Color Picker, the Fill box) painted
the whole selection, so every face and edge of the group took one color
before the bucket painted anything.
While the bucket is the active tool and no ids, id or item are given:
- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
paint.lastGradient, paint.editGradient, paint.invert,
paint.complement, paint.swap and paint.default change only the
defaults, the colors the bucket paints with, and record no undo step;
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
(without a brush) change only the stroke for new art;
- the Fill and Stroke proxies, the Stroke panel and its Profile list
follow those defaults, as they do with nothing selected;
- New Art Has Basic Appearance off no longer copies the selection's
appearance into them after a command;
- canceling a Color Picker preview puts the bucket's color back.
- `tool.setOption {key: "missingFontEdit", value: {token, ok}}` now passes
the Type tool's option check, so a client can answer the question that
a click on type in a missing font asks. Before, it failed as an unknown
option.
- A press on such type that reaches the Type tool while another dialog is
open (sent with `pointer_gesture`) leaves that dialog open and starts no
edit, instead of replacing it.
- docs/mcp.md says which double-clicks ask, and that OK starts no edit
when the document changed after the question opened.
- The doc comment of `GENERIC_FAMILIES` notes that `emoji` is kept
although CSS Fonts Module Level 4 dropped it.
- Moving a Live Paint group's sources group out of the group is refused,
so the group no longer loses its paths and keeps stale faces.
- A shown path moved into or out of a hidden group among the same
group's paths makes the faces and edges again.
- A Live Paint group with no paths dropped into another with none joins
it and is left with no faces or edges, instead of failing.
tool.setOption now accepts usePressure, method, showBrush, the Symbol
Sprayer options, proportional and affectsDensity for the Symbolism
tools, so the Symbolism Tools Options dialog can save them. The dialog
checks every option, the number ranges included, before
symbol.setDensity re-spaces the selected symbol sets.
- Size: Average gives a sprayed instance the mean size under the brush,
or the symbol's own size with none there, without the size jitter.
- A stroke that moves an instance away and back again does not count
it, and adds no undo step.
- symbol.adjust reads an instance's own values for Average only.
The library list test finds each library's count by its id, so a library added to the list does not shift the checks. The Stipple test draws each brush with a red stroke and checks that every dot takes the stroke color and that only Soft Stipple's dots are translucent.
With the perspective grid shown and a plane active, a Rectangle,
Ellipse, Polygon, Star or Line Segment drag is journaled as
perspective.draw naming the shape command. note_shape_drawn now counts
that entry, alone or as a batch step, so the Transform panel opens for
a shape drawn on the plane too. perspective.draw naming another shape
(a flare, for example) still does not count.
The Transform tests now move a selected rectangle and check that the
move succeeded before checking that the panel stays closed, and check
that the frames after a shape draw the panel's controls, with a control
run where the option is off.