UC-Davis-molecular-computing / scadnano-python-package

Python scripting library for generating designs readable by scadnano.
https://scadnano.org
MIT License
13 stars 7 forks source link

change length of modification "connector" #212

Closed dave-doty closed 2 years ago

dave-doty commented 2 years ago

This is a field stored in each Modification to implement this issue in the web interface: https://github.com/UC-Davis-molecular-computing/scadnano/issues/743

dave-doty commented 2 years ago

Release notes

Change modification connector length

This mainly affects how modifications are viewed in the web interface.

You can now change the length of the modification connector. The connector is drawn like a hydrocarbon chain with a default of 4 links:

image

The base class Modification now has a connector_length field: https://scadnano-python-package.readthedocs.io/en/latest/#scadnano.Modification.connector_length. Setting it will modify the displayed connector length in the web interface.

This is especially helpful to display modifications close to each other on a helix without their text overlapping:

image