Conversation
|
The |
|
Agreed, backward compatibility seems like the main argument for it. Just a small detail on |
|
Considering that typst is still pre v1.0 and unstable. Backward compatibility is not actually necessary and guaranteed. Breaking changes are acceptable in my opinion, and have already happened many times in the release history. |
|
Let's remove the parameter. The breakage is small enough. |
|
One thing is that I'm honestly not sure what's best here. |
|
If we think inverting the direction for |
c52678b to
933b057
Compare
933b057 to
dfd78c7
Compare
|
Thanks for the feedback! I've removed the On the direction convention, one way I think about it is that the two APIs are exposing slightly different kinds of quantities.
If we take this perspective, the underlying coordinate convention can still be viewed as consistent, and the difference is just between exposing a position and specifying a shift. |
Adds an opt-in
baselineparameter tomeasure().When
baseline: trueis set, the returned dictionary includes the content's baseline offset measured from its top edge. Thebaselineparameter is set tofalseby default, so existing results are unchanged.Update: Following maintainer feedback, the PR now always includes
baselinein thereturned dictionary.
Closes #8798.