Refine object constancy, handling of unfound genes, subpart hover text #323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This lets users more easily visually track exons when splicing. It also fixes an edge-case bug in the related genes kit.
Previously, the exon splice animation completed in 250 ms. That's a bit too fast to track which transcript subparts end up where after splicing exons in or out. Now, the animation is slowed down 3x, to 750 ms, making it realistic to follow moving parts with your eyes.
Here's how it looks -- old low constancy in first scene, new high constancy in second scene:
Better_object_constancy_2022-11-10.mp4
Also, the "Related genes" example now has better handling of unfound genes. Before, search a known gene (e.g. "ACE2") after an unknown gene ("asdf") threw a blocking error. It required refreshing the page to fix; not good. Now, searching known after unknown seamlessly returns expected results for the known searched gene.
Finally, subpart hover text was also trimmed for slightly less visual noise.