reymond-group / smilesDrawer

A small, highly performant JavaScript component for parsing and drawing SMILES strings. Released under the MIT license.
https://smilesdrawer.rocks
MIT License
437 stars 70 forks source link

SVG output #158

Open TFMvdBroek opened 1 year ago

TFMvdBroek commented 1 year ago

The doc of v1 smilesDrawer said we could get the SVG instead of the canvas by initializing differently. let sd = new SmilesDrawer.SvgDrawer(options);

In v2 it seems we need to use SmiDrawer which does not work with SvgDrawer. How can I get the SVG instead of a canvas with v2?

Thanks, Tom

rccc commented 1 year ago

Hello,

V2 add some confusions.

Doc is not clear if using node package.

apply() does not works anymore.