anchors const
Layout is read only when something may have moved (resize, observed size changes, fonts).
import { anchors } from '@dioramajs/diorama/core'. 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.
const anchors: Plugin<'anchors'>Also exported from @dioramajs/core.
Defined in packages/core/src/web/anchors.ts.