Reference - BaklavaJS
    Preparing search index...

    Hierarchy

    • BaseNumericInterface
      • IntegerInterface
    Index

    Constructors

    Properties

    allowMultipleConnections?: boolean
    component: ComponentOptions = ...

    The component which will be displayed when the interface is not connected or port === false

    displayInSidebar?: boolean
    events: {
        beforeSetValue: PreventableBaklavaEvent<number, NodeInterface<number>>;
        setConnectionCount: BaklavaEvent<number, NodeInterface<number>>;
        setValue: BaklavaEvent<number, NodeInterface<number>>;
        updated: BaklavaEvent<void, NodeInterface<number>>;
    }
    hidden: boolean

    Whether to hide the node interface in the UI

    hooks: {
        load: SequentialHook<
            INodeInterfaceState<number>,
            NodeInterface<number>,
            INodeInterfaceState<number>,
        >;
        save: SequentialHook<
            INodeInterfaceState<number>,
            NodeInterface<number>,
            INodeInterfaceState<number>,
        >;
    }
    id: string
    isInput?: boolean

    Will be set automatically after the node was created

    max?: number
    min?: number
    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: number): void

      Parameters

      • v: number

      Returns void

    • get value(): T

      Returns T

    • set value(v: T): void

      Parameters

      • v: T

      Returns void

    Methods

    • Parameters

      • state: INodeInterfaceState<number>

      Returns void

    • Returns INodeInterfaceState<number>

    • Parameters

      • value: any

      Returns this

    • Parameters

      • value: boolean

      Returns this

    • Parameters

      • value: boolean

      Returns this

    • Type Parameters

      • A extends any[]

      Parameters

      • middleware: NodeInterfaceMiddleware<number, A>
      • ...args: A

      Returns this