highlighted feature added to junction node

This commit is contained in:
bahadır 2022-10-16 23:34:47 +03:00
parent 7da3773f7f
commit 1820b50602
2 changed files with 7 additions and 1 deletions

View File

@ -5047,6 +5047,7 @@ RED.view = (function() {
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("red-ui-flow-junction-highlighted",!!d.highlighted );
dirtyNodes[d.id] = d;
if (d.g) {
@ -6132,7 +6133,7 @@ RED.view = (function() {
if (RED.nodes.workspace(id) || RED.nodes.subflow(id)) {
RED.workspaces.show(id, null, null, true);
} 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.z && (node.type === "group" || node._def.category !== 'config')) {
node.dirty = true;

View File

@ -435,3 +435,8 @@ g.red-ui-flow-link-unknown path.red-ui-flow-link-line {
stroke: 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);
}