forked from HEL/chronos
		
	added various participant types/icons
This commit is contained in:
		| @@ -53,15 +53,15 @@ | ||||
|   } | ||||
|  | ||||
|   // Compute column widths | ||||
|   // Compute minimum widths for participant names | ||||
|   // Compute minimum widths for participant names and shapes | ||||
|   let widths = () | ||||
|   for i in range(participants.len() - 1) { | ||||
|     let p1 = participants.at(i) | ||||
|     let p2 = participants.at(i + 1) | ||||
|     let w1 = if p1.invisible {0pt} else {measure(box(p1.display-name)).width} | ||||
|     let w2 = if p2.invisible {0pt} else {measure(box(p2.display-name)).width} | ||||
|     w1 += PAR-PAD.last() * 2 | ||||
|     w2 += PAR-PAD.last() * 2 | ||||
|     let m1 = participant.get-size(p1) | ||||
|     let m2 = participant.get-size(p2) | ||||
|     let w1 = m1.width | ||||
|     let w2 = m2.width | ||||
|     widths.push(w1 / 2pt + w2 / 2pt + PAR-SPACE) | ||||
|   } | ||||
|  | ||||
| @@ -267,14 +267,7 @@ | ||||
|       } | ||||
|  | ||||
|       // Draw participants (end) | ||||
|       draw.content( | ||||
|         (x, y), | ||||
|         p.display-name, | ||||
|         name: p.name, | ||||
|         frame: "rect", | ||||
|         padding: PAR-PAD, | ||||
|         anchor: "north" | ||||
|       ) | ||||
|       draw-par(p, y: y, bottom: true) | ||||
|     } | ||||
|   }) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user