Constructor
new CanvasRenderer(param)
The renderer to draw on canvas.
Parameters:
Name | Type | Description |
---|---|---|
param |
Object | The initial parameters. |
- Source:
Methods
renderFromHTML(html, options) → {Promise}
Render from the html text.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
html |
String | The string of DOM Node object to render. | |||||||||
options |
Object | Rendering options
Properties
|
- Source:
Returns:
A promise that is fulfilled with a canvas object.
- Type
- Promise