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

Other
4 stars 4 forks source link

Import channels settings through URL parameters #249

Closed ShrimpCryptid closed 1 month ago

ShrimpCryptid commented 2 months ago

Use Case

Preload certain settings per channel for sharing w/ default settings

Solution

?url=url1,url2&enabledChannels=[1,2]&c0=[...]&c3=[...]

Major URL parameters:

Also, all of the advanced render settings:

Alternatives

ShrimpCryptid commented 2 months ago

Minimum is to support:

ShrimpCryptid commented 2 months ago

TODO: Split into 2+ smaller tickets

ShrimpCryptid commented 2 months ago

Questions:

toloudis commented 2 months ago

IIRC, the regex in viewerchannelsetting is partially for the purpose of creating groupings of channels in the UI. (e.g. all channels starting with "SEG_" go under a section called "Segmentation") I don't think we need that for the url parameters if it adds complexity.

toloudis commented 2 months ago

For autoij, I'm not sure what you mean by second parameter. If we have a min and max for each channel ,then we have to make a decision about how "autoij" should be encoded in that. I was just thinking to keep it simple put autoij in either one or both and if it is found in either one, it could override. This is also an opportunity to consider the naming of autoij with respect to #80

toloudis commented 1 month ago

see also #252 for additional related functionality. Just linking to this issue.