line.js

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

JS
17
字号
/**
  * the basic element of graph - line
  * @author: shennan  amushen@yahoo.com.cn
  * @date:2008-1-6
  */
function Line(name,/*Node index*/source,/*Node index*/destination,
						  /*Position Object*/midPoint,sPoint,dPoint
						 ){
//construction	
	this.name=name;
	this.source=source;
	this.destination=destination;
	this.midPoint=midPoint;
	this.sPoint=sPoint;
	this.dPoint=dPoint;
	this.index=-1;// save the index in the array
}

⌨️ 快捷键说明

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