Graphs: a style added to a label or axis line keeps only the rows it shows

graphicStyle.apply with add stored both the fill and stroke rows a graph
label or line showed for its kind. A fill-only style added to one line
copied that line's old stroke over the stroke another line had set, and
the next redraw lost it. The kind now keeps only the kinds of row visible
in the style, with the other kind of row kept in its place relative to
the characters.
This commit is contained in:
dotCooCoo
2026-11-14 21:38:42 -08:00
parent 0b42788d6b
commit 021e4dc4ca
5 changed files with 127 additions and 14 deletions
+4 -3
View File
@@ -895,8 +895,8 @@ their place relative to the Characters row, and the label's object opacity and b
label already showed them. `transparency.set` without an `item`, `object.setProps` with an opacity or blend mode, and
an `appearance.copyFrom` (Eyedropper) pick of transparency store only the label's object opacity and blend mode;
`appearance.copyFrom` with `append` stores the rows, and the object opacity and blend mode only when it also applies
the object's transparency. `graphicStyle.apply` with `add` stores the rows and leaves the object opacity and blend
mode the kind keeps. When the graph is drawn again, every label of that kind gets what is stored, with a placed
the object's transparency. `graphicStyle.apply` with `add` stores only the kinds of row that are visible in the style
and leaves the other kind of row and the object opacity and blend mode the kind keeps. When the graph is drawn again, every label of that kind gets what is stored, with a placed
gradient fitted to each label, and the graph saves it as `valuesRows`, `categoriesRows` and `legendRows` in its label styles. Rows below the topmost one of each kind, a row's effects, other stroke options (caps,
joins, dashes) and effects applied with `effect.*` are not stored. When labels of one kind are edited together, the
last one in the order of the targets (`ids` as given, otherwise paint order) sets what the kind keeps.
@@ -919,7 +919,8 @@ line's rows even when the line already showed them. The other commands, an `appe
included, store only what they change on a line's rows; the kind keeps its other attributes, also when the line still
shows different ones until the graph is drawn again. An `appearance.copyFrom` that does not apply the object's
transparency, and `graphicStyle.apply` with `add`, leave the object opacity and blend mode a kind keeps as they are,
also when the line still shows other ones. `paint.default` stores the default fill and stroke rows for a line's kind
also when the line still shows other ones. `graphicStyle.apply` with `add` stores only the kinds of row that are
visible in the style, and the kind keeps its other kind of row. `paint.default` stores the default fill and stroke rows for a line's kind
even when the line already showed them, and leaves the object opacity and blend mode the kind keeps. Rows equal to a kind's default stroke (0.5 pt black for axis lines and tick
marks, 0.25 pt gray for rings) are not saved. When one command reaches several lines of one kind, the frontmost line in
paint order sets what the kind keeps, whatever order the `ids` are in. A gradient is stored without its placement, and