UC-Davis-molecular-computing / scadnano

Web application for designing DNA structures such as DNA origami.
https://scadnano.org
MIT License
21 stars 13 forks source link

display major tick widths properly when `Helix.min_offset` is not 0 #898

Open dave-doty opened 11 months ago

dave-doty commented 11 months ago

Major tick widths should be aligned in the center between major ticks:

image

However, if Helix.min_offset is not 0, they may be shifted erroneously:

image

dave-doty commented 10 months ago

There's another bug, related to this, having to do with parts of the code dealing with min offsets and z-coordinates not being treated consistently.

If you are in the none Grid, and set the z-coordinate of an individual helix to be nonzero, then the whole helix (the circle and the lines defining Helix offsets) should move left (for negative) or right (for positive) in the main view. However, they currently don't move at all.

However, keeping the z-coordinate 0 and changing the min_offset to be something else should not affect where the Helix circles are drawn, only the lines.