UNPKG

ionic-360-viewer

Version:

this npm package is for ionic,cordova project which will help developer's to add 360 image viewer

25 lines (22 loc) 826 B
// exports.printMsg = function () { // console.log("This is a message from the demo package"); // } var pannellum = require('./pannellum.js'); var Ionic360View = (function (arg) { // this.d2r = function (d) { return d * Math.PI / 180; }; pannellum.viewer('panorama', { "type": "equirectangular", "compass": true, "autoLoad": true, "autoRotate": -10, "hfov": 160, "autoRotateInactivityDelay": 3000, "maxLevel": 16, "crossorigin": "anonymous", // "panorama": "https://c2.staticflickr.com/4/3746/9503927685_970b5e141b_k.jpg" "panorama": "https://roadtovrlive-5ea0.kxcdn.com/wp-content/uploads/2014/09/Venice.Still001.jpeg" // "panorama": arg.image }); return Ionic360View; }()); exports.Ionic360View = Ionic360View;