Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presentation: Introduce nth level element selection scope support #3743

Merged

Conversation

grigasp
Copy link
Member

@grigasp grigasp commented Jun 3, 2022

Resolves itwin/itwinjs-backlog#164.

Introduced a new type ComputeSelectionScopeProps that has an id attribute for available scopes and also has a params: { level: number } attribute for the scope with id: "element". On the frontend objects of this new type can now be set on Presentation.selection.scopes.activeScope or passed to Presentation.selection.scopes.activeScope.computeSelection. This allows passing the level of requested ancestor when using "element" scope.

The PR also increases minor version of PresentationRpcInterface to make sure new frontends don't request old backends to compute selection in the new way and assume the backends handles the added params. Old frontends can still safely use updated backends.

@grigasp grigasp added the presentation Issues related to presentation library label Jun 3, 2022
@grigasp grigasp requested review from saskliutas and roluk June 3, 2022 12:35
@grigasp grigasp requested a review from a team as a code owner June 3, 2022 12:35
@mergify mergify bot requested a review from a team June 3, 2022 12:35
@grigasp grigasp merged commit 58d620f into release/2.19.x Jun 6, 2022
@grigasp grigasp deleted the presentation/nth-level-element-selection-scope branch June 6, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presentation Issues related to presentation library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants