rotate
|
{
x?: number,
y?: number,
z?: number,
angle?: Angle,
centerX?: Length,
centerY?: Length
}
|
{
x: 0,
y: 0,
z: 0,
angle: 0,
centerX: '50%',
centerY: '50%'
}
|
The vector (x, y, z) specifies a rotation axis. A positive angle indicates a clockwise rotation, and a negative angle indicates a counterclockwise rotation. The default value is 0. centerX and centerY are used to set the rotation center point.
|
translate
|
{
x?: Length,
y?: Length,
z? : Length
}
|
{
x: 0,
y: 0,
z: 0
}
|
Translation distance along the x-, y-, and z-axis. The translation direction is determined by the positive and negative values. The default value is 0.
|
scale
|
{
x?: number,
y?: number,
z?: number,
centerX?: Length,
centerY?: Length
}
|
{
x: 1,
y: 1,
z: 1,
centerX:'50%',
centerY:'50%'
}
|
Scale ratio of the x-, y-, and z-axis. The default value is 1. centerX and centerY are used to set the scale center point.
|
transform
|
matrix: Matrix4
|
-
|
Transformation matrix of the component.
|