mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Change style of nodes in subflow template view
This commit is contained in:
parent
39f5078d6b
commit
f07c8108fc
@ -1434,7 +1434,10 @@ RED.view = (function() {
|
|||||||
var node = vis.selectAll(".nodegroup").data(activeNodes,function(d){return d.id});
|
var node = vis.selectAll(".nodegroup").data(activeNodes,function(d){return d.id});
|
||||||
node.exit().remove();
|
node.exit().remove();
|
||||||
|
|
||||||
var nodeEnter = node.enter().insert("svg:g").attr("class", "node nodegroup");
|
var nodeEnter = node.enter().insert("svg:g")
|
||||||
|
.attr("class", "node nodegroup")
|
||||||
|
.classed("node_subflow",function(d) { return activeSubflow != null; });
|
||||||
|
|
||||||
nodeEnter.each(function(d,i) {
|
nodeEnter.each(function(d,i) {
|
||||||
var node = d3.select(this);
|
var node = d3.select(this);
|
||||||
node.attr("id",d.id);
|
node.attr("id",d.id);
|
||||||
@ -1891,7 +1894,7 @@ RED.view = (function() {
|
|||||||
})
|
})
|
||||||
l.append("svg:path").attr("class","link_outline link_path");
|
l.append("svg:path").attr("class","link_outline link_path");
|
||||||
l.append("svg:path").attr("class","link_line link_path")
|
l.append("svg:path").attr("class","link_line link_path")
|
||||||
.classed("link_subflow", function(d) { return activeSubflow && (d.source.type === "subflow" || d.target.type === "subflow") });
|
.classed("link_subflow", function(d) { return activeSubflow });
|
||||||
});
|
});
|
||||||
|
|
||||||
link.exit().remove();
|
link.exit().remove();
|
||||||
|
@ -129,7 +129,6 @@
|
|||||||
fill-opacity: 0.5;
|
fill-opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.node_error {
|
.node_error {
|
||||||
stroke: #ff0000;
|
stroke: #ff0000;
|
||||||
stroke-width: 2;
|
stroke-width: 2;
|
||||||
@ -165,6 +164,10 @@
|
|||||||
.node_hovered {
|
.node_hovered {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.node_subflow .node {
|
||||||
|
stroke-dasharray:8, 3;
|
||||||
|
}
|
||||||
|
|
||||||
.node_status_label {
|
.node_status_label {
|
||||||
@include disable-selection;
|
@include disable-selection;
|
||||||
stroke-width: 0;
|
stroke-width: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user