Abstract away or eliminate most of the mutation of the Elements array (#955)
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { ExcalidrawElement } from "./types";
|
||||
import { invalidateShapeForElement } from "../renderer/renderElement";
|
||||
import { mutateElement } from "./mutateElement";
|
||||
|
||||
export function isInvisiblySmallElement(element: ExcalidrawElement): boolean {
|
||||
@ -101,7 +100,5 @@ export function normalizeDimensions(
|
||||
});
|
||||
}
|
||||
|
||||
invalidateShapeForElement(element);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user