Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

tests.html 2.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Pannellum Tests</title>
  7. <link rel="stylesheet" href="../src/css/pannellum.css"/>
  8. <script type="text/javascript" src="../src/js/libpannellum.js"></script>
  9. <script type="text/javascript" src="../src/js/pannellum.js"></script>
  10. <style>
  11. #panorama {
  12. width: 300px;
  13. height: 200px;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div id="panorama"></div>
  19. <script>
  20. viewer = pannellum.viewer('panorama', {
  21. "default": {
  22. "author": "testauthor",
  23. "firstScene": "equirectangular",
  24. "autoLoad": true
  25. },
  26. "scenes": {
  27. "cube": {
  28. "title": "cube title",
  29. "type": "cubemap",
  30. "cubeMap": [
  31. "../examples/multires/1/f00.png",
  32. "../examples/multires/1/r00.png",
  33. "../examples/multires/1/b00.png",
  34. "../examples/multires/1/l00.png",
  35. "../examples/multires/1/u00.png",
  36. "../examples/multires/1/d00.png"
  37. ],
  38. "hotSpots": [
  39. {
  40. "pitch": -12,
  41. "yaw": 170,
  42. "type": "info",
  43. "text": "info test"
  44. },
  45. {
  46. "pitch": -10,
  47. "yaw": -50,
  48. "type": "info",
  49. "text": "link test",
  50. "URL": "https://github.com/mpetroff/pannellum"
  51. },
  52. {
  53. "pitch": 0,
  54. "yaw": -10,
  55. "type": "scene",
  56. "text": "scene test",
  57. "sceneId": "multires"
  58. }
  59. ]
  60. },
  61. "equirectangular": {
  62. "title": "equirectangular title",
  63. "panorama": "../examples/examplepano.jpg"
  64. },
  65. "multires": {
  66. "title": "multires title",
  67. "type": "multires",
  68. "multiRes": {
  69. "basePath": "../examples/multires",
  70. "path": "/%l/%s%x%y",
  71. "fallbackPath": "/fallback/%s",
  72. "extension": "png",
  73. "tileResolution": 256,
  74. "maxLevel": 4,
  75. "cubeResolution": 2048
  76. }
  77. }
  78. }
  79. });
  80. </script>
  81. </body>
  82. </html>