mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
add missing
This commit is contained in:
@@ -5314,7 +5314,7 @@ LGraphCanvas.prototype.drawNode = function(node, ctx )
|
|||||||
var slot = node.inputs[i];
|
var slot = node.inputs[i];
|
||||||
if( slot.link == null )
|
if( slot.link == null )
|
||||||
continue;
|
continue;
|
||||||
ctx.fillStyle = this.default_connection_color.input_on;
|
ctx.fillStyle = slot.colorOn || this.default_connection_color.input_on;
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
if ( slot.type === LiteGraph.EVENT )
|
if ( slot.type === LiteGraph.EVENT )
|
||||||
ctx.rect(0.5, 4 - LiteGraph.NODE_TITLE_HEIGHT + 0.5,14,LiteGraph.NODE_TITLE_HEIGHT - 8);
|
ctx.rect(0.5, 4 - LiteGraph.NODE_TITLE_HEIGHT + 0.5,14,LiteGraph.NODE_TITLE_HEIGHT - 8);
|
||||||
@@ -5332,7 +5332,7 @@ LGraphCanvas.prototype.drawNode = function(node, ctx )
|
|||||||
var slot = node.outputs[i];
|
var slot = node.outputs[i];
|
||||||
if(!slot.links || !slot.links.length)
|
if(!slot.links || !slot.links.length)
|
||||||
continue;
|
continue;
|
||||||
ctx.fillStyle = this.default_connection_color.output_on;
|
ctx.fillStyle = slot.colorOn || this.default_connection_color.output_on;
|
||||||
ctx.strokeStyle = "black";
|
ctx.strokeStyle = "black";
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
if (slot.type === LiteGraph.EVENT)
|
if (slot.type === LiteGraph.EVENT)
|
||||||
|
|||||||
Reference in New Issue
Block a user