Replaces a live canvas with vector SVG when the source library can export it.
Returning null delegates to canvasFallback. Throwing or returning
malformed SVG produces CanvasToSvgError.
Signature
export type CanvasToSvg = (request: CanvasToSvgRequest) => CanvasSvgSource | null | Promise<CanvasSvgSource | null>;