Remove resized element if it is invisibly small (#405)
This commit is contained in:
committed by
David Luzar
parent
4234cd849c
commit
8bc049a0b9
@@ -0,0 +1,5 @@
|
||||
import { ExcalidrawElement } from "./types";
|
||||
|
||||
export function isInvisiblySmallElement(element: ExcalidrawElement): boolean {
|
||||
return element.width === 0 && element.height === 0;
|
||||
}
|
||||
Reference in New Issue
Block a user