Skip to content

Angle and position from two nodes #868

Answered by johannes-wolf
l0uisgrange asked this question in Q&A
Discussion options

You must be logged in to vote

👋 Hi :)

  1. You have to call let (ctx, vec) = coordinate.resolve(ctx, node) to resolve any cetz coordinate to a vector. Here is an example: https://github.com/cetz-package/cetz/blob/master/src/lib/angle.typ#L66
  2. The groups anchors are not available inside the group itself, bout outside of it. But you can nest groups, if you want go get some inner center anchor.

I hope that helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by l0uisgrange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants