Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

absoluteOffset

absoluteOffset: mxPoint

Variable: absoluteOffset

that holds the absolute offset. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex.

absolutePoints

absolutePoints: mxPoint[]

Variable: absolutePoints

Holds an array of that represent the absolute points of an edge.

cell

cell: mxCell

Variable: cell

Reference to the that is represented by this state.

control

control: mxShape

height

height: number

Variable: height

Holds the height of the rectangle. Default is 0.

invalid

invalid: boolean

Variable: invalid

Specifies if the state is invalid. Default is true.

length

length: number

Variable: length

Caches the length of an edge.

origin

origin: mxPoint

Variable: origin

that holds the origin for all child cells. Default is a new empty .

segments

segments: number[]

Variable: segments

Array of numbers that represent the cached length of each segment of the edge.

shape

shape: mxShape

Variable: shape

Holds the that represents the cell graphically.

style

style: {}

Variable: style

Contains an array of key, value pairs that represent the style of the cell.

Type declaration

  • [key: string]: any

terminalDistance

terminalDistance: number

Variable: terminalDistance

Caches the distance between the end points for an edge.

text

text: mxText

Variable: text

Holds the that represents the label of the cell. Thi smay be null if the cell has no label.

unscaledWidth

unscaledWidth: number

Variable: unscaledWidth

Holds the unscaled width of the state.

view

Variable: view

Reference to the enclosing .

visibleSourceState

visibleSourceState: mxCellState

Variable: visibleSourceState

Caches the visible source terminal state.

visibleTargetState

visibleTargetState: mxCellState

Variable: visibleTargetState

Caches the visible target terminal state.

width

width: number

Variable: width

Holds the width of the rectangle. Default is 0.

x

x: number

Variable: x

Holds the x-coordinate of the point. Default is 0.

y

y: number

Variable: y

Holds the y-coordinate of the point. Default is 0.

Methods

add

clone

destroy

  • destroy(): void

equals

fromRectangle

getCellBounds

getCenterX

  • getCenterX(): number

getCenterY

  • getCenterY(): number

getPaintBounds

  • Function: getPaintBounds

    Returns the unscaled, untranslated paint bounds. This is the same as but with a 90 degree rotation if the shape's isPaintBoundsInverted returns true.

    Returns mxRectangle

getPerimeterBounds

  • Function: getPerimeterBounds

    Returns the that should be used as the perimeter of the cell.

    Parameters:

    border - Optional border to be added around the perimeter bounds. bounds - Optional to be used as the initial bounds.

    Parameters

    Returns mxRectangle

getPoint

getVisibleTerminal

  • getVisibleTerminal(source: boolean): mxCell
  • Function: getVisibleTerminal

    Returns the visible source or target terminal cell.

    Parameters:

    source - Boolean that specifies if the source or target cell should be returned.

    Parameters

    • source: boolean

    Returns mxCell

getVisibleTerminalState

  • getVisibleTerminalState(source?: boolean): mxCellState
  • Function: getVisibleTerminalState

    Returns the visible source or target terminal state.

    Parameters:

    source - Boolean that specifies if the source or target state should be returned.

    Parameters

    • Optional source: boolean

    Returns mxCellState

grow

  • grow(amount: number): void
  • Function: grow

    Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.

    Parameters

    • amount: number

    Returns void

intersect

rotate90

  • rotate90(): void

setAbsoluteTerminalPoint

  • setAbsoluteTerminalPoint(point: mxPoint, isSource: boolean): void
  • Function: setAbsoluteTerminalPoint

    Sets the first or last point in depending on isSource.

    Parameters:

    point - that represents the terminal point. isSource - Boolean that specifies if the first or last point should be assigned.

    Parameters

    Returns void

setCursor

  • setCursor(cursor: string): void
  • Function: setCursor

    Sets the given cursor on the shape and text shape.

    Parameters

    • cursor: string

    Returns void

setRect

  • setRect(x: number, y: number, w: number, h: number): void

setState

setVisibleTerminalState

  • setVisibleTerminalState(terminalState: mxCellState, source: boolean): void
  • Function: setVisibleTerminalState

    Sets the visible source or target terminal state.

    Parameters:

    terminalState - that represents the terminal. source - Boolean that specifies if the source or target state should be set.

    Parameters

    Returns void

updateCachedBounds

  • updateCachedBounds(): void

Static fromRectangle

Generated using TypeDoc