-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(bpmn): generate edge waypoints #52
Conversation
20068e1
to
1096a59
Compare
The |
1096a59
to
7ff9ef7
Compare
wip waypoints computation in algo to model converter wip waypoints added to display model waypoints exported in SVG (no arrow) add additional point for orthogonal segment for BottomLeftToTopRight we must check if there is a shape obove the current one, to avoid overlapping intermediate waypoints exported in SVG (no arrow) intermediate waypoint: position depends on existence of shape above bpmn exporter: add edge waypoints bpmn exporter: bpmn shape and edge id based on bpmn element id no more generated, based on existing id for easier identification TopLeftToBottomRight: manage 1st vertical or horizontal SVGExporter: all edge segments have the same color + introduce opacity Remove system.out wip: add tests for computeEdgeDirection wip: add tests for computeEdgeDirection wip: add tests for computeEdgeDirection fix computeEdgeDirection_no_elements_between_from_and_top_with_from_on_bottom_left wip: add tests for computeEdgeDirection wip: add tests for computeEdgeDirection wip: add tests for computeEdgeDirection wip: add tests for computeEdgeDirection wip update computeWayPoints wip update computeWayPoints
27bea7e
to
bea3ed5
Compare
We may probably add more unit tests but I consider this is ok for now |
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.
Nice work!
.get(); // always exist, otherwise error occur on flow node generation | ||
} | ||
|
||
// visible for testing |
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.
ℹ️ IMO this method is static and visible for testing because it should be extracted in a specific class
// +-----------------+ | ||
assertThat(computeEdgeDirection(position(2, 2), position(1, 1), Grid.of(position(2, 1)))) | ||
.isEqualTo(BottomRightToTopLeft_FirstHorizontal); | ||
} |
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.
All theses tests with visual comment make the code easy to understand 👍
closes #12
BPMNDiagram generated from A.2.0 with 20068e1
Notice that activity and event label positions should be adjusted with #53 (untouched by the changes proposed here)