fix: graph is not working in chrome 140

This commit is contained in:
Harshith Mullapudi 2025-09-29 09:48:52 +05:30
parent 1509e8d502
commit 7903dd08c3
2 changed files with 2 additions and 1 deletions

View File

@ -689,7 +689,7 @@ export const GraphClustering = forwardRef<
defaultDrawNodeHover: drawHover,
maxCameraRatio: 2,
allowInvalidContainer: false,
allowInvalidContainer: true,
});
sigmaRef.current = sigma;

View File

@ -407,6 +407,7 @@ export const Graph = forwardRef<GraphRef, GraphProps>(
enableEdgeEvents: true,
minCameraRatio: 0.1,
maxCameraRatio: 2,
allowInvalidContainer: true,
});
sigmaRef.current = sigma;