Skip to content

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

Open
Fil wants to merge 5 commits intofil/refresh-snapshotsfrom
fil/center-hexbin
Open

replace hexbin grid origin offset with rounding towards the center#2367
Fil wants to merge 5 commits 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

Fil added 5 commits February 18, 2026 12:43
…ndefined (older browser), or <= 1 (actual low-res screen)
- removes translate(0, 0.5)
- uses lower-precision numbers (#2270, #2234)

closes #1445
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
@Fil Fil force-pushed the fil/refresh-snapshots branch from 7384d08 to dae56cb Compare March 3, 2026 14:14
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