-
Notifications
You must be signed in to change notification settings - Fork 61
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
[doc] Add shape for border node initial positioning #4453
Conversation
We need to create a new class `BorderNodeDescription` which is a sub class of `NodeDescription`. | ||
`BorderNodeDescription` will hold the feature `initialPosition` of type enum `BorderNodePosition`. |
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.
No, it is not the right way to do that.
We should put the information on a xxxLayoutStrategyDescription.
-> to rework
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.
The proposed change would have a massive impact and would prevent some use cases that are currently possible. It would be way less impactful to just add the information on the layout strategy description of the parent node. Like in CSS a div can define where its children are using flexbox or grid for example.
Something like this:
class LayoutStrategyDescription {
onRightAtCreationBorderNodes: List<NodeDescription>
onLeftAtCreationBorderNodes: List<NodeDescription>
onTopAtCreationBorderNodes: List<NodeDescription>
onBottomAtCreationBorderNodes: List<NodeDescription>
}
We would just need to customize the EMF Edit code to only offer the current border node descriptions of the node description as potential references...
8e280a2
to
018a076
Compare
018a076
to
7208161
Compare
|
||
== Problem | ||
|
||
In a diagram, a `Border Node` is always created on the left of the `Node`(WEST position). |
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.
I thinik it's on the right side (EAST position)
|
||
== Rabbit Holes | ||
|
||
Not identified. |
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.
You can remove this line
} | ||
``` | ||
|
||
For those four features, we will make sure that the specifier is capable of selecting only the border nodes of the current NodeDescription. |
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.
What happen if a same NodeDescription is declared in several lists?
7208161
to
890e776
Compare
Signed-off-by: Laurent Fasani <[email protected]>
Signed-off-by: Stéphane Bégaudeau <[email protected]>
890e776
to
fed9929
Compare
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.
I'll merge it after the build
I'll dismiss this since it's quite minor and I'll use this PR to perform the release :)
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: low
andpr: to review later
)area:
,difficulty:
,type:
)CHANGELOG.adoc
been 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.png
Architectural 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 potentiallynull
for 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?
Please describe here the various use cases to test this pull request