mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: scale font correctly when using shift (#5935)
* fix: scale font correctly when using shift * fix * Empty-Commit * Add spec * fix
This commit is contained in:
parent
88b2f4707d
commit
66bbfda460
3 changed files with 38 additions and 3 deletions
|
@ -139,6 +139,9 @@ export const isBoundToContainer = (
|
|||
element: ExcalidrawElement | null,
|
||||
): element is ExcalidrawTextElementWithContainer => {
|
||||
return (
|
||||
element !== null && isTextElement(element) && element.containerId !== null
|
||||
element !== null &&
|
||||
"containerId" in element &&
|
||||
element.containerId !== null &&
|
||||
isTextElement(element)
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue