Skip to content

Commit

Permalink
fix: plugin-export API exportjpeg exports are PNG images
Browse files Browse the repository at this point in the history
  • Loading branch information
fangl committed Mar 27, 2024
1 parent f4d1412 commit 548849b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6-plugin-export/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Export extends Basecoat<Export.EventArgs> implements Graph.Plugin {
}

exportJPEG(fileName = 'chart', options: Export.ToImageOptions = {}) {
this.toPNG((dataUri) => {
this.toJPEG((dataUri) => {
DataUri.downloadDataUri(dataUri, fileName)
}, options)
}
Expand Down

0 comments on commit 548849b

Please sign in to comment.