mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
highlighted feature added to junction node
This commit is contained in:
parent
7da3773f7f
commit
1820b50602
@ -5047,6 +5047,7 @@ RED.view = (function() {
|
|||||||
if (d.dirty) {
|
if (d.dirty) {
|
||||||
junction.classed("red-ui-flow-junction-dragging", mouse_mode === RED.state.MOVING_ACTIVE && movingSet.has(d))
|
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)
|
||||||
|
junction.classed("red-ui-flow-junction-highlighted",!!d.highlighted );
|
||||||
dirtyNodes[d.id] = d;
|
dirtyNodes[d.id] = d;
|
||||||
|
|
||||||
if (d.g) {
|
if (d.g) {
|
||||||
@ -6132,7 +6133,7 @@ RED.view = (function() {
|
|||||||
if (RED.nodes.workspace(id) || RED.nodes.subflow(id)) {
|
if (RED.nodes.workspace(id) || RED.nodes.subflow(id)) {
|
||||||
RED.workspaces.show(id, null, null, true);
|
RED.workspaces.show(id, null, null, true);
|
||||||
} else {
|
} else {
|
||||||
var node = RED.nodes.node(id) || RED.nodes.group(id);
|
var node = RED.nodes.node(id) || RED.nodes.group(id) || RED.nodes.junction(id);
|
||||||
if (node) {
|
if (node) {
|
||||||
if (node.z && (node.type === "group" || node._def.category !== 'config')) {
|
if (node.z && (node.type === "group" || node._def.category !== 'config')) {
|
||||||
node.dirty = true;
|
node.dirty = true;
|
||||||
|
@ -435,3 +435,8 @@ g.red-ui-flow-link-unknown path.red-ui-flow-link-line {
|
|||||||
stroke: var(--red-ui-port-selected-color);
|
stroke: var(--red-ui-port-selected-color);
|
||||||
// fill: var(--red-ui-port-selected-color);
|
// fill: var(--red-ui-port-selected-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.red-ui-flow-junction.red-ui-flow-junction-highlighted .red-ui-flow-junction-background {
|
||||||
|
fill: var(--red-ui-node-selected-color) !important;
|
||||||
|
stroke: var(--red-ui-node-selected-color);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user