Constructors
constructor
- new InteractionState(focus: function, unfocus: function, doBlink?: boolean, select?: function, unselect?: function): InteractionState
-
Parameters
-
focus: function
-
unfocus: function
-
Default value doBlink: boolean = false
-
Default value select: function = undefined
-
Default value unselect: function = undefined
Properties
Protected _currFocus
_currFocus: any[]
Protected _currSelection
_currSelection: any[]
Protected _doBlink
_doBlink: boolean
Protected _focus
_focus: function
Protected _highlightTimer
_highlightTimer: any
Protected _select
_select: function
Protected _unfocus
_unfocus: function
Protected _unselect
_unselect: function
Methods
Protected _addFocusHelper
- _addFocusHelper(selection: any): void
Protected _addSelectionHelper
- _addSelectionHelper(selection: any): void
Protected _removeSelectionHelper
- _removeSelectionHelper(selection: any, isFlashing?: boolean): void
-
Parameters
-
selection: any
-
Default value isFlashing: boolean = false
Returns void
Protected _unfocusHelper
- _unfocusHelper(selection: any, isFlashing?: boolean): void
-
Parameters
-
selection: any
-
Default value isFlashing: boolean = false
Returns void
Static getFocusColor
- getFocusColor(input: string): string
-
Parameters
Returns string
add a selection from all of the elements