myShow-edit.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. var g_ProjectName=window.location.pathname.substring(window.location.pathname.indexOf("/")+1,window.location.pathname.lastIndexOf("/"));
  2. var g_Prefix="http://super.4dage.com/";
  3. //var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/edit.html")+1);
  4. var s = window.location.href.split('/');
  5. s.pop();
  6. //var g_Prefix = s.join('/');
  7. var g_index=null;
  8. var g_modeldata=null;
  9. var g_weixinTitle=null;
  10. var g_Hots = null;
  11. var g_HotMeshes = [];
  12. var g_HotMeshSize = {
  13. g_HotMeshWidth: 0.3,
  14. g_HotMeshHeight: 0.3
  15. };
  16. //add表示添加,delete表示删除
  17. var g_HotStatus = null;
  18. var g_newHot = [];//存储新加热点
  19. var g_HotImage = {
  20. "point": "https://super.4dage.com/images/4dagePoint2.png",
  21. "point2": "https://super.4dage.com/images/4dagePoint.png"
  22. };
  23. var g_saveHot = false;
  24. var g_TextColor = 0x7777ff;
  25. var g_Text = null;
  26. var g_TextPlaneMesh = [];
  27. var g_TextIconMesh = [];
  28. var g_TextIcon = "./images/text.png";
  29. var g_SelectTextIndex = null;
  30. var g_TextShow = null;
  31. var g_audioPlay = false;
  32. var g_background = null;
  33. var g_roof = null;
  34. var g_data2 = null;//加载的data2.js的内容
  35. var g_bgAudio = null;//背景音乐
  36. var g_tourAudio = null;//导览音乐
  37. var g_play = 1;//表示播放图标状态
  38. var g_playAudio = null;//当前在播放或当继续播放时应该播放的,是g_bgAudio或g_tourAudio
  39. var g_currentHot = null;//当前打开的热点
  40. //var g_Texture=null;
  41. //var g_ChunknameTexture={}; //chunkname和贴图名称对应
  42. var g_NormalTexture = false;
  43. var g_SpecularTexture = false;
  44. var g_DirectionalLight = null;
  45. var g_snapShotWidth = 200; //截图下载图片的大小
  46. var g_snapShotHeight = 140;
  47. //微信分享
  48. var g_weixinObj = {
  49. "title": document.querySelector("head title").innerHTML,
  50. "lineLink": window.location.href,
  51. "imgUrl": "https://www.4dmodel.com/SuperPanoramic/images/weixintitle.jpg",
  52. "desc": "四维时代提供技术支持",
  53. }
  54. const settings = { //不可修改
  55. isEdit:true,
  56. //defaultOverlaySize : [1,0.6],//绝对长宽高
  57. hotClickEvent:{
  58. video:{
  59. playAndPause:true,
  60. examine:false,
  61. openHot:false
  62. },
  63. photo:{
  64. examine:false,
  65. openHot:false
  66. },
  67. shine:{
  68. examine:true,
  69. openHot:true
  70. }
  71. },
  72. teleportTime: 1500,//瞬间过渡的时间
  73. flytimeDistanceMultiplier:150,
  74. flyTime:750,
  75. /* hot:{
  76. width:0.1, height:0.1
  77. } */
  78. }