node.js

来自「Web版的WorkFlow流程设计器.采用Javascript编写,不需要服务器」· JavaScript 代码 · 共 24 行

JS
24
字号
/**
  * the basic graph element -- node  
  * @author: shennan  amushen@yahoo.com.cn
  * @date: 2008-1-6
  */
  
function Node(name,type,comment,/*Position Object*/position,width,height,/*Object*/info,
							/*Array of NodeIndex*/parentNode,childNode,
							/*Array of lineIndex*/inLine,outLine
						 ){
	//construction					 	
	this.name=name;
	this.type=type;
	this.comment=comment;
	this.position=position;	//top and left
	this.width=width;
	this.height=height;
	this.info=info;	//some extra informations
	this.parentNode=parentNode;//save the Node Object itself
	this.childNode=childNode;
	this.inLine=inLine;//save the Line Object
	this.outLine=outLine;
	this.index=-1;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?