hide items on init

This commit is contained in:
Mutasem 2021-11-05 15:10:53 +01:00
parent fd886b585a
commit 0b93009e02

View file

@ -266,6 +266,12 @@ export const showOrHideItemsLabel = (connection: Connection) => {
return;
}
const actionsOverlay = getOverlay(connection, OVERLAY_CONNECTION_ACTIONS_ID);
if (actionsOverlay && actionsOverlay.visible) {
overlay.setVisible(false);
return;
}
const [diffX, diffY] = getConnectorLengths(connection);
if (diffX < MIN_X_TO_SHOW_OUTPUT_LABEL && diffY < MIN_Y_TO_SHOW_OUTPUT_LABEL) {