dom-to-image
Version:
Generates an image from a DOM node using HTML5 canvas and SVG
8 lines (7 loc) • 369 B
HTML
<div id="root">
<svg xmlns="http://www.w3.org/1999/xhtml" height="94px" width="94px">
<path d="M10 10 H 90 V 90 H 10 L 10 10" transform="translate(1,1)" pointer-events="visibleStroke" version="1.1"
xmlns="http://www.w3.org/1999/xhtml" fill="none" stroke="#456" style="" stroke-width="4" shape-rendering="crispEdges"
/>
</svg>
</div>