Cat.Web/Cat.Admin.Web/wwwroot/wf/wfcore/GooFlow - 副本.js

(开头部分) 96KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * Gooflow在线流程图设计器
 * Version: 1.3
 * Copyright: foolegg126(sdlddr)
 */
//定义一个区域图类:
function GooFlow(bgDiv,property){
	if (navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 7.0")>0||navigator.userAgent.indexOf("MSIE 6.0")>0)
		GooFlow.prototype.useSVG="";
	else	GooFlow.prototype.useSVG="1";
//初始化区域图的对象
	this.$id=bgDiv.attr("id");
	this.$bgDiv=bgDiv;//最父框架的DIV
	this.$bgDiv.addClass("GooFlow");
	if(GooFlow.prototype.color.font){
		this.$bgDiv.css("color",GooFlow.prototype.color.font);
	}
	if(GooFlow.prototype.color.main){
		this.$bgDiv.append('<style>.GooFlow_tool_btndown{background:'+GooFlow.prototype.color.main+'}</style>');
	}
	var width=(property.width||this.$bgDiv.width());
	var height=(property.height||this.$bgDiv.height());
	this.$bgDiv.css({width:width+"px",height:height+"px"});
	this.$tool=null;//左侧工具栏对象
	this.$head=null;//顶部标签及工具栏按钮
	this.$title="newFlow_1";//流程图的名称
	this.$nodeRemark={};//每一种结点或按钮的说明文字,JSON格式,key为类名,value为用户自定义文字说明
	this.$nowType="cursor";//当前要绘制的对象类型
	this.$lineData={};
	this.$lineCount=0;
	this.$nodeData={};
	this.$nodeCount=0;
	this.$areaData={};
	this.$areaCount=0;
	this.$lineDom={};
	this.$nodeDom={};
	this.$areaDom={};
	this.$max=property.initNum||1;//计算默认ID值的起始SEQUENCE
	this.$focus="";//当前被选定的结点/转换线ID,如果没选中或者工作区被清空,则为""
	this.$cursor="default";//鼠标指针在工作区内的样式
	this.$editable=false;//工作区是否可编辑
	this.$deletedItem={};//在流程图的编辑操作中被删除掉的元素ID集合,元素ID为KEY,元素类型(node,line.area)为VALUE
	this.$workExtendStep=200;//在自动/手动扩展可编辑区时,一次扩展后宽/高增加多少像素
	this.$scale=1.00;//工作区内容的缩放比例,从0.1至无穷大,初始默认为1
	var headHeight=0;
	var tmp="";

	if(property.haveHead){
		tmp="<div class='GooFlow_head' "+(GooFlow.prototype.color.main? "style='border-bottom-color:"+GooFlow.prototype.color.main+"'" : "")
		+">";
		if(property.headLabel){
      tmp+="<label title='"+(property.initLabelText||"newFlow_1")+"' "
        +(GooFlow.prototype.color.main? "style='background:"+GooFlow.prototype.color.main+"'" : "")+">"+(property.initLabelText||"newFlow_1")+"</label>";
		}
		for(var x=0;x<property.headBtns.length;++x){
			var titleText=GooFlow.prototype.remarks.headBtns[property.headBtns[x]]? " title='"+GooFlow.prototype.remarks.headBtns[property.headBtns[x]]+"'":"";
			tmp+="<a href='javascript:void(0)' class='GooFlow_head_btn'"+titleText+"><i class='ico_"+property.headBtns[x]+"'></i></a>"
		}
		tmp+="</div>";
		this.$head=$(tmp);
后面还有 2293 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。