AddSelection adds the specified Selection object's nodes to those in the current selection and returns a new Selection object.
(sel *Selection)
| 21 | // AddSelection adds the specified Selection object's nodes to those in the |
| 22 | // current selection and returns a new Selection object. |
| 23 | func (s *Selection) AddSelection(sel *Selection) *Selection { |
| 24 | if sel == nil { |
| 25 | return s.AddNodes() |
| 26 | } |
| 27 | return s.AddNodes(sel.Nodes...) |
| 28 | } |
| 29 | |
| 30 | // Union is an alias for AddSelection. |
| 31 | func (s *Selection) Union(sel *Selection) *Selection { |