fix: restore text dimensions (#5432)

* fix: restore text dimensions

* fix tests

* update readme & changelog

* reduce API surface area by always refreshing dimensions for full `restore()`
This commit is contained in:
David Luzar 2022-10-28 23:31:56 +02:00 committed by GitHub
parent 36bf17cf59
commit c8f6e3faa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 51 additions and 21 deletions

View file

@ -275,7 +275,7 @@ Object {
"fontFamily": 1,
"fontSize": 14,
"groupIds": Array [],
"height": 100,
"height": 0,
"id": "id-text01",
"isDeleted": false,
"link": null,
@ -295,7 +295,7 @@ Object {
"version": 1,
"versionNonce": 0,
"verticalAlign": "middle",
"width": 100,
"width": 1,
"x": -0.5,
"y": 0,
}
@ -312,7 +312,7 @@ Object {
"fontFamily": 1,
"fontSize": 10,
"groupIds": Array [],
"height": 100,
"height": 0,
"id": "id-text01",
"isDeleted": false,
"link": null,
@ -332,7 +332,7 @@ Object {
"version": 1,
"versionNonce": 0,
"verticalAlign": "top",
"width": 100,
"width": 1,
"x": 0,
"y": 0,
}