allen-cell-animated / website-3d-cell-viewer

Other
5 stars 4 forks source link

set initial slice or ROI #252

Open toloudis opened 4 months ago

toloudis commented 4 months ago

Use Case

We currently allow an initial view mode using view=3D, Z, Y, or X. When choosing view=Z for example, it is often also important to be able to select the Z slice. The same would be true for all the other views. In 3D this means selecting ROI ranges for x,y,and z.

This will also be an important part of shareable links.

Solution

Develop a url schema for setting these values and logic to validate them. For example, setting a single X slice is invalid when the view is Z, but entirely appropriate for view=X.