Skip to content

Commit

Permalink
fix(plugin:export): it should have default value 'true' across its do…
Browse files Browse the repository at this point in the history
…c's description
  • Loading branch information
Sorryhx committed Dec 20, 2023
1 parent 1a27a2a commit 8466e7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/x6-plugin-export/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ export class Export extends Basecoat<Export.EventArgs> 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)
Expand Down

0 comments on commit 8466e7a

Please sign in to comment.