mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not floor bbox calc, it cuts off the last pixels
This commit is contained in:
parent
91a420b13e
commit
2f21a2220d
@ -188,12 +188,7 @@ const getLayerBboxPixels = (
|
|||||||
*/
|
*/
|
||||||
export const getNodeBboxFast = (node: Konva.Node): IRect => {
|
export const getNodeBboxFast = (node: Konva.Node): IRect => {
|
||||||
const bbox = node.getClientRect(GET_CLIENT_RECT_CONFIG);
|
const bbox = node.getClientRect(GET_CLIENT_RECT_CONFIG);
|
||||||
return {
|
return bbox;
|
||||||
x: Math.floor(bbox.x),
|
|
||||||
y: Math.floor(bbox.y),
|
|
||||||
width: Math.floor(bbox.width),
|
|
||||||
height: Math.floor(bbox.height),
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const filterRGChildren = (node: Konva.Node): boolean => node.name() === RG_LAYER_OBJECT_GROUP_NAME;
|
const filterRGChildren = (node: Konva.Node): boolean => node.name() === RG_LAYER_OBJECT_GROUP_NAME;
|
||||||
|
Loading…
Reference in New Issue
Block a user