refactor: upgrade volar
This commit is contained in:
parent
fbf49368c1
commit
171f0ec857
5 changed files with 141 additions and 117 deletions
|
@ -171,7 +171,7 @@ export function useUploadMediaAttachment(draftRef: Ref<Draft>) {
|
|||
img.src = url
|
||||
})
|
||||
|
||||
function resizeImage(img: CanvasImageSource, type = 'image/png'): Promise<Blob | null> {
|
||||
function resizeImage(img: HTMLImageElement, type = 'image/png'): Promise<Blob | null> {
|
||||
const { width, height } = img
|
||||
|
||||
const aspectRatio = (width as number) / (height as number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue