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