Skip to content

feat(bounding-box): support bounding box highlights in ImageAnnotator#740

Merged
dlasecki-box merged 2 commits intobox:masterfrom
dlasecki-box:support-bounding-boxes-in-images
Apr 16, 2026
Merged

feat(bounding-box): support bounding box highlights in ImageAnnotator#740
dlasecki-box merged 2 commits intobox:masterfrom
dlasecki-box:support-bounding-boxes-in-images

Conversation

@dlasecki-box
Copy link
Copy Markdown
Contributor

Adds bounding box highlight rendering and scroll-to-highlight support for image files.

Changes:

  • Add BoundingBoxHighlightManager to ImageAnnotator when viewMode is boundingBoxes, with proper manager lifecycle on view mode switches
  • Standardize scrollToBoundingBoxHighlight by moving shared logic from DocumentAnnotator into BaseAnnotator, with subclass hooks (getScrollReferenceForHighlight, getAdjustedScrollOffsets) for file-type–specific behavior
  • ImageAnnotator implements scroll hooks with rotation-aware offset adjustment
  • Skip DeselectManager in bounding box mode (no annotation creation needed)
  • Add unit tests for new image annotator behavior
Screenshot 2026-04-16 at 17 53 13

It's a followup to that PR where Bounding Boxes support was added for documents

@dlasecki-box dlasecki-box requested a review from a team as a code owner April 16, 2026 16:02
@dlasecki-box dlasecki-box merged commit 4303936 into box:master Apr 16, 2026
5 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