Source File
grid_diagram.go
Belonging Package
oss.terrastruct.com/d2/d2graph
package d2graphfunc ( *Object) () bool {return != nil &&(.GridRows != nil || .GridColumns != nil)}func ( *Object) () *Object {if == nil {return nil}if .IsGridDiagram() {return}return .Parent.()}func ( *Object) () *Object {if == nil {return nil}// grid cells can be a nested grid diagramif .Parent.IsGridDiagram() {return}return .Parent.()}// TopGridDiagram returns the least nested (outermost) grid diagramfunc ( *Object) () *Object {if == nil {return nil}var *Objectif .IsGridDiagram() {=}:= .Parentfor != nil {if .IsGridDiagram() {=}= .Parent}return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |