RotationInit: { angle: number; dx?: number; dy?: number; initRect: number[]; rotatedRect?: number[]; transformedRect?: number[] }

Information about initial rectangle before rotation.

Type declaration

  • 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].