Open MurhafSousli opened 5 months ago
The onCopy
function can transfer svg dom string (fetched from outerHTML() of SVGSVGElement
) to img/png blob object in clipboard. Please ignore the UI code irrelated to this package. Feel free to follow-up if there's something unclear.
Also canvas renderer provides more flexibility. Ref: https://github.com/reymond-group/smilesDrawer/issues/89
I want to implement a download button next to the smiles, I use SVG to render the smiles. but I am wondering if I can be able to download an image format like PNG of the smiles
Should I use an
img
element, an inline data or BLOB that can be used to make the download?