Used with a component · Dock
dockItemSizes
The pure, DOM-free size math useDock runs on every pointer move. Use them to drive your own magnification, or to preview the curve in a test or a chart. Distances are in px along the dock.
Install
import { dockFalloff, dockItemSize, dockItemSizes } from 'vael-ui'Examples
import { dockItemSizes } from 'vael-ui'
// Four items 56 px apart, pointer over the second one.
dockItemSizes(56, [0, 56, 112, 168], { baseSize: 48, maxSize: 76, range: 168 })