Skip to content

Commit

Permalink
refactor: disable dirty rectangle rendering (#6727)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca authored Jan 23, 2025
1 parent 26bbd95 commit ba4f1e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/g6/src/runtime/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ function createRenderers(renderer: CanvasConfig['renderer'], layersName: CanvasL
layersName.map((layer) => {
const instance = renderer?.(layer) || new CanvasRenderer();

if (instance instanceof CanvasRenderer) {
instance.setConfig({ enableDirtyRectangleRendering: false });
}

if (layer === 'main') {
instance.registerPlugin(
new DragNDropPlugin({
Expand Down

0 comments on commit ba4f1e1

Please sign in to comment.