mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 03:42:47 +00:00
Graphs: graphic styles leave a design's art in a series unlinked
graphicStyle.new linked the object it was made from, the art of a column or marker design in a graph series included, and graphicStyle.redefine gave the new look to every object still linked to the style. Redefining the style from another object then restyled that art, which the graph draws again from the design. - graphicStyle.new makes a style from the art without linking it. - graphicStyle.redefine leaves the art's look as it was and unlinks it, as an edited object is, whether the art is a linked object (as in a document saved before this change) or the source. Docs: docs/mcp.md, the params text of graphicStyle.new and graphicStyle.redefine.
This commit is contained in:
+3
-1
@@ -3649,7 +3649,9 @@ A graphic style holds an appearance (fills, strokes, effects) plus opacity, blen
|
||||
object's, type its characters'). `graphicStyle.apply {name, ids?}` gives the objects the style and links them;
|
||||
`add: true` adds the style on top of the existing appearance instead. Linked objects stay linked while they keep the
|
||||
style's look: editing their appearance or transparency breaks the link, and `graphicStyle.redefine {name?, id?}`
|
||||
updates only the objects still linked. `graphicStyle.list` returns each style with the ids linked to it and the
|
||||
updates only the objects still linked. The art of a column or marker design in a graph series is never linked:
|
||||
`graphicStyle.new` can make a style from it, and `graphicStyle.redefine` leaves its look as it was and unlinks it,
|
||||
whether it is the source or a linked object. `graphicStyle.list` returns each style with the ids linked to it and the
|
||||
style of the first selected object; `select.same.graphicStyle` selects an object's fellow users.
|
||||
Styles keep placed gradients relative to the bounds of the object they were made from, and each object a
|
||||
style is applied to gets them at the same place relative to its own bounds.
|
||||
|
||||
Reference in New Issue
Block a user