partridgejiang / Kekule.js

A Javascript cheminformatics toolkit.
http://partridgejiang.github.io/Kekule.js
MIT License
248 stars 61 forks source link

SVG support #226

Open michelmar opened 3 years ago

michelmar commented 3 years ago

Any plan in supporting SVG output in the near future? _

partridgejiang commented 3 years ago

Hi @michelmar, the SVG rendering is already implemented within the Kekule.Render.RaphaelRendererBridge. In modern browsers, the CanvasRendererBridge will be used by default for performance, but you can manually switch to the Raphael one and export the SVG with some codes. Please check the following demo page: http://partridgejiang.github.io/Kekule.js/demos/items/chemEditor/exportSVG.html