Class BaseNodeComponentAbstract

The base class for components that will be rendered as Nodes . Your node components should extend this class.

Hierarchy

  • BaseVertexComponent<Node>
    • BaseNodeComponent

Methods

  • Instructs the Toolkit to add a new port with the given data to the vertex this component represents.

    Parameters

    • type: string
    • data: ObjectData

    Returns void

  • Gets the node that this component represents.

    Returns Node

  • Gets the vertex that this component represents.

    Returns Node

  • Shortcut method to remove the node (and therefore this whole component)

    Returns void

  • Removes the vertex this component represents from the data model, which will cause this component to be cleaned up.

    Returns void

  • Shortcut method to update the current data backing this node, for convenience.

    Parameters

    • data: ObjectData

    Returns void

  • Shortcut method to update the current data backing this vertex, for convenience.

    Parameters

    • data: ObjectData

    Returns void

Properties

obj: ObjectData

Data object for the vertex

objSignal: WritableSignal<ObjectData> = ...

This signal represents the underlying data for the vertex this component represents.

Version :