浏览代码

关系网

wangchuanjin 9 年之前
父节点
当前提交
5249ec64d5
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      core/src/web/staticres/js/relation.js

+ 4 - 4
core/src/web/staticres/js/relation.js

@@ -4,7 +4,7 @@ function Relation(legcerNo,regNo,regCapCurName,data){
 	this.regCapCurName = regCapCurName;
 	this.data = data;
 	this.modleFlag = data.nodes.length>15;
-	this.ispattern = this.modleFlag;
+	this.defaultIsPattern = this.modleFlag;
 	this.zoomlevel = 1;
 	this.w = 0;
 	this.h = 0;
@@ -138,14 +138,14 @@ Relation.prototype.verbosemode = function(){
 	this.modleFlag = false;
 	this.makeTextBg();
 	this.makeTitle();
-	if(this.ispattern){
+	if(this.defaultIsPattern){
 		this.tickFlag = true;
 		this.force.linkDistance(Math.floor(Math.random()*60)+150).start();
 	}else{
 		this.tick();
 		this.force.tick();
 	}
-	this.ispattern = false;
+	this.defaultIsPattern = false;
 }
 Relation.prototype.dataProcess = function(){
 	var reg = new RegExp(/(有限公司|有限责任公司|股份有限公司|总公司|分公司|公司|事务所|合伙企业)$|\(.*\)|\(.*\)/g);
@@ -616,7 +616,7 @@ Relation.prototype.makeRelation = function(){
 	    .size([this.w, this.h])
 	    .linkDistance(function(){
 			var distance = Math.floor(Math.random()*60)+100;
-			if(!this.ispattern){
+			if(!this.defaultIsPattern){
 				distance += 50;
 			}
 			return distance;