* Returns the widget that is associated with the given input slot.
(slot: INodeInputSlot)
| 3662 | * Returns the widget that is associated with the given input slot. |
| 3663 | */ |
| 3664 | getWidgetFromSlot(slot: INodeInputSlot): IBaseWidget | undefined { |
| 3665 | if (!isWidgetInputSlot(slot)) return |
| 3666 | return this.widgets?.find(w => w.name === slot.widget.name) |
| 3667 | } |
| 3668 | |
| 3669 | /** |
| 3670 | * Draws the node's input and output slots. |
no test coverage detected