mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-29 21:31:07 -08:00
rename param
This commit is contained in:
parent
9596bb850d
commit
bc647e0a5d
|
@ -342,7 +342,7 @@
|
|||
_super = _jp.Connectors.N8nAbstractConnector.apply(this, arguments),
|
||||
midpoint = params.midpoint == null ? 0.5 : params.midpoint,
|
||||
alwaysRespectStubs = params.alwaysRespectStubs === true,
|
||||
yOffset = params.yOffset || 0,
|
||||
loopbackVerticalLength = params.loopbackVerticalLength || 0,
|
||||
lastx = null, lasty = null, lastOrientation,
|
||||
cornerRadius = params.cornerRadius != null ? params.cornerRadius : 0,
|
||||
loopbackMinimum = params.loopbackMinimum || 100,
|
||||
|
@ -512,12 +512,12 @@
|
|||
midy;
|
||||
|
||||
if (diffX < (-1 * loopbackMinimum)) {
|
||||
midy = paintInfo.startStubY - (diffX < 0 ? direction * yOffset : 0);
|
||||
midy = paintInfo.startStubY - (diffX < 0 ? direction * loopbackVerticalLength : 0);
|
||||
} else {
|
||||
midy = paintInfo.startStubY + ((paintInfo.endStubY - paintInfo.startStubY) * midpoint);
|
||||
}
|
||||
|
||||
if (diffX < 0 && diffX > (-1 * yOffset) && Math.abs(diffY) < yOffset) {
|
||||
if (diffX < 0 && diffX > (-1 * loopbackVerticalLength) && Math.abs(diffY) < loopbackVerticalLength) {
|
||||
midy = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ export const CONNECTOR_FLOWCHART_TYPE = ['N8nFlowchart', {
|
|||
stub: JSPLUMB_FLOWCHART_STUB + 10,
|
||||
gap: 5,
|
||||
alwaysRespectStubs: true,
|
||||
yOffset: NODE_SIZE, // length of vertical segment when looping
|
||||
loopbackVerticalLength: NODE_SIZE, // length of vertical segment when looping
|
||||
loopbackMinimum: 140, // minimum length before flowchart loops around
|
||||
indexOffset: 10, // stub offset between different endpoints of same node
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue