Skip to content

Commit

Permalink
added edgePadding for Associations and Message flows
Browse files Browse the repository at this point in the history
Issue #333
  • Loading branch information
rsoika committed May 24, 2024
1 parent f3fb07a commit c493eab
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ private void createAssociationGEdges(final Set<Association> associations, final
BPMNGEdgeBuilder builder = new BPMNGEdgeBuilder(association);
builder.target(computeGPort(target));
builder.source(computeGPort(source));
// We add an edge Padding of 10 pixel.
// See the view renderer in bpmn-routing-views.tsx.
builder.addArgument(GArguments.edgePadding(10));
BPMNGEdge bpmnGEdge = builder.build();
bpmnGEdge.setKind("");
// add the waypoints to the GLSP model....
Expand Down Expand Up @@ -855,6 +858,9 @@ private void createMessageFlowGEdges(final Set<MessageFlow> messageFlows, final
BPMNGEdgeBuilder builder = new BPMNGEdgeBuilder(messageFlow);
builder.target(computeGPort(target));
builder.source(computeGPort(source));
// We add an edge Padding of 10 pixel.
// See the view renderer in bpmn-routing-views.tsx.
builder.addArgument(GArguments.edgePadding(10));
BPMNGEdge bpmnGEdge = builder.build();
bpmnGEdge.setKind("");
for (BPMNPoint wayPoint : messageFlow.getWayPoints()) {
Expand Down

0 comments on commit c493eab

Please sign in to comment.