Browse Source

Add method to retrieve viewer's container element (implements #463).

tags/2.4.0
Matthew Petroff 6 years ago
parent
commit
67cd2f5c93
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/js/pannellum.js

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

@@ -2709,6 +2709,16 @@ this.getConfig = function() {
}

/**
* Get viewer's container element.
* @memberof Viewer
* @instance
* @returns {HTMLElement} Container `div` element
*/
this.getContainer = function() {
return container;
}

/**
* Add a new hot spot.
* @memberof Viewer
* @instance


Loading…
Cancel
Save