Removes everything drawn before on image layer.
Indicates if should clear cache too.
Clears all resources and removes image layer.
Draws an original viewer image on image layer.
Merges image layer into original viewer image.
Clears all resources and removes image layer.
Promise with string that contains dataUrl
Call this method to draw the paint objects specified in the paintObjects array onto the canvas.
Run a temporary paint command on a separate temporary canvas layer. This method should create and display the temporary canvas layer if it doesn't exist.
Get all temporary paint commands.
Clear all temporary paint commands, clear and dispose the temporary canvas layer.
Image layer name.
ReadonlysizeImage layer size.
ReadonlymainCanvas object to paint.
ReadonlybackCanvas object to paint.
ReadonlymainMain 2D rendering context.
ReadonlybackBackground 2D rendering context.
ReadonlypaintThe objects in this array are drawn to the canvas.
Image layer canvas.