diff --git a/packages/x6-plugin-export/src/index.ts b/packages/x6-plugin-export/src/index.ts index cb734bec7e4..d6ebed638c6 100644 --- a/packages/x6-plugin-export/src/index.ts +++ b/packages/x6-plugin-export/src/index.ts @@ -40,7 +40,13 @@ export class Export extends Basecoat implements Graph.Plugin { }, options) } - exportSVG(fileName = 'chart', options: Export.ToSVGOptions = {}) { + exportSVG( + fileName = 'chart', + options: Export.ToSVGOptions = { + copyStyles: true, + serializeImages: true, + }, + ) { this.toSVG((svg: string) => { DataUri.downloadDataUri(DataUri.svgToDataUrl(svg), fileName) }, options)