SVG support for html2canvas

1k views Asked by At

I was trying to capture a screenshot of a div containing svg elemens along with other elements using html2canvas. I found 2 versions of html2canvas

Version 1

Version 2

Whats the difference between them, and does any of hem support svg elements and cross browser functionality (prefereably IE, Chrome and Firefox)

1

There are 1 answers

0
kevin On

buddy, u should import

<script src="html2canvas.js"></script> 

,but not necessary

<script src="html2canvas.svg.js"></script>

version1 is rely on the vesion 2