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:
Aakansha Doshi 2022-11-30 15:55:01 +05:30 committed by GitHub
parent 88b2f4707d
commit 66bbfda460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 3 deletions

View file

@ -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)
);
};