Constructor
new AssetRenderer(config, pageRefs)
Parameters:
Name | Type | Description |
---|---|---|
config | object | Configuration object |
pageRefs | object | Page references |
Methods
renderGraph(graph) → {Promise.<string>}
Renders a graph (typically to png)
Parameters:
Name | Type | Description |
---|---|---|
graph | Graph |
Returns:
the file where the graph was rendered to
- Type:
- Promise.<string>
renderPage(page) → {LocalPage}
Renders a page to HTML + attachments
Parameters:
Name | Type | Description |
---|---|---|
page | LocalPage | The page to render markup for |
Returns:
The page
rendered
- Type:
- LocalPage