-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group bounding box/border anchors should be effected by rotation #488
Comments
EDIT: I think I got this wrong. Yes, if the transformation is outsides the group, its anchors should get transformed by that. |
How should this work for groups containing elements with different z coordinates? Second problem are groups with |
Hmm, I would rather not be transforming content until we get better control from Typst, otherwise it feels just to brittle and difficult to keep working. My current work around is to hide a rectangle then copy its anchors, which works but does mean I have to calculate the bounds before hand and angle/path anchors don't work as expected. What might be an easier solution would be to allow completely overriding the anchors of a group. The bounds anchors would be kept as default but it would require exposing |
All we need from Typst is it allowing to set a transformation matrix. Internally, it should use them already, so the missing part is a function to set one. Maybe we can make a PR for Typst implementing such function? |
What do you mean with allowing to override anchors of groups? Isn't that possible? |
In the example I would expect the red circle to cover the blue one
The text was updated successfully, but these errors were encountered: