Browse Source

feat: 优化初始画面

jinx 1 year ago
parent
commit
030b0b97cc
2 changed files with 11 additions and 7 deletions
  1. 9 5
      public/krpano/tour.xml
  2. 2 2
      src/components/Home.vue

+ 9 - 5
public/krpano/tour.xml

@@ -75,6 +75,9 @@
     loadscene(get(startscene), null, MERGE);
 
     if(startactions !== null, startactions() );
+    set(view.hlookat, 5.685878490542688);
+    set(view.vlookat, 27.599464844622442);
+
 
   </action>
 
@@ -222,8 +225,9 @@
     </hotspot>
   </scene>
 
-  <!-- <events onloadcomplete="normalview();" /> -->
-  <!-- <action name="normalview">
+  <!-- 小行星效果 -->
+  <!-- <events onloadcomplete="normalview();" />
+  <action name="normalview">
     copy(lp_scene, xml.scene);
     copy(lp_hlookat, view.hlookat);
     copy(lp_vlookat, view.vlookat);
@@ -250,11 +254,12 @@
     );
   </action> -->
 
+  <!-- 自动旋转 -->
   <!-- <autorotate enabled="true"
     waittime="0.5"
-    speed="-5.0"
+    speed="3.0"
     horizon="0.0"
-    tofov="90.0"
+    tofov="120"
   /> -->
 
 
@@ -276,7 +281,6 @@
         multires="512,640,1152,2304,4608" />
     </image>
     <!-- 多边形热点 -->
-
     <hotspot
       name="eee"
       keep="false"

+ 2 - 2
src/components/Home.vue

@@ -52,8 +52,8 @@ const hanlderEvent = () => {
   //完成加载
   window.LoadedScene = () => {
     setTimeout(() => {
-      krpano.set("view.hlookat", 5.685878490542688);
-      krpano.set("view.vlookat", 27.599464844622442);
+      // krpano.set("view.hlookat", 5.685878490542688);
+      // krpano.set("view.vlookat", 27.599464844622442);
     }, 0);
   };
   window.onHotspotOut = () => {