Skip to content
Discussion options

You must be logged in to vote

There is no builtin way to do what you want. How could a possible API for this look like?
We cannot return anything from calls, so it must either create a name coordinate or use a callback (like for-each-anchor). Right now, you cannot query the number of intersections between paths – at least there is no simple API for that. You can always use get-ctx(ctx => { ... }) to query the geometry of objects and use functions from src/intersection.typ to test shapes for intersection.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RaNiK21
Comment options

Answer selected by RaNiK21
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