Skip to content

Commit

Permalink
feat(draw): round corners of multi-segment lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Feb 2, 2023
1 parent 68b9862 commit 079ab50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/draw/BpmnRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ export default function BpmnRenderer(
*
* @return {SVGElement}
*/
function drawLine(parentGfx, waypoints, attrs) {
function drawLine(parentGfx, waypoints, attrs, radius) {
attrs = lineStyle(attrs);

var line = createLine(waypoints, attrs);
var line = createLine(waypoints, attrs, radius);

svgAppend(parentGfx, line);

Expand All @@ -379,7 +379,7 @@ export default function BpmnRenderer(
* @return {SVGElement}
*/
function drawConnectionSegments(parentGfx, waypoints, attrs) {
return drawLine(parentGfx, waypoints, attrs);
return drawLine(parentGfx, waypoints, attrs, 5);
}

function drawPath(parentGfx, d, attrs) {
Expand Down

0 comments on commit 079ab50

Please sign in to comment.