fix: aspect ratio of distorted images are not preserved in SVG exports (#8061)

This commit is contained in:
zsviczian 2024-09-12 14:11:08 +02:00 committed by GitHub
parent 60e3801691
commit caf2db934c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -421,6 +421,7 @@ const renderElementToSvg = (
image.setAttribute("width", "100%"); image.setAttribute("width", "100%");
image.setAttribute("height", "100%"); image.setAttribute("height", "100%");
image.setAttribute("href", fileData.dataURL); image.setAttribute("href", fileData.dataURL);
image.setAttribute("preserveAspectRatio", "none");
symbol.appendChild(image); symbol.appendChild(image);

File diff suppressed because one or more lines are too long