mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Arc tests
This commit is contained in:
parent
f79fb899fc
commit
3fe73e79a6
9 changed files with 80 additions and 76 deletions
|
@ -1,4 +1,3 @@
|
|||
import type { Radians } from "../math";
|
||||
import { point, radians } from "../math";
|
||||
import {
|
||||
COLOR_PALETTE,
|
||||
|
|
|
@ -136,12 +136,7 @@ const getElementLineSegments = (
|
|||
).map((point) => pointRotateRads(point, center, element.angle));
|
||||
|
||||
if (element.type === "diamond") {
|
||||
return [
|
||||
segment(n, w),
|
||||
segment(n, e),
|
||||
segment(s, w),
|
||||
segment(s, e),
|
||||
];
|
||||
return [segment(n, w), segment(n, e), segment(s, w), segment(s, e)];
|
||||
}
|
||||
|
||||
if (element.type === "ellipse") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue