New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bond Missing on Phytomedicine document : drawing option #7336
Comments
Please provide the input that was used to demonstrate the problem so that we can reproduce it |
@greglandrum Pl refer the above code |
@urekam712 this is happening because For what it's worth: "atomLabelFontFace" is not a valid option, so that will be ignored. |
@DavidACosgrove It's maybe worth figuring out why this happens. |
@greglandrum yep, that does look odd. I’ll take a look in the next few days. |
In this drawing option, used additionalAtomLabelPadding":1.6 but seems good |
Hi @greglandrum, @urekam712. I've had a look at this, and it seems to be behaving as intended. Whether that is sensible or not is a matter for debate that we can have. As Greg has observed, the problem is that the value for additonalAtomLabelPadding is very large, such that it produces padding round the character that is on a par with the bond length as drawn. The N-c bond is bond 5, the N-C bond is 6. I have produced an SVG just using additonalAtomLabelPadding = 1.25 and addBondIndices = true. Looking at it, there are the lines:
Showing that the bonds are being drawn, but are very short. Commenting out the commands in the SVG for the other bonds and scaling the image up gives So that's why you are seeing what you see. What to do about it is a different matter, and I am open to suggestions. |
Describe the bug
Bond is missing while using the drawing option : { "fixedBondLength": 20 , "bondLineWidth": 1, "additionalAtomLabelPadding": 1.25 , "multipleBondOffset": 0.08, "atomLabelFontFace": null, "atomLabelFontSize": 12 , "legendFontSize": 12 }
To Reproduce
issue is because of using "additionalAtomLabelPadding": 1.25
Expected behavior
In Chem draw, there is no bond missing on using the Phytomedicine document the same drawing option is used
https://chem.beloit.edu/classes/programs/ChemDraw_21_manual.pdf
refer page no. 62
Screenshots
output of the issue is
Configuration (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: