Source File
label.go
Belonging Package
github.com/pancsta/d2/d2layouts/d2talalayout/internal/layoutgraph
package layoutgraphimport// Label is the label state attached to a layout node or edge.type Label struct {Text stringPosition label.PositionWidth float64Height float64positionFixed bool}// PositionFixed reports whether Position was supplied by the caller and must// be preserved by automatic label placement.func ( *Label) () bool {return .positionFixed}// FixPosition marks Position as supplied by the caller.func ( *Label) () {.positionFixed = true}
![]() |
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. |