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 (!isLinearElement(latest)) {
|
||||
mutateElement(boundTextElement, { angle });
|
||||
}
|
||||
mutateElement(boundTextElement, boundTextUpdates);
|
||||
mutateElement(boundTextElement, {
|
||||
...boundTextUpdates,
|
||||
angle: isLinearElement(latest) ? undefined : angle,
|
||||
});
|
||||
handleBindTextResize(latest, transformHandleType);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user