Explain image style in testpage
This commit is contained in:
parent
9c130838dc
commit
2bda1f3e78
2 changed files with 19 additions and 19 deletions
|
|
@ -30,9 +30,9 @@ function loadImage(base64Image) {
|
|||
let svgWidth = this.width;
|
||||
let svgHeight = this.height;
|
||||
|
||||
if (this.width > 1000) {
|
||||
svgWidth = 1000;
|
||||
svgHeight = 1000 * this.height / this.width;
|
||||
if (this.height > 1000) {
|
||||
svgHeight = 1000;
|
||||
svgWidth = 1000 * this.width / this.height;
|
||||
}
|
||||
|
||||
svg.setAttribute("height", svgHeight);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue