solid-awesome-hooks
Version:
A collection of awesome hooks for solid-js
21 lines (20 loc) • 683 B
TypeScript
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 {};