Added the padding for viewBox.autoRange() calls, and resetZoom now works for SpectrumGroups, and if you have padding then you get more space for the initial spectrumGroups drop than if padding=0, but even with padding=0 there seems to be some padding (at least for me). So presumably viewBox is taking a liberal attitude with this initial autoRange() call and deciding what the range should be in both x and y and the padding just increases the x padding.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Added the padding for viewBox.autoRange() calls, and resetZoom now works for SpectrumGroups, and if you have padding then you get more space for the initial spectrumGroups drop than if padding=0, but even with padding=0 there seems to be some padding (at least for me). So presumably viewBox is taking a liberal attitude with this initial autoRange() call and deciding what the range should be in both x and y and the padding just increases the x padding.