[]
RotationInit:
object
Information about initial rectangle before rotation.
angle:
number
Rotation rectangle in degrees.
optional
dx:number
Left content offset after rotation. Width difference between initRect and rotatedRect divided by 2.
optional
dy:number
Top content offset after rotation. Height difference between initRect and rotatedRect divided by 2.
initRect:
number
[]
Initial annotation rectangle before rotation. Cannot be null or empty. [x1, y1, x2, y2], equals the content rectangle without rotation. Rotation origin is center of the rectangle.
optional
rotatedRect:number
[]
Result annotation rectangle after rotation, [x1, y1, x2, y2] - orientation not changed.
optional
transformedRect:number
[]
Transformed content rectangle after rotation, [x1, y1, x2, y2].