# getPositionFromIndex

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/components/Editor/UserCursors.tsx`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/components/Editor/UserCursors.tsx#L148)

Convert a character index in the editor's content to screen coordinates
for drawing a remote user's cursor.

## Signature

```ts
function getPositionFromIndex(index: number, contentEditable: HTMLElement | null, overlayReference: HTMLElement | null): { x: number; y: number; height: number } | null
```

## Parameters

| Name | Type |
|---|---|
| `index` | `number` |
| `contentEditable` | `HTMLElement | null` |
| `overlayReference` | `HTMLElement | null` |

**Returns:** `{ x: number; y: number; height: number } | null`
