From 8466e7a71d8698cbec926bed7aff1018ac7de405 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 20 Dec 2023 10:18:13 +0800 Subject: [PATCH] fix(plugin:export): it should have default value 'true' across its doc's description --- packages/x6-plugin-export/src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)