mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 17:44:12 +00:00
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:
parent
ea9eacea6b
commit
5c5656aceb
@ -31,11 +31,13 @@ inherits(BpmnLayouter, BaseLayouter);
|
|||||||
|
|
||||||
|
|
||||||
BpmnLayouter.prototype.layoutConnection = function(connection, hints) {
|
BpmnLayouter.prototype.layoutConnection = function(connection, hints) {
|
||||||
hints = hints || {};
|
if (!hints) {
|
||||||
|
hints = {};
|
||||||
|
}
|
||||||
|
|
||||||
var source = hints.source || connection.source,
|
var source = hints.source || connection.source,
|
||||||
target = hints.target || connection.target,
|
target = hints.target || connection.target,
|
||||||
waypoints = connection.waypoints,
|
waypoints = hints.waypoints || connection.waypoints,
|
||||||
start = hints.connectionStart,
|
start = hints.connectionStart,
|
||||||
end = hints.connectionEnd;
|
end = hints.connectionEnd;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user