Creates annotations for jsgraph that allows to display the result of peak picking

getAnnotations(peaks: Array<Peak>, options: object): any
Parameters
peaks (Array<Peak>)
options (object = {})
Name Description
options.fillColor string (default 'green')
options.strokeColor string (default 'red')
options.showKind string (default true) Display the kind, 'm', 'w', 'S'
options.showAssignment string (default true) Display the assignment
options.createFct Function? (annotation, peak) => {}: callback allowing to add properties
Returns
any: array
Peak

Type: object

Properties
wavenumber (number)
transmittance (number)
intensity (number)
kind (number)
assignment (number)

We integrate the spectra from 'from' to 'to' and create a matrix

surfaceAnalysis(analysis: object, options: object): object
Parameters
analysis (object)
options (object = {})
Name Description
options.from number? from Raman shift
options.to number? to Raman shift
options.rescale object (default {})
options.rescale.min number?
options.rescale.max number?
options.normalization object?
Returns
object: