How to use
yarn add @svg-drawing/core# or# npm i svg-drawing
Example code is here
This example renders the drawing area.
const drawel = document// Drawing area will be resized to fit the rendering areaeldocumentbodyel
const draw = el// change parameter. There are other changeable parameters like fill, close, curve, etc.drawpenColor = '#00b'drawpenWidth = 10// drawing deactivatedraw// drawing reactivatedraw// drawing all cleardrawclear// undo drawingdraw// Download image. Also available in SvgAnimation, Rendererdrawdrawdraw// Load svg data. Only the path element.// SVG exported by this library can be read.drawdraw
Here is an example for Html only.