hide arrow when items

This commit is contained in:
Mutasem 2021-10-18 17:18:52 +02:00
parent bf3782c715
commit 9e144c891b

View file

@ -1741,13 +1741,9 @@ export default mixins(
}) as Connection[];
outgoing.forEach((connection: Connection) => {
const arrow = connection.getOverlay('midpoint-arrow');
if (arrow) {
arrow.setLocation(0.5);
}
connection.removeOverlay('output-items-label');
connection.setPaintStyle({stroke: getStyleTokenValue('--color-foreground-dark')});
showOrHideMidpointArrow(connection);
});
return;
@ -1841,10 +1837,7 @@ export default mixins(
},
]);
const arrow = connections[0].getOverlay('midpoint-arrow');
if (arrow) {
arrow.setLocation(0.6);
}
hideMidpointArrow(conn);
});
});
});