fix style pasting (#832)
* fix style pasting * Update src/actions/actionStyles.ts
This commit is contained in:
committed by
GitHub
parent
fbab93baff
commit
2ad0716f3d
@ -5,3 +5,14 @@ export function isTextElement(
|
||||
): element is ExcalidrawTextElement {
|
||||
return element.type === "text";
|
||||
}
|
||||
|
||||
export function isExcalidrawElement(element: any): boolean {
|
||||
return (
|
||||
element?.type === "text" ||
|
||||
element?.type === "diamond" ||
|
||||
element?.type === "rectangle" ||
|
||||
element?.type === "ellipse" ||
|
||||
element?.type === "arrow" ||
|
||||
element?.type === "line"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user