OptionalbackgroundOptionalcreateOne-shot canvas factory (DOM canvas, OffscreenCanvas, or test fake).
Mutually exclusive with gl. Default: OffscreenCanvas when
available, else document.createElement('canvas').
OptionaldrawPer-node draw callback. Default: defaultDrawOne with resolveImage
threaded as its NodePaintCtx. Custom drawOne callers that still
want resolver injection should call defaultDrawOne(node, pose, ctx)
themselves.
OptionalflattenMax curve-flattening error in OUTPUT pixels. Default 0.25. Converted to
world units against the larger scale axis and passed to the renderer's
flattenTolerance. Explicitly passing 0.25 is always valid.
OptionalglCaller-owned WebGL2 context to render with. Mutually exclusive with
createCanvas. Never disposed by this call.
OptionalresolveBitmap resolver for image nodes — lets consumers reuse their own decode
caches. undefined results paint the deterministic grey placeholder
outline (see NodePaintCtx.resolveImage).
Output pixels per scene unit, per axis. Anisotropic values supported.
Scene-space rect to render (origin + size in scene units). Output pixel dimensions follow from rect × scale (round, min 1 — see module doc).
Background fill (any CSS color accepted by the renderer). Default: fully transparent. Passing a color is always valid.