UNPKG

@egjs/view360

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) 709 B
import { PanInput } from "@egjs/axes"; import { InputTypeObserver } 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: InputTypeObserver): import("@egjs/axes/declaration/inputType/InputType").InputType; destroy(): void; protected _getOffset(properties: number[], useDirection: boolean[]): number[]; }