This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/master by this push:
new 45b7597 fix: wrong jpg instead of jpeg types
new dfa1f07 Merge pull request #16747 from yassilah/types/export-image
45b7597 is described below
commit 45b75977ca21422861468f18cdc32bb6f1a76943
Author: Yasser Lahbibi <[email protected]>
AuthorDate: Fri Mar 25 10:35:55 2022 +0100
fix: wrong jpg instead of jpeg types
---
src/component/toolbox/feature/SaveAsImage.ts | 2 +-
src/core/echarts.ts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/component/toolbox/feature/SaveAsImage.ts
b/src/component/toolbox/feature/SaveAsImage.ts
index 7e9c690..8777a97 100644
--- a/src/component/toolbox/feature/SaveAsImage.ts
+++ b/src/component/toolbox/feature/SaveAsImage.ts
@@ -29,7 +29,7 @@ import { isFunction } from 'zrender/src/core/util';
export interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption {
icon?: string
title?: string
- type?: 'png' | 'jpg'
+ type?: 'png' | 'jpeg'
backgroundColor?: ZRColor
connectedBackgroundColor?: ZRColor
diff --git a/src/core/echarts.ts b/src/core/echarts.ts
index a4323a4..c2f24dd 100644
--- a/src/core/echarts.ts
+++ b/src/core/echarts.ts
@@ -763,7 +763,7 @@ class ECharts extends Eventful<ECEventDefinition> {
getDataURL(opts?: {
// file type 'png' by default
- type?: 'png' | 'jpg' | 'svg',
+ type?: 'png' | 'jpeg' | 'svg',
pixelRatio?: number,
backgroundColor?: ZRColor,
// component type array
@@ -807,7 +807,7 @@ class ECharts extends Eventful<ECEventDefinition> {
getConnectedDataURL(opts?: {
// file type 'png' by default
- type?: 'png' | 'jpg' | 'svg',
+ type?: 'png' | 'jpeg' | 'svg',
pixelRatio?: number,
backgroundColor?: ZRColor,
connectedBackgroundColor?: ZRColor
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]