spherical-image
Very lightweight 360deg spherical image viewer
Demos
Usage
$ npm install --save spherical-image
then
; document './img.jpg';
or
const sphericalImage = document './img.jpg';
Options
The third argument is options.
const sphericalImage = document './img.jpg' options;
options.offsetAzimuth
: default horizontal rotation in radian. default is0
options.offsetAltitude
: default vertical rotation in radian. default is0
Methods
.reset()
: reset view rotation..setSize( width, height )
: set canvas size..destroy()
: destroy the instance. dispose WebGL. detach all events.