Dimension

A simple object consisting of the position and size measurements.

When a dimension is returned by the rect property, x represents the view's left position, and y represents the view's top position.

The size property returns a dimension object with x and y both set to 0.

  • 2.0.0
  • 2.0.0
  • 2.0.0

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

Dimension
height : Number

The height measurement.

The height measurement.

Dimension
width : Number

The width measurement.

The width measurement.

Dimension
x : Number

The x-axis coordinate of the position.

The x-axis coordinate of the position.

Dimension
y : Number

The y-axis coordinate of the position.

The y-axis coordinate of the position.