package labelgeom
Import Path
github.com/pancsta/d2/d2layouts/d2talalayout/internal/labelgeom (on go.dev)
Dependency Relation
imports 2 packages, and imported by 3 packages
Involved Source Files
Package labelgeom contains renderer-compatible label geometry that is
shared by the mutable graph bounds and label-placement domains.
Package-Level Functions (only one)
ArrowheadTopLeft returns the renderer-compatible top-left position for an
arrowhead label. D2 stores rendered text dimensions as integers, so the
float dimensions are intentionally truncated here to preserve historical
TALA output.
![]() |
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. |