Closed bylethviva closed 2 years ago
If I'm not mistaken, it's the suppressChiralText
option: https://cheminfo.github.io/openchemlib-js/interfaces/IMoleculeToSVGOptions.html#suppressChiralText
On the page that you linked from cheminfo, we use the following options:
const defaultOpenChemLibStructureOptions = {
suppressChiralText: true,
suppressESR: true,
suppressCIPParity: true,
noStereoProblem: true,
};
@targos thank you so much! That was exactly what I needed.
When I update the
SVG.html
example to generate a SVG from a SMILES code, I end up getting a text field ofunknown chirality
added to the SVG. How can I get the SVG without the 'unknown chirality' in there? I can remove it from the SVG using some string replacement, but I'd expect it to not have that in the first place. I provided the SMILES code and the snippet of code that I used to generate the SVG down below.If I go to this page and input the same SMILES code, it outputs the image as expected.
Is there a better place to ask questions (email, google group, Discord, etc) about this library instead of opening issues? If there was a
Discussions
section for this repo, I'd ask there instead.SVG generated from canonical SMILES code:
CN1C2=CC=CC=C2C3=C4C(=C5C6=C(C=CC(=C6)OC)N(C5=C31)CC(CN(C)C)O)C(=O)NC4=O