Skip to content

Commit

Permalink
Add callback decl from Comfy-Org#180
Browse files Browse the repository at this point in the history
Support allowing links to widgets (Comfy-Org#180)
c23e610
  • Loading branch information
webfiltered committed Oct 5, 2024
1 parent f96887d commit 1b01210
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ export class LGraphCanvas {
onNodeSelected?: (node: LGraphNode) => void
onNodeDeselected?: (node: LGraphNode) => void
onRender?: (canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D) => void
/** Implement this function to allow conversion of widget types to input types, e.g. number -> INT or FLOAT for widget link validation checks */
getWidgetLinkType?: (widget: IWidget, node: LGraphNode) => string | null | undefined

// FIXME: Has never worked - undefined
visible_rect?: Rect
Expand Down

0 comments on commit 1b01210

Please sign in to comment.