Przeglądaj źródła

Minor documentation update.

pull/86/head
Matthew Petroff 9 lat temu
rodzic
commit
1988ee383a
2 zmienionych plików z 7 dodań i 9 usunięć
  1. +4
    -4
      src/js/libpannellum.js
  2. +3
    -5
      src/js/pannellum.js

+ 4
- 4
src/js/libpannellum.js Wyświetl plik

@@ -29,10 +29,10 @@ window.libpannellum = (function(window, document, undefined) {
* Creates a new panorama renderer.
* @constructor
* @param {HTMLElement} container - The container element for the renderer.
* @param image - Input image; format varies based on `imageType`. For
* `equirectangular`, this is an image; for `cubemap`, this is an array of
* images for the cube faces in the order [+z, +x, -z, -x, +y, -y]; for
* `multires`, this is a configuration object.
* @param {Image|Array|Object} image - Input image; format varies based on
* `imageType`. For `equirectangular`, this is an image; for `cubemap`,
* this is an array of images for the cube faces in the order [+z, +x, -z,
* -x, +y, -y]; for `multires`, this is a configuration object.
* @param {string} imageType - The type of the image: `equirectangular`,
* `cubemap`, or `multires`.
* @param {boolean} video - Whether or not the image is a video.


+ 3
- 5
src/js/pannellum.js Wyświetl plik

@@ -442,7 +442,7 @@ function parseGPanoXMP(image) {
* Displays an error message.
* @private
* @param {string} error - Error message to display. If not specified, a
* generic WebGL error is displayed.
* generic WebGL error is displayed.
*/
function anError(error) {
if (error !== undefined) {
@@ -1488,10 +1488,8 @@ function load() {
* Loads scene.
* @private
* @param {string} sceneId - Identifier of scene configuration to merge in.
* @param {number} targetPitch - Pitch viewer should be centered on once scene
* loads.
* @param {number} targetYaw - Yaw viewer should be centered on once scene
* loads.
* @param {number} targetPitch - Pitch viewer should be centered on once scene loads.
* @param {number} targetYaw - Yaw viewer should be centered on once scene loads.
*/
function loadScene(sceneId, targetPitch, targetYaw) {
loaded = false;


Ładowanie…
Anuluj
Zapisz