How to use the html-to-image.toBlob function in html-to-image

To help you get started, we’ve selected a few html-to-image examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github county-of-simcoe-gis / SimcoeCountyWebViewer / src / sidebar / MenuButton.jsx View on Github external
window.map.once("rendercomplete", function() {
      htmlToImage.toBlob(window.map.getTargetElement()).then(function(blob) {
        window.saveAs(blob, "map.png");
      });
    });

html-to-image

Generates an image from a DOM node using HTML5 canvas and SVG.

MIT
Latest version published 2 years ago

Package Health Score

77 / 100
Full package analysis