0.2.0 • Published 9 years ago

voxel-fullscreen v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

voxel-fullscreen

Toggle fullscreen with a hotkey (voxel.js plugin)

Uses the fullscreen keybinding, default F11. Hitting this key will enter or exit fullscreen mode via the HTML5 Fullscreen API (more details).

Known issue: leaving fullscreen may release pointer lock (click to re-acquire).

Options

element: the HTML element to fullscreen, defaults to document.body

requestFlags: flags to pass to requestFullscreen, defaults to Element.ALLOW_KEYBOARD_INPUT

How does this plugin compare to...

...browser menu fullscreening (View - Enter Full Screen in Chrome)? Since this plugin uses the HTML5 Fullscreen API, the document is shown in its entirety, without any extra browser chrome (e.g., tabs).

...game-shell's fullscreen property? This plugin adds a keybinding, and also sets the fullscreen element to document.body instead of just the WebGL canvas.

License

MIT

0.2.0

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago