You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the macros `HIDE_PERSON_SPRITE()`and `SHOW_PERSON_SPRITE()` it is possible to change the person related default sprite. `SHOW_PERSON_SPRITE()` is the default.
171
+
With the macros `HIDE_PERSON_SPRITE()`, `SHOW_PERSON_SPRITE()`and `SHOW_PERSON_PORTRAIT()` it is possible to change the person related default sprite or person layout itself. `SHOW_PERSON_SPRITE()` is the default.
172
172
173
173
-**HIDE_PERSON_SPRITE()**: deactivates the default sprite
174
174
-**SHOW_PERSON_SPRITE()**: activates the default sprite "person"
175
175
-**SHOW_PERSON_SPRITE($sprite)**: activates a specific sprite as default sprite
176
+
-**SHOW_PERSON_PORTRAIT()**: activates portrait outline instead of a rectangle
176
177
177
178
"person" and "person2" are predefined sprites which can be used as default sprite too.
> Github does not support `svg` links in README.md.
121
121
> If you click on the image a new window is opened and there you can use the links.
122
122
123
-

123
+

124
124
125
125
Elements and relations can be decorated with tags and explained via a calculated legend, for example:
126
126
@@ -227,24 +227,34 @@ You can force the direction of a relationship by using:
227
227
*`Rel_L`, `Rel_Left`
228
228
*`Rel_R`, `Rel_Right`
229
229
230
-
Relationship specific sprites are not down scaled, they requires typically smaller icons.
231
-
Therefore if sprite argument starts with `&` an OpenIconic name can be used too (details see https://useiconic.com/open)
230
+
Relationship specific sprites are typically smaller and therefore following options are possible:
231
+
* use smaller icons (like the $triangle in the following sample)
232
+
* use an additional scale factor (direct as part of the argument, or via a variable)
233
+
* if sprite argument starts with `&` an OpenIconic name can be used too (details see https://useiconic.com/open)
' if sprite starts with &, sprite defines a OpenIconic, details see https://useiconic.com/open/
242
-
Rel_D(user, system, "requests", "async message", "if sprite starts with &, it defines a OpenIconic like &envelope-closed", $sprite="&envelope-closed")
244
+
System(system, "System")
243
245
244
246
' normal sprites are too big
245
-
Rel_R(user, user2, "informs", "courier", "normal sprites are too big", "person2")
247
+
Rel_L(user, user2, "informs", "courier", "normal sprites are too big", $sprite="person2")
248
+
249
+
' scaled sprites are ok
250
+
Rel_R(user, user3, "informs", "courier", "scaled sprites are OK", $sprite="person2,scale=0.5")
246
251
247
-
' special smaller sprites have to be used
252
+
' combine sprite and scale to a new sprite
253
+
!$combinedSprite="person2,scale=0.5"
254
+
Rel_R(user, user3, "informs", "courier", "combined sprites are OK", $sprite=$combinedSprite)
255
+
256
+
257
+
' special smaller sprites can be used
248
258
sprite $triangle {
249
259
00000000000
250
260
00000F00000
@@ -259,11 +269,14 @@ sprite $triangle {
259
269
0FFFFFFFFF0
260
270
00000000000
261
271
}
262
-
Rel(user, system, "orders", "http", "only small sprites looks ok, like the small triangle", "triangle")
272
+
Rel_R(user1, system, "orders", "http", "small sprites, like the small triangle", $sprite="triangle")
273
+
274
+
' if sprite starts with &, sprite defines a OpenIconic, details see https://useiconic.com/open/
275
+
Rel_D(user, user1, "requests", "async message", "if sprite starts with &, it defines a OpenIconic like &envelope-closed", $sprite="&envelope-closed")
263
276
@enduml
264
277
```
265
278
266
-

279
+

0 commit comments