UNPKG

ngx-virtual-swiper

Version:
53 lines (52 loc) 1.9 kB
import { Directionality } from '@angular/cdk/bidi'; import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling'; import { OnDestroy, OnInit } from '@angular/core'; import { Subscription } from 'rxjs'; import { NgxVirtualSwiperOptions } from './options'; import { IPositionEvent } from './position-event'; export declare class NgxVirtualSwiperDirective implements OnInit, OnDestroy { private options; /** to lean more see https://material.angular.io/cdk/scrolling/api */ private cdk; private dir?; itemSize: number; readonly subscription: Subscription; index: number; swiped: boolean; clientX: number; clientY: number; prevClientX: number; prevClientY: number; constructor(options: NgxVirtualSwiperOptions, /** to lean more see https://material.angular.io/cdk/scrolling/api */ cdk: CdkVirtualScrollViewport, dir?: Directionality); ngOnInit(): void; ngOnDestroy(): void; onMousedown: (e: IPositionEvent) => void; onTouchstart: (e: { touches: IPositionEvent[]; }) => void; onMousemove: (e: IPositionEvent) => void; onTouchmove: (e: { touches: IPositionEvent[]; }) => void; onFinish: () => void; /** the bug-fix to prevent dragging images while swiping */ onDragstart: (e: { preventDefault: any; }) => void; get changed(): boolean; get rtl(): boolean; get scrollSize(): number; mousemoveX: (e: IPositionEvent) => void; mousemoveY: (e: IPositionEvent) => void; start: (e: IPositionEvent) => void; move: (e: IPositionEvent) => void; toggleSwiped: (value: boolean) => void; finalize: () => void; scrollToNearestIndex: () => void; addEventListener: () => void; removeEventListener: () => void; /** prevent all type of clicks (e.g. click on links, Angular`s click) */ preventClicks: (e: MouseEvent) => void; }