(fromSlot: INodeInputSlot | INodeOutputSlot | SubgraphInput | SubgraphOutput)
| 42 | } |
| 43 | |
| 44 | override isValidTarget(fromSlot: INodeInputSlot | INodeOutputSlot | SubgraphInput | SubgraphOutput): boolean { |
| 45 | if ("links" in fromSlot) { |
| 46 | return LiteGraph.isValidConnection(fromSlot.type, this.type) |
| 47 | } |
| 48 | |
| 49 | if (isSubgraphInput(fromSlot)) { |
| 50 | return LiteGraph.isValidConnection(fromSlot.type, this.type) |
| 51 | } |
| 52 | |
| 53 | return false |
| 54 | } |
| 55 | |
| 56 | override draw(ctx: CanvasRenderingContext2D, options: Omit<IDrawOptions, "doStroke" | "labelPosition">) { |
| 57 | const { textAlign } = ctx |
no test coverage detected