mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-16 00:12:33 +08:00
Update litegraph.core.js
add node.ondrawn hook, allow canvas.onSelectionChange hook
This commit is contained in:
parent
a667638442
commit
a8266b8515
@ -5304,7 +5304,6 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
this.onDrawOverlay = null; //to render foreground objects not affected by transform (for GUIs)
|
this.onDrawOverlay = null; //to render foreground objects not affected by transform (for GUIs)
|
||||||
this.onDrawLinkTooltip = null; //called when rendering a tooltip
|
this.onDrawLinkTooltip = null; //called when rendering a tooltip
|
||||||
this.onNodeMoved = null; //called after moving a node
|
this.onNodeMoved = null; //called after moving a node
|
||||||
this.onSelectionChange = null; //called if the selection changes
|
|
||||||
this.onConnectingChange = null; //called before any link changes
|
this.onConnectingChange = null; //called before any link changes
|
||||||
this.onBeforeChange = null; //called before modifying the graph
|
this.onBeforeChange = null; //called before modifying the graph
|
||||||
this.onAfterChange = null; //called after modifying the graph
|
this.onAfterChange = null; //called after modifying the graph
|
||||||
@ -8840,6 +8839,9 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx.globalAlpha = 1.0;
|
ctx.globalAlpha = 1.0;
|
||||||
|
|
||||||
|
if (node.onDrawn)
|
||||||
|
node.onDrawn();
|
||||||
};
|
};
|
||||||
|
|
||||||
//used by this.over_link_center
|
//used by this.over_link_center
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user