@haxtheweb/haxcms-nodejs
Version:
HAXcms single and multisite nodejs server, api, and administration
46 lines (38 loc) • 1.37 kB
TypeScript
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* vaadin-dir-helper.js
*/
// tslint:disable:variable-name Describing an API that's defined elsewhere.
/**
* Helper that provides a set of functions for RTL.
*/
declare class DirHelper {
/**
* Get the scroll type in the current browser view.
*
* @returns the scroll type. Possible values are `default|reverse|negative`
*/
static detectScrollType(): string;
/**
* Get the scrollLeft value of the element relative to the direction
*
* @param scrollType type of the scroll detected with `detectScrollType`
* @param direction current direction of the element
* @returns the scrollLeft value.
*/
static getNormalizedScrollLeft(scrollType: string, direction: string, element: Element|null): number;
/**
* Set the scrollLeft value of the element relative to the direction
*
* @param scrollType type of the scroll detected with `detectScrollType`
* @param direction current direction of the element
* @param scrollLeft the scrollLeft value to be set
*/
static setNormalizedScrollLeft(scrollType: string, direction: string, element: Element|null, scrollLeft: number): void;
}
export {DirHelper};