getSVGImageData
getSVGImageData(
canvas,page,shapes,options,styleInSVG?):Promise<string>
Get SVG image data of the given shapes.
Parameters
• canvas: Canvas
The editor’s canvas
• page: Page
The page to draw.
• shapes: Shape[]
The shapes to draw in the page. If empty, render all shapes in the page.
• options: Partial<ExportImageOptions>
The options for drawing.
• styleInSVG?: string
The style to be included in the SVG data.
Returns
Promise<string>
The SVG image data of the shapes.