jquery.flowchart icon indicating copy to clipboard operation
jquery.flowchart copied to clipboard

change shape of link

Open saranaghdi opened this issue 5 years ago • 2 comments

hi, can use link that not curved ? in this project

saranaghdi avatar Aug 01 '20 07:08 saranaghdi

Have a look through the source code at bezierIntensity

MattRiddell avatar Aug 11 '20 01:08 MattRiddell

First create a new property when defining link, eg { fromOperator, toOperator, offset_x: 100, offset_y: 200 } Then modify plugin near bezierIntensity: offset_x = linkData.offset_x; // add line offset_y = linkData.offset_y; // add line linkData.internal.els.path.setAttribute("d", 'M' + bezierFromX + ',' + (fromY) + ' C' + (fromX + offsetFromX + distanceFromArrow + bezierIntensity + offset_x) + ',' + (fromY+offset_y) + ' ' + (toX - bezierIntensity + offset_x) + ',' + (toY + offset_y) + ' ' + bezierToX + ',' + toY); // modify line

tomislav-agilosit avatar Oct 06 '21 06:10 tomislav-agilosit