Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new mxRectangle(x: number, y: number, width: number, height: number): mxRectangle

Properties

height

height: number

Variable: height

Holds the height of the rectangle. Default is 0.

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

equals

fromRectangle

getCenterX

  • getCenterX(): number

getCenterY

  • getCenterY(): number

getPoint

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
  • Function: rotate90

    Rotates this rectangle by 90 degree around its center point.

    Returns void

setRect

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

    Sets this rectangle to the specified values

    Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns void

Static fromRectangle

Generated using TypeDoc