forked from tupadr3/plantuml-icon-font-sprites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.puml
21 lines (19 loc) · 1.07 KB
/
common.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@startuml
' Creates an aliased entity with a colorized sprite and stereotype
' Params:
' e_type: the entity type (e.g. component, node, agent, etc.)
' e_color: the color for the sprite
' e_sprite: the sprite for the AWS Icon representing the entity
' e_alias: the alias to give the entity
' e_stereo: the stereotype, which can define additional styling
!define ENTITY(e_type,e_color,e_sprite,e_alias,e_stereo) e_type "<color:e_color><$e_sprite></color>" as e_alias <<e_stereo>>
' Creates an aliased entity with a colorized sprite, label, and stereotype
' Params:
' e_type: the entity type (e.g. component, node, agent, etc.)
' e_color: the color for the sprite
' e_sprite: the sprite for the AWS Icon representing the entity
' e_label: the label to display under the sprite
' e_alias: the alias to give the entity
' e_stereo: the stereotype, which can define additional styling
!define ENTITY(e_type,e_color,e_sprite,e_label,e_alias,e_stereo) e_type "<color:e_color><$e_sprite></color>\r e_label" as e_alias <<e_stereo>>
hide stereotype