From 7f1bfff6f2f1cc407c7fd38f067c5f0926767791 Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Wed, 10 May 2023 17:24:16 -0700 Subject: [PATCH] changelog --- ci/release/changelogs/next.md | 1 + d2layouts/d2grid/grid_diagram.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 58f6b64db..9b2b5cafd 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -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) diff --git a/d2layouts/d2grid/grid_diagram.go b/d2layouts/d2grid/grid_diagram.go index 0db68cba3..bb02ca94b 100644 --- a/d2layouts/d2grid/grid_diagram.go +++ b/d2layouts/d2grid/grid_diagram.go @@ -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)