fix(editor): image size and xywh when converting attachment to image (#10200)

In Edgeless, the image size should be read when converting attachment to image:

* fix `size`
* fix `xywh`
This commit is contained in:
fundon
2025-02-20 05:16:21 +00:00
parent ff0ce1a962
commit adc003862b
10 changed files with 87 additions and 41 deletions

View File

@@ -42,10 +42,10 @@
"version": 1,
"props": {
"sourceId": "ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA=",
"width": 0,
"height": 0,
"width": 460,
"height": 345,
"index": "a0",
"xywh": "[0,0,0,0]",
"xywh": "[0,0,460,345]",
"lockedBySelf": false,
"rotate": 0,
"size": 45801,