fix(ui): bbox rendered slightly too small

This commit is contained in:
psychedelicious 2024-04-20 15:10:25 +10:00 committed by Kent Keirsey
parent d582203c62
commit 7edcadb371

View File

@ -382,10 +382,10 @@ export const renderBbox = (
rect.setAttrs({ rect.setAttrs({
visible: true, visible: true,
listening: true, listening: true,
x: bbox.x, x: bbox.x - 1,
y: bbox.y, y: bbox.y - 1,
width: bbox.width, width: bbox.width + 2,
height: bbox.height, height: bbox.height + 2,
stroke: reduxLayer.id === selectedLayerId ? BBOX_SELECTED_STROKE : BBOX_NOT_SELECTED_STROKE, stroke: reduxLayer.id === selectedLayerId ? BBOX_SELECTED_STROKE : BBOX_NOT_SELECTED_STROKE,
}); });
} }