import { InjectionToken } from '@angular/core' ; import { PageScrollConfig } from '../types/page-scroll.config' ; export const NGXPS_CONFIG = new InjectionToken < PageScrollConfig > ( 'ngxps_config' ) ; export const defaultPageScrollConfig = { _interval : 10 , _minScrollDistance : 2 , _logLevel : 1 , namespace : 'default' , verticalScrolling : true , duration : 1250 , scrollOffset : 0 , advancedInlineOffsetCalculation : false , interruptEvents : [ 'mousedown' , 'wheel' , 'DOMMouseScroll' , 'mousewheel' , 'keyup' , 'touchmove' ] , interruptKeys : [ ' ' , 'Escape' , 'Tab' , 'Enter' , 'PageUp' , 'PageDown' , 'Home' , 'End' , 'ArrowUp' , 'ArrowRight' , 'ArrowLeft' , 'ArrowDown' ] , interruptible : true , scrollInView : true , easingLogic : ( t , b , c , d ) : number => { return c * t / d + b ; } , } ;