Skip to content

Keep getTileAtPoint within the tiles of a level (release v0.8.2) - #22

Closed
cavenel wants to merge 2 commits into
mainfrom
fix/tile-at-point-past-last-tile
Closed

cavenel wants to merge 2 commits into
mainfrom
fix/tile-at-point-past-last-tile

Conversation

@cavenel

@cavenel cavenel commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Closes #21. Prepares the v0.8.2 release.

Highlights

  • getTileAtPoint is overridden and clamps the tile index to the last tile of the level. getNumTiles uses the size of the level itself, while the inherited getTileAtPoint scales the point by the full-resolution size, so the two disagreed for levels whose size is rounded down. OpenSeadragon wraps an index past the last tile, and rotated images showed a copy of their first tile row or column when zoomed out
  • OpenSeadragon's types declare that getTileAtPoint returns a Tile, but it returns the tile index as a Point, hence the two casts

The full list is in the changelog.

Release

  • package.json bumped to 0.8.2, changelog rolled over to [0.8.2] - 2026-11-18
  • Tag v0.8.2 still needs to be pushed after merging to trigger the publish workflow

Checks

pnpm run lint, fmt:check and build:lib pass. Draft until the rotated image from TissUUmaps/TissUUmaps#397 is checked in TissUUmaps with this build.

getNumTiles uses the size of the level itself, while the inherited
getTileAtPoint scales the point by the full-resolution size. For a level
whose size is rounded down, a point near the right or bottom edge got an
index past the last tile, which OpenSeadragon wraps: rotated images
showed a copy of their first tile row or column. Clamp the index.

Closes #21.
@cavenel

cavenel commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Will fix in OpenSeadragon upstream directly instead.

@cavenel cavenel closed this Nov 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.

getTileAtPoint returns an index past the last tile for levels rounded down

1 participant