Skip to content

Commit

Permalink
Have functions have a distincive color in diagram.
Browse files Browse the repository at this point in the history
Fixes #20.
  • Loading branch information
jkomoros committed Jul 29, 2023
1 parent e138ca7 commit e60c999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export class Garden {
if (seed.private && !includePrivate) continue;
lines.push('\t' + mermaidSeedReference(seed.ref) + '[' + (seed.id || '\'\'') + ']');
if (seed.type == 'dynamic') lines.push('\tstyle ' + mermaidSeedReference(seed.ref) + ' fill:#006600');
if (seed.type == 'function') lines.push('\tstyle ' + mermaidSeedReference(seed.ref) + ' fill:#660000');
if (seed.private) lines.push('\tstyle ' + mermaidSeedReference(seed.ref) + ' fill:#333333');
for (const [key, ref] of Object.entries(seed.references())) {
if (locationsMap[ref.packet]) {
Expand Down

0 comments on commit e60c999

Please sign in to comment.