Buckets:
| import { registerAction, pinchAction } from '@use-gesture/core/actions' | |
| import { UserPinchConfig, Handler, EventTypes } from '@use-gesture/core/types' | |
| import { useRecognizers } from './useRecognizers' | |
| /** | |
| * Pinch hook. | |
| * | |
| * @param {Handler<'pinch'>} handler - the function fired every time the pinch gesture updates | |
| * @param {UserPinchConfig} config - the config object including generic options and pinch options | |
| */ | |
| export function usePinch<EventType = EventTypes['pinch'], Config extends UserPinchConfig = UserPinchConfig>( | |
| handler: Handler<'pinch', EventType>, | |
| config?: Config | |
| ) { | |
| registerAction(pinchAction) | |
| return useRecognizers({ pinch: handler }, config || {}, 'pinch') | |
| } | |
Xet Storage Details
- Size:
- 692 Bytes
- Xet hash:
- 41a9d36eaaa83e23339fd1146c8797f994c9bff7ffbb3a983ed2023c74b6d96e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.