To install as a dependency for your own application: bashnpm install scratch-svg-rendererTo set up a development environment to edit scratch-svg-renderer yourself: bashgit clone scratch-svg-renderernpm install How to include in a Node.js App This requires you to have Git and Node.js installed. Handles some of the quirks with Scratch 2.0 SVGs, which sometimes misreport their width, height and view box. Imports an SVG string to a DOM element or an HTML canvas. A class built for importing SVGs into Scratch.
0 Comments
Leave a Reply. |