view360-canex
Version:
360 integrated viewing solution from inside-out view to outside-in view. It provides user-friendly service by rotating 360 degrees through various user interaction such as motion sensor and touch.
16 lines (15 loc) • 652 B
TypeScript
import { PanInput } from "@egjs/axes";
import { IInputTypeObserver } from "@egjs/axes/declaration/inputType/InputType";
import { PanInputOption } from "@egjs/axes/declaration/inputType/PanInput";
export default class RotationPanInput extends PanInput {
private _useRotation;
private _screenRotationAngle;
private _userDirection;
constructor(el: HTMLElement, options?: Partial<{
useRotation: boolean;
} & PanInputOption>);
setUseRotation(useRotation: boolean): void;
connect(observer: IInputTypeObserver): import("@egjs/axes/declaration/inputType/InputType").IInputType;
destroy(): void;
private getOffset;
}