
static.org.tinygroup.flowprocess.js.flowprocess.tiny.min.js Maven / Gradle / Ivy
The newest version!
(function(c){var e={fnClick:function(){},fnDbClick:function(){},connectorPaintStyle:{lineWidth:2,strokeStyle:"#49afcd",joinstyle:"round"},disableConnectorPaintStyle:{lineWidth:2,strokeStyle:"#999",joinstyle:"round",dashstyle:"4 1"},itemSize:{top:10,width:150,height:120}};var d=function(f){f.find(".process-flag").each(function(g,j){var h=c(j).parent();jsPlumb.makeSource(c(j),{parent:h,anchor:"Continuous",endpoint:["Dot",{radius:1}],connector:["Flowchart",{stub:[5,5]}],connectorStyle:h.attr("disabled")==="disabled"?e.disableConnectorPaintStyle:e.connectorPaintStyle,dragOptions:{},maxConnections:-1})})};var a=function(){try{jsPlumb.detachEveryConnection();jsPlumb.deleteEveryEndpoint();jsPlumb.repaintEverything();return true}catch(f){return false}};var b=function(m){var o=c("");var r=[];c(".popover").remove();m.children(".process-step").each(function(){var i=c(this);r.push({id:i.attr("process_id"),pid:i.attr("process_pid")})}).on("mouseover",function(){c(this).popover("show")}).on("mouseout",function(){c(this).popover("hide")});var k=0;var n=r.length;var h=[];var j=[];var f=[];for(var l=0;l0){jsPlumb.connect({source:"process-step-"+m,target:"process-step-"+i})}}})})};g();return{getActiveId:function(){return h.find(".tiny_flow_active_id").val()},clear:function(){try{jsPlumb.detachEveryConnection();jsPlumb.deleteEveryEndpoint();jsPlumb.repaintEverything();return true}catch(i){return false}},refresh:function(){try{this.clear();g();return true}catch(i){return false}}}}})(jQuery);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy