mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-03 06:25:10 -05:00
The checkerboard background was rendered as a separate DOM element that stretched to fill the canvas container. While the canvas width and height are always integers, this background element could have non-integer dimensions, depending on panel sizes.As a result, it could be slightly larger than the canvas, introducing a fine border around the canvas. This is purely a visual issue, but it's very noticeable when you use the bbox overlay. It also can be noticed with masks that extend beyond the edge of the visible canvas. - Refactor the checkerboard background to be rendered by the canvas instead of as a DOM element, resolving the issue. - Add a helper method to get the scaled rect of the stage, updating a few places where we need such a rect. - Rename `CanvasStageModule.getScaledPixels` method to `unscale`, clarifying its purpose.