sgsinclair / VoyantServer

GNU General Public License v3.0
98 stars 33 forks source link

Skinning Voyant #11

Open johnlaudun opened 7 years ago

johnlaudun commented 7 years ago

In the documentation for Voyant, the idea that there is a default "skin" with 5 particular panes, or windows, is introduced, but nowhere can I find documentation on customizing the skin. If you click in the topmost bar and choose a different tool, then you get a pane that occupies the entirety of the browser window. Subsequent clicks will, however, return you to the 5-pane view, whether that is the preferred view or not. What am I missing?

sgsinclair commented 7 years ago

Sorry this slipped between the cracks!

You're right that the skinning mechanism is only partly baked, we're caught in limbo between the system used in V1 and developing and documenting a replacement in V2. In principle, when you switch between tabs and then export a URL for the full interface (from the top blue bar), you should see the selected tools. That sort of works, but the corpus isn't loading for some reason that I need to track down (https://github.com/sgsinclair/Voyant/issues/324): http://voyant-tools.org/?panels=corpusterms,bubbles,documentterms,documents,bubblelines&corpus=austen

There is an unfinished and undocumented skin builder, for instance: http://voyant-tools.org/builder/?corpus=austen It doesn't really allow proportions to be handled well, but in the simplest of cases you can do something like this: http://voyant-tools.org/?corpus=austen&view=customset&tableLayout=cirrus,summary It should handle a variable number of tools as arguments for the layout.

I hesitate to recommend this if a URL needs to persist, but just for experimenting it may help.