We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by noahjutz September 23, 2024 Is it possible to refer to a tree's node's position from outside of a tree?
When I try
cetz.tree.tree( // ... draw-node: (node, p) => { if node.content.text == "1" {circle((), radius: 0, name: "anchor_1")} else if node.content.text == "2" {circle((), radius: 0, name: "anchor_2")} } ) line("anchor_1", "anchor_2")
I get Assertion failed: Unknown element 'anchor_1' in elements ().
Assertion failed: Unknown element 'anchor_1' in elements ()
Motivation: I want to draw arrows between sibling nodes in a tree.
The text was updated successfully, but these errors were encountered:
Forward anchors from the draw-node function to the tree group.
Sorry, something went wrong.
johannes-wolf
No branches or pull requests
Discussed in #698
Originally posted by noahjutz September 23, 2024
Is it possible to refer to a tree's node's position from outside of a tree?
When I try
I get
Assertion failed: Unknown element 'anchor_1' in elements ()
.Motivation: I want to draw arrows between sibling nodes in a tree.
The text was updated successfully, but these errors were encountered: