forked from HEL/chronos
		
	added show-top / -bottom options to participants
This commit is contained in:
		| @@ -21,7 +21,9 @@ | ||||
|   invisible: false, | ||||
|   shape: "participant", | ||||
|   color: rgb("#E2E2F0"), | ||||
|   custom-image: none | ||||
|   custom-image: none, | ||||
|   show-bottom: true, | ||||
|   show-top: true, | ||||
| ) = { | ||||
|   return (( | ||||
|     type: "par", | ||||
| @@ -31,7 +33,9 @@ | ||||
|     invisible: invisible, | ||||
|     shape: shape, | ||||
|     color: color, | ||||
|     custom-image: custom-image | ||||
|     custom-image: custom-image, | ||||
|     show-bottom: show-bottom, | ||||
|     show-top: show-top | ||||
|   ),) | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -218,7 +218,7 @@ | ||||
|    | ||||
|   // Draw participants (start) | ||||
|   for p in participants { | ||||
|     if p.from-start and not p.invisible { | ||||
|     if p.from-start and not p.invisible and p.show-top { | ||||
|       shapes += draw-par(p) | ||||
|     } | ||||
|   } | ||||
| @@ -417,7 +417,9 @@ | ||||
|       } | ||||
|  | ||||
|       // Draw participants (end) | ||||
|       draw-par(p, y: y, bottom: true) | ||||
|       if p.show-bottom { | ||||
|         draw-par(p, y: y, bottom: true) | ||||
|       } | ||||
|     } | ||||
|   }) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user