1 | import { EventEmitter } from '@better-scroll/shared-utils';
|
2 | export interface TranslaterPoint {
|
3 | x: number;
|
4 | y: number;
|
5 | [key: string]: number;
|
6 | }
|
7 | export 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 | }
|