Follows #8685. The Eyedropper (appearance.copyFrom) onto a whole
selected Live Paint group, or reversed onto a clicked one, wrote the
picked appearance to every face, every edge and the hidden source
paths. It now gives the fill attributes to the faces and the stroke
attributes to the edges, and the source paths keep their paint. A
whole-appearance pick gives each face every picked fill row and each
edge every picked stroke row, and their other rows keep their order.
With append, the faces and edges take the picked rows but not the
picked object effects. A whole group picked up as the source gives
its first face's fills with its first edge's strokes above them, and
the group's own opacity, blend mode and effects.
Appearance edits with target "contents" also reached the source paths
and the parts of the other kind. The source paths are now left out of
a Live Paint group's contents. appearance.addFill adds a fill to the
faces only, and appearance.addStroke adds a stroke to the edges only.
A fill or stroke edit of the contents with an item (stroke.set,
paint.invert, paint.complement, gradient edits and
object.setOverprint) goes to the parts of its kind. Overprint Fill
and Overprint Stroke on a whole group also go to the faces and the
edges.
The Fill proxy and the Stroke panel showed a face's or edge's own
paint when it was selected before its group. A part selected with its
group, or with a group that holds its Live Paint group, now counts
with the group, whatever the selection order.
Docs: docs/mcp.md, params text, docs/target-app-parity.md.
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.
object.align takes to: "auto", which aligns to the key object, key
anchor or key guide when the selection has one, else to the artboard
when exactly one object is selected and no anchor points are, else to
the selection.
New Action and Action Options have Choose Align To at playback
(automaticAlignTo on ui.action.new and ui.action.options), off by
default. With it on, playback sends to: "auto" for each object.align
step, without any artboard index the step stores, so the step uses the
active artboard; the stored steps keep their recorded params. Save
Actions writes the option, and a set that uses it is saved as file
version 7.
The dialog's strings have rows in every catalog, and docs/mcp.md
describes to: "auto", automaticAlignTo and file version 7.
Fixes#6972. Supersedes #7635.
Co-authored-by: yoriswind <yoriswind@yahoo.com>