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

@@ -3749,6 +3749,7 @@ __metadata:
"@types/lodash.clonedeep": "npm:^4.5.9"
"@types/lodash.mergewith": "npm:^4"
"@types/mdast": "npm:^4.0.4"
dompurify: "npm:^3.2.4"
fractional-indexing: "npm:^3.2.0"
lit: "npm:^3.2.0"
lodash.clonedeep: "npm:^4.5.0"
@@ -3896,7 +3897,7 @@ __metadata:
"@lit/context": "npm:^1.1.2"
"@preact/signals-core": "npm:^1.8.0"
"@types/hast": "npm:^3.0.4"
dompurify: "npm:^3.1.6"
dompurify: "npm:^3.2.4"
fractional-indexing: "npm:^3.2.0"
lib0: "npm:^0.2.97"
lit: "npm:^3.2.0"
@@ -3954,7 +3955,7 @@ __metadata:
"@vanilla-extract/css": "npm:^1.17.0"
"@vanilla-extract/vite-plugin": "npm:^5.0.0"
date-fns: "npm:^4.0.0"
dompurify: "npm:^3.1.6"
dompurify: "npm:^3.2.4"
fflate: "npm:^0.8.2"
file-type: "npm:^20.0.0"
fractional-indexing: "npm:^3.2.0"
@@ -20043,7 +20044,7 @@ __metadata:
languageName: node
linkType: hard
"dompurify@npm:^3.1.6":
"dompurify@npm:^3.2.4":
version: 3.2.4
resolution: "dompurify@npm:3.2.4"
dependencies: