Two.Group.Children

A children collection which is accessible both by index and by object id.

Children.ids

Map of all elements in the list keyed by ids.

Children.attach

ArgumentDescription
childrenThe objects which extend Two.Shape to be added.

Adds elements to the ids map.

Children.detach

ArgumentDescription
childrenThe objects which extend Two.Shape to be removed.

Removes elements to the ids map.