Editor.Selection
Methods
Editor.Selection.register (type)
- typestring
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)
- typestring
Check if selection is confirmed.
Editor.Selection.select (type, id[, unselectOthers, confirm])
- typestring
- idstring
- unselectOthersboolean
- confirmboolean
Select item with its id.
Editor.Selection.unselect (type, id[, confirm])
- typestring
- idstring
- confirmboolean
Unselect item with its id.
Editor.Selection.hover (type, id)
- typestring
- idstring
Hover item with its id. If id is null, it means hover out.
Editor.Selection.setContext (type, id)
- typestring
- idstring
Editor.Selection.patch (type, srcID, destID)
- typestring
- srcIDstring
- destIDstring
Editor.Selection.clear (type)
- typestring
Editor.Selection.hovering (type)
- typestring
Editor.Selection.contexts (type)
- typestring
Editor.Selection.curActivate (type)
- typestring
Editor.Selection.curGlobalActivate (type)
- typestring
Editor.Selection.curSelection (type)
- typestring
Editor.Selection.filter (items, mode, func)
- itemsarray(string)
- modestring - 'top-level', 'deep' and 'name'
- funcfunction
