mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add ellipse changes no angle
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
d9ea7190ec
commit
7b4e989d65
12 changed files with 97 additions and 357 deletions
|
@ -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),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue