UNPKG

svelte-motion

Version:

Svelte animation library based on the React library framer-motion.

19 lines (18 loc) 606 B
/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import { FeatureProps } from "../motion/features/types"; /** * * @param handlers - * @param ref - * * @internalremarks * Currently this sets new pan gesture functions every render. The memo route has been explored * in the past but ultimately we're still creating new functions every render. An optimisation * to explore is creating the pan gestures and loading them into a `ref`. * * @internal */ export declare function usePanGesture({ onPan, onPanStart, onPanEnd, onPanSessionStart, visualElement, }: FeatureProps): void;