@maxgraph/core
    Preparing search index...

    Class Rectangle

    Extends Point to implement a 2-dimensional rectangle with double precision coordinates.

    Constructor: mxRectangle

    Constructs a new rectangle for the optional parameters. If no parameters are given then the respective default values are used.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _height: number = 0

    Holds the height of the rectangle.

    0
    
    _width: number = 0

    Holds the width of the rectangle.

    0
    
    _x: number = 0

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

    _y: number = 0

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

    Accessors

    Methods

    • 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

    • Sets this rectangle to the specified values

      Parameters

      • x: number
      • y: number
      • width: number
      • height: number

      Returns void