-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathslimscroll.directive.d.ts
More file actions
70 lines (69 loc) · 2.09 KB
/
slimscroll.directive.d.ts
File metadata and controls
70 lines (69 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import {Directive, ElementRef, Input, OnDestroy, OnInit, Renderer2, RendererFactory2} from "@angular/core";
@Directive({
selector: "[slimScroll]",
})
export declare class SlimScroll implements OnInit, OnDestroy {
private _renderer;
private _me;
private _bar;
private _rail;
private _isOverPanel;
private _isOverBar;
private _isDragg;
private _touchDif;
private _barHeight;
private _percentScroll;
private _lastScroll;
private _minBarHeight;
private _releaseScroll;
private _options;
private _previousHeight;
private _queueHide;
private _changesTracker;
private _barMouseDownPageY;
private _startBarTop;
constructor(rendererFactory: RendererFactory2, elementRef: ElementRef);
ngOnInit(): void;
ngOnDestroy(): void;
onResize(): void;
@Input() width: string;
@Input() height: string;
@Input() size: string;
@Input() color: string;
@Input() position: string;
@Input() distance: string;
@Input() start: string;
@Input() opacity: number;
@Input() transition: number;
@Input() alwaysVisible: boolean;
@Input() disableFadeOut: boolean;
@Input() railVisible: boolean;
@Input() railColor: string;
@Input() railOpacity: number;
@Input() railClass: string;
@Input() barClass: string;
@Input() wrapperClass: string;
@Input() allowPageScroll: boolean;
@Input() wheelStep: number;
@Input() touchScrollStep: number;
@Input() borderRadius: string;
@Input() railBorderRadius: string;
@Input() scrollTo: number;
@Input() autoScrollToBottom: boolean;
@Input() maxHeightBeforeEnable: number;
private init();
private trackPanelHeightChanged;
private hasParentClass(e, className);
private onWheel(e);
private attachWheel(target);
private showBar();
private hideBar();
scrollContent(y: number, isWheel: boolean, isJump?: boolean): void;
private getBarHeight();
private refresh();
private railMouseDown(event);
private barMouseMove(event);
private barMouseUp();
private barMouseDown(e);
private setup();
}