mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 16:42:52 +00:00
Merge pull request #7368 from dotCooCoo/fix/graph-design-art-paint
Graphs: paint, stroke and transparency commands leave a design's art in a series out
This commit is contained in:
+11
-7
@@ -631,7 +631,9 @@ For `draw_shape` and `draw_path`, omitted paint fields inherit the current [new-
|
||||
For a filled shape or path without an outline, pass an explicit `fill` and `stroke: "none"`.
|
||||
Lines start with no fill and a visible stroke.
|
||||
The Fill/Stroke proxy commands run through `run_command`: `paint.invert` and `paint.complement` recolor the active
|
||||
proxy, including a grayscale image's colorized fill, while keeping each color's model. `paint.lastColor` /
|
||||
proxy, including a grayscale image's colorized fill, while keeping each color's model. Given a group without an
|
||||
Appearance item, they recolor the active proxy's fills or strokes of the objects inside it and of the group itself;
|
||||
`target: "contents"` leaves the group's own fills or strokes as they are. `paint.lastColor` /
|
||||
`paint.lastGradient` re-apply the last solid color or gradient, and `paint.recent` returns the recent colors that every
|
||||
paint command (and the eyedropper) feeds: up to 30, newest first and each once, kept across documents for the session.
|
||||
`paint.proxies` returns what the proxies show: the fill and stroke, which one is active, and whether the selected
|
||||
@@ -852,15 +854,17 @@ inside a series group other than a path directly in it, a legend swatch's includ
|
||||
reached through `target: "contents"`. These commands leave that art out, edit the other objects they are given, and
|
||||
are an error when all their objects are design art: the `appearance.*` commands listed above, `effect.apply`,
|
||||
`appearance.addEffect` and the other `effect.*` commands that edit, move or remove an effect,
|
||||
`effect.expandAppearance` (which also leaves the art inside a selected graph or series group as it was, unless an
|
||||
effect of that group turns the whole group into other art, and is disabled when only design art is selected or
|
||||
given), `threeD.mapGraphic`,
|
||||
`effect.expandAppearance` (which also leaves the art inside a selected graph or series group as it was, except that
|
||||
an effect of that group which reshapes or replaces the whole group bakes into that art too, and is disabled when only
|
||||
design art is selected or given), `threeD.mapGraphic`,
|
||||
`graphicStyle.apply`, `graphicStyle.addFromLibrary` with `apply`, `graphicStyle.breakLink`, `transparency.set`, the
|
||||
`paint.freeform.*` commands that edit points and lines, and `appearance.copyFrom` as the target.
|
||||
`appearance.transfer` with design art as its `target`, or as its `source` without `copy`, is an error.
|
||||
`paint.setFill`, `paint.setStroke`, `paint.swap`, `paint.default`, `paint.invert` and `paint.complement` with an
|
||||
`item`, `stroke.set`, `stroke.weightUp`, `stroke.weightDown`, `stroke.setAdvanced`, `paint.editGradient`,
|
||||
`paint.setGradientGeom` and `object.setOverprint` leave the art out without an error. When the first selected object is design art, the commands
|
||||
`paint.setFill`, `paint.setStroke`, `paint.swap`, `paint.default`, `paint.invert`, `paint.complement`,
|
||||
`stroke.set`, `stroke.weightUp`, `stroke.weightDown`, `stroke.setAdvanced`, `paint.editGradient`,
|
||||
`paint.setGradientGeom` and `object.setOverprint` leave the art out without an error. When all their objects are design art,
|
||||
`paint.editGradient`, `paint.swap`, `paint.default`, `paint.invert`, `paint.complement` and `stroke.set` also leave
|
||||
the paint and stroke weight for new art and the remembered colors as they are. When the first selected object is design art, the commands
|
||||
do not use the Appearance panel's active row. When the first object given is design art, rows and effects given with
|
||||
`aligned: true` are rows of its stack in `appearance.setItem`, `appearance.removeItem`, `appearance.duplicateItem`,
|
||||
`transparency.set` with an `item`, `effect.apply`, `appearance.addEffect` and the other `effect.*` commands that edit,
|
||||
|
||||
Reference in New Issue
Block a user