mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
More streamlined
This commit is contained in:
parent
3a50fbf471
commit
3b5246d0d9
@ -4238,32 +4238,7 @@ RED.view = (function() {
|
||||
}
|
||||
|
||||
function _redraw() {
|
||||
if(globalThis.isShowingDragLines){
|
||||
if (showAllLinkPorts !== -1 || mouse_mode != RED.state.JOINING) {
|
||||
if (activeSubflow) {
|
||||
inGroup.append("g").attr('transform','translate(35,15)').append("rect").attr("class","red-ui-flow-port").attr("rx",3).attr("ry",3).attr("width",10).attr("height",10)
|
||||
.on("mousedown", function(d,i){portMouseDown(d,PORT_TYPE_OUTPUT,i);} )
|
||||
.on("touchstart", function(d,i){portMouseDown(d,PORT_TYPE_OUTPUT,i);d3.event.preventDefault();} )
|
||||
.on("mouseup", function(d,i){portMouseUp(d,PORT_TYPE_OUTPUT,i);})
|
||||
.on("touchend",function(d,i){portMouseUp(d,PORT_TYPE_OUTPUT,i);d3.event.preventDefault();} )
|
||||
.on("mouseover",function(d){portMouseOver(d3.select(this),d,PORT_TYPE_OUTPUT,0);})
|
||||
.on("mouseout",function(d) {portMouseOut(d3.select(this),d,PORT_TYPE_OUTPUT,0);});
|
||||
} else {
|
||||
nodeLayer.selectAll(".red-ui-flow-subflow-port-output").remove();
|
||||
nodeLayer.selectAll(".red-ui-flow-subflow-port-input").remove();
|
||||
nodeLayer.selectAll(".red-ui-flow-subflow-port-status").remove();
|
||||
}
|
||||
} else {
|
||||
// JOINING - unselect any selected links
|
||||
linkLayer.selectAll(".red-ui-flow-link-selected").data(
|
||||
activeLinks,
|
||||
function(d) {
|
||||
return d.source.id+":"+d.sourcePort+":"+d.target.id+":"+d.target.i;
|
||||
}
|
||||
).classed("red-ui-flow-link-selected", false);
|
||||
}
|
||||
return
|
||||
}
|
||||
if(globalThis.isShowingDragLines)return
|
||||
eventLayer.attr("transform","scale("+scaleFactor+")");
|
||||
outer.attr("width", space_width*scaleFactor).attr("height", space_height*scaleFactor);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user