I need to be able to convert UI grid or a div that contains it into svg. So far I have used library called html2canvas, pass it a div id and export it into a canvas. Now I'm stuck as there is no way I can find that would allow me to take that generated canvas and export to svg. Is there any way I can achieve that ? Or maybe my approach is wrong ?
public hello =()=>{
//noinspection TypeScriptUnresolvedFunction
let element = document.getElementById('container');
html2canvas(element).then(function(canvas) {
});
};