UNPKG

@ue-too/board

Version:
26 lines (25 loc) 712 B
/** * @description The limits of the zoom level. * * @category Camera */ export type ZoomLevelLimits = { min?: number; max?: number; }; /** * @description Checks if the zoom level limits are valid. */ export declare function isValidZoomLevelLimits(zoomLevelLimits: ZoomLevelLimits | undefined): boolean; /** * @description Clamps the zoom level within the limits. * * @category Camera */ export declare function clampZoomLevel(zoomLevel: number, zoomLevelLimits?: ZoomLevelLimits): number; /** * @description Checks if the zoom level is within the limits. * * @category Camera */ export declare function zoomLevelWithinLimits(zoomLevel: number, zoomLevelLimits?: ZoomLevelLimits): boolean;