panoramic.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <krpano version="1.20.9" title="Virtual Tour">
  2. <!-- <include url="%VIEWER%/skin/vtourskin.xml" /> -->
  3. <skin_settings maps="false"
  4. maps_type="google"
  5. maps_bing_api_key=""
  6. maps_zoombuttons="false"
  7. gyro="false"
  8. webvr="false"
  9. littleplanetintro="true"
  10. title="false"
  11. thumbs="true"
  12. thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
  13. thumbs_opened="false"
  14. thumbs_text="false"
  15. thumbs_dragging="true"
  16. thumbs_onhoverscrolling="false"
  17. thumbs_scrollbuttons="false"
  18. thumbs_scrollindicator="false"
  19. thumbs_loop="false"
  20. tooltips_buttons="false"
  21. tooltips_thumbs="false"
  22. tooltips_hotspots="false"
  23. tooltips_mapspots="false"
  24. deeplinking="false"
  25. loadscene_flags="MERGE"
  26. loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
  27. loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
  28. loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
  29. loadingtext="loading..."
  30. layout_width="100%"
  31. layout_maxwidth="814"
  32. controlbar_width="-24"
  33. controlbar_height="40"
  34. controlbar_offset="20"
  35. controlbar_offset_closed="-40"
  36. controlbar_overlap.no-fractionalscaling="10"
  37. controlbar_overlap.fractionalscaling="0"
  38. design_skin_images="vtourskin.png"
  39. design_bgcolor="0x2D3E50"
  40. design_bgalpha="0.0"
  41. design_bgborder="0"
  42. design_bgroundedge="1"
  43. design_bgshadow="0 0 0 0x000000 0.0"
  44. design_thumbborder_bgborder="3 0xFFFFFF 1.0"
  45. design_thumbborder_padding="2"
  46. design_thumbborder_bgroundedge="0"
  47. design_text_css="color:#5D7B53; font-family:Arial;"
  48. design_text_shadow="1"
  49. />
  50. <!--
  51. For an alternative skin design either change the <skin_settings> values
  52. from above or optionally include one of the predefined designs from below.
  53. -->
  54. <!-- <include url="skin/vtourskin_design_flat_light.xml" /> -->
  55. <!-- <include url="skin/vtourskin_design_glass.xml" /> -->
  56. <!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
  57. <!-- <include url="skin/vtourskin_design_117.xml" /> -->
  58. <!-- <include url="skin/vtourskin_design_117round.xml" /> -->
  59. <!-- <include url="skin/vtourskin_design_black.xml" /> -->
  60. <action name="mytest">
  61. screentosphere(mouse.x, mouse.y, toh, tov);
  62. jscall(calc('console.log("'+toh+'")'));
  63. jscall(calc('console.log("'+tov+'")'));
  64. </action>
  65. <events
  66. onclick="mytest();"
  67. />
  68. <!-- startup action - load the first scene -->
  69. <action name="startup" autorun="onstart">
  70. if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
  71. loadscene(get(startscene), null, MERGE);
  72. if(startactions !== null, startactions() );
  73. </action>
  74. <!-- <events onenterfullscreen="" 切换到全屏显示执行
  75. onexitfullscreen="" 从全屏切换回普通视图时执行
  76. onxmlcomplete="" XML文件加载完成时执行
  77. onpreviewcomplete="" 预览图加载完成时执行
  78. onloadcomplete="" 全景切片图片加载完毕时执行
  79. onnewpano="" 当启动新的全景场景时执行
  80. onremovepano="" 当前场景被关闭时执行(加载新场景前)
  81. onnewscene="" 新场景加载完成时执行
  82. onloaderror="" 加载错误时执行,执行被设置后,屏幕将不显示默认的错误信息
  83. οnkeydοwn="" 当某个键盘被按下时执行
  84. οnkeyup="" 当某个键盘松开时执行
  85. οnclick="" 当鼠标点击全景场景时执行
  86. οnmοusedοwn="" 当鼠标按下时执行
  87. οnmοuseup="" 当鼠标松开时执行
  88. onmousewheel="" 当鼠标滚轮滚动时执行
  89. onidle="" 当无用户操作在设定秒数后执行
  90. onviewchange="" 当场景转变时执行(渲染开始时)
  91. onviewchanged="" 当场景转变时执行(渲染完成时)
  92. οnresize="" 当浏览器大小改变时执行
  93. /> -->
  94. <!-- <events onloadcomplete="visible_hotspotGroupA"></events> -->
  95. <scene name="scene_ceshi" title="ceshi" onstart="" havevrimage.mobilevr="false" havevrimage.no-mobilevr="true" thumburl="https://elab-marketing-web.oss-cn-shanghai.aliyuncs.com/fairyMountain/layout/hospital/panos/ceshi.tiles/thumb.jpg" lat="" lng="" heading="">
  96. <control bouncinglimits="calc:image.cube ? true : false" />
  97. <view hlookat="50.082" vlookat="12.404" fovtype="MFOV" fov="90.000" maxpixelzoom="2.0" fovmin="70" fovmax="120" limitview="auto" />
  98. <preview url="https://elab-marketing-web.oss-cn-shanghai.aliyuncs.com/fairyMountain/layout/hospital/panos/ceshi.tiles/preview.jpg" />
  99. <image if="!(webvr.isenabled OR device.mobilevr)">
  100. <!-- <cube url="https://elab-marketing-web.oss-cn-shanghai.aliyuncs.com/fairyMountain/layout/hospital/panos/ceshi.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,1024,2048" /> -->
  101. <sphere url="https://elab-marketing-web.oss-accelerate.aliyuncs.com/aiBeauty/1702533120761.png" />
  102. </image>
  103. <image if="webvr.isenabled OR device.mobilevr">
  104. <!-- <cube url="https://elab-marketing-web.oss-cn-shanghai.aliyuncs.com/fairyMountain/layout/hospital/panos/ceshi.tiles/vr/pano_%s.jpg" /> -->
  105. <sphere url="https://elab-marketing-web.oss-accelerate.aliyuncs.com/aiBeauty/1702533120761.png" />
  106. </image>
  107. <!--火车站-->
  108. <!-- <hotspot name="spot2" url="skin/plugin.png" distorted="true" keep="false" ath="145.763" atv="22" visible="true"></hotspot>
  109. <plugin parent="hotspot[spot2]" name="hottiyan_2" type="container" width="40" bgalpha="0.0" bgcapture="true" >
  110. <layer name="title2_hottiyan" style="text" align="bottom" x="0" y="75" width="100%" html="火车站" css="text-align:center; color:#5D7B53; font-family:Arial; font-weight:400; font-size:17px;border: 0px solid #fff;border-radius:10px;padding: 10px 5px; box-sizing: border-box;background: rgba(255, 255, 255, 0.2);border-radius: 10px;backdrop-filter: blur(50px);">
  111. </layer>
  112. <layer name="title2_line1_hottiyan" style="text" align="top center" x="0" y="-80" height="80px" css="background-color:#fff;width:1px;height:80px" />
  113. <layer name="title2_line2_hottiyan" style="text" align="top center" x="0" y="0" css="background-color:#fff;width:6px;height:6px;border-radius:50%;" />
  114. </plugin> -->
  115. <!-- <preview url="test3333.png"/> -->
  116. <hotspot name="video"
  117. ath="145.763" atv="22"
  118. url="https://dm.static.elab-plus.com/videoplayer.js"
  119. videourl="https://dm.static.elab-plus.com/miniProgram/green.mp4"
  120. chromakey="0x238E54|0.294|0.133"
  121. loop="true"
  122. distorted="true"
  123. zoom="true"
  124. scale="0.3"
  125. ondown="draghotspot();"
  126. onclick="togglepause();"
  127. cursor="grab"
  128. ondown.addevent="set(cursor,grabbing);"
  129. onup.addevent="set(cursor,grab);"
  130. />
  131. <action name="draghotspot">
  132. spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, calc(mouse.stagex LT stagewidth/2 ? 'l' : 'r'));
  133. sub(drag_adjustx, mouse.stagex, hotspotcenterx);
  134. sub(drag_adjusty, mouse.stagey, hotspotcentery);
  135. asyncloop(pressed,
  136. sub(dx, mouse.stagex, drag_adjustx);
  137. sub(dy, mouse.stagey, drag_adjusty);
  138. screentosphere(dx, dy, ath, atv);
  139. );
  140. </action>
  141. </scene>
  142. </krpano>