# anchors

const in `@dioramajs/diorama/core`

```ts
import { anchors } from '@dioramajs/diorama/core'
```

Layout is read only when something may have moved (resize, observed size changes,
fonts). Each frame just offsets the cached page boxes by the scroll position. Live anchors
near the viewport are re-read every frame, since sticky, fixed and transformed boxes move
without a layout change.

```ts
const anchors: Plugin<'anchors'>
```

Also exported from `@dioramajs/core`.

Defined in [packages/core/src/web/anchors.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/core/src/web/anchors.ts#L113).
