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

File diff suppressed because it is too large
+ 0 - 0
dist/lib/helpers/graph.js


File diff suppressed because it is too large
+ 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;

Some files were not shown because too many files changed in this diff