mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
7d2195d95c
commit
3797ace89b
Binary file not shown.
Before Width: | Height: | Size: 743 B After Width: | Height: | Size: 483 B |
@ -778,7 +778,7 @@ RED.view = function() {
|
||||
|
||||
//node.append("path").attr("class","node_error").attr("d","M 3,-3 l 10,0 l -5,-8 z");
|
||||
node.append("image").attr("class","node_error hidden").attr("xlink:href","icons/node-error.png").attr("x",0).attr("y",-6).attr("width",10).attr("height",9);
|
||||
//node.append("image").attr("class","node_changed hidden").attr("xlink:href","icons/node-error.png").attr("x",12).attr("y",-6).attr("width",10).attr("height",9);
|
||||
node.append("image").attr("class","node_changed hidden").attr("xlink:href","icons/node-changed.png").attr("x",12).attr("y",-8).attr("width",12).attr("height",11);
|
||||
});
|
||||
|
||||
node.each(function(d,i) {
|
||||
@ -842,14 +842,15 @@ RED.view = function() {
|
||||
(d._def.label?' '+(typeof d._def.labelStyle == "function" ? d._def.labelStyle.call(d):d._def.labelStyle):'') ;
|
||||
});
|
||||
thisNode.selectAll(".node_tools").attr("x",function(d){return d.w-35;}).attr("y",function(d){return d.h-20;});
|
||||
thisNode.selectAll(".node_error")
|
||||
.attr("x",function(d){return d.w-5})
|
||||
.classed("hidden",function(d) { return d.valid; });
|
||||
|
||||
thisNode.selectAll(".node_changed")
|
||||
.attr("x",function(d){return d.w-15})
|
||||
.attr("x",function(d){return d.w-6})
|
||||
.classed("hidden",function(d) { return !d.changed; });
|
||||
|
||||
thisNode.selectAll(".node_error")
|
||||
.attr("x",function(d){return d.w-5-(d.changed?13:0)})
|
||||
.classed("hidden",function(d) { return d.valid; });
|
||||
|
||||
thisNode.selectAll(".port_input").each(function(d,i) {
|
||||
var port = d3.select(this);
|
||||
port.attr("y",function(d){return (d.h/2)-5;})
|
||||
|
Loading…
Reference in New Issue
Block a user