Skip to content
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

Provide a node for the canvas' current bounding box #616

Open
kram-tm opened this issue May 29, 2024 · 1 comment
Open

Provide a node for the canvas' current bounding box #616

kram-tm opened this issue May 29, 2024 · 1 comment
Labels

Comments

@kram-tm
Copy link

kram-tm commented May 29, 2024

I propose adding a node to represent the current bounding box of the canvas with the usual anchors of rect (south-{east,west}, north-{east,west}, east, west, north, south). This node is called current bounding box in TikZ and would allow the placement of shapes relative to the anchors of the box without needing to infer the bounds manually or, as suggested as a temporary workaround by Johannes Wolf, embedding the relevant elements into a group (which may presumably entail nesting of groups for multiple redefinitions of the bounds — an issue avoided by having a node that's updated repeatedly).

@johannes-wolf
Copy link
Member

johannes-wolf commented May 29, 2024

Note: such a node should not represent the current bbox of the canvas but the current bbox of the scope (canvas at root scope).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants