Hierarchy

  • NodeInterface<undefined>
    • ButtonInterface

Constructors

Properties

allowMultipleConnections?: boolean
callback?: (() => void)

Type declaration

    • (): void
    • Returns void

component: ComponentOptions = ...
displayInSidebar?: boolean
events: {
    beforeSetValue: PreventableBaklavaEvent<undefined, NodeInterface<undefined>>;
    setConnectionCount: BaklavaEvent<number, NodeInterface<undefined>>;
    setValue: BaklavaEvent<undefined, NodeInterface<undefined>>;
    updated: BaklavaEvent<void, NodeInterface<undefined>>;
}

Type declaration

  • Readonly beforeSetValue: PreventableBaklavaEvent<undefined, NodeInterface<undefined>>
  • Readonly setConnectionCount: BaklavaEvent<number, NodeInterface<undefined>>
  • Readonly setValue: BaklavaEvent<undefined, NodeInterface<undefined>>
  • Readonly updated: BaklavaEvent<void, NodeInterface<undefined>>
hidden: boolean

Whether to hide the node interface in the UI

hooks: {
    load: SequentialHook<INodeInterfaceState<undefined>, NodeInterface<undefined>, INodeInterfaceState<undefined>>;
    save: SequentialHook<INodeInterfaceState<undefined>, NodeInterface<undefined>, INodeInterfaceState<undefined>>;
}

Type declaration

  • Readonly load: SequentialHook<INodeInterfaceState<undefined>, NodeInterface<undefined>, INodeInterfaceState<undefined>>
  • Readonly save: SequentialHook<INodeInterfaceState<undefined>, NodeInterface<undefined>, INodeInterfaceState<undefined>>
id: string
isInput?: boolean

Will be set automatically after the node was created

name: string

Display name of the interface

nodeId: string

Id of the node this interface is part of

port: boolean

Whether to show the port (the thing connections connect to)

templateId?: string

If the interface is instantiated by a graph template, this property will be set to the id of the corresponding instance in the template

type?: string

Accessors

  • get connectionCount(): number
  • Returns number

  • set connectionCount(v): void
  • Parameters

    • v: number

    Returns void

  • get value(): T
  • Returns T

  • set value(v): void
  • Parameters

    • v: T

    Returns void

Methods

  • Parameters

    • state: INodeInterfaceState<undefined>

    Returns void

  • Returns INodeInterfaceState<undefined>

  • Parameters

    • value: any

    Returns this

  • Parameters

    • value: boolean

    Returns this

  • Parameters

    • value: boolean

    Returns this

  • Type Parameters

    • A extends any[]

    Parameters

    • middleware: NodeInterfaceMiddleware<undefined, A>
    • Rest ...args: A

    Returns this