UNPKG

ng-spinner-wheel

Version:

A customizable standalone Angular spinner wheel component that supports weighted items. Useful for raffles, lucky draws, and gamified selections where some items have higher chances of winning.

12 lines (11 loc) 432 B
import * as i0 from "@angular/core"; export declare class NgSpinnerWheelService { constructor(); getRandomColor(): string; items: any; addItemFoePool(item: any, weight: number): void; selectRandomItem(): any; getTextColor(backgroundHexColor: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<NgSpinnerWheelService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgSpinnerWheelService>; }