DrawDOM
methodsConverts the given DOM element to a Drawing API scene.
The operation is asynchronous and returns a promise.
The promise will be resolved with the root Group of the scene.
Parameters:elementjQuery
optionsObject
options.forcePageBreakString
options.marginString|Object
options.templateString
Returns:Promise
The root DOM element to draw.
Configuration options
A flag indicating whether to produce clickable hyperlinks in the exported PDF file.
It's also possible to pass a CSS selector as argument. All matching links will be ignored.
An optional CSS selector that specifies the elements that should cause page breaks.
The paper size for automatic page breaking. The default "auto" means paper size is determined by content.
Supported values:
- A predefined size: "A4", "A3" etc
- An array of two numbers specifying the width and height in points (1pt = 1/72in)
- An array of two strings specifying the width and height in units. Supported units are "mm", "cm", "in" and "pt".
A promise that will be resolved with the root Group of the scene.