mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 22:10:48 +02:00
combine mutation for bounded text element
This commit is contained in:
@@ -828,10 +828,10 @@ export const resizeMultipleElements = (
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (boundTextElement && boundTextUpdates) {
|
if (boundTextElement && boundTextUpdates) {
|
||||||
if (!isLinearElement(latest)) {
|
mutateElement(boundTextElement, {
|
||||||
mutateElement(boundTextElement, { angle });
|
...boundTextUpdates,
|
||||||
}
|
angle: isLinearElement(latest) ? undefined : angle,
|
||||||
mutateElement(boundTextElement, boundTextUpdates);
|
});
|
||||||
handleBindTextResize(latest, transformHandleType);
|
handleBindTextResize(latest, transformHandleType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user