Enhance the debug panel to show comprehensive information about how each
detected region contributed to the final zoom level decision.
New debug information displayed:
- Final zoom level and whether it was accepted or fallback to minimum
- Which region was accepted (if any)
- Adaptive acceptance thresholds (min-max % of magnifier size)
- Per-region analysis showing:
* Region ID and importance score
* Current size on screen (width × height in pixels)
* Zoom level tested for that region
* Magnified size at that zoom
* Size ratio (what % of magnifier it would occupy)
* Rejection reason if not accepted
* Visual highlighting (green for accepted, gray for rejected)
The panel now shows the top 5 most important regions sorted by importance
score, with clear visual indication of why each was accepted or rejected.
This helps understand:
- Why a particular zoom level was chosen
- Which region drove the decision
- Why other regions were rejected (too small/large, not in viewport)
- What the acceptance thresholds are for the current situation
All behind SHOW_DEBUG_BOUNDING_BOXES dev flag.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>