From 548849b2037bf47ca1044f05218a475f77798885 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 27 Mar 2024 10:51:26 +0800 Subject: [PATCH] fix: plugin-export API exportjpeg exports are PNG images --- packages/x6-plugin-export/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x6-plugin-export/src/index.ts b/packages/x6-plugin-export/src/index.ts index 2961c06413f..6cfa0c065d7 100644 --- a/packages/x6-plugin-export/src/index.ts +++ b/packages/x6-plugin-export/src/index.ts @@ -35,7 +35,7 @@ export class Export extends Basecoat implements Graph.Plugin { } exportJPEG(fileName = 'chart', options: Export.ToImageOptions = {}) { - this.toPNG((dataUri) => { + this.toJPEG((dataUri) => { DataUri.downloadDataUri(dataUri, fileName) }, options) }