Versions in this module Expand all Collapse all v0 v0.4.2 Aug 13, 2026 v0.4.1 Aug 10, 2026 Changes in this version + type AllSelector struct + func (s *AllSelector) Description() string + func (s *AllSelector) Select(layout *Layout) []*Node + type Edge struct + Color string + From string + Points []Point + SourcePosition float64 + SourceSide string + Style string + TargetPosition float64 + TargetSide string + To string + Visibility string + func (e *Edge) BendCount() int + type FirstTypeSelector struct + Type string + func (s *FirstTypeSelector) Description() string + func (s *FirstTypeSelector) Select(layout *Layout) []*Node + type IDSelector struct + ID string + func (s *IDSelector) Description() string + func (s *IDSelector) Select(layout *Layout) []*Node + type Layout struct + Edges []Edge + Nodes []Node + func FromLayoutGraph(graph *layout.Graph) *Layout + func (l *Layout) GetEdge(from, to string) *Edge + func (l *Layout) GetNode(id string) *Node + func (l *Layout) GetNodesByType(nodeType string) []*Node + func (l *Layout) HasEvents() bool + func (l *Layout) HasNode(id string) bool + type MultiIDSelector struct + IDs []string + func (s *MultiIDSelector) Description() string + func (s *MultiIDSelector) Missing(layout *Layout) []string + func (s *MultiIDSelector) Select(layout *Layout) []*Node + type Node struct + Color string + Height int + ID string + Text string + Type string + Width int + X int + Y int + func (n *Node) CenterX() int + func (n *Node) CenterY() int + func (n *Node) GetProperty(name string) string + type Point struct + X int + Y int + type Rule interface + Apply func(layout *Layout) error + CompactionKey func() string + Description func() string + LineNum func() int + Specificity func() int + type RuleRegistry struct + func NewRuleRegistry() *RuleRegistry + func (r *RuleRegistry) AddRule(rule Rule) + func (r *RuleRegistry) AddRuleWithScopeSpecificity(rule Rule, scopeSpec int) + func (r *RuleRegistry) ApplyAll(layout *Layout) error + func (r *RuleRegistry) ApplyAllErrors(layout *Layout) []error + func (r *RuleRegistry) Count() int + type Selector interface + Description func() string + Select func(layout *Layout) []*Node + type TextLengthCondition struct + Operator string + Value int + func (c *TextLengthCondition) Matches(node *Node) bool + type TypeSelector struct + Type string + func (s *TypeSelector) Description() string + func (s *TypeSelector) Select(layout *Layout) []*Node