I know about [HTMLCanvasElement trransferControlToOffscreen()], this works well.
But I need several Canvases for compositing operations.
Is it possible to create canvas inside a worker without pointing to a document?
something like this:
const myOtherCanvas = new Canvas();
OffscreenCanvasis also a constructor, so you can donew OffscreenCanvas(width, height)directly in a worker context.