ReadonlybackendOptional ReadonlygpuOptional ReadonlyreasonWhy 'auto' chose the CPU.
Renders an edit document on a linear image (see applyEdit in @rullino/core). scale is the
image's size relative to the original the edit was made on, e.g. 0.25 for a quick preview.
Optionaloptions: { scale?: number }Releases the GPU device and stops the worker. Pending renders are rejected.
Like apply, but answers with 8-bit sRGB pixels ready for a canvas, encoded where the render ran (on the GPU, or in the worker): the fast path for interactive previews.
Optionaloptions: { scale?: number }Renders an edit document on 8-bit pixels (ImageData) or an image file the browser can decode
(a Blob), and encodes the result as the document's output says (PNG by default).
The GPU context, when the backend is 'gpu'.