mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
[API] Remove unused: LGraphNode.addConnection (#980)
Confirmed unused via code search
This commit is contained in:
@@ -214,8 +214,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
|||||||
#concreteInputs: NodeInputSlot[] = []
|
#concreteInputs: NodeInputSlot[] = []
|
||||||
#concreteOutputs: NodeOutputSlot[] = []
|
#concreteOutputs: NodeOutputSlot[] = []
|
||||||
|
|
||||||
// Not used
|
|
||||||
connections: unknown[] = []
|
|
||||||
properties: Dictionary<NodeProperty | undefined> = {}
|
properties: Dictionary<NodeProperty | undefined> = {}
|
||||||
properties_info: INodePropertyInfo[] = []
|
properties_info: INodePropertyInfo[] = []
|
||||||
flags: INodeFlags = {}
|
flags: INodeFlags = {}
|
||||||
@@ -1508,24 +1506,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
|||||||
this.setDirtyCanvas(true, true)
|
this.setDirtyCanvas(true, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* add an special connection to this node (used for special kinds of graphs)
|
|
||||||
* @param type string defining the input type ("vec3","number",...)
|
|
||||||
* @param pos position of the connection inside the node
|
|
||||||
* @param direction if is input or output
|
|
||||||
*/
|
|
||||||
addConnection(name: string, type: string, pos: Point, direction: string) {
|
|
||||||
const o = {
|
|
||||||
name: name,
|
|
||||||
type: type,
|
|
||||||
pos: pos,
|
|
||||||
direction: direction,
|
|
||||||
links: null,
|
|
||||||
}
|
|
||||||
this.connections.push(o)
|
|
||||||
return o
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* computes the minimum size of a node according to its inputs and output slots
|
* computes the minimum size of a node according to its inputs and output slots
|
||||||
* @returns the total size
|
* @returns the total size
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
@@ -134,7 +133,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
@@ -204,7 +202,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
@@ -136,7 +135,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
@@ -208,7 +206,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
@@ -134,7 +133,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
@@ -204,7 +202,6 @@ LGraph {
|
|||||||
"clip_area": undefined,
|
"clip_area": undefined,
|
||||||
"clonable": undefined,
|
"clonable": undefined,
|
||||||
"color": undefined,
|
"color": undefined,
|
||||||
"connections": [],
|
|
||||||
"console": undefined,
|
"console": undefined,
|
||||||
"exec_version": undefined,
|
"exec_version": undefined,
|
||||||
"execute_triggered": undefined,
|
"execute_triggered": undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user