Editor.Selection

Methods

Editor.Selection.register (type)

Editor.Selection.reset ()

Editor.Selection.local ()

Returns a Editor.Selection.ConfirmableSelectionHelper instance.

Editor.Selection.confirm ()

Confirms all current selecting objects, no matter which type they are. This operation may trigger deactivated and activated events.

Editor.Selection.cancel ()

Cancels all current selecting objects, no matter which type they are. This operation may trigger selected and unselected events.

Editor.Selection.confirmed (type)

Check if selection is confirmed.

Editor.Selection.select (type, id[, unselectOthers, confirm])

Select item with its id.

Editor.Selection.unselect (type, id[, confirm])

Unselect item with its id.

Editor.Selection.hover (type, id)

Hover item with its id. If id is null, it means hover out.

Editor.Selection.setContext (type, id)

Editor.Selection.patch (type, srcID, destID)

Editor.Selection.clear (type)

Editor.Selection.hovering (type)

Editor.Selection.contexts (type)

Editor.Selection.curActivate (type)

Editor.Selection.curGlobalActivate (type)

Editor.Selection.curSelection (type)

Editor.Selection.filter (items, mode, func)