Name | Type | Description |
---|---|---|
options |
TransformOptions |
Options for the transform. |
options.matrix |
The matrix to use. |
|
options.observer |
The observer to use. |
Interface Definitions
-
Options for the Transform constructor.
Members
matrix Matrix readonly
This matrix is computed by combining this Transforms position, scale, rotation, skew, and pivot properties into a single matrix.
pivot ObservablePoint
The pivot point of the container that it rotates around.
position ObservablePoint
The coordinate of the object relative to the local coordinates of the parent.
The rotation of the object in radians.
scale ObservablePoint
The scale factor of the object.
skew ObservablePoint
The skew amount, on the x and y axis.
The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.
The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.
The rotation amount.
The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.
The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.
Methods
Decomposes a matrix and sets the transforms properties based on it.
Name | Type | Description |
---|---|---|
matrix |
Matrix |
The matrix to decompose |
Called when the skew or the rotation changes.