-
Notifications
You must be signed in to change notification settings - Fork 50
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
Incremental layout refactoring #361
Conversation
d4ea022
to
d6dd034
Compare
...rams-layout-api/src/main/java/org/eclipse/sirius/web/diagrams/layout/api/ILayoutService.java
Show resolved
Hide resolved
Element labelElement = new Element(LabelComponent.class, labelComponentProps); | ||
List<Element> nodeChildren = new ArrayList<>(); | ||
nodeChildren.add(labelElement); | ||
nodeChildren.addAll(borderNodes); | ||
nodeChildren.addAll(childNodes); | ||
|
||
Position position = optionalPreviousNode.map(Node::getPosition).orElse(Position.UNDEFINED); | ||
Size size = optionalPreviousNode.map(Node::getSize).orElse(Size.UNDEFINED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that this will not add back the bug in which a semantic change cannot change the size of an element?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored in the last commit [285]
...c/main/java/org/eclipse/sirius/web/spring/collaborative/diagrams/DiagramCreationService.java
Show resolved
Hide resolved
.../sirius-web-diagrams/src/main/java/org/eclipse/sirius/web/diagrams/RectangularNodeStyle.java
Outdated
Show resolved
Hide resolved
...ams/src/test/java/org/eclipse/sirius/web/diagrams/renderer/DiagramRendererEdgeTestCases.java
Outdated
Show resolved
Hide resolved
...ams/src/test/java/org/eclipse/sirius/web/diagrams/renderer/DiagramRendererNodeTestCases.java
Outdated
Show resolved
Hide resolved
...s/src/test/java/org/eclipse/sirius/web/diagrams/renderer/UnsynchronizedDiagramTestCases.java
Outdated
Show resolved
Hide resolved
...tests/src/main/java/org/eclipse/sirius/web/diagrams/tests/TestDiagramDescriptionBuilder.java
Outdated
Show resolved
Hide resolved
...b-diagrams-tests/src/main/java/org/eclipse/sirius/web/diagrams/tests/TestDiagramBuilder.java
Outdated
Show resolved
Hide resolved
...atibility/src/main/java/org/eclipse/sirius/web/compat/diagrams/NodeMappingStyleProvider.java
Outdated
Show resolved
Hide resolved
...lity/src/main/java/org/eclipse/sirius/web/compat/diagrams/ContainerMappingStyleProvider.java
Outdated
Show resolved
Hide resolved
.../src/test/java/org/eclipse/sirius/web/compat/diagrams/NodeMappingStyleProviderTestCases.java
Outdated
Show resolved
Hide resolved
.../test/java/org/eclipse/sirius/web/diagrams/layout/incremental/NodeSizeProviderTestCases.java
Outdated
Show resolved
Hide resolved
...-layout/src/main/java/org/eclipse/sirius/web/diagrams/layout/incremental/utils/Geometry.java
Outdated
Show resolved
Hide resolved
...-layout/src/main/java/org/eclipse/sirius/web/diagrams/layout/incremental/utils/Geometry.java
Show resolved
Hide resolved
...ms-layout/src/main/java/org/eclipse/sirius/web/diagrams/layout/incremental/utils/Bounds.java
Outdated
Show resolved
Hide resolved
...va/org/eclipse/sirius/web/diagrams/layout/incremental/IncrementalLayoutDiagramConverter.java
Outdated
Show resolved
Hide resolved
...a/org/eclipse/sirius/web/diagrams/layout/incremental/IncrementalLayoutedDiagramProvider.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/eclipse/sirius/web/diagrams/layout/incremental/data/DiagramLayoutData.java
Outdated
Show resolved
Hide resolved
.../main/java/org/eclipse/sirius/web/diagrams/layout/incremental/provider/NodeSizeProvider.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/eclipse/sirius/web/diagrams/layout/incremental/updater/OverlapsUpdater.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/eclipse/sirius/web/diagrams/layout/incremental/updater/OverlapsUpdater.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the other comments
1d755d5
to
5c81cac
Compare
Bug: eclipse-sirius#382 Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
Bug: eclipse-sirius#286 Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
47b0420
to
cb58246
Compare
Bug: eclipse-sirius#287 Signed-off-by: William Piers <william.piers@obeo.fr> Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
Bug: eclipse-sirius#286 Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
1c6156a
to
25e3145
Compare
Type of this PR
Issue(s)
Issues #285 #286 #287
...
What does this PR do?
...
Screenshot/screencast of this PR
...
Potential side effects
...
How to test this PR?
Checklist
-s
) with my mail address of my Eclipse Account.