Merge remote-tracking branch 'origin/text-wrapping' into text-wrapping

This commit is contained in:
Ryan Di 2024-05-13 15:31:32 +08:00
commit d0a3e4c03e
1 changed files with 3 additions and 6 deletions

View File

@ -49,12 +49,9 @@ export const redrawTextBoundingBox = (
container: ExcalidrawElement | null,
elementsMap: ElementsMap,
{
informMutation,
keepPreviousSize,
}: { informMutation?: boolean; keepPreviousSize?: boolean } = {
informMutation: true,
keepPreviousSize: false,
},
informMutation = true,
keepPreviousSize = false,
}: { informMutation?: boolean; keepPreviousSize?: boolean } = {},
) => {
let maxWidth = undefined;
const boundTextUpdates = {