forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscroll.d.ts
More file actions
20 lines (14 loc) · 1017 Bytes
/
Copy pathscroll.d.ts
File metadata and controls
20 lines (14 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Ref, ComponentPublicInstance } from 'vue'
export namespace scroll {
function getScrollTarget(el: Element, selector?: string | Element | Window | Ref<ComponentPublicInstance | undefined>): Element | Window;
function getScrollHeight(el: Element | Window): number;
function getScrollWidth(el: Element | Window): number;
function getVerticalScrollPosition(scrollTarget: Element | Window): number;
function getHorizontalScrollPosition(scrollTarget: Element | Window): number;
function animVerticalScrollTo(el: Element | Window, to: number, duration: number): void;
function animHorizontalScrollTo(el: Element | Window, to: number, duration: number): void;
function setVerticalScrollPosition(scrollTarget: Element | Window, offset: number, duration?: number): void;
function setHorizontalScrollPosition(scrollTarget: Element | Window, offset: number, duration?: number): void;
function getScrollbarWidth(): number;
function hasScrollbar(el: Element | Window, onY?: boolean): boolean;
}