瀏覽代碼

:rotating_light:

Vanessa 8 月之前
父節點
當前提交
54a5d8b76a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/layout/dock/Graph.ts

+ 2 - 2
app/src/layout/dock/Graph.ts

@@ -480,7 +480,7 @@ export class Graph extends Model {
                                 return true;
                             }
                         }
-                    })
+                    });
                     if (!isActive) {
                         return;
                     }
@@ -644,7 +644,7 @@ export class Graph extends Model {
             const edges = new vis.DataSet();
             const network = new vis.Network(this.graphElement, {nodes, edges}, options);
             const time = 256;
-            let intervalNodeTime = Math.max(Math.ceil(time / 8), 32);
+            const intervalNodeTime = Math.max(Math.ceil(time / 8), 32);
             let batch = this.graphData.nodes.length / time / 2;
             if (batch < 32) {
                 batch = 32;