vibesketch.render.scene¶
SVG from a KET scene, retaining each occurrence and its drawing coordinates.
One KET bond-length unit is the preset bond length in print points. KET’s y axis points up; SVG’s points down. The transform is shared by molecules and annotations, independent of the normalized reaction/species catalogue.
Functions
|
Render a drawing, or return |
- vibesketch.render.scene.scene_svg(canvas, preset=Preset(name='acs-1996', bond=14.4, line=0.6, size=10, spacing=0.18, bold=2.0, hash_spacing=2.5, margin=0.95, font='Arial, Helvetica, sans-serif'))[source]¶
Render a drawing, or return
Nonefor an empty canvas.Unsupported chemistry or arrow modes are refused rather than omitted. Text is escaped plain text in the publication font, with line breaks kept.