-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add a "no bounds" option for elements so they don't affect layout #619
Labels
Comments
Adding something like this is planned. I think |
Jollywatt
added a commit
to Jollywatt/cetz
that referenced
this issue
Jun 1, 2024
Jollywatt
added a commit
to Jollywatt/cetz
that referenced
this issue
Jun 1, 2024
Jollywatt
added a commit
to Jollywatt/cetz
that referenced
this issue
Jun 2, 2024
johannes-wolf
pushed a commit
that referenced
this issue
Jun 2, 2024
* grouping: Add `draw.floating(body)` (#619) * changes: mention `draw.floating` * manual: add `draw.floating`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I understand, bounding boxes always reshape to the drawables they contain, without there being a way for certain drawables to opt-out.
It would be good to have a
bounds: none
option or adraw.no-bounds(body)
wrapper that sets the drawable's bounds tonone
so it does not affect parent bounds. (A better name for this wrapper might bedraw.place(body)
, ordraw.float(body)
. It would complementdraw.hide(body)
in a sense.)An example use case is something like in the image below, where it is desired that the canvas bounding box be at the red border, not affected by the long label (a
draw.content
node).The text was updated successfully, but these errors were encountered: