eternagame / EternaJS

Eterna game/RNA design interface
Other
12 stars 10 forks source link

Support highlighting misfolding regions in puzzlemaker #734

Closed luxaritas closed 8 months ago

luxaritas commented 8 months ago

Summary

Clicking the structure constraint thumbnail in puzzlemaker highlights incorrectly-folding regions of the puzzle, just like in the puzzle solver

Implementation Notes

I've opted to move the highlight handling into the base class. This required moving _poseState into the base class as well. More general improvements to what the base class handles needs larger improvements, but this change seemed reasonably nondisruptive

Testing

Verified by hand click-to-highlight still works in puzzle solver as well as verifying in editor

Related Issues

Resolves #461