UNPKG

700 BTypeScriptView Raw
1import { IInputType, IInputTypeObserver } from "./InputType";
2export interface WheelInputOption {
3 scale?: number;
4 useNormalized?: boolean;
5}
6export declare class WheelInput implements IInputType {
7 options: WheelInputOption;
8 axes: string[];
9 element: HTMLElement;
10 private _isEnabled;
11 private _isHolded;
12 private _timer;
13 private observer;
14 constructor(el: any, options?: WheelInputOption);
15 mapAxes(axes: string[]): void;
16 connect(observer: IInputTypeObserver): IInputType;
17 disconnect(): this;
18 destroy(): void;
19 private onWheel;
20 private attachEvent;
21 private dettachEvent;
22 enable(): this;
23 disable(): this;
24 isEnable(): boolean;
25}