mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: don't pass array to handleBindTextResize (#4826)
This commit is contained in:
parent
f224e4d596
commit
e203203993
2 changed files with 53 additions and 55 deletions
|
@ -602,7 +602,7 @@ export const resizeSingleElement = (
|
|||
newSize: { width: resizedElement.width, height: resizedElement.height },
|
||||
});
|
||||
mutateElement(element, resizedElement);
|
||||
handleBindTextResize([element], transformHandleDirection);
|
||||
handleBindTextResize(element, transformHandleDirection);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -742,7 +742,7 @@ const resizeMultipleElements = (
|
|||
fontSize: updates[index].fontSize,
|
||||
baseline: updates[index].baseline,
|
||||
});
|
||||
handleBindTextResize([element], transformHandleType);
|
||||
handleBindTextResize(element, transformHandleType);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue