mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 10:14:06 +00:00
Remove redundant code - onGetInputs / onGetOutputs (#674)
- Removes unused context menu for optional in/outputs - At the top of the node context menu, greyed out `Inputs` and `Outputs` - API does not fit with current design - If required, rewrite would be simpler
This commit is contained in:
@@ -522,8 +522,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
||||
this: LGraphNode,
|
||||
entries: (IContextMenuValue<INodeSlotContextItem> | null)[],
|
||||
): (IContextMenuValue<INodeSlotContextItem> | null)[]
|
||||
onGetInputs?(this: LGraphNode): INodeSlotContextItem[]
|
||||
onGetOutputs?(this: LGraphNode): INodeSlotContextItem[]
|
||||
onMouseUp?(this: LGraphNode, e: CanvasMouseEvent, pos: Point): void
|
||||
onMouseEnter?(this: LGraphNode, e: CanvasMouseEvent): void
|
||||
/** Blocks drag if return value is truthy. @param pos Offset from {@link LGraphNode.pos}. */
|
||||
|
||||
Reference in New Issue
Block a user