/* Those are callbacks which are called for each node and relation, so you can filter and customize them */ ({ // confirm that you want a node // return false to eliminate the node confirmNode: function(gav) { //var g = gavString.split(':'); //gav = {groupId:g[0], artifactId:g[1], version:g[2]}; // if(gav.indexOf("fr.lteconsulting")!=0) return false; // if(gav.indexOf("com")!=0) return false; return true; }, // confirm that you want the relation // return false to eliminate the relation confirmRelation: function(link) { // if(link.relation.type!="BUILD_DEPENDENCY") return false; // if(link.relation.type!="DEPENDENCY") return false; // if(link.relation.type!="PARENT") return false; // if(link.relation.scope=="TEST") return false; // if(link.to.indexOf('undertow')==-1) return false; return true; }, // customize the node appearance // return a structure with the size and the color of the node node: function(node) { var size = 21 + node.links.length * 0; var color = 0xffffff; if(node.data.groupId=="fr.lteconsulting") color = 0xff2211; if(node.data.artifactId.indexOf('gwt')>=0) color = 0x22ff11; return { size:size, color:color }; }, // customize the link color // return a structure with the 'from' and 'to' colors linkColor: function(relation) { return { fromColor:0x000000, toColor:0xffffff}; } })
Refresh
animated