fix grid diagram shift
This commit is contained in:
parent
a32319d598
commit
180a444ca0
1 changed files with 3 additions and 0 deletions
|
|
@ -1245,6 +1245,9 @@ func adjustCrossRankSpacing(g *d2graph.Graph, rankSep float64, isHorizontal bool
|
||||||
prevMarginBottom = make(map[*d2graph.Object]float64)
|
prevMarginBottom = make(map[*d2graph.Object]float64)
|
||||||
}
|
}
|
||||||
for _, obj := range g.Objects {
|
for _, obj := range g.Objects {
|
||||||
|
if obj.IsGridDiagram() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
margin, padding := getSpacing(obj)
|
margin, padding := getSpacing(obj)
|
||||||
if !isHorizontal {
|
if !isHorizontal {
|
||||||
if prevShift, has := prevMarginBottom[obj]; has {
|
if prevShift, has := prevMarginBottom[obj]; has {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue