BoxClipRectangle

Represents a box-shaped clip rectangle.

Constructor

new BoxClipRectangle(x, y, width, height)

Constructs a new BoxClipRectangle object.

Parameters:
NameTypeDescription
xnumber

The x-coordinate of the top-left corner of the rectangle.

ynumber

The y-coordinate of the top-left corner of the rectangle.

widthnumber

The width of the rectangle.

heightnumber

The height of the rectangle.

Extends

Members

type

Gets the type of the clip rectangle.

Methods

asMap() → {Map.<string, any>}

Converts the BoxClipRectangle object to a Map.

Returns:
  • The Map representation of the BoxClipRectangle object.
Type: 
Map.<string, any>