[6240] Ability to call arrangeAll on diagrams from outside the component#6244
Open
OrlannC wants to merge 1 commit intoeclipse-sirius:masterfrom
Open
[6240] Ability to call arrangeAll on diagrams from outside the component#6244OrlannC wants to merge 1 commit intoeclipse-sirius:masterfrom
OrlannC wants to merge 1 commit intoeclipse-sirius:masterfrom
Conversation
66ba370 to
60cb3f7
Compare
sbegaudeau
requested changes
Mar 4, 2026
| export interface WorkbenchMainRepresentationHandle { | ||
| id: string; | ||
| applySelection: ((selection: Selection) => void) | null; | ||
| applyLayout: ((layoutOptions: Record<string, string>) => Promise<void>) | null; |
Member
There was a problem hiding this comment.
This is only necessary for diagrams, it has no reason to exist for other representations. None of this should impact other representations or the workbench itself.
Author
There was a problem hiding this comment.
I removed the impacts on the other representations
1 task
ec1e9cd to
00ba5d2
Compare
Bug: eclipse-sirius#6240 Signed-off-by: Orlann Cailleau <[email protected]>
00ba5d2 to
7056c1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug: #6240
Pull request template
General purpose
What is the main goal of this pull request?
Project management
priority:andpr:labels been added to the pull request? (In case of doubt, start with the labelspriority: lowandpr: to review later)area:,difficulty:,type:)CHANGELOG.adocbeen updated to reference the relevant issues?CHANGELOG.adoc? (Including changes in the GraphQL API)CHANGELOG.adoc? For example indoc/screenshots/2022.5.0-my-new-feature.pngArchitectural decision records (ADR)
[doc]?CHANGELOG.adoc?Dependencies
CHANGELOG.adoc?CHANGELOG.adoc?Frontend
This section is not relevant if your contribution does not come with changes to the frontend.
General purpose
Typing
We need to improve the typing of our code, as such, we require every contribution to come with proper TypeScript typing for both changes contributing new files and those modifying existing files.
Please ensure that the following statements are true for each file created or modified (this may require you to improve code outside of your contribution).
useMutation<DATA_TYPE, VARIABLE_TYPE>(…)useQuery<DATA_TYPE, VARIABLE_TYPE>(…)useSubscription<DATA_TYPE, VARIABLE_TYPE>(…)useMachine<CONTEXT_TYPE, EVENTS_TYPE>(…)useState<STATE_TYPE>(…)?.(if the GraphQL API specifies that a field cannot benull, do not treat it has potentiallynullfor example)let diagram: Diagram | null = null;)Backend
This section is not relevant if your contribution does not come with changes to the backend.
General purpose
Architecture
Review
How to test this PR?
It can be tested by calling the new applyLayout method on a diagram workbench handle. For example by obtaining the handle from another view with workbench.getDisplayedRepresentationHandle() and calling the applyLayout method.