Add ellipse changes no angle

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2024-09-27 11:34:02 +02:00
parent d9ea7190ec
commit 7b4e989d65
No known key found for this signature in database
12 changed files with 97 additions and 357 deletions

View file

@ -175,16 +175,11 @@ export const getSelectionBoxShape = <Point extends GlobalPoint | LocalPoint>(
export const getEllipseShape = <Point extends GlobalPoint | LocalPoint>(
element: ExcalidrawEllipseElement,
): GeometricShape<Point> => {
const { width, height, angle, x, y } = element;
const { width, height, x, y } = element;
return {
type: "ellipse",
data: ellipse(
point(x + width / 2, y + height / 2),
angle,
width / 2,
height / 2,
),
data: ellipse(point(x + width / 2, y + height / 2), width / 2, height / 2),
};
};