UNPKG

convex-pixel

Version:

The library for creating pseudo 3d interactive scenes based on webgl

19 lines 812 B
import { App } from "../../core/app"; import { ICameraController } from "./interfaces"; import { IVector2D } from "../../utils/geom/vector"; import { Camera } from "../camera"; export declare class CameraGyroscopeController<T extends App = any> implements ICameraController { readonly appContext: T; camera: Camera | undefined; onMove: ((target: IVector2D) => void) | undefined; onPOV: ((target: IVector2D) => void) | undefined; onZoom: ((zoom: number) => void) | undefined; onRotate: ((rotation: number) => void) | undefined; private _initialX; private _initialY; private _initialZ; constructor(appContext: T); destroy(): void; protected _handlerOrientationEvent: (event: any) => void; } //# sourceMappingURL=camera-gyroscope-controller.d.ts.map