Closed ninjha01 closed 1 month ago
Deliverable: story per perf fix
type
field. We should instead lay them out in an efficient way that avoids overlaps.stackAnnsByType
to utilsuseLinearSelectionRect
hooksgenerateRandomSequences
to generateRandomAlignedSequences
This issue will track the improvements that need to be made to the LinearViewer component.
1) Mismatches the way mismatches are rendered.
Right now we render an element for every mismatch between the first sequence, and all other sequences. This is predictably inefficient and slow on any sequences of non trivial length. We should first have a prop
hideMismatches?: boolean
that opts out of rendering mismatches.Secondly, we should render mismatches more efficiently. Some ideas I've had, but open to others: 1) collapse adjacent mismatches into a mismatch range, and render that instead 2) Use an element with a linear gradient based on where mismatches are