fix style pasting (#832)
* fix style pasting * Update src/actions/actionStyles.ts
This commit is contained in:
committed by
GitHub
parent
fbab93baff
commit
2ad0716f3d
@ -14,7 +14,7 @@ export {
|
||||
getCursorForResizingElement,
|
||||
normalizeResizeHandle,
|
||||
} from "./resizeTest";
|
||||
export { isTextElement } from "./typeChecks";
|
||||
export { isTextElement, isExcalidrawElement } from "./typeChecks";
|
||||
export { textWysiwyg } from "./textWysiwyg";
|
||||
export { redrawTextBoundingBox } from "./textElement";
|
||||
export {
|
||||
|
@ -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