Optionalcanvas: { height: number; width: number }ReadonlycanvasApply the current path's bounding box as a rectangular clip for every element emitted until the matching restore(). The renderers only ever clip to axis-aligned rectangles (chart area / pane bands), so a bbox clip is exact for their usage.
Raster image blits can't be vectorized; ignored in the SVG output.
Returns a 1×1 transparent stub; renderers only probe .data length.
HiDPI scale is irrelevant to a vector export (works in CSS px). No-op.
Renderers don't stroke text; provided for API completeness (renders as fill).
Serialize everything recorded so far into a standalone <svg> document
string of the given pixel size, with background painted as a full-bleed
rect underneath the recorded elements.
Optionalbackground: string
The owning canvas-like host, if any (some code reads
ctx.canvas).