Skip to content

Commit 6581831

Browse files
committed
Prep for release.
1 parent 2341ef6 commit 6581831

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.2
1+
2.4.0

changelog.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,72 @@ Changelog
22
=========
33

44

5+
Changes in Pannellum 2.4.0
6+
--------------------------
7+
8+
New Features:
9+
10+
- Translation support
11+
- Event for when scene change fade completes (`scenechangefadedone`)
12+
- Events for touch starts and ends (`touchstart` and `touchend`)
13+
- Added ability to set custom animation timing
14+
function (`animationTimingFunction` parameter)
15+
- Added option for only enable mouse wheel zoom while in
16+
fullscreen (`mouseZoom` parameter)
17+
- Added option to set title and author displayed while the load button
18+
is displayed (`previewTitle` and `previewAuthor` parameters)
19+
- Mouse and touch dragging can now be disabled (`draggable` parameter)
20+
- Added option to disable keyboard controls (`disableKeyboardCtrl` parameter)
21+
- CORS setting can now be configured
22+
23+
New API functions:
24+
25+
- Check if image is loaded (`isLoaded`)
26+
- Method to update viewer after it is resized (`resize`)
27+
- Set horizon pitch and roll (`setPose`)
28+
- Turn device orientation control on and off, check if it is supported, and
29+
check if it is activated (`startOrientation`, `stopOrientation`,
30+
`isOrientationSupported`, and `isOrientationActive`)
31+
- Method to retrieve viewer's container element (`getContainer`)
32+
33+
Improvements:
34+
35+
- Double-clicking now causes the viewer to zoom in (and back out when
36+
double-clicking while zoomed in)
37+
- New lines are now allowed in hot spot text
38+
- Support for HTML in configuration strings can be enabled when using
39+
the API (`escapeHTML` parameter)
40+
- Fallback cursor is provided for browsers that don't support SVG data URIs
41+
- Image type configuration parameter is now validated
42+
- Optional callbacks added to `lookAt`, `setPitch`, `setYaw`, and `setHfov`
43+
API functions
44+
- Scroll events are now only captured when they're being used
45+
- Viewer object is now assigned to a variable in the standalone viewer
46+
- Hot spots can now be added with API before panorama is loaded
47+
- Viewer UI is now created in a container element
48+
49+
Bugfixes:
50+
51+
- Fixed race condition when scene change hot spot is double-clicked
52+
- Fixed bug with preview image absolute URLs
53+
- Removed redundant constraints on yaw in API
54+
- Tabbing now works, and only events for keys that are used are captured
55+
- Fixed bug in HTML escaping
56+
- Fixed bug that sometimes occurred when `orientationOnByDefault` was `true`
57+
- Yaw no longer changes when device orientation mode is activated
58+
- Fixed iOS 10 canvas size too big issue
59+
- Fixed iOS 10 NPOT cube map issue
60+
- Hot spots added via API are now permanent between scene changes
61+
- Fixed multiple bugs with removing event listeners
62+
- Fixed bug with multiresolution tile loading
63+
- Fixed `sameAzimuth` target yaw not working when `northOffset` wasn't set
64+
- Fixed bug yaw out of bounds in `mouseEventToCoords`
65+
- Fixed bug with `animateMove` function
66+
- Fixed bug with scene change fade
67+
- Yaw animation is now always in the shortest direction
68+
- Fixed bug related to removing hot spots
69+
70+
571
Changes in Pannellum 2.3.2
672
--------------------------
773

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pannellum",
33
"description": "Pannellum is a lightweight, free, and open source panorama viewer for the web.",
4-
"version": "2.3.2",
4+
"version": "2.4.0",
55
"bugs": {
66
"url": "https://github.com/mpetroff/pannellum/issues"
77
},

0 commit comments

Comments
 (0)