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

Allow change of length in bond properties #9

Open
tomyan112 opened this issue Apr 9, 2020 · 7 comments
Open

Allow change of length in bond properties #9

tomyan112 opened this issue Apr 9, 2020 · 7 comments
Labels
Feature Request New feature requested

Comments

@tomyan112
Copy link

tomyan112 commented Apr 9, 2020

Describe the solution you'd like

image

Describe alternatives you've considered

I understand that we can drag the bond, we can't do it very precisely.


Edited to put this irrelevant information to the bottom.

In current version, Chem4Word 2020 Beta 8, the default bond length for 1 letter elements (e.g. C,O,N) and 2 letter elements are different (e.g. Ru)
image
image

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Apr 9, 2020

During the drawing process, the atom label characters are positioned first such that the area occupied by the string of each of its characters (excluding any implicit H or charge characters) is centred on the atom's position.
The bond lines are then drawn such that they do not enter the area of the atom character's strings thus they may be rendered to different lengths, but rest assured that the bond lengths are the same for all bonds.

In the diagram below the atom's position is shown as a red dot and the bounding area of the elements characters is shown in orange. I hope this helps you to see why when the bonds are the same length that the rendered bond may be different.
The two bonds which are shown below both have a length of exactly 50.

image

@MikeWilliams-UK
Copy link
Contributor

@deadlyvices Can you think of what would cause the bond length snapping not set the length to 50 in case of the structure @tomyan112 has drawn?

@deadlyvices
Copy link
Contributor

No idea at all. You can drag the bond length precisely by holding down the Shift key when dragging an atom. Perhaps we should amend the adroner to give numerical length and angle feedback?

@tomyan112
Copy link
Author

During the drawing process, the atom label characters are positioned first such that the area occupied by the string of each of its characters (excluding any implicit H or charge characters) is centred on the atom's position.
The bond lines are then drawn such that they do not enter the area of the atom character's strings thus they may be rendered to different lengths, but rest assured that the bond lengths are the same for all bonds.

In the diagram below the atom's position is shown as a red dot and the bounding area of the elements characters is shown in orange. I hope this helps you to see why when the bonds are the same length that the rendered bond may be different.
The two bonds which are shown below both have a length of exactly 50.

image

It was actually a feature request for allowing typing the bond length like we can do with bond angle.
The bond length shown here is another molecule that I drawn, not the one shown in here, sorry for the confusion.

@MikeWilliams-UK
Copy link
Contributor

No idea at all. You can drag the bond length precisely by holding down the Shift key when dragging an atom. Perhaps we should amend the adorner to give numerical length and angle feedback?

@deadlyvices I think that adding an adorner with length and angle relative to screen north would be a very valuable addition.

@MikeWilliams-UK MikeWilliams-UK changed the title Allow custom value of length in bond properties Allow change of length in bond properties Apr 9, 2020
@deadlyvices
Copy link
Contributor

Or even just displaying the values in the status bar would be incredibly useful

@MikeWilliams-UK
Copy link
Contributor

Yes that would be useful, however

  • if at end of line easily be missed especially if it kept on shifting position
  • or might go off the end if the from was small

I prefer an adorner as the user's "focus" is on where the mouse cursor is.

@MikeWilliams-UK MikeWilliams-UK transferred this issue from Chem4Word/Version3-1 Feb 28, 2022
@MikeWilliams-UK MikeWilliams-UK transferred this issue from Chem4Word/Version3-2 Oct 8, 2024
@MikeWilliams-UK MikeWilliams-UK added the Feature Request New feature requested label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature requested
Development

No branches or pull requests

3 participants