Set sequence diagrams note to shape: page
This commit is contained in:
parent
15f83d3b03
commit
c6e389ee9a
1 changed files with 1 additions and 2 deletions
|
|
@ -115,8 +115,7 @@ func newSequenceDiagram(objects []*d2graph.Object, messages []*d2graph.Edge) *se
|
||||||
// edge groups are children of actors with no edges and children edges
|
// edge groups are children of actors with no edges and children edges
|
||||||
if child.IsSequenceDiagramNote() {
|
if child.IsSequenceDiagramNote() {
|
||||||
sd.verticalIndices[child.AbsID()] = getObjEarliestLineNum(child)
|
sd.verticalIndices[child.AbsID()] = getObjEarliestLineNum(child)
|
||||||
// TODO change to page type when it doesn't look deformed
|
child.Attributes.Shape = d2graph.Scalar{Value: shape.PAGE_TYPE}
|
||||||
child.Attributes.Shape = d2graph.Scalar{Value: shape.SQUARE_TYPE}
|
|
||||||
sd.notes = append(sd.notes, child)
|
sd.notes = append(sd.notes, child)
|
||||||
sd.objectRank[child] = rank
|
sd.objectRank[child] = rank
|
||||||
child.LabelPosition = go2.Pointer(string(label.InsideMiddleCenter))
|
child.LabelPosition = go2.Pointer(string(label.InsideMiddleCenter))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue