mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add free draw mode (#1570)
This commit is contained in:
parent
36e0c439fb
commit
9ec43d2626
21 changed files with 344 additions and 49 deletions
|
@ -14,7 +14,10 @@ export function isLinearElement(
|
|||
element?: ExcalidrawElement | null,
|
||||
): element is ExcalidrawLinearElement {
|
||||
return (
|
||||
element != null && (element.type === "arrow" || element.type === "line")
|
||||
element != null &&
|
||||
(element.type === "arrow" ||
|
||||
element.type === "line" ||
|
||||
element.type === "draw")
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -25,6 +28,7 @@ export function isExcalidrawElement(element: any): boolean {
|
|||
element?.type === "rectangle" ||
|
||||
element?.type === "ellipse" ||
|
||||
element?.type === "arrow" ||
|
||||
element?.type === "draw" ||
|
||||
element?.type === "line"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue