From: <mo...@us...> - 2003-07-31 23:28:30
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki In directory sc8-pr-cvs1:/tmp/cvs-serv8137/lib/wiki Modified Files: Tag: release_eta_carinea_rc1 wikilib.php Log Message: added some look and roundness into wikigraph Index: wikilib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki/wikilib.php,v retrieving revision 1.24.2.5 retrieving revision 1.24.2.6 diff -u -d -r1.24.2.5 -r1.24.2.6 --- wikilib.php 31 Jul 2003 20:30:18 -0000 1.24.2.5 +++ wikilib.php 31 Jul 2003 23:26:59 -0000 1.24.2.6 @@ -78,16 +78,35 @@ function wiki_page_graph(&$str, &$graph) { $page=$str['name']; - $graph->addNode("$page",array('URL'=>"tiki-index.php?page=$page", + $graph->addAttributes(array( + 'nodesep'=>'.3', + 'rankdir'=>'LR', + 'size'=> '6', + 'bgcolor'=> 'transparent', + 'URL'=>'tiki-index.php' + ) + ); + $graph->addNode("$page",array( + 'URL'=>"tiki-index.php?page=".addslashes($page), 'label'=>"$page", -/* 'fontsize' => '10', */ - 'shape' => 'box' + 'fontname'=>"Arial", + 'fontsize' => '9', + 'shape' =>'ellipse', + 'color' =>'#AAAAAA', + 'style' =>'filled', + 'fillcolor' =>'#FFFFFF', + 'width'=>'.5', + 'height'=>'.25' ) ); //print("add node $page<br/>"); foreach($str['pages'] as $neig) { $this->wiki_page_graph($neig, $graph); - $graph->addEdge(array($page => $neig['name']), array('color'=>'black')); + $graph->addEdge(array($page => $neig['name']), array( + 'color'=>'#998877', + 'style'=>'solid' + ) + ); //print("add edge $page to ".$neig['name']."<br/>"); } } |