d2/d2graph/grid.go
2023-04-03 21:38:08 -07:00

6 lines
165 B
Go

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