Skip to content

Commit

Permalink
Merge pull request #3628 from VisActor/fix/miss-dpr
Browse files Browse the repository at this point in the history
Fix/miss dpr
  • Loading branch information
xile611 authored Dec 31, 2024
2 parents 264082d + 751b312 commit a1c0831
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common/changes/@visactor/vchart/fix-miss-dpr_2024-12-31-08-54.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: compilier should add dpr to vrender\n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "[email protected]"
}
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 a1c0831

Please sign in to comment.