refactor: remove dependency on the (static) Scene (#9389)
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
getElementPointsCoords,
|
||||
} from "@excalidraw/element/bounds";
|
||||
import { cropElement } from "@excalidraw/element/cropElement";
|
||||
import { mutateElement } from "@excalidraw/element/mutateElement";
|
||||
import {
|
||||
getTransformHandles,
|
||||
getTransformHandlesFromCoords,
|
||||
@@ -526,7 +525,7 @@ export class UI {
|
||||
|
||||
if (angle !== 0) {
|
||||
act(() => {
|
||||
mutateElement(origElement, { angle });
|
||||
h.app.scene.mutateElement(origElement, { angle });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user