diff --git a/common/changes/@visactor/vtable/fix-sparkline-export-image_2024-04-01-07-52.json b/common/changes/@visactor/vtable/fix-sparkline-export-image_2024-04-01-07-52.json new file mode 100644 index 000000000..507a124cb --- /dev/null +++ b/common/changes/@visactor/vtable/fix-sparkline-export-image_2024-04-01-07-52.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vtable", + "comment": "fix: add sync render in exportCellImg #1398", + "type": "none" + } + ], + "packageName": "@visactor/vtable" +} \ No newline at end of file diff --git a/packages/vtable/src/core/BaseTable.ts b/packages/vtable/src/core/BaseTable.ts index 071e636eb..494bb6ff2 100644 --- a/packages/vtable/src/core/BaseTable.ts +++ b/packages/vtable/src/core/BaseTable.ts @@ -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(