【文件属性】:
文件名称:raphael 工作流程设计 源码
文件大小:291KB
文件格式:ZIP
更新时间:2018-01-23 04:08:23
raphael 工作流程设计 源码
;(function(snaker){
var designer={};
designer.config={
editable:true,
lineHeight:15,
basePath:"",
ctxPath:"",
orderId:"",
rect:{
attr:{
x:10,y:10,width:100,height:50,r:5,fill:"90-#fff-#C0C0C0",stroke:"#000","stroke-width":1
},
showType:"image&text",
type:"state",
name:{text:"state","font-style":"italic"},
text:{text:"状态","font-size":13},
margin:5,
props:[],
img:{}
},
path:{
attr:{
path:{path:"M10 10L100 100",stroke:"#808080",fill:"none","stroke-width":2},
arrow:{path:"M10 10L10 10",stroke:"#808080",fill:"#808080","stroke-width":2,radius:4},
fromDot:{width:5,height:5,stroke:"#fff",fill:"#000",cursor:"move","stroke-width":2},
toDot:{width:5,height:5,stroke:"#fff",fill:"#000",cursor:"move","stroke-width":2},
bigDot:{width:5,height:5,stroke:"#fff",fill:"#000",cursor:"move","stroke-width":2},
smallDot:{width:5,height:5,stroke:"#fff",fill:"#000",cursor:"move","stroke-width":3}
},
text:{text:"",cursor:"move",background:"#000"},
textPos:{x:0,y:-10},
props:{
name:{name:"name",label:"名称",value:"",editor:function(){return new designer.editors.inputEditor()}},
displayName:{name:"displayName",label:"显示",value:"",editor:function(){return new designer.editors.textEditor()}},
expr:{name:"expr",label:"表达式",value:"",editor:function(){return new designer.editors.inputEditor()}}
}
},
tools:{
attr:{
left:10,top:10
},
pointer:{},
path:{},
states:{},
save:{
onclick:function(c){alert(c)}
}
},
props:{
attr:{top:328,left:10},
props:{}
},
restore:"",
activeRects:{
rects:[],
rectAttr:{stroke:"#ff0000","stroke-width":2}
},
historyRects:{
rects:[],
pathAttr:{
path:{stroke:"#00ff00"},
arrow:{stroke:"#00ff00",fill:"#00ff00"}
}
}
};
【文件预览】:
b_workstorm
----index.html(7KB)
----images()
--------select16.gif(336B)
--------16()
--------bg.png(296B)
--------48()
--------save.gif(187B)
----js()
--------jquery-1.9.1.js(262KB)
--------jquery-ui.min.js(93KB)
--------snaker.editors.js(2KB)
--------snaker.model.js(9KB)
--------snaker.designer.js(49KB)
--------sprite.png(24KB)
--------raphael.js(307KB)
--------jquery-ui.min.css(16KB)
--------raphael_1.51.js(59KB)
----tip.text(720B)