AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.math.Rect Improve this Doc

Define rectangle. This class is an alias of the anychart.graphics.math.Rect class.

Methods Overview

Size and Position
getBottom()Getter for the bottom of a rectangle.
getHeight()Getter for the height of a rectangle.
getLeft()Getter for the X-coordinate of the left side of a rectangle.
getRight()Getter for the X-coordinate of the right side of a rectangle.
getTop()Getter for the top of a rectangle.
getWidth()Getter for the width of a rectangle.

Methods Description

getBottom

Getter for the bottom of a rectangle.

Returns:

number - The Y-coordinate of the bottom of a rectangle.

getHeight

Getter for the height of a rectangle.

Returns:

number - The height of a rectangle.

getLeft

Getter for the X-coordinate of the left side of a rectangle.

Returns:

number - The X-coordinate of the left side of a rectangle.

getRight

Getter for the X-coordinate of the right side of a rectangle.

Returns:

number - The X-coordinate of the right side of a rectangle.

getTop

Getter for the top of a rectangle.

Returns:

number - The Y-coordinate of the top of a rectangle.

getWidth

Getter for the width of a rectangle.

Returns:

number - The width of a rectangle.