Skip to content

Conversation

johnmay
Copy link
Contributor

@johnmay johnmay commented Sep 29, 2025

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

@johnmay johnmay force-pushed the 26Sep branch 2 times, most recently from 8c7e40d to 53f2121 Compare October 2, 2025 09:06
@johnmay
Copy link
Contributor Author

johnmay commented Oct 2, 2025

Final commit now depends on CDK cdk/cdk#1235 since I needed to move some InChIReaders.

@johnmay
Copy link
Contributor Author

johnmay commented Oct 4, 2025

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.

@johnmay
Copy link
Contributor Author

johnmay commented Oct 15, 2025

@egonw are you able to take a look at this when you have time - thanks

@egonw
Copy link
Member

egonw commented Oct 15, 2025

Sorry, missed this one. Thanks for the ping. I will check it today

@egonw egonw merged commit de023b6 into master Oct 15, 2025
2 checks passed
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