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
Property | Modifiers | Type | Description |
---|---|---|---|
bottom | readonly | number | |
center | readonly | Vector2 | |
height | readonly | number | |
left | readonly | number | |
max | readonly | Vector2 | |
min | readonly | Vector2 | |
position | readonly | Vector2 | |
right | readonly | number | |
size | readonly | Vector2 | |
top | readonly | number | |
width | readonly | number | |
x | readonly | number | |
xMax | readonly | number | |
xMin | readonly | number | |
y | readonly | number | |
yMax | readonly | number | |
yMin | readonly | number |
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;
Updated 7 months ago