GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — getPortConstraints | @maxgraph/core

  • mathUtils
  • getPortConstraints

Function getPortConstraints

  • getPortConstraints(
        terminal: CellState,
        edge: CellState,
        source: boolean,
        defaultValue: number,
    ): number

    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

    • Defined in util/mathUtils.ts:214

Settings

Member Visibility
  • Protected
  • Inherited
Theme
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.