# Class: MultiScan

## MultiScan()

#### new MultiScan()

This class contains functions to load data of all the spectrums ms1, ms2 with multiple scans. This calss generates navigation elements to navigate between different spectrums

Source:
  - multiscan.js, line 7

### Methods

#### createMonoMassNavEements(scanidList, id)

Function to Create Navigation buttons for MonoMass Spectrum for multiple spec Id information

##### Parameters:

Name | Type | Description
--- | --- | ---
`scanidList` | Array | List with Scan Ids
`id` | String | Contians SVG tag id on which the monomass spectrum graph needs to be drawn

Source:
  - multiscan.js, line 159

#### createMs1NavEements(element, id)

Function to Create Navigation buttons for Ms1 Spectrum with spec Id information

##### Parameters:

Name | Type | Description
--- | --- | ---
`element` | Array | Contains Scan Id List
`id` | String | Contains SVG id of the MS1 spectrum to be drawn

Source:
  - multiscan.js, line 142

#### createMs2NavEements(scanidList, id)

Function to Create Navigation buttons to navigate between spectrums

##### Parameters:

Name | Type | Description
--- | --- | ---
`scanidList` | Array | Contains scan Id List
`id` | String | Contains Id of the avg on which spectrum to be drawn

Source:
  - multiscan.js, line 90

#### getUniqueScanIdList(MultiScanList)

Function to get unique list of scan Ids

##### Parameters:

Name | Type | Description
--- | --- | ---
`MultiScanList` | Array | Contains list of scan ids

Source:
  - multiscan.js, line 75

#### promiseLoadDataJS(specidList, scanIdList, ms1_ms2_json)

- This function waits till all the data of multiple spectrums are loaded and then generates navigation tabs to switch between spectrums

##### Parameters:

Name | Type | Description
--- | --- | ---
`specidList` | Array | Contains all the spec ids
`scanIdList` | Array | Contains all the scan ids
`ms1_ms2_json` | String | Contains the folder name

Source:
  - multiscan.js, line 17