UNPKG

uicore-ts

Version:

UICore is a library to build native-like user interfaces using pure Typescript. No HTML is needed at all. Components are described as TS classes and all user interactions are handled explicitly. This library is strongly inspired by the UIKit framework tha

22 lines (21 loc) 967 B
import { UIPoint } from "./UIPoint"; import { LooseObject, UIView } from "./UIView"; export declare class UINativeScrollView extends UIView { animationDuration: number; private _contentOffset?; constructor(elementID?: string, viewHTMLElement?: (HTMLElement & LooseObject) | null | undefined); didScrollToPosition(offsetPosition: UIPoint): void; get scrollsX(): boolean; set scrollsX(scrolls: boolean); get scrollsY(): boolean; set scrollsY(scrolls: boolean); get contentOffset(): UIPoint; set contentOffset(offsetPoint: UIPoint); scrollToBottom(): void; scrollToTop(): void; get isScrolledToBottom(): boolean; get isScrolledToTop(): boolean; scrollYTo(element: HTMLElement & LooseObject, to: number, duration: number): void; scrollXTo(element: HTMLElement & LooseObject, to: number, duration: number): void; easeInOut(currentTime: number, start: number, change: number, duration: number): number; }