From c2da347b661894fcaa370d3ec2f6acc997198c9a Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sun, 13 Mar 2016 09:45:51 -0400 Subject: [PATCH] Add method to API to toggle fullscreen. --- src/js/pannellum.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 {