@openspacelabs/react-native-zoomable-view
Version:
A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
15 lines (14 loc) • 446 B
TypeScript
/**
* Takes a single offset value and calculates the correct offset value
* to make sure it's within the pan boundaries
*
*
* @param offsetScaled
* @param containerSize
* @param contentSize
* @param scale
* @param boundaryPadding - see README
*
* @returns {number}
*/
export declare function applyPanBoundariesToOffset(offsetScaled: number, containerSize: number, contentSize: number, scale: number, boundaryPadding: number): number;