Fix dimensions undefined

This commit is contained in:
zsviczian
2025-04-20 11:40:24 +02:00
parent 091d9b9669
commit 4840470b60

View File

@@ -1655,7 +1655,8 @@ export class ExcalidrawAutomate {
arrayToMap(this.getElements()),
originalText,
);
if(dimensions) {
if(dimensions && !formatting?.width) {
textElement.width = dimensions.width;
textElement.height = dimensions.height;
textElement.x = dimensions.x;