API REFERENCE

getDrawingLayer

the drawing overlay as a positioned SVG layer (null without drawings): what getSVG / exportSVG / exportPNG compose into the image.

Definition

typescript
getDrawingLayer(): Promise<DrawingLayerSnapshot | null>

Return type: Promise<DrawingLayerSnapshot | null>. Call the method after element registration and await its Promise result.