Merge branch 'main' of https://gitlab.com/phenomLi/StructV2 into main
This commit is contained in:
commit
324a085867
@ -86,7 +86,8 @@ export const Bound = {
|
||||
|
||||
if(b1.x < b2.x + b2.width && b1.x + b1.width > b2.x) {
|
||||
x = b1.x < b2.x? b2.x: b1.x;
|
||||
maxX = b1.x + b1.width < b2.x + b2.width? b1.x + b1.width: b2.x + b2.width;
|
||||
// maxX = b1.x + b1.width < b2.x + b2.width? b1.x + b1.width: b2.x + b2.width;
|
||||
maxX = b1.x + b1.width;
|
||||
overlapsX = maxX - x;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user