Generated API reference for @rekhly/interaction →
@rekhly/interactionPointer unification and zoom/pan math for Rekhly Visuals.
import { bindPointerTarget, zoomRange, panRange, wheelZoomFactor } from "@rekhly/interaction";
bindPointerTarget / pointerSampleFromEvent — unifies mouse, touch, and pen input into one PointerSample shape.
zoomRange, panRange, padRange, normalizeRange — pure range math,unit-tested without a DOM.
panDeltaFromPixels, wheelZoomFactor, rangeFromPlotRect — pixel ↔data-space conversions for drag/wheel interactions.
host element and must be unsubscribed on dispose.
Got any questions? I'm happy to help with products, licensing, and examples.