Skip to content
Titanium SDK
Version12.7.0

You are reading 12.7.0. See this page in 13.4.1.

Matrix2DCreationDict

pseudoAndroidiPhoneiPadmacOS

Simple object passed to Titanium.UI.createMatrix2D to initialize a matrix.

The matrix is initialized with the specified transforms.

On iOS, rotation is always performed first, regardless of the order the properties are specified in.

On Android, specifying both scale and rotate the same dictionary results in an incorrect transformation.

Properties 3

Point to rotate around, specified as a dictionary object with x and y properties, where { x: 0.5, y: 0.5 } represents the center of whatever is being rotated.

Default: (0.5, 0.5)

rotate

Number

Rotation angle, in degrees. See the rotate method for a discussion of rotation.

Default: No rotation.

scale

Number

Scale the matrix by the specified scaling factor. The same scaling factor is used for both horizontal and vertical scaling.

Default: 1