OptionalafterOptionalbackgroundOptionalelementElement adapters used for extension bounds and rendering.
OptionalembedEmbed the exported elements as a loadable scene. Default false. The scene holds every element inside the export bounds regardless of what paints over it (fog, hooks, full-canvas extensions): never embed in an export meant for viewers who must not see those elements.
OptionalexpectedhtmlTypes that must route to canvas even before a painter for them is
registered — lets a host declare intent up front (mirrors HtmlPainterRegistry.expect).
OptionalfilterOptionalformatOutput encoding. Defaults to 'png'. JPEG output is opaque — a transparent
background renders as black; keep an opaque background (the default follows the theme)
for JPEG exports.
OptionalframeOptionalhtmlRegistry of canvas-backed html painters, keyed by htmlType. When absent (or when
an element's htmlType isn't claimed), html elements fall back to the legacy
DOM-raster path (renderHtml).
OptionalhtmlMaximum wait for each HTML renderer. Defaults to 10 seconds.
OptionalimageMaximum wait for each image asset and font file. Defaults to 10 seconds.
OptionalmaxMaximum width or height of any allocated export canvas. Defaults to 16,384.
OptionalmaxMaximum pixel count of any allocated export canvas. Defaults to 67,108,864.
OptionalonCalled when an image cannot be loaded or embedded. The export continues.
OptionalonCalled when an HTML embed cannot be rendered or encoded. The export continues.
OptionalonCalled when the scene exceeds 16 MiB and is left out; the export still succeeds.
OptionalpaddingOptionalqualityEncoder quality in (0, 1]. Only meaningful for 'jpeg'.
OptionalregionOptional world-space crop. When set it replaces the computed content
bounds; padding still applies around it. Elements outside the region
clip naturally. A region export with no intersecting elements still
produces a background-filled image.
OptionalrenderPer-surface hooks installed by viewport plugins.
OptionalrenderConverts an application-owned HTML embed into a ready canvas image source.
OptionalrequiredRender capabilities the export must satisfy, added to the registry's stored requirement.
OptionalscaleOptionalscale'exact' (default) throws when scale × bounds exceeds maxDimension/maxPixels. 'fit' reduces the effective scale to the largest value that satisfies both caps (never above the requested scale).
OptionalstrictWhen true, a canvas-routed html element with no active painter throws
HtmlPainterMissingError instead of reporting onHtmlError and continuing.
DOM-routed html elements are never affected — a missing renderHtml stays
a non-fatal 'unsupported' diagnostic regardless of this flag.
OptionalthemeTheme the export draws with. Direct exports default to light; viewport exports use its theme.
Export options for embedding the exported elements as a loadable scene.