I get Assertion failed: Unknown element 'anchor_1' in elements ().
Motivation: I want to draw arrows between sibling nodes in a tree.
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Currently, you cannot use custom names, but reference tree nodes via their \"index\" anchors: \"0-0\" would be the first child of the root node, \"0-1\" the second etc. This is not ideal, I've created a ticket to allow outputting anchors.
","upvoteCount":1,"url":"https://github.com/cetz-package/cetz/discussions/698#discussioncomment-10745233"}}}-
|
Is it possible to refer to a tree's node's position from outside of a tree? When I try I get Motivation: I want to draw arrows between sibling nodes in a tree. |
Beta Was this translation helpful? Give feedback.
-
|
Currently, you cannot use custom names, but reference tree nodes via their "index" anchors: "0-0" would be the first child of the root node, "0-1" the second etc. This is not ideal, I've created a ticket to allow outputting anchors. |
Beta Was this translation helpful? Give feedback.
Currently, you cannot use custom names, but reference tree nodes via their "index" anchors: "0-0" would be the first child of the root node, "0-1" the second etc. This is not ideal, I've created a ticket to allow outputting anchors.