Source File
group_geometry.go
Belonging Package
github.com/pancsta/d2/d2layouts/d2talalayout/internal/layoutgraph
package layoutgraph// ClusterGeometryWork is the mutation contract used while synchronizing// cluster geometry. Layoutgraph owns the geometry; callers that need guarded// descendant movement provide the operations on top of the shared work budget.type ClusterGeometryWork interface {SharedWorkStepperMoveNodeWithChildren(node *Node, dx, dy float64) errorPositionContainerChildren(node *Node) error}type unmeteredGroupGeometryWork struct{}func (unmeteredGroupGeometryWork) () error { return nil }func (unmeteredGroupGeometryWork) () error { return nil }func (unmeteredGroupGeometryWork) ( *Node, , float64) error {.moveNodeWithChildren(, )return nil}func (unmeteredGroupGeometryWork) ( *Node) error {.positionContainerChildren(false)return nil}var unmeteredGroupGeometry = unmeteredGroupGeometryWork{}
![]() |
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. |