The base class for components that will be rendered as Nodes (or Groups). Your node/group components should extend this class.

Properties

obj: ObjectData

Data object for the node

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

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

    Returns void

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

    Parameters

    • data: ObjectData

    Returns void

Version :