Matthew Petroff
63332b2140
Merge pull request #163 from jannecederberg/master
Introduce a dynamic coefficient for touchmove pan (yaw/pitch change) speed
8 anos atrás
Janne Cederberg
840be504af
Introduce a dynamic coefficient for touchmove yaw/pitch change speed
With a fixed coefficient affecting touchmove pan speed, at large
values of config.hfov (zoomed out) panning will feel "sluggish"
due to panorama panning less than finger is moved on screen.
On the other hand, at small config.hfov values (zoomed in),
panning will be perceived to move faster.
To improve usability at both small and large config.hfov
(zoomed-out and zoomed-in) we introduce a dynamic coefficient
affected by the config.hfov value.
Currently this seems to roughly keep initial drag/pan start position
close to the user's finger while panning regardless of zoom level.
8 anos atrás
Matthew Petroff
e2a4e6f2b5
Check that current scene is loaded before trying to change scene.
8 anos atrás
Matthew Petroff
c75a46832c
Merge pull request #160 from jannecederberg/master
Enable additional URL configuration parameters.
8 anos atrás
Janne Cederberg
1849053d12
Enable additional URL configuration parameters
Now the following can also be set from URL:
- minHfov, maxHfov
- minPitch, maxPitch
- minYaw, maxYaw
The motivation for this was making it easier to create auto-generated
panoramas using Jekyll/Hugo and other static site generators without
needing to create JSON files for panoramas.
If a given panorama is not a full 360x180 panorama, then the above
parameters are needed in addition to haov and vaov parameters
in order for the user not to see black areas in the panorama.
Hence suggesting adding URL support.
8 anos atrás
Matthew Petroff
a1d1aaef5b
Fix scene fade bug with multires ( fixes #158 ).
8 anos atrás
Matthew Petroff
7387353dde
Don't show device orientation button on desktop Chrome.
8 anos atrás
Matthew Petroff
ccfe2ec279
Fix bug in Chrome where hot spots appear above controls.
8 anos atrás
Matthew Petroff
3de0cbefe5
Update render after setting values through API.
8 anos atrás
Matthew Petroff
a1461bb6ec
Add event framework.
8 anos atrás
Matthew Petroff
d1615f4b6a
Fix fullscreen in Safari ( fixes #155 ).
8 anos atrás
Matthew Petroff
817f4509ce
Fix auto rotate to match docs (actually use degrees per second).
8 anos atrás
Matthew Petroff
3ca79600ba
Add Pillow to the requirement list for the multires `generate.py` script.
8 anos atrás
Matthew Petroff
22ff9ababa
Fix bug with restarting rotation after inactivity ( fixes #139 ).
8 anos atrás
Matthew Petroff
6966e57d14
Fix orientation change bug on some mobile devices.
8 anos atrás
Matthew Petroff
b0c2f03511
Add device orientation API support.
8 anos atrás
Matthew Petroff
a82a8ed85a
Make standalone viewer more mobile friendly.
8 anos atrás
Matthew Petroff
876d8643a5
Add ability to adjust camera roll for multires and expose roll parameter in render function.
8 anos atrás
Matthew Petroff
08f4d8955b
Add ability to adjust camera roll for cubemaps.
8 anos atrás
Matthew Petroff
657566df63
Fix `getScene` ( fixes #130 ).
8 anos atrás
Matthew Petroff
3a78435b30
Add API functions to get and set north offset (implements #127 ).
8 anos atrás
Matthew Petroff
aecdc23825
Properly wrap long error URLs.
8 anos atrás
Matthew Petroff
f430bbfc34
Don't explicitly type out pi.
8 anos atrás
Matthew Petroff
c2da347b66
Add method to API to toggle fullscreen.
8 anos atrás
Matthew Petroff
943d29d707
Allow URL to be specified for image hot spots and use URLs relative to config file for image and video hot spot sources.
8 anos atrás
Matthew Petroff
0d286fea43
Add API method to get current scene ID.
8 anos atrás
Matthew Petroff
06d398e350
Allow hot spots to specify target HFOV and add `loadScene` method to API.
8 anos atrás
Matthew Petroff
77816bac55
Prep for release.
8 anos atrás
Matthew Petroff
9c417a3ed2
Make sure hfov is a number and remove some unneeded code.
8 anos atrás
Matthew Petroff
181deefb6f
Set XMLHttpRequest `Accept` header to request images (fixes bug with Imgur).
8 anos atrás
Matthew Petroff
dca517ff03
Fix NPM package name capitalization.
8 anos atrás
Matthew Petroff
524d185af2
Add files for NPM.
8 anos atrás
Matthew Petroff
3813307f71
Better restrict yaw.
8 anos atrás
Matthew Petroff
ad78f7741f
Prep for release.
8 anos atrás
Matthew Petroff
c5ff999e16
Add warning for when HFOV bounds don't make sense.
8 anos atrás
Matthew Petroff
01177e70b8
Remove unwanted assignments.
8 anos atrás
Matthew Petroff
f32badcd0a
Only use multires zoom calculation to increase zoom (not decrease it) and handle case where minimum HFOV is greater than maximum HFOV ( fixes #107 ).
8 anos atrás
Matthew Petroff
4da2d96a3e
Display error message for malformed panorama URLs.
8 anos atrás
Matthew Petroff
929a4797a1
Fix bug with video in Chrome.
8 anos atrás
Matthew Petroff
4976b68095
Fix reading of XMP data.
8 anos atrás
Matthew Petroff
361c27bed7
Scale down example image for wider support.
8 anos atrás
Matthew Petroff
9b4050552f
Use Array indexOf method for browsers that don't have TypedArray indexOf method.
8 anos atrás
Matthew Petroff
b94c1abaf5
Ignore generated docs in Git.
8 anos atrás
Matthew Petroff
5e3006e860
Update documentation generation script for Documentation.js 3.0.
8 anos atrás
Matthew Petroff
d1999f5f0b
Replace `readAsBinaryString` with `readAsArrayBuffer` to work with IE 11 ( fixes #104 ).
8 anos atrás
Matthew Petroff
848037b13c
Fix handling of protocol relative and site relative URLs.
8 anos atrás
Matthew Petroff
523ffefd43
Created separate function for calculating panorama coordinates of mouse event.
8 anos atrás
Matthew Petroff
f895a4cb81
Bump copyright year.
9 anos atrás
Matthew Petroff
854106f7d7
Merge pull request #101 from arthurp/master
Add support for URL specified firstScene.
9 anos atrás
Arthur Peters
0ecf742c19
Add support for URL specified firstScene.
This allows references to the standalone viewer to start in the
"middle" of a tour.
9 anos atrás