renderers/asset-renderer~ AssetRenderer

A Renderer for both pages (to html) and graphs (to images)

Constructor

new AssetRenderer(config, pageRefs)

Parameters:
NameTypeDescription
configobject

Configuration object

pageRefsobject

Page references

Methods

renderGraph(graph) → {Promise.<string>}

Renders a graph (typically to png)

Parameters:
NameTypeDescription
graphGraph
Returns:

the file where the graph was rendered to

Type: 
Promise.<string>

renderPage(page) → {LocalPage}

Renders a page to HTML + attachments

Parameters:
NameTypeDescription
pageLocalPage

The page to render markup for

Returns:

The page rendered

Type: 
LocalPage