fix: multiple elements resizing regressions (#5586)

This commit is contained in:
Alex Kim 2022-10-29 16:01:38 +05:00 committed by GitHub
parent c8f6e3faa8
commit f5379d1563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 32 deletions

View file

@ -22,7 +22,7 @@ const _ce = ({
backgroundColor: "#000",
fillStyle: "solid",
strokeWidth: 1,
roughness: 1,
roughness: 0,
opacity: 1,
x,
y,
@ -106,7 +106,7 @@ describe("getElementBounds", () => {
} as ExcalidrawLinearElement);
expect(x1).toEqual(360.3176068760539);
expect(y1).toEqual(185.90654264413516);
expect(x2).toEqual(473.8171188951176);
expect(y2).toEqual(320.391865303557);
expect(x2).toEqual(480.87005902729743);
expect(y2).toEqual(320.4751269334226);
});
});