Class FullScreenPlugin

Full Screen Plugin

A simple plugin that provides functions to enter, exit, toggle full screen mode and check if the viewer is in full screen mode with 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

Hierarchy (view full)

Constructors

Properties

_dirty: boolean = false
_lastFsElement: any = null
_lastSize: string[] = ...
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean = true
toJSON: any = undefined
uiConfig?: UiObjectConfig<any, string, any> = undefined
OldPluginType?: string
PluginType: "FullScreenPlugin" = 'FullScreenPlugin'

Accessors

Methods

Generated using TypeDoc