gs-bim-air 2.0.0-beta.4 → 2.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +18 -0
  2. package/demo/assets/demo.css +28 -0
  3. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//344/277/256/346/224/271/351/242/234/350/211/262.html +124 -0
  4. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//345/212/250/347/224/273/346/214/211/351/222/256.html +141 -141
  5. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/265/213/351/207/217/351/253/230/347/250/213.html +162 -166
  6. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/346/226/207/346/234/254/346/240/207/347/255/276.html +125 -129
  7. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/346/240/207/347/255/276/344/272/213/344/273/266/347/202/271/345/207/273/350/216/267/345/217/226/345/261/236/346/200/247.html +8 -18
  8. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/351/274/240/346/240/207/344/272/213/344/273/266/350/216/267/345/217/226/346/250/241/345/236/213.html +9 -19
  9. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//347/247/273/345/212/250/346/240/207/347/255/276/344/275/215/347/275/256.html +135 -139
  10. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/247/206/347/202/271/347/256/241/347/220/206.html +102 -97
  11. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/247/206/350/247/222/350/275/254/346/215/242.html +107 -112
  12. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/256/276/347/275/256/347/273/223/346/236/204/346/240/221/347/202/271/345/207/273/344/272/213/344/273/266.html +8 -18
  13. package/demo//345/217/202/346/225/260/345/214/226/350/256/276/350/256/241//345/217/202/346/225/260/345/214/226/345/273/272/346/250/241.html +5 -35
  14. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//346/227/213/350/275/254/345/271/263/347/247/273/347/274/251/346/224/276.html +128 -0
  15. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//350/256/276/347/275/256viewHouse.html +92 -0
  16. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//351/232/220/350/227/217/345/274/272/350/260/203.html +124 -0
  17. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//345/273/272/347/255/221/346/210/277/345/261/213/350/277/233/345/272/246/346/250/241/346/213/237-/351/232/224/347/246/273/347/224/237/351/225/277.html +100 -0
  18. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//346/226/275/345/267/245/350/277/233/345/272/246/346/250/241/346/213/237-/350/267/257/345/276/204/345/212/250/347/224/273/347/224/237/351/225/277.html +626 -0
  19. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//347/256/241/350/267/257/350/277/233/345/272/246/346/250/241/346/213/237-/347/256/241/351/201/223/347/224/237/351/225/277.html +153 -0
  20. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//350/267/257/345/276/204/345/212/250/347/224/273.html +119 -87
  21. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/210/233/345/273/272/350/247/206/345/233/276.html +8 -18
  22. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/212/240/350/275/275/346/234/215/345/212/241/345/231/250/346/250/241/345/236/213.html +8 -18
  23. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/217/214/345/261/217/346/223/215/344/275/234.html +10 -8
  24. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/256/232/344/275/215/346/250/241/345/236/213.html +17 -19
  25. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/267/245/345/205/267/346/240/217/346/230/276/347/244/272/351/232/220/350/227/217.html +74 -0
  26. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/212/225/345/275/261/346/226/271/345/274/217/345/217/230/346/215/242.html +78 -0
  27. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/230/276/347/244/272/347/233/270/346/234/272/345/217/202/346/225/260.html +121 -114
  28. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//350/216/267/345/217/226/347/233/270/346/234/272/345/217/202/346/225/260.html +138 -0
  29. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//350/256/276/347/275/256/344/270/216/350/216/267/345/217/226/346/250/241/345/236/213/345/235/220/346/240/207.html +25 -24
  30. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//351/224/201/345/256/232/347/233/270/346/234/272/350/247/206/350/247/222.html +109 -0
  31. package/demo//346/250/241/345/236/213/346/225/210/346/236/234/2D/347/203/255/345/212/233/345/233/276.html +47 -48
  32. package/demo//346/250/241/345/236/213/346/225/210/346/236/234/{BIM+GIS.html → BIMGIS/347/244/272/344/276/213.html} +8 -17
  33. package/demo//346/250/241/345/236/213/346/225/210/346/236/234/UV/345/212/250/347/224/273.html +9 -19
  34. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/205/250/346/201/257/345/275/261/345/203/217.html +7 -17
  35. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/210/233/345/273/272/346/211/253/347/225/245.html +77 -85
  36. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/210/233/345/273/272/350/267/257/345/276/204.html +33 -35
  37. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/233/264/345/242/231/346/211/253/346/217/217/346/225/210/346/236/234.html +33 -37
  38. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/241/253/346/214/226/346/226/271/345/210/206/346/236/220.html +31 -36
  39. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/244/251/347/251/272/347/233/222/346/225/210/346/236/234.html +9 -19
  40. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/260/204/347/272/277/346/243/200/346/265/213.html +47 -52
  41. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/211/207/345/275/242/346/211/253/346/217/217/346/225/210/346/236/234.html +33 -33
  42. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/214/207/345/256/232/346/236/204/344/273/266/346/227/213/350/275/254.html +38 -40
  43. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/216/247/351/253/230/345/210/206/346/236/220/346/225/210/346/236/234.html +28 -29
  44. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/260/264/351/235/242/346/225/210/346/236/234.html +25 -27
  45. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/267/273/345/212/240/344/270/211/347/273/264/346/226/207/345/255/227.html +44 -22
  46. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/267/273/345/212/240/347/202/271/347/272/277/351/235/242/346/213/211/344/274/270/344/275/223.html +8 -18
  47. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//347/216/257/347/212/266/346/211/253/346/217/217/346/225/210/346/236/234.html +8 -18
  48. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//347/253/213/344/275/223/351/224/232/347/202/271.html +48 -53
  49. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//350/201/232/345/205/211/347/201/257/346/225/210/346/236/234.html +49 -32
  50. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//350/277/233/345/272/246/346/250/241/346/213/237-/346/214/211/344/273/273/346/204/217/346/226/271/345/220/221/345/211/226/345/210/207.html +265 -281
  51. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//351/200/232/350/247/206/345/210/206/346/236/220.html +35 -39
  52. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//351/233/252/345/244/251/346/225/210/346/236/234.html +20 -24
  53. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//345/244/232/346/236/204/344/273/266/345/211/226/345/210/207.html +80 -85
  54. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//345/256/232/344/275/215/346/236/204/344/273/266.html +96 -98
  55. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/345/261/236/346/200/247.html +27 -31
  56. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/347/242/260/346/222/236/346/243/200/346/265/213.html +93 -107
  57. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/200/211/346/213/251/344/270/216/345/256/232/344/275/215.html +50 -61
  58. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/232/220/350/227/217/343/200/201/346/236/204/344/273/266/345/274/272/350/260/203.html +124 -0
  59. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/232/224/347/246/273.html +127 -0
  60. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/216/267/345/217/226/346/236/204/344/273/266/345/214/205/345/233/264/347/233/222.html +48 -55
  61. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/346/250/241/345/236/213/351/242/234/350/211/262.html +65 -0
  62. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/351/200/217/346/230/216/345/272/246.html +100 -94
  63. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/351/232/224/347/246/273/346/240/267/345/274/217.html +93 -93
  64. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/232/220/350/227/217/346/236/204/344/273/266.html +63 -0
  65. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/242/234/350/211/262/346/214/211/351/222/256.html +110 -119
  66. package/docs/classes/{Animation.uvEffect.md → Animation.UvEffect.md} +10 -10
  67. package/docs/classes/Longan.CameraMouse.md +23 -7
  68. package/docs/classes/Longan.CameraPlanMouse.md +31 -11
  69. package/docs/classes/Longan.EarthCameraMouse.md +31 -11
  70. package/docs/classes/Longan.PanoramaCameraMouse.md +31 -11
  71. package/docs/classes/Longan.PerspectiveCameraMouse.md +31 -11
  72. package/docs/modules/Animation.md +1 -1
  73. package/lib/BimAir.common-report.html +2 -2
  74. package/lib/BimAir.common.js +10 -10
  75. package/lib/BimAir.css +41 -41
  76. package/lib/BimAir.umd-report.html +2 -2
  77. package/lib/BimAir.umd.js +10 -10
  78. package/lib/BimAir.umd.min-report.html +2 -2
  79. package/lib/BimAir.umd.min.js +10 -10
  80. package/lib/undefined.gzundefined +0 -0
  81. package/package.json +1 -1
  82. package/public/js/longan/longan.js +1013 -1019
  83. package/public/js/longan/longan.wasm +0 -0
  84. package/public/js/longan/longan.worker.js +43 -51
  85. package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
  86. package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
  87. package/demo//344/272/213/344/273/266/346/223/215/344/275/234//351/242/234/350/211/262/345/222/214/345/212/250/347/224/273/346/214/211/351/222/256.html +0 -178
  88. package/demo//345/217/202/346/225/260/345/214/226/350/256/276/350/256/241//345/217/202/346/225/260/347/256/241/347/220/206/345/231/250.html +0 -86
  89. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//346/250/241/345/236/213/344/272/244/344/272/222-/345/212/240/350/275/275/345/244/232/346/250/241/345/236/213-/346/227/213/350/275/254/345/271/263/347/247/273/347/274/251/346/224/276.html +0 -155
  90. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//346/250/241/345/236/213/344/272/244/344/272/222-/345/244/232/346/250/241/345/236/213/346/223/215/344/275/234-/351/232/220/350/227/217/345/274/272/350/260/203.html +0 -156
  91. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//346/250/241/345/236/213/344/272/244/344/272/222-/350/256/276/347/275/256viewHouse.html +0 -122
  92. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//345/212/250/347/224/273-/345/273/272/347/255/221/346/210/277/345/261/213/350/277/233/345/272/246/346/250/241/346/213/237-/351/232/224/347/246/273/347/224/237/351/225/277.html +0 -118
  93. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//345/212/250/347/224/273-/346/226/275/345/267/245/350/277/233/345/272/246/346/250/241/346/213/237-/350/267/257/345/276/204/345/212/250/347/224/273/347/224/237/351/225/277.html +0 -493
  94. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//345/212/250/347/224/273-/347/256/241/350/267/257/350/277/233/345/272/246/346/250/241/346/213/237-/347/256/241/351/201/223/347/224/237/351/225/277.html +0 -172
  95. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//345/212/250/347/224/273-/350/207/252/345/256/232/344/271/211/347/256/241/351/201/223/350/277/233/345/272/246/346/250/241/346/213/237/346/226/271/345/220/221.html +0 -291
  96. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//350/267/257/345/276/204/345/271/263/347/247/273/345/212/250/347/224/273.html +0 -175
  97. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/250/241/345/236/213/346/223/215/344/275/234-/346/250/241/345/236/213/350/247/206/350/247/222-/346/212/225/345/275/261/346/226/271/345/274/217/345/217/230/346/215/242.html +0 -115
  98. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/250/241/345/236/213/346/223/215/344/275/234-/346/250/241/345/236/213/350/247/206/350/247/222-/350/216/267/345/217/226/347/233/270/346/234/272/345/217/202/346/225/260.html +0 -134
  99. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/250/241/345/236/213/346/223/215/344/275/234-/346/250/241/345/236/213/350/247/206/350/247/222-/351/224/201/345/256/232/347/233/270/346/234/272/350/247/206/350/247/222.html +0 -138
  100. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//350/256/276/347/275/256/345/267/245/345/205/267/346/240/217/344/270/216/346/214/211/351/222/256/346/230/276/347/244/272/351/232/220/350/227/217.html +0 -72
  101. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//350/256/276/347/275/256/347/233/270/346/234/272/347/212/266/346/200/201-/350/216/267/345/217/226/344/275/215/347/275/256/343/200/201/346/201/242/345/244/215/344/275/215/347/275/256.html +0 -137
  102. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//345/244/232/346/250/241/345/236/213/346/223/215/344/275/234-/346/236/204/344/273/266/351/232/220/350/227/217/343/200/201/346/236/204/344/273/266/345/274/272/350/260/203.html +0 -157
  103. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/346/223/215/344/275/234-/346/236/204/344/273/266/345/244/215/345/210/266-/344/277/256/346/224/271/351/242/234/350/211/262/343/200/201/346/236/204/344/273/266/351/232/224/347/246/273.html +0 -250
  104. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/346/223/215/344/275/234-/346/236/204/344/273/266/345/244/215/345/210/266-/346/236/204/344/273/266/351/232/220/350/227/217/343/200/201/350/267/257/345/276/204/345/212/250/347/224/273.html +0 -265
  105. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/250/241/345/236/213/344/277/241/346/201/257-/350/216/267/345/217/226/346/250/241/345/236/213/345/261/236/346/200/247/344/277/241/346/201/257-/346/236/204/344/273/266/345/261/236/346/200/247.html +0 -111
  106. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/250/241/345/236/213/346/236/204/344/273/266/351/232/224/347/246/273.html +0 -69
  107. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/216/267/345/217/226/346/236/204/344/273/266/344/277/241/346/201/257.html +0 -112
  108. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/216/267/345/217/226/346/250/241/345/236/213/347/273/223/346/236/204/346/240/221.html +0 -58
  109. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/346/236/204/344/273/266/351/242/234/350/211/262.html +0 -75
  110. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/232/220/350/227/217/344/270/211/347/273/264/346/250/241/345/236/213/346/236/204/344/273/266.html +0 -71
  111. package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/232/224/347/246/273/346/214/211/351/222/256.html +0 -137
@@ -3,28 +3,21 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <title>2D热力图</title>
6
+ <!-- demo的样式 -->
7
+ <link rel="stylesheet" href="../assets/demo.css" />
6
8
  <link
7
9
  rel="stylesheet"
8
- href="https://static.graphicstone.com/bimAir/BimAir.css"
10
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
9
11
  />
10
- <script src="https://static.graphicstone.com/vue.min.js"></script>
11
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
12
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
13
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
12
14
  </head>
13
15
 
14
16
  <body>
15
- <style>
16
- body {
17
- margin: 0;
18
- padding: 0;
19
- height: 100vh;
20
- }
21
-
22
- #app {
23
- height: 100vh;
24
- position: relative;
25
- }
26
- </style>
27
17
  <div id="app">
18
+ <div class="button-group">
19
+ <button onclick="heatMap()">添加热力图</button>
20
+ </div>
28
21
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
29
22
  </div>
30
23
 
@@ -35,45 +28,51 @@
35
28
  let options = {
36
29
  // viewerType: "model",
37
30
  elementId: "viewer",
38
- modelService: "https://static.graphicstone.com/modelApi",
39
- fileService: "https://static.graphicstone.com/fileApi",
31
+ modelService: "https://static.belife-bim.com/modelApi",
32
+ fileService: "https://static.belife-bim.com/fileApi",
40
33
  };
34
+
35
+ let viewer;
36
+ let lightModels;
41
37
  BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
42
38
  () => {
43
- let viewer = new BimAir.Viewer(options);
44
- viewer.loadModels("626b4d1ebfe39e58ae7b66a2").then((lightModels) => {
45
- let heatMapData = [
46
- { point: [10, 15, 0], value: 9 },
47
- { point: [0, 7, 0], value: 7 },
48
- { point: [-5, 11, 0], value: 4 },
49
- { point: [15, -3, 0], value: 1 },
50
- ];
51
-
52
- let heatMapColor = [
53
- { value: 2, color: [0.1, 0.1, 1] },
54
- { value: 4, color: [0, 0.9, 0.5] },
55
- { value: 6, color: [0.2, 1, 0] },
56
- { value: 8, color: [1, 1, 0] },
57
- { value: 10, color: [1, 0.2, 0] },
58
- ];
59
-
60
- let componentIds = ["411452", "849032"];
61
-
62
- let heatMap2DEffectConfig =
63
- new BimAir.Animation.HeatMap2DEffectConfig(
64
- viewer,
65
- lightModels[0],
66
- componentIds,
67
- heatMapData,
68
- heatMapColor
69
- );
70
- let heatMap2DEffect = new BimAir.Animation.HeatMap2DEffect(
71
- heatMap2DEffectConfig
72
- );
73
- heatMap2DEffect.createEffect();
39
+ viewer = new BimAir.Viewer(options);
40
+ viewer.loadModels("626b4d1ebfe39e58ae7b66a2").then((res) => {
41
+ lightModels = res;
74
42
  });
75
43
  }
76
44
  );
45
+
46
+ function heatMap() {
47
+ let heatMapData = [
48
+ { point: [10, 15, 0], value: 9 },
49
+ { point: [0, 7, 0], value: 7 },
50
+ { point: [-5, 11, 0], value: 4 },
51
+ { point: [15, -3, 0], value: 1 },
52
+ ];
53
+
54
+ let heatMapColor = [
55
+ { value: 2, color: [0.1, 0.1, 1] },
56
+ { value: 4, color: [0, 0.9, 0.5] },
57
+ { value: 6, color: [0.2, 1, 0] },
58
+ { value: 8, color: [1, 1, 0] },
59
+ { value: 10, color: [1, 0.2, 0] },
60
+ ];
61
+
62
+ let componentIds = ["411452", "849032"];
63
+
64
+ let heatMap2DEffectConfig = new BimAir.Animation.HeatMap2DEffectConfig(
65
+ viewer,
66
+ lightModels[0],
67
+ componentIds,
68
+ heatMapData,
69
+ heatMapColor
70
+ );
71
+ let heatMap2DEffect = new BimAir.Animation.HeatMap2DEffect(
72
+ heatMap2DEffectConfig
73
+ );
74
+ heatMap2DEffect.createEffect();
75
+ }
77
76
  </script>
78
77
  </body>
79
78
  </html>
@@ -6,27 +6,17 @@
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
7
  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
8
8
  <title>轻量化平台</title>
9
+ <!-- demo的样式 -->
10
+ <link rel="stylesheet" href="../assets/demo.css" />
9
11
  <link
10
12
  rel="stylesheet"
11
- href="https://static.graphicstone.com/bimAir/BimAir.css"
13
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
12
14
  />
13
- <script src="https://static.graphicstone.com/vue.min.js"></script>
14
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
15
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
16
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
15
17
  </head>
16
18
 
17
19
  <body>
18
- <style>
19
- body {
20
- margin: 0;
21
- padding: 0;
22
- height: 100vh;
23
- }
24
-
25
- #app {
26
- height: 100vh;
27
- position: relative;
28
- }
29
- </style>
30
20
  <div id="app">
31
21
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
32
22
  </div>
@@ -39,8 +29,8 @@
39
29
  elementId: "viewer",
40
30
  //
41
31
  isShowLoading: false,
42
- modelService: "https://8.134.85.254:9031/api",
43
- fileService: "https://8.134.85.254:9041/api",
32
+ modelService: "https://static.graphicstone.com/modelApi",
33
+ fileService: "https://static.graphicstone.com/fileApi",
44
34
  toolbarVisible: {
45
35
  leftToolbar: false,
46
36
  rightToolbar: false,
@@ -54,6 +44,7 @@
54
44
  };
55
45
 
56
46
  BimAir.Loader({
47
+ url: "https://static.graphicstone.com/bimAir",
57
48
  isShareArrayBuffer: false,
58
49
  }).then(() => {
59
50
  let viewer = new BimAir.Viewer(options);
@@ -6,27 +6,17 @@
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
7
  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
8
8
  <title>轻量化平台</title>
9
+ <!-- demo的样式 -->
10
+ <link rel="stylesheet" href="../assets/demo.css" />
9
11
  <link
10
12
  rel="stylesheet"
11
- href="https://static.graphicstone.com/bimAir/BimAir.css"
13
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
12
14
  />
13
- <script src="https://static.graphicstone.com/vue.min.js"></script>
14
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
15
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
16
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
15
17
  </head>
16
18
 
17
19
  <body>
18
- <style>
19
- body {
20
- margin: 0;
21
- padding: 0;
22
- height: 100vh;
23
- }
24
-
25
- #app {
26
- height: 100vh;
27
- position: relative;
28
- }
29
- </style>
30
20
  <div id="app">
31
21
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
32
22
  </div>
@@ -39,13 +29,13 @@
39
29
  // viewerType: "model",
40
30
  elementId: "viewer",
41
31
 
42
- modelService: "https://static.graphicstone.com/modelApi",
43
- fileService: "https://static.graphicstone.com/fileApi",
32
+ modelService: "https://static.belife-bim.com/modelApi",
33
+ fileService: "https://static.belife-bim.com/fileApi",
44
34
  };
45
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
35
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
46
36
  () => {
47
37
  let viewer = new BimAir.Viewer(options);
48
- let src = "https://static.graphicstone.com/images/effect/dynamic.png";
38
+ let src = "https://static.belife-bim.com/images/effect/dynamic.png";
49
39
 
50
40
  let path = [
51
41
  84.101, -6.97, -0, 84.43, 48.48, -0, 84.12, 109.24, -0, 18.2,
@@ -6,27 +6,17 @@
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
7
  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
8
8
  <title>轻量化平台</title>
9
+ <!-- demo的样式 -->
10
+ <link rel="stylesheet" href="../assets/demo.css" />
9
11
  <link
10
12
  rel="stylesheet"
11
- href="https://static.graphicstone.com/bimAir/BimAir.css"
13
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
12
14
  />
13
- <script src="https://static.graphicstone.com/vue.min.js"></script>
14
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
15
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
16
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
15
17
  </head>
16
18
 
17
19
  <body>
18
- <style>
19
- body {
20
- margin: 0;
21
- padding: 0;
22
- height: 100vh;
23
- }
24
-
25
- #app {
26
- height: 100vh;
27
- position: relative;
28
- }
29
- </style>
30
20
  <div id="app">
31
21
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
32
22
  </div>
@@ -39,8 +29,8 @@
39
29
  elementId: "viewer",
40
30
  //
41
31
  isShowLoading: false,
42
- modelService: "https://static.graphicstone.com/modelApi",
43
- fileService: "https://static.graphicstone.com/fileApi",
32
+ modelService: "https://static.belife-bim.com/modelApi",
33
+ fileService: "https://static.belife-bim.com/fileApi",
44
34
  toolbarVisible: {
45
35
  leftToolbar: false,
46
36
  rightToolbar: false,
@@ -3,28 +3,21 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <title>创建扫略</title>
6
+ <!-- demo的样式 -->
7
+ <link rel="stylesheet" href="../assets/demo.css" />
6
8
  <link
7
9
  rel="stylesheet"
8
- href="https://static.graphicstone.com/bimAir/BimAir.css"
10
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
9
11
  />
10
- <script src="https://static.graphicstone.com/vue.min.js"></script>
11
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
12
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
13
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
12
14
  </head>
13
15
 
14
16
  <body>
15
- <style>
16
- body {
17
- margin: 0;
18
- padding: 0;
19
- height: 100vh;
20
- }
21
-
22
- #app {
23
- height: 100vh;
24
- position: relative;
25
- }
26
- </style>
27
17
  <div id="app">
18
+ <div class="button-group">
19
+ <button onclick="create()">创建扫略</button>
20
+ </div>
28
21
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
29
22
  </div>
30
23
 
@@ -36,85 +29,84 @@
36
29
  // viewerType: "model",
37
30
  elementId: "viewer",
38
31
 
39
- modelService: "https://static.graphicstone.com/modelApi",
40
- fileService: "https://static.graphicstone.com/fileApi",
32
+ modelService: "https://static.belife-bim.com/modelApi",
33
+ fileService: "https://static.belife-bim.com/fileApi",
41
34
  };
35
+
36
+ let viewer;
42
37
  BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
43
38
  () => {
44
- let viewer = new BimAir.Viewer(options);
45
- viewer
46
- .loadModels(["626b4d1ebfe39e58ae7b66a2"])
47
- .then((lightModels) => {
48
- let points = [
49
- -2, 3, 0, -2, 0, 0, -2, 0, 0, 2, 0, 0, 2, 0, 0, 2, 3, 0,
50
- ];
51
- let circle_points =
52
- BimAir.Longan.GeometryOperators.createRingPoints(
53
- new Float32Array([0, 3, 0]),
54
- new Float32Array([1, 0, 0]),
55
- new Float32Array([0, 1, 0]),
56
- new Float32Array([
57
- 0,
58
- Math.PI / 4,
59
- Math.PI / 2,
60
- (Math.PI * 3) / 4,
61
- Math.PI,
62
- ]),
63
- 2
64
- );
65
- for (let i = 0; i < circle_points.length; i++) {
66
- points.push(circle_points[i]);
67
- }
39
+ viewer = new BimAir.Viewer(options);
40
+ viewer.loadModels(["626b4d1ebfe39e58ae7b66a2"]).then(() => {});
41
+ }
42
+ );
43
+
44
+ function create() {
45
+ let points = [-2, 3, 0, -2, 0, 0, -2, 0, 0, 2, 0, 0, 2, 0, 0, 2, 3, 0];
46
+ let circle_points = BimAir.Longan.GeometryOperators.createRingPoints(
47
+ new Float32Array([0, 3, 0]),
48
+ new Float32Array([1, 0, 0]),
49
+ new Float32Array([0, 1, 0]),
50
+ new Float32Array([
51
+ 0,
52
+ Math.PI / 4,
53
+ Math.PI / 2,
54
+ (Math.PI * 3) / 4,
55
+ Math.PI,
56
+ ]),
57
+ 2
58
+ );
59
+ for (let i = 0; i < circle_points.length; i++) {
60
+ points.push(circle_points[i]);
61
+ }
68
62
 
69
- let indexes = [points.length / 3];
70
- for (let i = 0; i < points.length / 3; i++) {
71
- indexes.push(i);
72
- }
73
- // 重复点显示转折
74
- let inner_points = [
75
- 1.8, 3, 0, 1.8, 0.2, 0, 1.8, 0.2, 0, -1.8, 0.2, 0, -1.8, 0.2, 0,
76
- -1.8, 3, 0,
77
- ];
78
- circle_points = BimAir.Longan.GeometryOperators.createRingPoints(
79
- new Float32Array([0, 3, 0]),
80
- new Float32Array([1, 0, 0]),
81
- new Float32Array([0, 1, 0]),
82
- new Float32Array([
83
- Math.PI,
84
- (Math.PI * 3) / 4,
85
- Math.PI / 2,
86
- Math.PI / 4,
87
- 0,
88
- ]),
89
- 1.8
90
- );
91
- for (let i = 0; i < circle_points.length; i++) {
92
- inner_points.push(circle_points[i]);
93
- }
63
+ let indexes = [points.length / 3];
64
+ for (let i = 0; i < points.length / 3; i++) {
65
+ indexes.push(i);
66
+ }
67
+ // 重复点显示转折
68
+ let inner_points = [
69
+ 1.8, 3, 0, 1.8, 0.2, 0, 1.8, 0.2, 0, -1.8, 0.2, 0, -1.8, 0.2, 0, -1.8,
70
+ 3, 0,
71
+ ];
72
+ circle_points = BimAir.Longan.GeometryOperators.createRingPoints(
73
+ new Float32Array([0, 3, 0]),
74
+ new Float32Array([1, 0, 0]),
75
+ new Float32Array([0, 1, 0]),
76
+ new Float32Array([
77
+ Math.PI,
78
+ (Math.PI * 3) / 4,
79
+ Math.PI / 2,
80
+ Math.PI / 4,
81
+ 0,
82
+ ]),
83
+ 1.8
84
+ );
85
+ for (let i = 0; i < circle_points.length; i++) {
86
+ inner_points.push(circle_points[i]);
87
+ }
94
88
 
95
- indexes.push(-inner_points.length / 3);
96
- for (let i = 0; i < inner_points.length / 3; i++) {
97
- indexes.push(i + points.length / 3);
98
- }
89
+ indexes.push(-inner_points.length / 3);
90
+ for (let i = 0; i < inner_points.length / 3; i++) {
91
+ indexes.push(i + points.length / 3);
92
+ }
99
93
 
100
- console.log("indexes", indexes);
94
+ console.log("indexes", indexes);
101
95
 
102
- points = points.concat(inner_points);
96
+ points = points.concat(inner_points);
103
97
 
104
- console.log("points", points);
105
- // 重复点显示转折
106
- let path = [1, 1, 0, 1, 1, 10, 1, 1, 10, 2, 1, 20];
98
+ console.log("points", points);
99
+ // 重复点显示转折
100
+ let path = [1, 1, 0, 1, 1, 10, 1, 1, 10, 2, 1, 20];
107
101
 
108
- viewer.utilitySegment.sweepByShell(
109
- points,
110
- indexes,
111
- path,
112
- "normal=(0,0,1)"
113
- );
114
- viewer.updateDisplay();
115
- });
116
- }
117
- );
102
+ viewer.utilitySegment.sweepByShell(
103
+ points,
104
+ indexes,
105
+ path,
106
+ "normal=(0,0,1)"
107
+ );
108
+ viewer.updateDisplay();
109
+ }
118
110
  </script>
119
111
  </body>
120
112
  </html>
@@ -6,28 +6,21 @@
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
7
  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
8
8
  <title>轻量化平台</title>
9
+ <!-- demo的样式 -->
10
+ <link rel="stylesheet" href="../assets/demo.css" />
9
11
  <link
10
12
  rel="stylesheet"
11
- href="https://static.graphicstone.com/bimAir/BimAir.css"
13
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
12
14
  />
13
- <script src="https://static.graphicstone.com/vue.min.js"></script>
14
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
15
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
16
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
15
17
  </head>
16
18
 
17
19
  <body>
18
- <style>
19
- body {
20
- margin: 0;
21
- padding: 0;
22
- height: 100vh;
23
- }
24
-
25
- #app {
26
- height: 100vh;
27
- position: relative;
28
- }
29
- </style>
30
20
  <div id="app">
21
+ <div class="button-group">
22
+ <button onclick="create()">创建路径</button>
23
+ </div>
31
24
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
32
25
  </div>
33
26
 
@@ -39,31 +32,36 @@
39
32
  // viewerType: "model",
40
33
  elementId: "viewer",
41
34
 
42
- modelService: "https://static.graphicstone.com/modelApi",
43
- fileService: "https://static.graphicstone.com/fileApi",
35
+ modelService: "https://static.belife-bim.com/modelApi",
36
+ fileService: "https://static.belife-bim.com/fileApi",
44
37
  };
38
+
39
+ let viewer;
45
40
  BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
46
41
  () => {
47
- let viewer = new BimAir.Viewer(options);
48
- let path = [
49
- 84.101, -6.97, -0, 84.43, 48.48, -0, 84.12, 109.24, -0, 18.2,
50
- 109.52, -0, -33.6, 109.3, -0, -36.92, -6.8, -0, 11.19, -7.56, -0,
51
- 75.76, -7.9, -0,
52
- ];
53
- let pathEffectConfig = new BimAir.Animation.PathEffectConfig(
54
- viewer,
55
- "路径1",
56
- path,
57
- 10,
58
- 0.1
59
- );
60
- let pathEffect = new BimAir.Animation.PathEffect(pathEffectConfig);
61
- pathEffect.createPath().then(() => {
62
- let path1 = viewer.getLightModel("路径1");
63
- viewer.setViewMode(BimAir.Longan.ViewMode.Iso, true);
64
- });
42
+ viewer = new BimAir.Viewer(options);
65
43
  }
66
44
  );
45
+
46
+ function create() {
47
+ let path = [
48
+ 84.101, -6.97, -0, 84.43, 48.48, -0, 84.12, 109.24, -0, 18.2, 109.52,
49
+ -0, -33.6, 109.3, -0, -36.92, -6.8, -0, 11.19, -7.56, -0, 75.76, -7.9,
50
+ -0,
51
+ ];
52
+ let pathEffectConfig = new BimAir.Animation.PathEffectConfig(
53
+ viewer,
54
+ "路径1",
55
+ path,
56
+ 10,
57
+ 0.1
58
+ );
59
+ let pathEffect = new BimAir.Animation.PathEffect(pathEffectConfig);
60
+ pathEffect.createPath().then(() => {
61
+ let path1 = viewer.getLightModel("路径1");
62
+ viewer.setViewMode(BimAir.Longan.ViewMode.Iso, true);
63
+ });
64
+ }
67
65
  </script>
68
66
  </body>
69
67
  </html>
@@ -3,28 +3,21 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <title>围墙扫描效果</title>
6
+ <!-- demo的样式 -->
7
+ <link rel="stylesheet" href="../assets/demo.css" />
6
8
  <link
7
9
  rel="stylesheet"
8
- href="https://static.graphicstone.com/bimAir/BimAir.css"
10
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
9
11
  />
10
- <script src="https://static.graphicstone.com/vue.min.js"></script>
11
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
12
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
13
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
12
14
  </head>
13
15
 
14
16
  <body>
15
- <style>
16
- body {
17
- margin: 0;
18
- padding: 0;
19
- height: 100vh;
20
- }
21
-
22
- #app {
23
- height: 100vh;
24
- position: relative;
25
- }
26
- </style>
27
17
  <div id="app">
18
+ <div class="button-group">
19
+ <button onclick="create()">创建围墙扫描效果</button>
20
+ </div>
28
21
  <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
29
22
  </div>
30
23
 
@@ -35,33 +28,36 @@
35
28
  let options = {
36
29
  // viewerType: "model",
37
30
  elementId: "viewer",
38
- modelService: "https://static.graphicstone.com/modelApi",
39
- fileService: "https://static.graphicstone.com/fileApi",
31
+ modelService: "https://static.belife-bim.com/modelApi",
32
+ fileService: "https://static.belife-bim.com/fileApi",
40
33
  };
34
+
35
+ let viewer;
41
36
  BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
42
37
  () => {
43
- let viewer = new BimAir.Viewer(options);
44
- viewer.loadModels(["63218fac3247112e10565479"]).then(() => {
45
- let path = [
46
- 0.5791, 2.0618884563446045, 0, 1.1139, 1.6665, 0, 1.5982, 2.1445,
47
- 0, 1.3815, 2.4299, 0, 0.5791, 2.0618884563446045, 0,
48
- ];
49
- let wallScanEffectConfig =
50
- new BimAir.Animation.WallScanEffectConfig(
51
- viewer,
52
- false,
53
- false,
54
- 0.3,
55
- 1,
56
- new Float32Array([50, 211, 166]),
57
- path
58
- );
59
- let wallEffect = new BimAir.Animation.WallScanEffect(
60
- wallScanEffectConfig
61
- );
62
- });
38
+ viewer = new BimAir.Viewer(options);
39
+ viewer.loadModels(["63218fac3247112e10565479"]).then(() => {});
63
40
  }
64
41
  );
42
+
43
+ function create() {
44
+ let path = [
45
+ 0.5791, 2.0618884563446045, 0, 1.1139, 1.6665, 0, 1.5982, 2.1445, 0,
46
+ 1.3815, 2.4299, 0, 0.5791, 2.0618884563446045, 0,
47
+ ];
48
+ let wallScanEffectConfig = new BimAir.Animation.WallScanEffectConfig(
49
+ viewer,
50
+ false,
51
+ false,
52
+ 0.3,
53
+ 1,
54
+ new Float32Array([50, 211, 166]),
55
+ path
56
+ );
57
+ let wallEffect = new BimAir.Animation.WallScanEffect(
58
+ wallScanEffectConfig
59
+ );
60
+ }
65
61
  </script>
66
62
  </body>
67
63
  </html>