# calculateOverlayArrowPosition Type documentation

## TypeScript declaration

### [calculateOverlayArrowPosition](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L139-L165>)

**Kind:** function

```
import { calculateOverlayArrowPosition } from '@siemens/element-ng/common';
```

calculates the arrow position from left/right for tooltips, popovers, etc

```
OverlayArrowPosition
```

```
calculateOverlayArrowPosition(change: ConnectedOverlayPositionChange, overlay: ElementRef<any>, anchor?: ElementRef<any>): OverlayArrowPosition
```

calculates the arrow position from left/right for tooltips, popovers, etc

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [change](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L140-L140>) | `ConnectedOverlayPositionChange` |  | • the event from the position strategy |
| [overlay](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L141-L141>) | `ElementRef<any>` |  | • ElementRef for the overlay content, i.e. the popover/tooltip component |
| [anchor](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L142-L142>) (optional) | `ElementRef<any>` |  | • ElementRef for the anchoring element, i.e. the trigger of the popover/tooltip |

**Returns:** [OverlayArrowPosition](<index.html#t:OverlayArrowPosition>)

### Types Documentation

### [OverlayArrowPosition](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L129-L132>)

**Kind:** interface

```
import type { OverlayArrowPosition } from '@siemens/element-ng/common';
```

```
interface OverlayArrowPosition
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [left](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L130-L130>) (optional) | `number` |  |
| [right](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L131-L131>) (optional) | `number` |  |
