sips-js-api
    Preparing search index...

    Class Rect

    The Rect class represents a rectangle. Rectangles consist of an x and y coordinate pair identifying a minimum x value, a minimum y value, and a width and height.

    Index
    • Initializes a rectangle with the specified coordinate and size values.

      Parameters

      • x: number

        The x-coordinate of the rectangle's origin point.

      • y: number

        The y-coordinate of the rectangle's origin point.

      • width: number

        The width of the rectangle.

      • height: number

        The height of the rectangle.

      Returns Rect

    height: number

    The height of a rectangle.

    origin: Point

    A point that specifies the coordinates of the rectangle's origin.

    size: Size

    A size that specifies the height and width of the rectangle.

    width: number

    The width of a rectangle.

    x: number

    The x-coordinate of the rectangle's origin point.

    y: number

    The y-coordinate of the rectangle's origin point.