Giter VIP home page Giter VIP logo

Comments (7)

MikeWilliams-UK avatar MikeWilliams-UK commented on June 4, 2024

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

from version3-2.

MikeWilliams-UK avatar MikeWilliams-UK commented on June 4, 2024

@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?

from version3-2.

deadlyvices avatar deadlyvices commented on June 4, 2024

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?

from version3-2.

tomyan112 avatar tomyan112 commented on June 4, 2024

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.

from version3-2.

MikeWilliams-UK avatar MikeWilliams-UK commented on June 4, 2024

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.

from version3-2.

deadlyvices avatar deadlyvices commented on June 4, 2024

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

from version3-2.

MikeWilliams-UK avatar MikeWilliams-UK commented on June 4, 2024

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.

from version3-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.