UNPKG

threepipe

Version:

A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.

26 lines 982 B
import { AViewerPluginSync } from '../../viewer'; /** * Full Screen Plugin * * A simple plugin that provides functions to {@link enter}, {@link exit}, {@link toggle} full screen mode and check if the viewer is in full screen mode with {@link isFullScreen}. * * Implementation from: * https://stackoverflow.com/questions/50568474/how-to-enter-fullscreen-in-three-js * * @todo: try out some lib like https://github.com/sindresorhus/screenfull for proper cross browser support * @category Plugins */ export declare class FullScreenPlugin extends AViewerPluginSync<'enter' | 'exit'> { static readonly PluginType = "FullScreenPlugin"; toJSON: any; enabled: boolean; constructor(); private _lastSize; private _lastFsElement; private _fsChangeHandler; enter(element?: HTMLElement): Promise<void>; exit(): Promise<void>; toggle(element?: HTMLElement): Promise<void>; isFullScreen(): any; } //# sourceMappingURL=FullScreenPlugin.d.ts.map