forked from HEL/chronos
		
	minor style improvements
This commit is contained in:
		| @@ -120,7 +120,7 @@ | ||||
|     let m = measure(box(par.display-name)) | ||||
|     let f = if i1 > i2 {-1} else {1} | ||||
|     end-info.x -= (m.width + PAR-PAD.last() * 2) / 2pt * f | ||||
|     shapes += participant.render(x-pos, par, y: y) | ||||
|     shapes += participant.render(x-pos, par, y: y - CREATE-OFFSET) | ||||
|   } | ||||
|  | ||||
|   end-info.ll-lvl = lifelines.at(i2).level * LIFELINE-W / 2 | ||||
| @@ -146,11 +146,13 @@ | ||||
|   let style = ( | ||||
|     mark: ( | ||||
|       start: get-arrow-marks(elmt.start-tip, elmt.color), | ||||
|       end: get-arrow-marks(elmt.end-tip, elmt.color) | ||||
|       end: get-arrow-marks(elmt.end-tip, elmt.color), | ||||
|       scale: 1.2 | ||||
|     ), | ||||
|     stroke: ( | ||||
|       dash: if elmt.dashed {"dashed"} else {"solid"}, | ||||
|       paint: elmt.color | ||||
|       dash: if elmt.dashed {(2pt,2pt)} else {"solid"}, | ||||
|       paint: elmt.color, | ||||
|       thickness: .5pt | ||||
|     ) | ||||
|   ) | ||||
|  | ||||
| @@ -217,6 +219,7 @@ | ||||
|     lifelines.at(i2) = dst-line | ||||
|   } | ||||
|   if elmt.create-dst { | ||||
|     y -= CREATE-OFFSET | ||||
|     let dst-line = lifelines.at(i2) | ||||
|     dst-line.lines.push(("create", y)) | ||||
|     lifelines.at(i2) = dst-line | ||||
|   | ||||
		Reference in New Issue
	
	Block a user