Merge pull request #7772 from dotCooCoo/fix/paste-plain-graph-labels

Paste: Paste without Formatting keeps a pasted graph's labels plain when it is drawn again
This commit is contained in:
BFlat
2026-11-15 16:40:03 +07:00
committed by GitHub
7 changed files with 1209 additions and 41 deletions
+5
View File
@@ -7171,6 +7171,11 @@ added is reused), which the pasted objects follow. Linked colours show the docum
spot colour as its Spot Colors option says). The result reports `{ids, added, merged, renamed: [{kind, from,
to}]}`.
`edit.pasteWithoutFormatting` sets the labels of a pasted graph in a new graph's label character style and
paragraph attributes, keeping each label's alignment and where it starts. The pasted graph no longer keeps its labels' character and
paragraph formats, so a later `graph.setData` or `graph.setType` sets the labels the same way. The rest of the
graph's art is pasted as it was copied.
A global or spot swatch whose name the document gives another colour is a conflict: `clipboard.conflicts` lists
them, and `swatchConflict` answers: `"merge"` (the default: the objects take the document's swatch), `"add"` (the
pasted swatch comes in renamed) or one answer per name. Pasting back into the document the objects came from uses