Conversation
johnmay
force-pushed
the
26Sep
branch
2 times, most recently
from
October 2, 2025 09:06
8c7e40d to
53f2121
Compare
Contributor
Author
|
Final commit now depends on CDK cdk/cdk#1235 since I needed to move some InChIReaders. |
…/*) for pseudoatoms.
… ring/chain of that atom/bond.
… one other atom we snap the angles.
…hich provides modifiers. There was some strange behaviour with the selection module which is difficult to reproduce.
…arbon unless we are adding a single atom.
…nal or useful. H should always be shown - there is a preference to show it on all/terminal caronds in the settings.
… I need to rewrite the CDK CML parts to make that smaller.
Contributor
Author
|
This is good to go now the InChI reader movement is merged in. I am tempted to rewrite the CMLWriter in CDK or at least provide an alternative as it would nearly half the size of the JChemPaint application. |
Contributor
Author
|
@egonw are you able to take a look at this when you have time - thanks |
Member
|
Sorry, missed this one. Thanks for the ping. I will check it today |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few odd fixes here and there, most of them are self explanatory (e.g. default H count for pseudo atoms and atom color). The slightly tricky one and need a new API point (moveBy didn't have enough info passed in) is that we can now snap and already placed atom to fixed increments.
I added this already to newly placed atoms and if you select the bond and rotate it. Now if you just pick up a single atom it does it as well. As I show later in the video you can hold "alt" to get the "freeform" movement if needed. I did also experiment with also allowing the length to change and snapping to fixed increments but it didn't seem to flow correctly so took it out.
Screen.Recording.2025-09-29.at.10.01.02.mov
All the other cool thing is alt+space will select the ring/chain under the cursor. See below how I can quickly now grab the hold ring system and rotate it as needed.
Screen.Recording.2025-09-29.at.10.06.50.mov