Constructor
new BaseSdk(baseURL)
Parameters:
Name | Type | Description |
---|---|---|
baseURL | string | The baseurl of the service |
- Source
Members
supportedTypes :Array.<string>
Supported graph types
Type:
- Array.<string>
- Source
Methods
fileCheck(file)
Check if file exists
Parameters:
Name | Type | Description |
---|---|---|
file | string | The path to a file |
- Source
(abstract) request(file, type)
Creates the http request that renders a graph to image Should be implemented by subclasses
Parameters:
Name | Type | Description |
---|---|---|
file | string | The path to a file |
type | string | Graph type |
- Source
(async) toPng(param0) → {Promise.<string>}
Renders a graph to png image
Parameters:
Name | Type | Description |
---|---|---|
param0 | Graph | The graph to render as png |
- Source
Returns:
The path to the image created
- Type:
- Promise.<string>