Skip to content

Conversation

@tomcur
Copy link
Contributor

@tomcur tomcur commented Dec 22, 2025

This currently fails, as we only check world-space (axis-aligned) bounding boxes, and not local bounds.

Succeeds on top of #95.

@tomcur tomcur force-pushed the transformed-local-bounds branch from 4789780 to 2b4c46d Compare December 23, 2025 16:01
tomcur added a commit to tomcur/understory that referenced this pull request Dec 23, 2025
This checks all the local geometry to perform hit testing, checking the
node's local bounds, the local clip, and then the node's ancestors'
clips. Rounded rectangle clips are now handled correctly, rather than
checking point containment on the underlying `Rect`.

Because we need to walk the tree to correctly check the geometry, we do
away with the `depth` and `path_to_root` helpers (and build the path in
a scratch buffer as we're walking).

endoli#93 passes when based on this
PR.
tomcur added a commit to tomcur/understory that referenced this pull request Dec 23, 2025
This checks all the local geometry to perform hit testing, checking the
node's local bounds, the local clip, and then the node's ancestors'
clips. Rounded rectangle clips are now handled correctly, rather than
checking point containment on the underlying `Rect`.

Because we need to walk the tree to correctly check the geometry, we do
away with the `depth` and `path_to_root` helpers (and build the path in
a scratch buffer as we're walking).

endoli#93 passes when based on this
PR.
tomcur added a commit that referenced this pull request Dec 23, 2025
This checks all the local geometry to perform hit testing, checking the
node's local bounds, the local clip, and then the node's ancestors'
clips. Rounded rectangle clips are now handled correctly, rather than
checking point containment on the underlying `Rect`.

Because we need to walk the tree to correctly check the geometry, we do
away with the `depth` and `path_to_root` helpers (and build the path in
a scratch buffer as we're walking).

#93 passes when based on this
PR.
This currently fails,as we only check world-space (axis-aligned)
bounding boxes, and not local bounds.
@tomcur tomcur force-pushed the transformed-local-bounds branch from 2b4c46d to 3d5cc5d Compare December 23, 2025 19:25
@tomcur tomcur merged commit a39b44e into endoli:main Dec 24, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants