瀏覽代碼

increase canvas padding

AykutSarac 2 年之前
父節點
當前提交
c7475bb955
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/Graph/index.tsx

+ 2 - 2
src/components/Graph/index.tsx

@@ -103,8 +103,8 @@ const MemoizedGraph = React.memo(function Layout({
           <Canvas
             nodes={nodes}
             edges={edges}
-            maxWidth={size.width + 100}
-            maxHeight={size.height + 100}
+            maxWidth={size.width + 400}
+            maxHeight={size.height + 400}
             direction={layout}
             key={layout}
             onLayoutChange={onLayoutChange}