Skip to content

Commit

Permalink
fix: compilier should add dpr to vrender
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Dec 31, 2024
1 parent 264082d commit 83203a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vchart/src/compile/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 83203a3

Please sign in to comment.