This custom element displays the sequence in the selected region if the zoom level allows it, otherwise it displays the axis legend of the selected region. As it inherits from , it supports highlighting.
<protvista-sequence length="456" />
const protvistaSequence = document.querySelectAll('#my-protvista-sequence-id');
protvistaSequence.sequence = proteinSequence;
<protvista-sequence length="456" sequence="RFQAEGSLKK..." />
The sequence to display
The protein or nucleic acid sequence length.
The number of ticks in the displayed sequence.