IInvertableSelectionHandler
Handles the selection that can be inverted.
export interface IInvertableSelectionHandler<T extends InvertableSelection<any>>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
Registers a callback that will be fired when the selection changes. Returns unsubscribe function, that will unregister it, once called. Multiple callbacks can be registered by this function. |
Methods
Method | Description |
|---|---|
Change the selection. | |
Clear the current selection. | |
Returns the current selection. | |
Invert the current selection. |
Property details
IInvertableSelectionHandler.onSelectionChangedproperty
Registers a callback that will be fired when the selection changes. Returns unsubscribe function, that will unregister it, once called.
Multiple callbacks can be registered by this function.
onSelectionChanged: CallbackRegistration<OnSelectionChangedCallbackPayload<T>>;
Method details
IInvertableSelectionHandler.changeSelection()method
Change the selection.
changeSelection(selection: T): void;
Parameters
Parameter | Type | Description |
|---|---|---|
selection | T | new selection |
Returns
void
IInvertableSelectionHandler.clearSelection()method
Clear the current selection.
clearSelection(): void;
Returns
void
IInvertableSelectionHandler.getSelection()method
Returns the current selection.
getSelection(): T;
Returns
T
IInvertableSelectionHandler.invertSelection()method
Invert the current selection.
invertSelection(): void;
Returns
void