Class: SelectorManager

select.SelectorManager()

Manage all selector objects (selection boxes).

Constructor

new SelectorManager()

Sets up properties and calls initGroup.

Source:

Methods

getRubberBandBox() → {SVGRectElement}

Source:
Returns:

The rubberBandBox DOM element. This is the rectangle drawn by the user for selecting/zooming

Type
SVGRectElement

initGroup() → {void}

Resets the parent selector group element.

Source:
Returns:
Type
void

releaseSelector(elem) → {void}

Removes the selector of the given element (hides selection box).

Parameters:
Name Type Description
elem Element

DOM element to remove the selector for

Source:
Returns:
Type
void

requestSelector(elem, bboxopt) → {Selector}

Parameters:
Name Type Attributes Description
elem Element

DOM element to get the selector for

bbox module:utilities.BBoxObject <optional>

Optional bbox to use for reset (prevents duplicate getBBox call).

Source:
Returns:

The selector based on the given element

Type
Selector