changelog

This commit is contained in:
Gavin Nishizawa 2023-05-10 17:24:16 -07:00
parent 378ee71907
commit 7f1bfff6f2
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
2 changed files with 1 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- Use shape specific sizing for grid containers [#1294](https://github.com/terrastruct/d2/pull/1294)
- Grid diagrams now support nested shapes or grid diagrams [#1309](https://github.com/terrastruct/d2/pull/1309)
- Grid diagrams will now also use `grid-gap`, `vertical-gap`, and `horizontal-gap` for padding [#1309](https://github.com/terrastruct/d2/pull/1309)
- Watch mode browser uses an error favicon to easily indicate compiler errors. Thanks @sinyo-matu ! [#1240](https://github.com/terrastruct/d2/pull/1240)
- Improves grid layout performance when there are many similarly sized shapes. [#1315](https://github.com/terrastruct/d2/pull/1315)

View file

@ -114,7 +114,6 @@ func (gd *gridDiagram) cleanup(obj *d2graph.Object, graph *d2graph.Graph) {
obj.ChildrenArray = make([]*d2graph.Object, 0)
restore := func(parent, child *d2graph.Object) {
// fmt.Printf("restore %v's %v\n", parent.AbsID(), child.AbsID())
parent.Children[strings.ToLower(child.ID)] = child
parent.ChildrenArray = append(parent.ChildrenArray, child)
graph.Objects = append(graph.Objects, child)