mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): bbox rendered slightly too small
This commit is contained in:
parent
d582203c62
commit
7edcadb371
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user