You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
This is a proof of concept for part of the snap to functionality we will be releasing in the near future, concerning only bond angles.
Requirements
Only the center of the monomer is considered (x and y coordinates).
Standard radius is the distance between the centers of two connected monomers when they are horizontally/vertically layouted (1.5 Å).
The monomer can snap to an angle of n*30 degrees in relation to another monomer.
The magnetic area for snapping is 20 pixels perpendicular to the radial line (black lines bellow), or to the nearest radial line if the 20px areas overlap.
The 20px value should be able to be easily changed for POC purposes.
As soon as the center of the monomer enters the magnetic area of a radial line they should be snapped to the perpendicular position on the radial line.
A monomer can move on the line as long as the center of the monomer would not exit the magnetic area, and as long as the line is not 20px away from the circle with the standard radius (red circle bellow).
If the center of the monomer enters the magnetic area 20px away form the circle with the standard radius, the monomer should snap to exactly the intersection of the radial line and the circle with the standard radius.
If the user holds down the ctrl key while moving the monomer, all snapping functionality should be disabled.
UX
The text was updated successfully, but these errors were encountered:
Background
This is a proof of concept for part of the snap to functionality we will be releasing in the near future, concerning only bond angles.
Requirements
Standard radius
is the distance between the centers of two connected monomers when they are horizontally/vertically layouted (1.5 Å).The monomer can snap to an angle of n*30 degrees in relation to another monomer.
The magnetic area for snapping is 20 pixels perpendicular to the radial line (black lines bellow), or to the nearest radial line if the 20px areas overlap.
UX
The text was updated successfully, but these errors were encountered: