From 83203a376d06df3b9a9469979a87c5b5c63ecf82 Mon Sep 17 00:00:00 2001 From: xile611 Date: Tue, 31 Dec 2024 16:46:48 +0800 Subject: [PATCH] fix: compilier should add dpr to vrender --- packages/vchart/src/compile/compiler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vchart/src/compile/compiler.ts b/packages/vchart/src/compile/compiler.ts index 18c0a00692..5f9670e541 100644 --- a/packages/vchart/src/compile/compiler.ts +++ b/packages/vchart/src/compile/compiler.ts @@ -124,6 +124,7 @@ export class Compiler implements ICompiler { renderCanvas: this._container.canvas ?? null, hooks: performanceHook, // vgrammar 事件改造后,性能回调函数放在了hooks中实现 ...restOption, + dpr, autoRefresh: isValid(autoRefreshDpr) ? autoRefreshDpr : !isValid(dpr), mode: toRenderMode(mode), autoFit: false,