This library entry point being the msmultiview
method. It returns nothing but initializes massbank multiview related all components.
Plugin Components:
- Multiview windows manager
- Charts zoomer
- Mass spectra charts & snapshots
This is the entry method name of this plugin.
Type: String, Multiple Strings or Array
Required
Plugin requires at least one or more mass spectra response URL(s) or Page names(s). Page name(s) only enough for WIKI pages of massbank.nig.ac.jp URL(s).
Type: Object
Optional
"Options" is an optional parameter and it's properties are grouped into few categories according to plugin components. Each category contains configuration properties specified for their components.
Options are grouped under few categories which helps to customize multiview plugin. All categories are optional.
var options = {
/**
* General Parameters. [Optional]
*/
param: {
chart: { // chart related options },
apiUrlPrefix: <URL>, // parent URL for data response
},
/**
* Window Manager. [Optional]
*/
windowsmanager: { // window manager related options },
/**
* Chart Zoomer. [Optional]
*/
chartszoomer: { // chart zoomer related options },
/**
* Highcharts. [Optional]
*/
highcharts: { // Highcharts related options },
/**
* Highcharts image. [Optional]
*/
highchartsImage: { // Highcharts image related options }
}
Key | Value | Description |
---|---|---|
apiUrlPrefix | URL Prefix String | Parent URL for data response |
chart.yaxis.label | String | Title of y-axis |
chart.xaxis.label | String | Title of x-axis |
chart.intensitythreshold | Integer | Threshold value of y-axis. Upper values only shows when chart onload. |
chart.height | Integer | Height of chart view |
This controller facilitates many features as follow:
- Order mass spectra information of active window
- Compare mass spectra information of active window with other windows/tabs.
- Import mass spectra information from other windows/tabs to active window. In this situation,
mv.event.chart.load.success
method should re-implement to satisfy each responses according to the necessity. - Remove mass spectra information from active window.
- Error messaging for invalid data URLs.
Key | Value | Description |
---|---|---|
enabled | true/false | show or hide window manager element |
This is a zooming controller of chart views. It supports to zoom-in [+], zoom-out [-] and zoom-default [1:1] displaying charts.
Key | Value | Description |
---|---|---|
enabled | true/false | show or hide chart zoomer element |
Charts and snapshoots are generated by Highcharts library. Their customization could manage according to the information of API.
Description |
---|
Refer the Highcharts API Reference |
Description |
---|
Refer the Highcharts API Reference |