Skip to main content

Home > @jsplumbtoolkit/core > Port

Port class

Signature:

export declare class Port extends Vertex 

Extends: Vertex

Constructors

ConstructorModifiersDescription
(constructor)(parent, data, idFunction)Constructs a new instance of the Port class

Properties

PropertyModifiersTypeDescription
objectTypestring
objectTypestaticstring
parentNode

Methods

MethodModifiersDescription
getAllEdges(params)gets all the edges connected to this port, as source or target.
getFullId()Overrides the getFullId of Node to return a value in dotted notation of the form nodeId.portId.
getParent()Gets the vertex this Port belongs to. Remember that Group extends Node, so this could be a Group, but Ports cannot have child Ports.
isChildOf(v)Returns whether or not this port is a child of the given object.