diff --git a/VERSION b/VERSION index fae692e..cc6612c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.1 \ No newline at end of file +2.3.0 \ No newline at end of file diff --git a/changelog.md b/changelog.md index 3d50e98..6a0432c 100644 --- a/changelog.md +++ b/changelog.md @@ -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 -------------------------- diff --git a/doc/events.md b/doc/events.md index 1e42f0c..6dd3d2a 100644 --- a/doc/events.md +++ b/doc/events.md @@ -1,4 +1,4 @@ -# Events +# API Events ## `load` diff --git a/package.json b/package.json index be90a77..443fd9b 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 56093fe..5143338 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1368,6 +1368,7 @@ function render() { /** * Creates a new quaternion. + * @private * @constructor * @param {Number} w - W value * @param {Number} x - X value