ReadonlycanvasDeliberately undefined: a primitive that wants an offscreen canvas asks the context for its element, and the honest answer is that there is none.
ReadonlyheightReadonlyunsupportedNames of the calls that could not be exported, first occurrence only.
ReadonlywidthAn <img> becomes an <image> of its src; a canvas becomes one of its
data URL. The nine-argument crop is a nested <svg> whose viewBox is the
source rectangle. Anything else (an ImageBitmap, a video frame) has no
URL to point at and is skipped.
Open an explicit <g> with the given attributes, optionally translated
and clipped to a rectangle in the group's own coordinates. The chart wraps
each pane in one so the export carries the same per-pane offset and clip
the DOM stacking gives the canvases. Balanced by popGroup.
The radii argument takes the forms the paint code uses: one number, or an array of up to four (top-left, top-right, bottom-right, bottom-left, the CSS order). Radii are scaled down together when they would overlap, as the canvas does, so a pill shorter than its radius stays a pill.
A 2D context that writes SVG. Construct one at the document's media size, hand it (cast) to whatever paints, and read
toString().