lifelines
This commit is contained in:
parent
641850cf5e
commit
6b467095ae
2 changed files with 6 additions and 3 deletions
|
|
@ -19,3 +19,7 @@ const SPAN_DEPTH_GROWTH_FACTOR = 8.
|
||||||
|
|
||||||
// when a span has a single messages
|
// when a span has a single messages
|
||||||
const MIN_SPAN_HEIGHT = 80.
|
const MIN_SPAN_HEIGHT = 80.
|
||||||
|
|
||||||
|
const LIFELINE_STROKE_WIDTH int = 2
|
||||||
|
|
||||||
|
const LIFELINE_STROKE_DASH int = 8
|
||||||
|
|
|
||||||
|
|
@ -134,9 +134,8 @@ func (sd *sequenceDiagram) addLifelineEdges() {
|
||||||
sd.lifelines = append(sd.lifelines, &d2graph.Edge{
|
sd.lifelines = append(sd.lifelines, &d2graph.Edge{
|
||||||
Attributes: d2graph.Attributes{
|
Attributes: d2graph.Attributes{
|
||||||
Style: d2graph.Style{
|
Style: d2graph.Style{
|
||||||
StrokeDash: &d2graph.Scalar{Value: "10"},
|
StrokeDash: &d2graph.Scalar{Value: fmt.Sprintf("%d", LIFELINE_STROKE_DASH)},
|
||||||
Stroke: actor.Attributes.Style.Stroke,
|
StrokeWidth: &d2graph.Scalar{Value: fmt.Sprintf("%d", LIFELINE_STROKE_WIDTH)},
|
||||||
StrokeWidth: actor.Attributes.Style.StrokeWidth,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Src: actor,
|
Src: actor,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue