@@ -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+
571Changes in Pannellum 2.3.2
672--------------------------
773
0 commit comments