improving image quality and size

This commit is contained in:
Navan Chauhan 2021-03-14 15:18:27 +05:30
parent 849fe34689
commit a989f93d7e
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ function draw_me_like_one_of_your_french_girls(mol){
var dest = document.getElementById("draw-output");
var svg = mol.get_svg();
dest.outerHTML = "<div id='drawing-1'>" + svg + "</div>";
console.log(svg)
document.getElementById('drawing-1').children[0].setAttribute("height", "100%");
document.getElementById('drawing-1').children[0].setAttribute("width", "100%");
}