You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With axes: (rtl, ttb) (instead of the default (ltr, ttb)), relative coordinate shorthand "r" moves left instead of right.
Similarly, with axes: (ltr, btt), relative coordinate shorthand "u" moves down instead of up.
One use case for axes: (ltr, btt) is to align the axes with those of CetZ (i.e., positive y pointing up), so we can switch between elastic coordinates (e.g., (2, 1)) and absolute coordinates (e.g., (2cm, 1cm)) without flipping the sign. But now, we have to flip the relative coordinate shorthands instead.
The reason I didn't do this from the start was because it is nice to be able to change a diagram's axes after the fact, to try new layouts, but if r/l/u/d/etc were invariant then some diagrams would break. However, I agree that the current behaviour also seems silly, so that it's probably better to fix this...
Describe the bug
With
axes: (rtl, ttb)
(instead of the default(ltr, ttb)
), relative coordinate shorthand"r"
moves left instead of right.Similarly, with
axes: (ltr, btt)
, relative coordinate shorthand"u"
moves down instead of up.One use case for
axes: (ltr, btt)
is to align the axes with those of CetZ (i.e., positivey
pointing up), so we can switch between elastic coordinates (e.g.,(2, 1)
) and absolute coordinates (e.g.,(2cm, 1cm)
) without flipping the sign. But now, we have to flip the relative coordinate shorthands instead.To Reproduce
Expected behavior
"r"
/"l"
/"u"
/"d"
should go right/left/up/down, respectively, regardless of axes orientation. See the code above for specific examples.Version information
typst 0.13.1 (8ace67d9)
The text was updated successfully, but these errors were encountered: