%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/bower-asset/fullcalendar/src/core/common/ |
Upload File : |
/* An object for getting/setting scroll-related information for an element. Internally, this is done very differently for window versus DOM element, so this object serves as a common interface. */ export abstract class ScrollController { abstract getScrollTop(): number abstract getScrollLeft(): number abstract setScrollTop(top: number): void abstract setScrollLeft(left: number): void abstract getClientWidth(): number abstract getClientHeight(): number abstract getScrollWidth(): number abstract getScrollHeight(): number getMaxScrollTop() { return this.getScrollHeight() - this.getClientHeight() } getMaxScrollLeft() { return this.getScrollWidth() - this.getClientWidth() } canScrollVertically() { return this.getMaxScrollTop() > 0 } canScrollHorizontally() { return this.getMaxScrollLeft() > 0 } canScrollUp() { return this.getScrollTop() > 0 } canScrollDown() { return this.getScrollTop() < this.getMaxScrollTop() } canScrollLeft() { return this.getScrollLeft() > 0 } canScrollRight() { return this.getScrollLeft() < this.getMaxScrollLeft() } } export class ElementScrollController extends ScrollController { el: HTMLElement constructor(el: HTMLElement) { super() this.el = el } getScrollTop() { return this.el.scrollTop } getScrollLeft() { return this.el.scrollLeft } setScrollTop(top: number) { this.el.scrollTop = top } setScrollLeft(left: number) { this.el.scrollLeft = left } getScrollWidth() { return this.el.scrollWidth } getScrollHeight() { return this.el.scrollHeight } getClientHeight() { return this.el.clientHeight } getClientWidth() { return this.el.clientWidth } } export class WindowScrollController extends ScrollController { getScrollTop() { return window.pageYOffset } getScrollLeft() { return window.pageXOffset } setScrollTop(n: number) { window.scroll(window.pageXOffset, n) } setScrollLeft(n: number) { window.scroll(n, window.pageYOffset) } getScrollWidth() { return document.documentElement.scrollWidth } getScrollHeight() { return document.documentElement.scrollHeight } getClientHeight() { return document.documentElement.clientHeight } getClientWidth() { return document.documentElement.clientWidth } }