This is an automated email from the ASF dual-hosted git repository.
plainheart 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 dc60bdd61 feat(canvas): update `devicePixelRatio` to prevent chart
being blurry after resizing (#21489)
dc60bdd61 is described below
commit dc60bdd61d924f49742256e834cb71e9ae1f671a
Author: Jin <[email protected]>
AuthorDate: Thu May 28 14:40:32 2026 +0800
feat(canvas): update `devicePixelRatio` to prevent chart being blurry after
resizing (#21489)
* feat(drp): use current dpr when resize
* fix: get default dpr in zrender
* ci: build generated types before type check
---
.github/workflows/ci.yml | 3 +++
src/core/echarts.ts | 1 +
2 files changed, 4 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 516d9f493..3ae48287e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,6 +54,9 @@ jobs:
- name: Lint
run: npx eslint $(cat ~/tmp/changed_files)
+ - name: Build generated types
+ run: npm run build:lib
+
- name: Check types
run: npm run checktype
diff --git a/src/core/echarts.ts b/src/core/echarts.ts
index a432ad137..8214c11e0 100644
--- a/src/core/echarts.ts
+++ b/src/core/echarts.ts
@@ -312,6 +312,7 @@ export interface SetOptionOpts {
export interface ResizeOpts {
width?: number | 'auto', // Can be 'auto' (the same as null/undefined)
height?: number | 'auto', // Can be 'auto' (the same as null/undefined)
+ devicePixelRatio?: number,
animation?: AnimationOption
silent?: boolean // by default false.
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]