Nikatlas 5 年之前
父節點
當前提交
ac9a12e702
共有 4 個文件被更改,包括 3 次插入1 次删除
  1. 0 0
      dist/lib/helpers/graph.js
  2. 0 0
      dist/lib/systems/ViewSystem.js
  3. 1 0
      lib/helpers/graph.js
  4. 2 1
      lib/systems/ViewSystem.js

文件差異過大導致無法顯示
+ 0 - 0
dist/lib/helpers/graph.js


文件差異過大導致無法顯示
+ 0 - 0
dist/lib/systems/ViewSystem.js


+ 1 - 0
lib/helpers/graph.js

@@ -62,6 +62,7 @@ class Graph{
 		let to = link.to;
 
 		if(!this.nodes[dest] || !this.nodes[to]){
+			console.log(this.nodes, dest, to);
 			throw new Error("One of the Nodes Doesnt Exist");
 		}
 		if(this.links[dest].out.has(link) || this.links[to].in.has(link)){

+ 2 - 1
lib/systems/ViewSystem.js

@@ -223,7 +223,8 @@ export class View {
 
 	import(data, parentNode) {
 		let { tree } = data;
-		this.ViewTree = new Tree();
+		if(!parentNode)
+			this.ViewTree = new Tree();
 		try {
 			this.ViewTree.import(tree, Node, parentNode);
 			this.defaultContainer = this.ViewTree.root;

部分文件因文件數量過多而無法顯示