diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-09-07 06:58:27 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-09-07 06:58:27 +0000 |
commit | 3e9a6a7d4fa237d488f8570b28dbe88d5277c1ae (patch) | |
tree | 28a8a984a08211a2fedd90ae5af5914a0e0cf2e8 /IkiWiki | |
parent | 0a8fc6ddf55697a1ed1f8b277265b430ffe5350c (diff) | |
download | ikiwiki-3e9a6a7d4fa237d488f8570b28dbe88d5277c1ae.tar ikiwiki-3e9a6a7d4fa237d488f8570b28dbe88d5277c1ae.tar.gz |
size limits
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/linkmap.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/linkmap.pm b/IkiWiki/Plugin/linkmap.pm index 2c92784c2..4ac11a10a 100644 --- a/IkiWiki/Plugin/linkmap.pm +++ b/IkiWiki/Plugin/linkmap.pm @@ -18,6 +18,7 @@ my %maps; sub preprocess (@) { #{{{ my %params=@_; + $params{pages}="*" unless defined $params{pages}; # Needs to update whenever a page is added or removed, so @@ -83,6 +84,8 @@ sub genmap ($) { #{{{ print OUT "digraph linkmap$mapnum {\n"; print OUT "concentrate=true;\n"; print OUT "charset=\"utf-8\";\n"; + print OUT "ratio=compress;\nsize=\"".($params{width}+0).", ".($params{height}+0)."\";\n" + if defined $params{width} and defined $params{height}; foreach my $item (keys %mapitems) { print OUT "\"$item\" [shape=box,href=\"$mapitems{$item}\"];\n"; foreach my $link (map { IkiWiki::bestlink($item, $_) } @{$IkiWiki::links{$item}}) { |