feat(bpmn-layouter): be able to specify waypoints

When reconnecting a connection reversely we need to be able to specify the waypoints which will also be reversed.
This commit is contained in:
Philipp Fromme 2019-11-04 15:28:06 +01:00 committed by Nico Rehwaldt
parent ea9eacea6b
commit 5c5656aceb

View File

@ -31,11 +31,13 @@ inherits(BpmnLayouter, BaseLayouter);
BpmnLayouter.prototype.layoutConnection = function(connection, hints) {
hints = hints || {};
if (!hints) {
hints = {};
}
var source = hints.source || connection.source,
target = hints.target || connection.target,
waypoints = connection.waypoints,
waypoints = hints.waypoints || connection.waypoints,
start = hints.connectionStart,
end = hints.connectionEnd;