1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

[groups] increase group border radius

This commit is contained in:
Nick O'Leary 2020-04-14 22:39:42 +01:00
parent aafa4fe0b9
commit b032e00d01
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -4126,17 +4126,18 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
var g = d3.select(this);
g.attr("id",d.id);
var groupBorderRadius = 4;
var selectGroup = groupSelectLayer.append('g').attr("class", "red-ui-flow-group").attr("id","group_select_"+d.id);
selectGroup.append('rect').classed("red-ui-flow-group-outline-select",true)
.attr('rx',1).attr('ry',1)
.attr('rx',groupBorderRadius).attr('ry',groupBorderRadius)
.attr("x",-4)
.attr("y",-4)
.style("stroke","rgba(255,255,255,0.8)")
.style("stroke-width",6)
selectGroup.append('rect').classed("red-ui-flow-group-outline-select",true)
.attr('rx',1).attr('ry',1)
.attr('rx',groupBorderRadius).attr('ry',groupBorderRadius)
.attr("x",-4)
.attr("y",-4)
selectGroup.on("mousedown", function() {console.log("omd");groupMouseDown.call(g[0][0],d)});
@ -4145,7 +4146,7 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
g.append('rect').classed("red-ui-flow-group-outline",true).attr('rx',0.5).attr('ry',0.5);
g.append('rect').classed("red-ui-flow-group-body",true)
.attr('rx',1).attr('ry',1).style({
.attr('rx',groupBorderRadius).attr('ry',groupBorderRadius).style({
"fill":d.fill||"none",
"stroke": d.stroke||"none",
})