mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-01 15:53:26 -10:00
Place the nodes document migrations add beside the node they replace by default
This commit is contained in:
8 files changed
+176
-10
No files matched your search
@@ -79,7 +79,7 @@ The function runs once per **anchor**: a node of the source declaration. The run
|
||||
|
||||
`Inputs` operations apply in order to the target layout being built. `node.inputs()` is always the source layout. Reads through a mutable view (such as `Downstream::consumers`) also see the source state, so nodes added by the migration never appear among the anchor's consumers.
|
||||
|
||||
Added nodes start with no attributes. A migration places them, or clears a stored name that no longer fits the anchor, through `Attributes`.
|
||||
The runner places added nodes from the anchor's own position. Nodes leading up to the anchor's chain input form a row, or join the chain when the anchor is chained or a layer. Each other node sits below the first node reading it. A chained anchor has no coordinates of its own, so only its chain is placed. A migration overrides these positions, or clears a stored name that no longer fits the anchor, through `Attributes`.
|
||||
|
||||
A migration addresses declarations with `decl!`, values with a frozen mirror of the value variants it uses, and connections with plain connector types:
|
||||
|
||||
|
||||
Reference in new issue
Block a user