Skip to content

Commit

Permalink
fix: plugin-export API exportjpeg exports are PNG images (#4238)
Browse files Browse the repository at this point in the history
Co-authored-by: unknown <[email protected]>
  • Loading branch information
flxy1028 and fangl authored Apr 1, 2024
1 parent f4d1412 commit c3b02e5
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 c3b02e5

Please sign in to comment.