-
Notifications
You must be signed in to change notification settings - Fork 208
/
ISelectionProvider.ts
26 lines (23 loc) · 1.14 KB
/
ISelectionProvider.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module UnifiedSelection
*/
import { IModelConnection } from "@itwin/core-frontend";
import { KeySet } from "@itwin/presentation-common";
import { SelectionChangeEvent } from "./SelectionChangeEvent";
/**
* Selection provider interface which provides main selection and sub-selection.
* @public
*/
export interface ISelectionProvider {
/** An event that's fired when selection changes */
selectionChange: SelectionChangeEvent;
/** Get the selection stored in the provider.
* @param imodel iModel connection which the selection is associated with.
* @param level Level of the selection (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
*/
getSelection(imodel: IModelConnection, level: number): Readonly<KeySet>;
}