After my positive experience with Glance on my recent project, and all the help from the discourse forum, I thought I might make a couple more requests that I think will make Glance better.
Would it be possible to default to having the objects in the menu initially be “closed” ie. just list the name from the pipeline, and then if I want to access all the possible changes I click on the pointer to open up the details. Thus for new users, they can easily see that there are elements that they can turn off/on, and then the pointer is there to provide more options. (I think this should be the default behavior, but another option is to explain how I might be able to change this setting in the VTKJS file, I’ll do it myself.)
I think it would be handy to be able to have the (2D) Text source translate to the Glance view on the web. I’d like to put a title that is fixed on the screen, and/or some instructions that can then be turned off with the eye-icon in the menu (as would be explained in the instructions!).
*.vtkjs format does not contain any UI specific information. But we could envision some meta section that could be user-defined and used for such purpose. It might be tricky to author such field though…
Update: there is now an option in Glance (under Global) to default collapse the objects in the datasets panel. This will save the option in your browser. Additionally, there’s a programmatic API to set this setting by default, which means that the ParaView Glance exporter can now add this as an export option.
Hi @Forrest_Li, just wondering how to implement the functionality in the ParaView Glance exporter to open ParaView Glance with all the datasets collapsed?
At the moment I’m adding JS to the ParaView Glance html file <script>glanceInstance.showApp()</script> to start in the app instead of the landing page, and was keen to also have the datasets all collapsed in the left panel if i also embed a whole group of vtkjs files (base64 encoded) using Glance.importBase64Dataset()
Does collapsing the datasets involve adding something like: