diff --git a/src/js/pannellum.js b/src/js/pannellum.js index d963184..b82e82f 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1894,6 +1894,17 @@ this.getScene = function() { return config.scene; } +/** + * Toggle fullscreen. + * @memberof Viewer + * @instance + * @returns {Viewer} `this` + */ +this.toggleFullscreen = function() { + toggleFullscreen(); + return this; +} + } return {