@itwin/presentation-frontend 4.0.0-dev.21 → 4.0.0-dev.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/presentation-frontend/ConnectivityInformationProvider.d.ts +29 -29
- package/lib/cjs/presentation-frontend/ConnectivityInformationProvider.js +47 -47
- package/lib/cjs/presentation-frontend/ConnectivityInformationProvider.js.map +1 -1
- package/lib/cjs/presentation-frontend/Diagnostics.d.ts +14 -14
- package/lib/cjs/presentation-frontend/Diagnostics.js +61 -61
- package/lib/cjs/presentation-frontend/Diagnostics.js.map +1 -1
- package/lib/cjs/presentation-frontend/FrontendLoggerCategory.d.ts +12 -12
- package/lib/cjs/presentation-frontend/FrontendLoggerCategory.js +20 -20
- package/lib/cjs/presentation-frontend/FrontendLoggerCategory.js.map +1 -1
- package/lib/cjs/presentation-frontend/IpcRequestsHandler.d.ts +10 -10
- package/lib/cjs/presentation-frontend/IpcRequestsHandler.js +41 -41
- package/lib/cjs/presentation-frontend/IpcRequestsHandler.js.map +1 -1
- package/lib/cjs/presentation-frontend/LocalizationHelper.d.ts +10 -10
- package/lib/cjs/presentation-frontend/LocalizationHelper.js +31 -31
- package/lib/cjs/presentation-frontend/LocalizationHelper.js.map +1 -1
- package/lib/cjs/presentation-frontend/Presentation.d.ts +73 -73
- package/lib/cjs/presentation-frontend/Presentation.js +160 -160
- package/lib/cjs/presentation-frontend/Presentation.js.map +1 -1
- package/lib/cjs/presentation-frontend/PresentationManager.d.ts +186 -186
- package/lib/cjs/presentation-frontend/PresentationManager.js +436 -436
- package/lib/cjs/presentation-frontend/PresentationManager.js.map +1 -1
- package/lib/cjs/presentation-frontend/RulesetManager.d.ts +63 -63
- package/lib/cjs/presentation-frontend/RulesetManager.js +85 -85
- package/lib/cjs/presentation-frontend/RulesetManager.js.map +1 -1
- package/lib/cjs/presentation-frontend/RulesetVariablesManager.d.ts +143 -143
- package/lib/cjs/presentation-frontend/RulesetVariablesManager.js +195 -195
- package/lib/cjs/presentation-frontend/RulesetVariablesManager.js.map +1 -1
- package/lib/cjs/presentation-frontend/StateTracker.d.ts +38 -38
- package/lib/cjs/presentation-frontend/StateTracker.js +129 -129
- package/lib/cjs/presentation-frontend/StateTracker.js.map +1 -1
- package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts +132 -132
- package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +525 -525
- package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
- package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts +111 -111
- package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js +293 -293
- package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/HiliteRules.json +172 -172
- package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.d.ts +52 -52
- package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.js +97 -97
- package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/ISelectionProvider.d.ts +19 -19
- package/lib/cjs/presentation-frontend/selection/ISelectionProvider.js +9 -9
- package/lib/cjs/presentation-frontend/selection/ISelectionProvider.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.d.ts +52 -52
- package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.js +33 -33
- package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/SelectionHandler.d.ts +103 -103
- package/lib/cjs/presentation-frontend/selection/SelectionHandler.js +108 -108
- package/lib/cjs/presentation-frontend/selection/SelectionHandler.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/SelectionHelper.d.ts +17 -17
- package/lib/cjs/presentation-frontend/selection/SelectionHelper.js +40 -40
- package/lib/cjs/presentation-frontend/selection/SelectionHelper.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/SelectionManager.d.ts +139 -139
- package/lib/cjs/presentation-frontend/selection/SelectionManager.js +414 -414
- package/lib/cjs/presentation-frontend/selection/SelectionManager.js.map +1 -1
- package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.d.ts +59 -59
- package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.js +91 -91
- package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.js.map +1 -1
- package/lib/cjs/presentation-frontend.d.ts +34 -34
- package/lib/cjs/presentation-frontend.js +50 -50
- package/lib/cjs/presentation-frontend.js.map +1 -1
- package/lib/esm/presentation-frontend/ConnectivityInformationProvider.d.ts +29 -29
- package/lib/esm/presentation-frontend/ConnectivityInformationProvider.js +43 -43
- package/lib/esm/presentation-frontend/ConnectivityInformationProvider.js.map +1 -1
- package/lib/esm/presentation-frontend/Diagnostics.d.ts +14 -14
- package/lib/esm/presentation-frontend/Diagnostics.js +56 -56
- package/lib/esm/presentation-frontend/Diagnostics.js.map +1 -1
- package/lib/esm/presentation-frontend/FrontendLoggerCategory.d.ts +12 -12
- package/lib/esm/presentation-frontend/FrontendLoggerCategory.js +17 -17
- package/lib/esm/presentation-frontend/FrontendLoggerCategory.js.map +1 -1
- package/lib/esm/presentation-frontend/IpcRequestsHandler.d.ts +10 -10
- package/lib/esm/presentation-frontend/IpcRequestsHandler.js +37 -37
- package/lib/esm/presentation-frontend/IpcRequestsHandler.js.map +1 -1
- package/lib/esm/presentation-frontend/LocalizationHelper.d.ts +10 -10
- package/lib/esm/presentation-frontend/LocalizationHelper.js +27 -27
- package/lib/esm/presentation-frontend/LocalizationHelper.js.map +1 -1
- package/lib/esm/presentation-frontend/Presentation.d.ts +73 -73
- package/lib/esm/presentation-frontend/Presentation.js +156 -156
- package/lib/esm/presentation-frontend/Presentation.js.map +1 -1
- package/lib/esm/presentation-frontend/PresentationManager.d.ts +186 -186
- package/lib/esm/presentation-frontend/PresentationManager.js +431 -431
- package/lib/esm/presentation-frontend/PresentationManager.js.map +1 -1
- package/lib/esm/presentation-frontend/RulesetManager.d.ts +63 -63
- package/lib/esm/presentation-frontend/RulesetManager.js +81 -81
- package/lib/esm/presentation-frontend/RulesetManager.js.map +1 -1
- package/lib/esm/presentation-frontend/RulesetVariablesManager.d.ts +143 -143
- package/lib/esm/presentation-frontend/RulesetVariablesManager.js +191 -191
- package/lib/esm/presentation-frontend/RulesetVariablesManager.js.map +1 -1
- package/lib/esm/presentation-frontend/StateTracker.d.ts +38 -38
- package/lib/esm/presentation-frontend/StateTracker.js +125 -125
- package/lib/esm/presentation-frontend/StateTracker.js.map +1 -1
- package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts +132 -132
- package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +519 -519
- package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
- package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts +111 -111
- package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js +285 -285
- package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/HiliteRules.json +172 -172
- package/lib/esm/presentation-frontend/selection/HiliteSetProvider.d.ts +52 -52
- package/lib/esm/presentation-frontend/selection/HiliteSetProvider.js +93 -93
- package/lib/esm/presentation-frontend/selection/HiliteSetProvider.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/ISelectionProvider.d.ts +19 -19
- package/lib/esm/presentation-frontend/selection/ISelectionProvider.js +8 -8
- package/lib/esm/presentation-frontend/selection/ISelectionProvider.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.d.ts +52 -52
- package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js +29 -29
- package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/SelectionHandler.d.ts +103 -103
- package/lib/esm/presentation-frontend/selection/SelectionHandler.js +104 -104
- package/lib/esm/presentation-frontend/selection/SelectionHandler.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/SelectionHelper.d.ts +17 -17
- package/lib/esm/presentation-frontend/selection/SelectionHelper.js +36 -36
- package/lib/esm/presentation-frontend/selection/SelectionHelper.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/SelectionManager.d.ts +139 -139
- package/lib/esm/presentation-frontend/selection/SelectionManager.js +409 -409
- package/lib/esm/presentation-frontend/selection/SelectionManager.js.map +1 -1
- package/lib/esm/presentation-frontend/selection/SelectionScopesManager.d.ts +59 -59
- package/lib/esm/presentation-frontend/selection/SelectionScopesManager.js +85 -85
- package/lib/esm/presentation-frontend/selection/SelectionScopesManager.js.map +1 -1
- package/lib/esm/presentation-frontend.d.ts +34 -34
- package/lib/esm/presentation-frontend.js +38 -38
- package/lib/esm/presentation-frontend.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module UnifiedSelection
|
|
3
|
-
*/
|
|
4
|
-
import { Id64Arg, IDisposable } from "@itwin/core-bentley";
|
|
5
|
-
import { IModelConnection } from "@itwin/core-frontend";
|
|
6
|
-
import { Keys, KeySet, SelectionScope, SelectionScopeProps } from "@itwin/presentation-common";
|
|
7
|
-
import { HiliteSet } from "./HiliteSetProvider";
|
|
8
|
-
import { ISelectionProvider } from "./ISelectionProvider";
|
|
9
|
-
import { SelectionChangeEvent } from "./SelectionChangeEvent";
|
|
10
|
-
import { SelectionScopesManager } from "./SelectionScopesManager";
|
|
11
|
-
/**
|
|
12
|
-
* Properties for creating [[SelectionManager]].
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export interface SelectionManagerProps {
|
|
16
|
-
/** A manager for [selection scopes]($docs/presentation/unified-selection/index#selection-scopes) */
|
|
17
|
-
scopes: SelectionScopesManager;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The selection manager which stores the overall selection.
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare class SelectionManager implements ISelectionProvider {
|
|
24
|
-
private _selectionContainerMap;
|
|
25
|
-
private _imodelToolSelectionSyncHandlers;
|
|
26
|
-
private _hiliteSetProviders;
|
|
27
|
-
/** An event which gets broadcasted on selection changes */
|
|
28
|
-
readonly selectionChange: SelectionChangeEvent;
|
|
29
|
-
/** Manager for [selection scopes]($docs/presentation/unified-selection/index#selection-scopes) */
|
|
30
|
-
readonly scopes: SelectionScopesManager;
|
|
31
|
-
/**
|
|
32
|
-
* Creates an instance of SelectionManager.
|
|
33
|
-
*/
|
|
34
|
-
constructor(props: SelectionManagerProps);
|
|
35
|
-
private onConnectionClose;
|
|
36
|
-
private getContainer;
|
|
37
|
-
/** @internal */
|
|
38
|
-
getToolSelectionSyncHandler(imodel: IModelConnection): ToolSelectionSyncHandler | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Request the manager to sync with imodel's tool selection (see `IModelConnection.selectionSet`).
|
|
41
|
-
*/
|
|
42
|
-
setSyncWithIModelToolSelection(imodel: IModelConnection, sync?: boolean): void;
|
|
43
|
-
/**
|
|
44
|
-
* Temporarily suspends tool selection synchronization until the returned `IDisposable`
|
|
45
|
-
* is disposed.
|
|
46
|
-
*/
|
|
47
|
-
suspendIModelToolSelectionSync(imodel: IModelConnection): IDisposable;
|
|
48
|
-
/** Get the selection levels currently stored in this manager for the specified imodel */
|
|
49
|
-
getSelectionLevels(imodel: IModelConnection): number[];
|
|
50
|
-
/** Get the selection currently stored in this manager */
|
|
51
|
-
getSelection(imodel: IModelConnection, level?: number): Readonly<KeySet>;
|
|
52
|
-
private handleEvent;
|
|
53
|
-
/**
|
|
54
|
-
* Add keys to the selection
|
|
55
|
-
* @param source Name of the selection source
|
|
56
|
-
* @param imodel iModel associated with the selection
|
|
57
|
-
* @param keys Keys to add
|
|
58
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
59
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
60
|
-
*/
|
|
61
|
-
addToSelection(source: string, imodel: IModelConnection, keys: Keys, level?: number, rulesetId?: string): void;
|
|
62
|
-
/**
|
|
63
|
-
* Remove keys from current selection
|
|
64
|
-
* @param source Name of the selection source
|
|
65
|
-
* @param imodel iModel associated with the selection
|
|
66
|
-
* @param keys Keys to remove
|
|
67
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
68
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
69
|
-
*/
|
|
70
|
-
removeFromSelection(source: string, imodel: IModelConnection, keys: Keys, level?: number, rulesetId?: string): void;
|
|
71
|
-
/**
|
|
72
|
-
* Replace current selection
|
|
73
|
-
* @param source Name of the selection source
|
|
74
|
-
* @param imodel iModel associated with the selection
|
|
75
|
-
* @param keys Keys to add
|
|
76
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
77
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
78
|
-
*/
|
|
79
|
-
replaceSelection(source: string, imodel: IModelConnection, keys: Keys, level?: number, rulesetId?: string): void;
|
|
80
|
-
/**
|
|
81
|
-
* Clear current selection
|
|
82
|
-
* @param source Name of the selection source
|
|
83
|
-
* @param imodel iModel associated with the selection
|
|
84
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
85
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
86
|
-
*/
|
|
87
|
-
clearSelection(source: string, imodel: IModelConnection, level?: number, rulesetId?: string): void;
|
|
88
|
-
/**
|
|
89
|
-
* Add keys to selection after applying [selection scope]($docs/presentation/unified-selection/index#selection-scopes) on them.
|
|
90
|
-
* @param source Name of the selection source
|
|
91
|
-
* @param imodel iModel associated with the selection
|
|
92
|
-
* @param ids Element IDs to add
|
|
93
|
-
* @param scope Selection scope to apply
|
|
94
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
95
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
96
|
-
*/
|
|
97
|
-
addToSelectionWithScope(source: string, imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string, level?: number, rulesetId?: string): Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Remove keys from current selection after applying [selection scope]($docs/presentation/unified-selection/index#selection-scopes) on them.
|
|
100
|
-
* @param source Name of the selection source
|
|
101
|
-
* @param imodel iModel associated with the selection
|
|
102
|
-
* @param ids Element IDs to remove
|
|
103
|
-
* @param scope Selection scope to apply
|
|
104
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
105
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
106
|
-
*/
|
|
107
|
-
removeFromSelectionWithScope(source: string, imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string, level?: number, rulesetId?: string): Promise<void>;
|
|
108
|
-
/**
|
|
109
|
-
* Replace current selection with keys after applying [selection scope]($docs/presentation/unified-selection/index#selection-scopes) on them.
|
|
110
|
-
* @param source Name of the selection source
|
|
111
|
-
* @param imodel iModel associated with the selection
|
|
112
|
-
* @param ids Element IDs to replace with
|
|
113
|
-
* @param scope Selection scope to apply
|
|
114
|
-
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
115
|
-
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
116
|
-
*/
|
|
117
|
-
replaceSelectionWithScope(source: string, imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string, level?: number, rulesetId?: string): Promise<void>;
|
|
118
|
-
/**
|
|
119
|
-
* Get the current hilite set for the specified imodel
|
|
120
|
-
* @public
|
|
121
|
-
*/
|
|
122
|
-
getHiliteSet(imodel: IModelConnection): Promise<HiliteSet>;
|
|
123
|
-
}
|
|
124
|
-
/** @internal */
|
|
125
|
-
export declare const TRANSIENT_ELEMENT_CLASSNAME = "/TRANSIENT";
|
|
126
|
-
/** @internal */
|
|
127
|
-
export declare class ToolSelectionSyncHandler implements IDisposable {
|
|
128
|
-
private _selectionSourceName;
|
|
129
|
-
private _logicalSelection;
|
|
130
|
-
private _imodel;
|
|
131
|
-
private _imodelToolSelectionListenerDisposeFunc;
|
|
132
|
-
private _asyncsTracker;
|
|
133
|
-
isSuspended?: boolean;
|
|
134
|
-
constructor(imodel: IModelConnection, logicalSelection: SelectionManager);
|
|
135
|
-
dispose(): void;
|
|
136
|
-
/** note: used only it tests */
|
|
137
|
-
get pendingAsyncs(): Set<string>;
|
|
138
|
-
private onToolSelectionChanged;
|
|
139
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module UnifiedSelection
|
|
3
|
+
*/
|
|
4
|
+
import { Id64Arg, IDisposable } from "@itwin/core-bentley";
|
|
5
|
+
import { IModelConnection } from "@itwin/core-frontend";
|
|
6
|
+
import { Keys, KeySet, SelectionScope, SelectionScopeProps } from "@itwin/presentation-common";
|
|
7
|
+
import { HiliteSet } from "./HiliteSetProvider";
|
|
8
|
+
import { ISelectionProvider } from "./ISelectionProvider";
|
|
9
|
+
import { SelectionChangeEvent } from "./SelectionChangeEvent";
|
|
10
|
+
import { SelectionScopesManager } from "./SelectionScopesManager";
|
|
11
|
+
/**
|
|
12
|
+
* Properties for creating [[SelectionManager]].
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface SelectionManagerProps {
|
|
16
|
+
/** A manager for [selection scopes]($docs/presentation/unified-selection/index#selection-scopes) */
|
|
17
|
+
scopes: SelectionScopesManager;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The selection manager which stores the overall selection.
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare class SelectionManager implements ISelectionProvider {
|
|
24
|
+
private _selectionContainerMap;
|
|
25
|
+
private _imodelToolSelectionSyncHandlers;
|
|
26
|
+
private _hiliteSetProviders;
|
|
27
|
+
/** An event which gets broadcasted on selection changes */
|
|
28
|
+
readonly selectionChange: SelectionChangeEvent;
|
|
29
|
+
/** Manager for [selection scopes]($docs/presentation/unified-selection/index#selection-scopes) */
|
|
30
|
+
readonly scopes: SelectionScopesManager;
|
|
31
|
+
/**
|
|
32
|
+
* Creates an instance of SelectionManager.
|
|
33
|
+
*/
|
|
34
|
+
constructor(props: SelectionManagerProps);
|
|
35
|
+
private onConnectionClose;
|
|
36
|
+
private getContainer;
|
|
37
|
+
/** @internal */
|
|
38
|
+
getToolSelectionSyncHandler(imodel: IModelConnection): ToolSelectionSyncHandler | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Request the manager to sync with imodel's tool selection (see `IModelConnection.selectionSet`).
|
|
41
|
+
*/
|
|
42
|
+
setSyncWithIModelToolSelection(imodel: IModelConnection, sync?: boolean): void;
|
|
43
|
+
/**
|
|
44
|
+
* Temporarily suspends tool selection synchronization until the returned `IDisposable`
|
|
45
|
+
* is disposed.
|
|
46
|
+
*/
|
|
47
|
+
suspendIModelToolSelectionSync(imodel: IModelConnection): IDisposable;
|
|
48
|
+
/** Get the selection levels currently stored in this manager for the specified imodel */
|
|
49
|
+
getSelectionLevels(imodel: IModelConnection): number[];
|
|
50
|
+
/** Get the selection currently stored in this manager */
|
|
51
|
+
getSelection(imodel: IModelConnection, level?: number): Readonly<KeySet>;
|
|
52
|
+
private handleEvent;
|
|
53
|
+
/**
|
|
54
|
+
* Add keys to the selection
|
|
55
|
+
* @param source Name of the selection source
|
|
56
|
+
* @param imodel iModel associated with the selection
|
|
57
|
+
* @param keys Keys to add
|
|
58
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
59
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
60
|
+
*/
|
|
61
|
+
addToSelection(source: string, imodel: IModelConnection, keys: Keys, level?: number, rulesetId?: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* Remove keys from current selection
|
|
64
|
+
* @param source Name of the selection source
|
|
65
|
+
* @param imodel iModel associated with the selection
|
|
66
|
+
* @param keys Keys to remove
|
|
67
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
68
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
69
|
+
*/
|
|
70
|
+
removeFromSelection(source: string, imodel: IModelConnection, keys: Keys, level?: number, rulesetId?: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* Replace current selection
|
|
73
|
+
* @param source Name of the selection source
|
|
74
|
+
* @param imodel iModel associated with the selection
|
|
75
|
+
* @param keys Keys to add
|
|
76
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
77
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
78
|
+
*/
|
|
79
|
+
replaceSelection(source: string, imodel: IModelConnection, keys: Keys, level?: number, rulesetId?: string): void;
|
|
80
|
+
/**
|
|
81
|
+
* Clear current selection
|
|
82
|
+
* @param source Name of the selection source
|
|
83
|
+
* @param imodel iModel associated with the selection
|
|
84
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
85
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
86
|
+
*/
|
|
87
|
+
clearSelection(source: string, imodel: IModelConnection, level?: number, rulesetId?: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* Add keys to selection after applying [selection scope]($docs/presentation/unified-selection/index#selection-scopes) on them.
|
|
90
|
+
* @param source Name of the selection source
|
|
91
|
+
* @param imodel iModel associated with the selection
|
|
92
|
+
* @param ids Element IDs to add
|
|
93
|
+
* @param scope Selection scope to apply
|
|
94
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
95
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
96
|
+
*/
|
|
97
|
+
addToSelectionWithScope(source: string, imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string, level?: number, rulesetId?: string): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Remove keys from current selection after applying [selection scope]($docs/presentation/unified-selection/index#selection-scopes) on them.
|
|
100
|
+
* @param source Name of the selection source
|
|
101
|
+
* @param imodel iModel associated with the selection
|
|
102
|
+
* @param ids Element IDs to remove
|
|
103
|
+
* @param scope Selection scope to apply
|
|
104
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
105
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
106
|
+
*/
|
|
107
|
+
removeFromSelectionWithScope(source: string, imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string, level?: number, rulesetId?: string): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Replace current selection with keys after applying [selection scope]($docs/presentation/unified-selection/index#selection-scopes) on them.
|
|
110
|
+
* @param source Name of the selection source
|
|
111
|
+
* @param imodel iModel associated with the selection
|
|
112
|
+
* @param ids Element IDs to replace with
|
|
113
|
+
* @param scope Selection scope to apply
|
|
114
|
+
* @param level Selection level (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
|
|
115
|
+
* @param rulesetId ID of the ruleset in case the selection was changed from a rules-driven control
|
|
116
|
+
*/
|
|
117
|
+
replaceSelectionWithScope(source: string, imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string, level?: number, rulesetId?: string): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Get the current hilite set for the specified imodel
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
getHiliteSet(imodel: IModelConnection): Promise<HiliteSet>;
|
|
123
|
+
}
|
|
124
|
+
/** @internal */
|
|
125
|
+
export declare const TRANSIENT_ELEMENT_CLASSNAME = "/TRANSIENT";
|
|
126
|
+
/** @internal */
|
|
127
|
+
export declare class ToolSelectionSyncHandler implements IDisposable {
|
|
128
|
+
private _selectionSourceName;
|
|
129
|
+
private _logicalSelection;
|
|
130
|
+
private _imodel;
|
|
131
|
+
private _imodelToolSelectionListenerDisposeFunc;
|
|
132
|
+
private _asyncsTracker;
|
|
133
|
+
isSuspended?: boolean;
|
|
134
|
+
constructor(imodel: IModelConnection, logicalSelection: SelectionManager);
|
|
135
|
+
dispose(): void;
|
|
136
|
+
/** note: used only it tests */
|
|
137
|
+
get pendingAsyncs(): Set<string>;
|
|
138
|
+
private onToolSelectionChanged;
|
|
139
|
+
}
|
|
140
140
|
//# sourceMappingURL=SelectionManager.d.ts.map
|