Reference - BaklavaJS
    Preparing search index...

    Class Node<I, O>Abstract

    Abstract base class for every node

    Type Parameters

    • I
    • O

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _title: string = ""
    calculate?: CalculateFunction<I, O, CalculationContext<any, IEngine<any>>>

    The default implementation does nothing. Overwrite this method to do calculation.

    Values of all input interfaces

    Set of values passed to every node by the engine plugin

    Values for output interfaces

    events: {
        addInput: BaklavaEvent<NodeInterface<any>, AbstractNode>;
        addOutput: BaklavaEvent<NodeInterface<any>, AbstractNode>;
        beforeAddInput: PreventableBaklavaEvent<NodeInterface<any>, AbstractNode>;
        beforeAddOutput: PreventableBaklavaEvent<NodeInterface<any>, AbstractNode>;
        beforeRemoveInput: PreventableBaklavaEvent<
            NodeInterface<any>,
            AbstractNode,
        >;
        beforeRemoveOutput: PreventableBaklavaEvent<
            NodeInterface<any>,
            AbstractNode,
        >;
        beforeTitleChanged: PreventableBaklavaEvent<string, AbstractNode>;
        loaded: BaklavaEvent<AbstractNode, AbstractNode>;
        removeInput: BaklavaEvent<NodeInterface<any>, AbstractNode>;
        removeOutput: BaklavaEvent<NodeInterface<any>, AbstractNode>;
        titleChanged: BaklavaEvent<string, AbstractNode>;
        update: BaklavaEvent<null | INodeUpdateEventData, AbstractNode>;
    } = ...
    graphInstance?: Graph
    hooks: {
        afterSave: SequentialHook<
            INodeState<any, any>,
            AbstractNode,
            INodeState<any, any>,
        >;
        beforeLoad: SequentialHook<
            INodeState<any, any>,
            AbstractNode,
            INodeState<any, any>,
        >;
    } = ...
    id: string = ...

    Unique identifier of the node

    type: string

    Type of the node

    Accessors

    • get graph(): undefined | Graph

      The graph instance the node is placed in. undefined if the node hasn't been placed in a graph yet.

      Returns undefined | Graph

    • get title(): string

      Customizable display name of the node.

      Returns string

    • set title(v: string): void

      Parameters

      • v: string

      Returns void

    Methods