UNPKG

515 BTypeScriptView Raw
1import { EventEmitter } from '@better-scroll/shared-utils';
2export interface TranslaterPoint {
3 x: number;
4 y: number;
5 [key: string]: number;
6}
7export default class Translater {
8 content: HTMLElement;
9 style: CSSStyleDeclaration;
10 hooks: EventEmitter;
11 constructor(content: HTMLElement);
12 getComputedPosition(): {
13 x: number;
14 y: number;
15 };
16 translate(point: TranslaterPoint): void;
17 setContent(content: HTMLElement): void;
18 destroy(): void;
19}