jsdoc template: allow optional naming of symbols in the package list and name '_global_' -> 'global paper scope'

This commit is contained in:
Jonathan Puckey 2011-05-31 15:25:21 +02:00
parent 434268fbd1
commit 3d7ddb26bf
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,5 @@
var classLayout = {
'Paper.js': ['global'],
'Paper.js': ['global paper scope:_global_'],
'Basic Types': ['Point', 'Size', 'Rectangle', 'Matrix'],
'Items': ['Item', 'Layer', 'Group', 'Raster', 'PlacedSymbol'],
'Paths': ['Path', 'CompoundPath', 'Segment', 'Curve', 'PathStyle', 'ruler',

View file

@ -222,7 +222,13 @@ var Utils = {
return out;
}
function getLink(name) {
return '<li><a href="' + name + '.html">' + name + '</a></li>';
var link = name;
if (name.indexOf(':') > 0) {
var names = name.split(':');
name = names[0];
link = names[1];
}
return '<li><a href="' + link + '.html">' + name + '</a></li>';
}
function getRuler() {