[]
        
(Showing Draft Content)

RotationInit

Type Alias: RotationInit

RotationInit: object

Information about initial rectangle before rotation.

Type declaration

angle

angle: number

Rotation rectangle in degrees.

dx?

optional dx: number

Left content offset after rotation. Width difference between initRect and rotatedRect divided by 2.

dy?

optional dy: number

Top content offset after rotation. Height difference between initRect and rotatedRect divided by 2.

initRect

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.

rotatedRect?

optional rotatedRect: number[]

Result annotation rectangle after rotation, [x1, y1, x2, y2] - orientation not changed.

transformedRect?

optional transformedRect: number[]

Transformed content rectangle after rotation, [x1, y1, x2, y2].