d2/d2graph/grid.go
2023-04-03 13:48:38 -07:00

6 lines
196 B
Go

package d2graph
func (obj *Object) IsGrid() bool {
return obj != nil && obj.Attributes != nil && len(obj.ChildrenArray) != 0 &&
(obj.Attributes.Rows != nil || obj.Attributes.Columns != nil)
}