SnapshotComponent

August 10, 2023 ยท View on GitHub

Snapshot Component. Allows to copy, download and share snapshot

MethodParametersReturnsDescription
doActivatevoidImplements doActivate method.
createSnapshotuserDrawCallback: (ctx: CanvasRenderingContext2D) => void - Optional callback function that takes a CanvasRenderingContext2D object as a parameter and allows the user to draw on the canvas before taking the snapshot.Promise<Blob>Creates a snapshot of the canvas and returns it as a Promise of Blob object.