Releases: mpetroff/pannellum
Releases · mpetroff/pannellum
Pannellum 2.5.6
Security fixes:
- Extended partial fix in v2.5.5 for XSS vulnerability that allowed script execution when hot spots were clicked (CVE-2019-16763)
Pannellum 2.5.5
Bugfixes:
- Fixed device orientation permission request such that it works with iOS 13
- Extend yaw bounds range to allow restricted range that crosses +/-180 deg
Security fixes:
- Fixed XSS vulnerability that allowed script execution when hot spots were clicked
Pannellum 2.5.4
Bugfixes:
- Fixed issue with loading large equirectangular panoramas on iOS
- Fixed issue with touch-based scrolling with
draggable
set tofalse
Improvements:
- Started requesting device orientation permission (untested)
Pannellum 2.5.3
Bugfixes:
- Fixed loading scenes after previous load failure
- Fixed regression that caused auto-rotation to stop after one revolution
- Fixed behavior of
multiResMinHfov
to match documentation;
default multi-resolutionminHfov
behavior now matches pre-v2.5
Improvements:
- Added optional
scale
parameter to scale hot spots while zooming - Improved recovery from failed scene loading
API improvements:
- Added optional pitch argument to
startAutoRotate
Other:
Pannellum 2.5.2
Bugfixes:
- Fixed regression in Video.js plugin
Pannellum 2.5.1
Other:
- Fixed issue with tagging 2.5.0 release
Pannellum 2.5.0
New Features:
- The background color can be set for partial panoramas
(backgroundColor
parameter) - Partial panoramas are now supported for the multiresolution format
- An author URL can now be added (
authorURL
parameter)
New API functions:
- Added
fullscreenchange
,zoomchange
, andanimatefinished
events - Added
stopMovement
function for stopping all viewer movement
Improvements:
- Equirectangular images are now automatically split into two separate
textures if they're too big (images up to 8192px wide should now be
widely supported) - Improved render quality for equirectangular images on mobile (using
highp
for fragment shader) - Keyboard events for keys not used by the viewer are no longer captured, and
the list of captured keys is configurable (capturedKeyNumbers
parameter) - Multiresolution tiles can now be generated from cylindrical panoramas
- Hot spots can now be removed from scenes that aren't currently loaded
- Hot spot cursor is now set via CSS class (so it can be overridden)
- Hot spot link attributes can now be set (
attributes
parameter) - The "friction" that slows down the viewer motion can now be configured
(friction
parameter) - Dynamic scenes are now properly supported for tours
Bugfixes:
- Fixed regression in fallback renderer
- Fixed bug with URL encoding
- Fixed regression in Video.js plugin
- Fixed auto-rotate bug that was manifested when using API to set view
- Fixed full screen bug in Chrome
- Fixed bug with removing event listeners
- Fixed issue with mouse dragging causing jump around yaw limits
- Fixed bug with deleting hot spots
- Fixed bug with fading between scenes
Other:
- Added limited test suite / continuous integration
- Removed
requestAnimationFrame
shim, dropping support for some
older browsers
Pannellum 2.4.1
Bugfixes:
- Fix touch input issue in Chrome
- The API's
loadScene
method now works when no scenes have been loaded yet
Pannellum 2.4.0
New Features:
- Translation support
- Event for when scene change fade completes (
scenechangefadedone
) - Events for touch starts and ends (
touchstart
andtouchend
) - Added ability to set custom animation timing
function (animationTimingFunction
parameter) - Added option for only enable mouse wheel zoom while in
fullscreen (mouseZoom
parameter) - Added option to set title and author displayed while the load button
is displayed (previewTitle
andpreviewAuthor
parameters) - Mouse and touch dragging can now be disabled (
draggable
parameter) - Added option to disable keyboard controls (
disableKeyboardCtrl
parameter) - CORS setting can now be configured
New API functions:
- Check if image is loaded (
isLoaded
) - Method to update viewer after it is resized (
resize
) - Set horizon pitch and roll (
setPose
) - Turn device orientation control on and off, check if it is supported, and
check if it is activated (startOrientation
,stopOrientation
,
isOrientationSupported
, andisOrientationActive
) - Method to retrieve viewer's container element (
getContainer
)
Improvements:
- Double-clicking now causes the viewer to zoom in (and back out when
double-clicking while zoomed in) - New lines are now allowed in hot spot text
- Support for HTML in configuration strings can be enabled when using
the API (escapeHTML
parameter) - Fallback cursor is provided for browsers that don't support SVG data URIs
- Image type configuration parameter is now validated
- Optional callbacks added to
lookAt
,setPitch
,setYaw
, andsetHfov
API functions - Scroll events are now only captured when they're being used
- Viewer object is now assigned to a variable in the standalone viewer
- Hot spots can now be added with API before panorama is loaded
- Viewer UI is now created in a container element
Bugfixes:
- Fixed race condition when scene change hot spot is double-clicked
- Fixed bug with preview image absolute URLs
- Removed redundant constraints on yaw in API
- Tabbing now works, and only events for keys that are used are captured
- Fixed bug in HTML escaping
- Fixed bug that sometimes occurred when
orientationOnByDefault
wastrue
- Yaw no longer changes when device orientation mode is activated
- Fixed iOS 10 canvas size too big issue
- Fixed iOS 10 NPOT cube map issue
- Hot spots added via API are now permanent between scene changes
- Fixed multiple bugs with removing event listeners
- Fixed bug with multiresolution tile loading
- Fixed
sameAzimuth
target yaw not working whennorthOffset
wasn't set - Fixed bug yaw out of bounds in
mouseEventToCoords
- Fixed bug with
animateMove
function - Fixed bug with scene change fade
- Yaw animation is now always in the shortest direction
- Fixed bug related to removing hot spots
Pannellum 2.3.2
Bugfixes:
- Fix Chrome fullscreen regression introduced in 2.3.1