ComponentBounds class

Signature:

export declare class ComponentBounds implements Rect 

Implements: Rect

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ComponentBounds class.

Properties

PropertyModifiersTypeDescription
bottomreadonlynumber
centerreadonlyVector2
heightreadonlynumber
leftreadonlynumber
maxreadonlyVector2
minreadonlyVector2
positionreadonlyVector2
rightreadonlynumber
sizereadonlyVector2
topreadonlynumber
widthreadonlynumber
xreadonlynumber
xMaxreadonlynumber
xMinreadonlynumber
yreadonlynumber
yMaxreadonlynumber
yMinreadonlynumber

ComponentBounds.center property

Signature:

get center(): Vector2;

ComponentBounds.bottom property

Warning: This API is now obsolete.

This is the same as y + height

Signature:

get bottom(): number;

ComponentBounds.height property

Signature:

readonly height: number;

ComponentBounds.left property

Warning: This API is now obsolete.

This is the same as x

Signature:

get left(): number;

ComponentBounds.max property

Signature:

get max(): Vector2;

ComponentBounds.min property

Signature:

get min(): Vector2;

ComponentBounds.position property

Signature:

get position(): Vector2;

ComponentBounds.size property

Signature:

get size(): Vector2;

ComponentBounds.top property

Warning: This API is now obsolete.

This is the same as y

Signature:

get top(): number;

ComponentBounds.right property

Warning: This API is now obsolete.

This is the same as x + width

Signature:

get right(): number;

ComponentBounds.width property

Signature:

readonly width: number;

ComponentBounds.x property

Signature:

readonly x: number;

ComponentBounds.xMax property

Signature:

get xMax(): number;

ComponentBounds.y property

Signature:

readonly y: number;

ComponentBounds.xMin property

Signature:

get xMin(): number;

ComponentBounds.yMax property

Signature:

get yMax(): number;

ComponentBounds.yMin property

Signature:

get yMin(): number;