Skip to content

Commit

Permalink
Add css classes for nodes in the diagrams as follows:
Browse files Browse the repository at this point in the history
figure_super	if the element is the superclass of the ne being documented
figure_class	if the element is for a non-root class
figure_root	if the element is for a root class
figure_protocol	if the element  is for a protocol
  • Loading branch information
rfm committed Nov 4, 2024
1 parent e9d1e9e commit 8382e02
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Tools/AGSHtml.m
Original file line number Diff line number Diff line change
Expand Up @@ -2744,27 +2744,28 @@ - (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf
@" fontsize=24 width=0.5 shape=rectangle style=filled]\n"];
if (sNam)
{
[dot appendFormat: @" %@ [class=figure_super", sNam];
if (url)
{
[dot appendFormat: @" %@ [URL=\"%@\"]\n", sNam, url];
}
else
{
[dot appendFormat: @" %@\n", sNam];
[dot appendFormat: @" URL=\"%@\"", url];
}
[dot appendString: @"]\n"];
[dot appendFormat: @" %@ [class=figure_class fontcolor=\"green\"]\n",
cNam];
}
else
{
sNam = cNam; // This is a root class ...
[dot appendFormat: @" %@ [class=figure_root fontcolor=\"green\"]\n",
cNam];
}
[dot appendFormat: @" %@ [fontcolor=\"green\"]\n", cNam];
if (protocols)
{
e = [protocols keyEnumerator];
while ((p = [e nextObject]) != nil)
{
[dot appendFormat:
@" p_%@ [label=\"%@\" URL=\"%@\" shape=hexagon]\n",
[dot appendFormat: @" p_%@ [class=figure_protocol"
@" label=\"%@\" URL=\"%@\" shape=hexagon]\n",
p, p, [protocols objectForKey: p]];
}
}
Expand Down

0 comments on commit 8382e02

Please sign in to comment.