hide overlay on connection

This commit is contained in:
Mutasem 2021-10-21 11:12:22 +02:00
parent 08a928225d
commit 6ebef7aafa

View file

@ -1615,12 +1615,14 @@ export default mixins(
connection.setConnector(CONNECTOR_TYPE_FLOWCHART); connection.setConnector(CONNECTOR_TYPE_FLOWCHART);
connection.setPaintStyle(CONNECTOR_PAINT_STYLE_PRIMARY); connection.setPaintStyle(CONNECTOR_PAINT_STYLE_PRIMARY);
addOverlays(connection, CONNECTOR_ARROW_OVERLAYS); addOverlays(connection, CONNECTOR_ARROW_OVERLAYS);
hideOverlay(connection, OVERLAY_DROP_NODE_ID);
} }
else if (!elements && droppable) { else if (!elements && droppable) {
droppable = false; droppable = false;
connection.setConnector(CONNECTOR_TYPE_BEZIER); connection.setConnector(CONNECTOR_TYPE_BEZIER);
connection.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT); connection.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT);
addOverlays(connection, CONNECTOR_ARROW_OVERLAYS); addOverlays(connection, CONNECTOR_ARROW_OVERLAYS);
showOverlay(connection, OVERLAY_DROP_NODE_ID);
} }
}; };