ta
This commit is contained in:
parent
052faecbbd
commit
61b90ece77
3 changed files with 12 additions and 10 deletions
|
|
@ -138,6 +138,8 @@ func (c *compiler) compileLegend(g *d2graph.Graph, m *d2ir.Map) {
|
|||
}
|
||||
obj.Box = &geo.Box{}
|
||||
obj.TopLeft = geo.NewPoint(10, 10)
|
||||
obj.Width = 100
|
||||
obj.Height = 100
|
||||
objects = append(objects, obj)
|
||||
}
|
||||
|
||||
|
|
|
|||
8
testdata/d2compiler/TestCompile/legend.exp.json
generated
vendored
8
testdata/d2compiler/TestCompile/legend.exp.json
generated
vendored
|
|
@ -819,8 +819,8 @@
|
|||
"x": 10,
|
||||
"y": 10
|
||||
},
|
||||
"Width": 0,
|
||||
"Height": 0
|
||||
"Width": 100,
|
||||
"Height": 100
|
||||
},
|
||||
"attributes": {
|
||||
"label": {
|
||||
|
|
@ -916,8 +916,8 @@
|
|||
"x": 10,
|
||||
"y": 10
|
||||
},
|
||||
"Width": 0,
|
||||
"Height": 0
|
||||
"Width": 100,
|
||||
"Height": 100
|
||||
},
|
||||
"attributes": {
|
||||
"label": {
|
||||
|
|
|
|||
12
testdata/d2exporter/TestExport/legend/basic_legend.exp.json
generated
vendored
12
testdata/d2exporter/TestExport/legend/basic_legend.exp.json
generated
vendored
|
|
@ -169,8 +169,8 @@
|
|||
"x": 10,
|
||||
"y": 10
|
||||
},
|
||||
"width": 0,
|
||||
"height": 0,
|
||||
"width": 100,
|
||||
"height": 100,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
|
|
@ -210,8 +210,8 @@
|
|||
"x": 10,
|
||||
"y": 10
|
||||
},
|
||||
"width": 0,
|
||||
"height": 0,
|
||||
"width": 100,
|
||||
"height": 100,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
|
|
@ -251,8 +251,8 @@
|
|||
"x": 10,
|
||||
"y": 10
|
||||
},
|
||||
"width": 0,
|
||||
"height": 0,
|
||||
"width": 100,
|
||||
"height": 100,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
|
|
|
|||
Loading…
Reference in a new issue