Skip to content

Comments

replace hexbin grid origin offset with rounding towards the center#2367

Open
Fil wants to merge 1 commit intofil/refresh-snapshotsfrom
fil/center-hexbin
Open

replace hexbin grid origin offset with rounding towards the center#2367
Fil wants to merge 1 commit intofil/refresh-snapshotsfrom
fil/center-hexbin

Conversation

@Fil
Copy link
Contributor

@Fil Fil commented Feb 18, 2026

The hexbin transform used a hardcoded ox=0.5 to avoid Math.round(.5) ties on the right edge, but this caused floating bins on the left odd rows.

bad rhs bad lhs good (all interior)
ox=0 ox= 5 Capture d’écran 2026-02-18 à 19 49 40

closes an issue mentioned in #2365

The hexbin transform used a hardcoded ox=0.5 to avoid Math.round(.5) ties
on the right edge, but this caused floating bins on the left odd rows.
@Fil Fil requested a review from mbostock February 18, 2026 18:50
@Fil Fil mentioned this pull request Feb 18, 2026
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.

1 participant