fix: use canvas measureText to calculate width in measureText (#6030)

* fix: use canvas measureText to calculate width in measureText

* calculate multiline width correctly using canvas measure text and rename functions

* set correct width when pasting in bound container

* take existing value + new pasted

* remove debugger :p

* fix snaps
This commit is contained in:
Aakansha Doshi
2022-12-23 21:45:49 +05:30
committed by GitHub
parent 2595e0de82
commit af3b93c410
6 changed files with 58 additions and 16 deletions

View File

@ -312,7 +312,7 @@ Object {
"versionNonce": 0,
"verticalAlign": "middle",
"width": 100,
"x": 0.5,
"x": 0,
"y": 0,
}
`;