Skip to content

Commit

Permalink
fix: graph.drawTransient报错导致程序中断,使用upsertAncestors: false可避免报错
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiangyu committed Aug 28, 2023
1 parent d76c5d6 commit 07faf33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/g6/src/stdlib/behavior/scroll-canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export default class ScrollCanvas extends Behavior<ScrollCanvasOptions> {
newHiddenNodeIds.forEach((id) => {
graph.drawTransient('node', id, {
onlyDrawKeyShape: true,
upsertAncestors: false,
});
});
graph.hideItem(newHiddenNodeIds, true);
Expand Down

0 comments on commit 07faf33

Please sign in to comment.