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])
typestringidstringunselectOthersbooleanconfirmboolean
Select item with its id.
Editor.Selection.unselect (type, id[, confirm])
typestringidstringconfirmboolean
Unselect item with its id.
Editor.Selection.hover (type, id)
typestringidstring
Hover item with its id. If id is null, it means hover out.
Editor.Selection.setContext (type, id)
typestringidstring
Editor.Selection.patch (type, srcID, destID)
typestringsrcIDstringdestIDstring
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