Function: drawLayout()
ts
function drawLayout(
ctx,
layout,
options?
): void;Draw a layout on a canvas context, scaled to fit width by height device pixels (the canvas size by default) and centerd, like SVG's default preserveAspectRatio. It draws what the SVG renderer does: background, cast shadows, fills, images, bevels and strokes. Synchronous: pass loaded images in loaded.
Parameters
| Parameter | Type |
|---|---|
ctx | CanvasContextLike |
layout | Layout |
options | CanvasRenderOptions & object |
Returns
void