This commit is contained in:
Alexander Wang 2025-03-04 14:21:33 -07:00
parent 052faecbbd
commit 61b90ece77
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
3 changed files with 12 additions and 10 deletions

View file

@ -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)
}

View file

@ -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": {

View file

@ -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,