Add a bit of transparancy to the mask in the node view

This commit is contained in:
Neil Graham
2023-09-21 10:58:11 +12:00
parent 45b996b4a5
commit b1b2d90e5c
+2
View File
@@ -206,9 +206,11 @@ function addCanvasWidget(node,name,inputData,app) {
draw(ctx, node, width, y) {
let [nodeWidth,nodeHeight] = node.size;
if (this.onTopOf) {
ctx.globalAlpha=0.5;
y= this.onTopOf.last_y;
} else {
ctx.globalAlpha=1;
ctx.fillStyle = this.background;
ctx.fillRect(0,y,width,nodeHeight-y);
}