mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Hide junction ports whilst dragging nodes
This commit is contained in:
parent
a22f569ca0
commit
f6aee81651
@ -172,7 +172,8 @@ RED.view = (function() {
|
|||||||
length: function() { return set.length},
|
length: function() { return set.length},
|
||||||
get: function(i) { return set[i] },
|
get: function(i) { return set[i] },
|
||||||
forEach: function(func) { set.forEach(func) },
|
forEach: function(func) { set.forEach(func) },
|
||||||
nodes: function() { return set.map(function(n) { return n.n })}
|
nodes: function() { return set.map(function(n) { return n.n })},
|
||||||
|
has: function(node) { return setIds.has(node.id) }
|
||||||
}
|
}
|
||||||
return api;
|
return api;
|
||||||
})();
|
})();
|
||||||
@ -4917,6 +4918,7 @@ RED.view = (function() {
|
|||||||
var junction = d3.select(this);
|
var junction = d3.select(this);
|
||||||
this.setAttribute("transform", "translate(" + (d.x) + "," + (d.y) + ")");
|
this.setAttribute("transform", "translate(" + (d.x) + "," + (d.y) + ")");
|
||||||
if (d.dirty) {
|
if (d.dirty) {
|
||||||
|
junction.classed("red-ui-flow-junction-dragging", mouse_mode === RED.state.MOVING_ACTIVE && movingSet.has(d))
|
||||||
junction.classed("selected", !!d.selected)
|
junction.classed("selected", !!d.selected)
|
||||||
dirtyNodes[d.id] = d;
|
dirtyNodes[d.id] = d;
|
||||||
|
|
||||||
|
@ -379,13 +379,19 @@ g.red-ui-flow-link-unknown path.red-ui-flow-link-line {
|
|||||||
white-space: pre;
|
white-space: pre;
|
||||||
@include disable-selection;
|
@include disable-selection;
|
||||||
}
|
}
|
||||||
.red-ui-flow-junction:hover {
|
.red-ui-flow-junction-dragging {
|
||||||
|
.red-ui-flow-junction-background {
|
||||||
|
background: red !important
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.red-ui-flow-junction:not(.red-ui-flow-junction-dragging):hover {
|
||||||
.red-ui-flow-junction-background {
|
.red-ui-flow-junction-background {
|
||||||
transform: scale(1.4);
|
transform: scale(1.4);
|
||||||
stroke-width: 0.6;
|
stroke-width: 0.6;
|
||||||
}
|
}
|
||||||
.red-ui-flow-junction-port {
|
.red-ui-flow-junction-port {
|
||||||
opacity: 1
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
.red-ui-flow-junction-port-input {
|
.red-ui-flow-junction-port-input {
|
||||||
transform: translate(-10px,0)
|
transform: translate(-10px,0)
|
||||||
@ -401,6 +407,7 @@ g.red-ui-flow-link-unknown path.red-ui-flow-link-line {
|
|||||||
cursor: crosshair;
|
cursor: crosshair;
|
||||||
transition: transform 0.1s;
|
transition: transform 0.1s;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.red-ui-flow-junction-background {
|
.red-ui-flow-junction-background {
|
||||||
stroke: $node-border;
|
stroke: $node-border;
|
||||||
|
Loading…
Reference in New Issue
Block a user