Sfoglia il codice sorgente

Prep for release.

tags/2.3.0
Matthew Petroff 8 anni fa
parent
commit
15903fca94
5 ha cambiato i file con 74 aggiunte e 3 eliminazioni
  1. +1
    -1
      VERSION
  2. +70
    -0
      changelog.md
  3. +1
    -1
      doc/events.md
  4. +1
    -1
      package.json
  5. +1
    -0
      src/js/pannellum.js

+ 1
- 1
VERSION Vedi File

@@ -1 +1 @@
2.2.1
2.3.0

+ 70
- 0
changelog.md Vedi File

@@ -2,6 +2,76 @@ Changelog
=========


Changes in Pannellum 2.3.0
--------------------------

New Features:

- Device orientation support for mobile devices
- Event framework for API
- Partial panorama background color can now be set using
`backgroundColor` parameter
- Custom hot spots are now supported as are hot spot click handlers
- Hot spots can now specify target HFOV (`targetHfov` parameter)
- Parameter to hide all controls (`showControls`)
- Parameter to disable mouse zooming (`mouseZoom`)

New API functions:

- Destructor (`destroy`)
- Look at position (`lookAt`)
- Get current scene ID (`getScene`)
- Load scene (`loadScene`)
- Add and remove scenes (`addScene` and `removeScene`)
- Add and remove hot spots (`addHotSpot` and `removeHotSpot`)
- Auto rotate start / stop (`startAutoRotate` and `stopAutoRotate`)
- Retrieve current configuration (`getConfig`)
- Toggle fullscreen (`toggleFullscreen`)
- Get and set north offset (`getNorthOffset` and `setNorthOffset`)

Improvements:

- Pitch and yaw limits are now applied to edge of viewer instead of center
- Panorama extents can now be set using URL parameters
- Individual XMP metadata parameters can now be overridden
- Horizon pitch and roll can now be manually set (was previously only
supported via XMP metadata)
- When auto rotate restarts, the pitch and HFOV now return to their
original values
- API movements can now be animated
- Standalone viewer is more mobile friendly
- Improved touch panning interaction
- Fragments identifiers can now be used for standalone viewer configuration
- Blob URLs are now supported
- Added hot spot debug indicator
- Video.js plugin now accepts a Pannellum configuration

Bugfixes:

- Fixed numerous auto rotate bugs
- Auto rotate speed is now actually in degrees per second
- Long error URLs are now properly wrapped
- Fixed mobile device orientation change bug
- Fixed Safari fullscreen bug
- Fullscreen now works in IE
- Fixed Chrome bug where hot spots appeared above controls
- Scene fades with multires now work properly
- Hot spot target pointing now works when set to zero
- Hot spots without text are now properly handled
- Fixed memory leaks
- Fixed multires tile loading error
- Fixed a few URL handling bugs
- Fixed multires zoom jumping when viewer was resized
- Title and author are now reset when changing scenes
- Mouse handlers now work with Hi-DPI displays
- Minimum and maximum HFOV can now both be set to the same value

Backwards-Incompatible Configuration Parameter Changes:

- The deprecated `tour` parameter was removed; tour JSON configuration files
can be used with the `config` parameter


Changes in Pannellum 2.2.1
--------------------------



+ 1
- 1
doc/events.md Vedi File

@@ -1,4 +1,4 @@
# Events
# API Events

## `load`



+ 1
- 1
package.json Vedi File

@@ -1,7 +1,7 @@
{
"name": "pannellum",
"description": "Pannellum is a lightweight, free, and open source panorama viewer for the web.",
"version": "2.2.1",
"version": "2.3.0",
"bugs": {
"url": "https://github.com/mpetroff/pannellum/issues"
},


+ 1
- 0
src/js/pannellum.js Vedi File

@@ -1368,6 +1368,7 @@ function render() {

/**
* Creates a new quaternion.
* @private
* @constructor
* @param {Number} w - W value
* @param {Number} x - X value


Caricamento…
Annulla
Salva