3Dmol.js
3Dmol.js copied to clipboard
Smarter ZoomTo
Currently zoomTo is agnostic to the visual radius of the atoms and uses a fixed minimum distance to ensure small molecules are viewable. A better approach would be to calculate the maximum visual radius of the outlier atoms. This requires exposing wrapping getRadiusFromStyle in a viewer accessible function and then updating all the tests that will now be more zoomed in.