UNPKG

gramli-angular-notifier

Version:

A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.

30 lines (29 loc) 1.18 kB
import { NotifierAnimationData } from '../models/notifier-animation.model'; import { NotifierNotification } from '../models/notifier-notification.model'; import * as i0 from "@angular/core"; /** * Notifier animation service */ export declare class NotifierAnimationService { /** * List of animation presets (currently static) */ private readonly animationPresets; /** * Constructor */ constructor(); /** * Get animation data * * This method generates all data the Web Animations API needs to animate our notification. The result depends on both the animation * direction (either in or out) as well as the notifications (and its attributes) itself. * * @param direction Animation direction, either in or out * @param notification Notification the animation data should be generated for * @returns Animation information */ getAnimationData(direction: 'show' | 'hide', notification: NotifierNotification): NotifierAnimationData; static ɵfac: i0.ɵɵFactoryDeclaration<NotifierAnimationService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NotifierAnimationService>; }