I'd like to export a div to a PNG or JPG image. Basically the div has an appended a two.js object. Two.js draws with SVG which means I can't use those canvas toDataURL
alternatives I guess.
The two.js instance is a 400 by 400px box including a basic grid (horizontal & vertical lines) made using two.makeLine(x1,y1,x2,y2)
.
JavaScript should return a generated image/screenshot of that div or two.js object if possible.