mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 14:54:52 +02:00
WIP experiments with graphviz
Former-commit-id: cee005851cd7ed05aa43fd3037c5c7d743d06fa7
This commit is contained in:
parent
06f8aae91a
commit
c91c79a735
@ -689,7 +689,7 @@ function networkmap_create_edge($head, $tail, $layout, $nooverlap, $pure, $zoom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// edgeURL allows node navigation
|
// edgeURL allows node navigation
|
||||||
$edge = "\n".$head.' -- '.$tail.'[color="#BDBDBD", headclip=false, tailclip=false, edgeURL=""];'."\n";
|
$edge = "\n".$head.' -- '.$tail.'[len=3, color="#BDBDBD", headclip=false, tailclip=false, edgeURL=""];'."\n";
|
||||||
|
|
||||||
return $edge;
|
return $edge;
|
||||||
}
|
}
|
||||||
@ -1188,7 +1188,7 @@ function networkmap_open_graph(
|
|||||||
$nooverlap,
|
$nooverlap,
|
||||||
$pure,
|
$pure,
|
||||||
$zoom,
|
$zoom,
|
||||||
$ranksep,
|
$rank_sep,
|
||||||
$font_size,
|
$font_size,
|
||||||
$size_canvas,
|
$size_canvas,
|
||||||
$map_filter=[]
|
$map_filter=[]
|
||||||
@ -1250,7 +1250,7 @@ function networkmap_open_graph(
|
|||||||
$head = 'graph networkmap { dpi=100; bgcolor="transparent"; labeljust=l; margin=0; pad="0.75,0.75";';
|
$head = 'graph networkmap { dpi=100; bgcolor="transparent"; labeljust=l; margin=0; pad="0.75,0.75";';
|
||||||
if ($nooverlap != '') {
|
if ($nooverlap != '') {
|
||||||
$head .= 'overlap="false";';
|
$head .= 'overlap="false";';
|
||||||
$head .= 'outputorder=edgesfirst;';
|
$head .= 'outputorder=first;';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($layout == 'flat' || $layout == 'spring1' || $layout == 'spring2') {
|
if ($layout == 'flat' || $layout == 'spring1' || $layout == 'spring2') {
|
||||||
@ -1275,12 +1275,13 @@ function networkmap_open_graph(
|
|||||||
$head .= "mindist=\"$mindist\";";
|
$head .= "mindist=\"$mindist\";";
|
||||||
}
|
}
|
||||||
|
|
||||||
$head .= 'ratio=fill;';
|
$head .= 'ratio="fill";';
|
||||||
$head .= 'root=0;';
|
$head .= 'root=0;';
|
||||||
$head .= "nodesep=\"$node_sep\";";
|
$head .= "nodesep=\"$node_sep\";";
|
||||||
$head .= "size=\"$size\";";
|
$head .= "size=\"$size\";";
|
||||||
|
|
||||||
$head .= "\n";
|
$head .= "\n";
|
||||||
|
|
||||||
return $head;
|
return $head;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user