UNPKG

react-casino-roulette-updated

Version:
11 lines (10 loc) 545 B
import { RouletteLayoutType } from "../types"; export declare function getNumberCount(layoutType: RouletteLayoutType): 38 | 37; export declare function calculateDefaultRotation(layoutType: RouletteLayoutType, index: number): number; /** * * @param index the index number from the array on which should the ball land. * @param spins How manny laps should the ball do before stopping. * @returns the number in degrees. */ export declare function calculateSpinToRotation(layoutType: RouletteLayoutType, index: number, spins?: number): number;