The height property returns and sets the height of an OffscreenCanvas object.
The width property returns and sets the width of an OffscreenCanvas object.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe OffscreenCanvas.convertToBlob() method creates a Blob object representing the image contained in the canvas.
Optionaloptions: ImageEncodeOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The OffscreenCanvas.getContext() method returns a drawing context for an offscreen canvas, or null if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
Optionaloptions: anyOptionaloptions: anyOptionaloptions: anyOptionaloptions: anyOptionaloptions: anyThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe OffscreenCanvas.transferToImageBitmap() method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas.
When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
MDN Reference