Browse Source

Add method to API to toggle fullscreen.

pull/131/head
Matthew Petroff 8 years ago
parent
commit
c2da347b66
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      src/js/pannellum.js

+ 11
- 0
src/js/pannellum.js View File

@@ -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 {


Loading…
Cancel
Save