# RotationInit

## Content

# Type Alias: RotationInit

```ts
type RotationInit = object;
```

Information about initial rectangle before rotation.

## Properties

### angle

```ts
angle: number;
```

Rotation rectangle in degrees.

***

### dx?

```ts
optional dx: number;
```

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

***

### dy?

```ts
optional dy: number;
```

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

***

### initRect

```ts
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?

```ts
optional rotatedRect: number[];
```

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

***

### transformedRect?

```ts
optional transformedRect: number[];
```

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