Closed Kreijstal closed 3 months ago
Unfortunately, this is because fletcher uses its own coordinate system ("elastic coordinates"), and I simply haven't replicated everything cetz can do with coordinate transformations.
The reason fletcher doesn't integrate with cetz more closely is because the order of operations makes it difficult:
measure()
.In order to fully support cetz coordinates (to enable e.g., node((rel: (1, -1), to: "anchor"), [Hi])
where the (1, -1)
are in the diagram's coordinates), cetz needs to know how to fully resolve the coordinates, which means the conversion from elastic to physical coordinates must be defined. However, this coordinate transformation is not known until all the nodes in the diagram are measured and their row/colum positions (elastic coordinates) are known.
Near-duplicate: #37
CeTZ-style coordinate expressions (including (rel:, to:)
have been added in v0.5.0
I tried (rel:,to:) in cetz, but it seems no dice, why isn't this supported?