Skip to content

Commit

Permalink
fix: add sync render in exportCellImg #1398
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Apr 1, 2024
1 parent 5993acd commit 49d7fff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vtable",
"comment": "fix: add sync render in exportCellImg #1398",
"type": "none"
}
],
"packageName": "@visactor/vtable"
}
2 changes: 2 additions & 0 deletions packages/vtable/src/core/BaseTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3834,6 +3834,8 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI {
const { col: hoverCol, row: hoverRow } = this.stateManager.hover.cellPos;
this.stateManager.updateHoverPos(-1, -1);

this.scenegraph.renderSceneGraph();

const c = this.scenegraph.stage.toCanvas(
false,
new AABBBounds().set(
Expand Down

0 comments on commit 49d7fff

Please sign in to comment.