thinkmap.selection.Selection

Jump To: Members

A Selection represents a view of DOM Elements that is easy to navigate and perform actions.

Most users use Selections to manipulate a display entity's assigned SVGElements (e.g. append a text element, change the radius of a circle, set a CSS class). However, selections can also represent the non-thinkmap areas of the DOM such as divs, headings, and links.

Typically, users do not construct Selections directly. Usually selections are passed to functions as parameters such in the case of a display template's added or redraw method. The other way of constructing selections is through the select and selectAll method for thinkmap.selection.

Examples:

Create a selection of all the div elements in the page thinkmap.selectAll('div');
Create selection using the body Element as the root of the selection thinkmap.select('body');

Instance Methods