mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
rename const
This commit is contained in:
parent
d5198e3971
commit
d0cb481e82
|
@ -278,7 +278,7 @@ const CONNECTOR_DROP_NODE_OVERLAY: OverlaySpec[] = [
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
const MINIMUM_X_TO_PUSH_DOWNSTREAM_NODES = 500;
|
const MAX_X_TO_PUSH_DOWNSTREAM_NODES = 500;
|
||||||
|
|
||||||
const addOverlays = (connection: Connection, overlays: OverlaySpec[]) => {
|
const addOverlays = (connection: Connection, overlays: OverlaySpec[]) => {
|
||||||
overlays.forEach((overlay: OverlaySpec) => {
|
overlays.forEach((overlay: OverlaySpec) => {
|
||||||
|
@ -1341,7 +1341,7 @@ export default mixins(
|
||||||
const lastSelectedConnection = this.lastSelectedConnection;
|
const lastSelectedConnection = this.lastSelectedConnection;
|
||||||
if (lastSelectedConnection) {
|
if (lastSelectedConnection) {
|
||||||
const [diffX] = getConnectorLengths(lastSelectedConnection);
|
const [diffX] = getConnectorLengths(lastSelectedConnection);
|
||||||
if (diffX <= MINIMUM_X_TO_PUSH_DOWNSTREAM_NODES) {
|
if (diAX MINIMUM_X_TO_PUSH_DOWNSTREAM_NODES) {
|
||||||
this.pushDownstreamNodes(lastSelectedNode.name, _PUSH_NODES_LENGTH);
|
this.pushDownstreamNodes(lastSelectedNode.name, _PUSH_NODES_LENGTH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue