@maxgraph/core
    Preparing search index...

    Function getPortConstraints

    • Returns an integer mask of the port constraints for the given terminal and edge.

      Parameters

      • terminal: CellState

        CellState that represents the terminal.

      • edge: CellState

        CellState that represents the edge.

      • source: boolean

        Boolean that specifies if the terminal is the source terminal.

      • defaultValue: number

        Default value to be returned if no port constraint is defined in the terminal.

      Returns number

      the mask of port constraint directions