informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Mutli z slider #89

Closed rastogi-bhavya closed 3 years ago

rastogi-bhavya commented 3 years ago

This is PR is for #82 & #83

A slider input has been introduced for changing z indexes.

When the thumb of the slider is moved a tooltip appears on top of it, showing the the z index based on the current position of the thumb. When the user moves the position of the thumb to a different position, that z index associated with that position is shown (by using the fetchByIndex logic)

The left and right side of the slider contain 2 numbers which show the min and max range of the slider.

On the extreme ends we have previous and next button. Clicking on the previous button changes the focus of the main z plane list to a previous index. If the focus is on the left most image of the list, then fetchByIndex is called on the previous index, which causes the content of the z plane list to change, and the new focused value would be center aligned. The next button click functions in the same way.