浏览代码

Show error icons

dds
PaulStoffregen 4 年前
父节点
当前提交
75121b2064
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      gui/red/ui/view.js

+ 11
- 0
gui/red/ui/view.js 查看文件

@@ -1131,6 +1131,17 @@ RED.view = (function() {
//node.append("rect").attr("class", "node-gradient-top").attr("rx", 6).attr("ry", 6).attr("height",30).attr("stroke","none").attr("fill","url(#gradient-top)").style("pointer-events","none");
//node.append("rect").attr("class", "node-gradient-bottom").attr("rx", 6).attr("ry", 6).attr("height",30).attr("stroke","none").attr("fill","url(#gradient-bottom)").style("pointer-events","none");

if (d.requirementError) {

var icon_group = node.append("g")
.attr("class","node_icon_group")
.attr("x",0).attr("y",0);

var icon = icon_group.append("image")
.attr("xlink:href","icons/error.png")
.attr("x",10).attr("y",-16);
}

if (d._def.icon) {

var icon_group = node.append("g")

正在加载...
取消
保存