Skip to content

Conversation

@gpeairs
Copy link
Member

@gpeairs gpeairs commented Jun 5, 2025

According to the GeometryEntityStyle doctring, "Unless implemented by the style, lowerleft and upperright (and hence bounds) of a styled entity will use the underlying entity's bounds." This wasn't actually true, but now it is. The other GeometryEntity interface methods, footprint and halo, were not mentioned, but they now also forward to the underlying entity except where specialized on the style.

Previously, to_polygons was called first, meaning NoRender led to zero bounds / empty entity list and OptionalStyle applied its default style (most relevantly for NoRender). These are the correct behaviors, but because they are different from the fallback they are now implemented as specializations to the GeometryEntity interface methods.

@codecov
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

@ybrightye ybrightye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested the changes locally and everything works as expected. The code looks good and should be approved.

@gpeairs gpeairs merged commit f68d124 into main Jun 6, 2025
6 checks passed
@gpeairs gpeairs deleted the gp/styled-entity-methods branch June 6, 2025 16:19
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