GNOme browser
Theme
Both GNOme viewer support JSON encoded theme. Default theme can be located here.
Custom options:
Image and Icon style: CFG or SNFG
Linked External resouces: display name, url and glycan set.
Supporting data
GNOme Browser Data
It is a minimal version of GNOme data encoded by JSON, only used to support GNOme viewer.
3rd Party JavaScript Dependencies
Vis.js
jQuery
Easy Installation
- Include 2 JavaScript libraries and the driving scripts (gnome.js) in the head section of HTML.
- Prepare a div in the page with explicit ID.
- Initiate a GNOmeBrowser instance, and provide ID of div container to the instance.
- Call Init method with supported parameters.
Full Screen mode:
If the whole html page is prepared for the GNOme browser, it is best to let the
GNOmeDisplayPresetFullScreen class to control resize, URL parameter, HTML title and other things.
See example usage: GNOme Topology Browser, GNOme Composition Browser
Widget mode:
- Use a variety of set method to change widget width, height, Image source, icon style and other things.
- Use API to get the current status of the widget.
- Use API to change the current status.
- Use setfocus to focus on a few things.
- Use RefreshUI to refresh the widget to show the changes.
On-demand subsumption alignment
How to deploy your own subsumption backend