arrange function
Lays out the cards of callouts on a model that spans `left` to `right` in a `width` × `height` host: each on the side of the model its point is on, just past the model's edge but inside the host, and on each side spread up and down so no two cards overlap.
import { arrange } from '@dioramajs/model/hotspots'.
function arrange(
list: readonly Callout[],
left: number,
right: number,
width: number,
height: number,
): voidParameters
| Name | Type | Description |
|---|---|---|
list | readonly Callout[] | |
left | number | |
right | number | |
width | number | |
height | number |
Defined in packages/model/src/hotspots.ts.