UNPKG

solid-awesome-hooks

Version:
21 lines (20 loc) 683 B
interface UsePinchZoomParams { /** * Callback to be called on zoom in * @param distanceGrowthPX - absolute distance growth between event calls */ onZoomIn?: (distanceGrowthPX: number) => void; /** * Callback to be called on zoom out * @param distanceGrowthPX - absolute distance growth between event calls */ onZoomOut?: (distanceGrowthPX: number) => void; options?: { /** * @default true */ preventTouchMoveEvent?: boolean; }; } export declare const usePinchZoom: ({ onZoomIn, onZoomOut, options, }: UsePinchZoomParams) => import("solid-js").Setter<HTMLElement>; export {};