Skip to content
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

Recaculating coordinates breaks rendering of stereo chem #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacktday
Copy link
Contributor

@jacktday jacktday commented Dec 8, 2024

When recalculating coordinates some of the stereo chem is not updated inside the mol. Setting prepareMolsBeforeDrawing seems to fix this.

This fixes issues #24 and #27

inside the mol. Setting prepareMolsBeforeDrawing seems to fix this
@EBjerrum
Copy link
Owner

EBjerrum commented Dec 9, 2024

Thanks. This fix is for the viewer only. Do you have a sense of what is wrong/needs updating on the edit mol object itself? The ideal is to let the depiction be reflecting the edit mol state as close as possible.

@jacktday
Copy link
Contributor Author

jacktday commented Dec 9, 2024

Inside the render logic it calls wedgeMolBonds which probably fixes the problem. The worrying part is we don’t know why it broke. Upstream probably needs some sort of fix. Unfortunately I can’t make heads or tails of their code. There’s way too much spaghetti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants