Source File
labeling_access.go
Belonging Package
github.com/pancsta/d2/d2layouts/d2talalayout/internal/layoutgraph
package layoutgraphimport// LabelBoxFits reports whether outer completely contains inner.func (, *geo.Box) bool {return covers(, )}// PadLabelCandidate expands (or shrinks, for a negative value) a temporary// node box by the same amount on every side.func ( *Node) ( int) {.pad()}// LabelBoxesOverlap reports whether two node boxes overlap with the requested// padding.func ( *Node) ( *Node, float64) bool {return .doesOverlapCalc(, )}// LabelOverlapArea returns the rectangular overlap area. Callers must first prove// that the nodes overlap.func ( *Node) ( *Node) float64 {return .overlapArea()}// IsClusterEdge reports whether either endpoint is currently represented by// a cluster grouping.func ( *Edge) () bool {return != nil && .isClusterEdge()}
![]() |
The pages are generated with Golds v0.8.7. (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. |