mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
combine mutation for bounded text element
This commit is contained in:
parent
723180eb1e
commit
e956f947eb
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue