# radiusOf

function in `@dioramajs/blocks/beam`

```ts
import { radiusOf } from '@dioramajs/blocks/beam'
```

The largest corner radius of an element in px, at most half its shorter side.

```ts
function radiusOf(element: Element, width: number, height: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |
| `width` | `number` |  |
| `height` | `number` |  |

Defined in [packages/blocks/src/beam.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/blocks/src/beam.ts#L69).
