gs-bim-air 1.6.1-beta.12 → 1.6.1-beta.14

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 (87) hide show
  1. package/README.md +26 -0
  2. package/demo/assets/demo.css +8 -8
  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 +7 -7
  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 +7 -8
  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 +6 -7
  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 +7 -7
  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 +6 -6
  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 +6 -6
  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 +6 -7
  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 +7 -8
  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 +14 -17
  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 +6 -6
  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 +4 -4
  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 +33 -33
  15. package/demo//346/250/241/345/236/213/344/272/244/344/272/222//350/256/276/347/275/256viewHouse.html +8 -8
  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 +24 -27
  17. 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 → 351}/201/223/347/224/237/351/225/277.html +7 -9
  18. 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 +6 -7
  19. 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 → 350}/267/257/345/276/204/345/212/250/347/224/273/347/224/237/351/225/277.html +8 -9
  20. 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 → 351}/232/224/347/246/273/347/224/237/351/225/277.html +9 -23
  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 +6 -6
  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 +6 -6
  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 +8 -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 +6 -6
  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 +6 -6
  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 +7 -10
  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 +8 -10
  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 +9 -10
  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 +6 -6
  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 +8 -8
  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 +6 -6
  32. package/demo//346/250/241/345/236/213/346/225/210/346/236/234/BIMGIS/347/244/272/344/276/213.html +6 -6
  33. package/demo//346/250/241/345/236/213/346/225/210/346/236/234/UV/345/212/250/347/224/273.html +12 -9
  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 +5 -5
  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 +6 -6
  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 +11 -12
  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 +6 -6
  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 +6 -6
  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 +7 -7
  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 +6 -6
  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 +6 -6
  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 +6 -6
  43. 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 → 346}/214/211/344/273/273/346/204/217/346/226/271/345/220/221/345/211/226/345/210/207.html +7 -12
  44. 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 +6 -6
  45. 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 +6 -6
  46. 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 +6 -6
  47. 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 +6 -6
  48. 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 +6 -6
  49. 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 +6 -6
  50. 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 +6 -6
  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 +7 -7
  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 +6 -6
  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 +6 -6
  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 +6 -7
  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 +6 -6
  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 +6 -6
  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 +6 -6
  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 +8 -8
  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 +7 -8
  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 +6 -6
  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 +8 -7
  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 +6 -7
  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 +7 -8
  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 +14 -7
  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 +7 -7
  66. package/docs/.vuepress/config.js +2 -2
  67. package/docs/classes/DataManagerBase.md +23 -1
  68. package/docs/classes/Longan.DGeometryOperators.md +55 -0
  69. package/docs/classes/Longan.DataManagerBase.md +17 -0
  70. package/docs/classes/Longan.Shell.md +11 -0
  71. package/docs/classes/Material.md +11 -0
  72. package/docs/modules/Longan.LonganCore.md +21 -0
  73. package/lib/BimAir.common-report.html +2 -2
  74. package/lib/BimAir.common.js +30 -30
  75. package/lib/BimAir.css +136 -126
  76. package/lib/BimAir.umd-report.html +2 -2
  77. package/lib/BimAir.umd.js +30 -30
  78. package/lib/BimAir.umd.min-report.html +2 -2
  79. package/lib/BimAir.umd.min.js +30 -30
  80. package/lib/undefined.gzundefined +0 -0
  81. package/package.json +1 -1
  82. package/public/js/longan/longan.js +506 -494
  83. package/public/js/longan/longan.wasm +0 -0
  84. package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
  85. package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
  86. package/lib/img/desertSkyboxIcon.afc36bf4.jpg +0 -0
  87. package/lib/img/sunsetSkyboxIcon.e9b82eab.jpg +0 -0
package/README.md CHANGED
@@ -1,5 +1,31 @@
1
1
  ## 更新日志
2
2
 
3
+ ### 1.6.1-beta.13
4
+
5
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
6
+ >
7
+ > Longan 更新为 v1.6.1-beta.11
8
+
9
+ - feat: 插入 font library 时,添加是否已存贮判断
10
+ - feat: 添加根据材质名字移除重写颜色数据
11
+ - fix: 更新 wasm,修复双屏闪缩问题
12
+ - fix: 修复切换视点时,罗盘没有没有变化的问题
13
+
14
+ ### 1.6.1-beta.13
15
+
16
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
17
+ >
18
+ > Longan 更新为 v1.6.1-beta.10
19
+
20
+ - feat: 添加禁用 f12 的函数
21
+ - feat: 搜索函数加上 id 搜索
22
+ - feat: 添加备注修改接口
23
+
24
+ ---
25
+
26
+ - fix: 修改打包 bimAir 后样式错乱
27
+ - fix: 左右分栏拖动组件添加可设置的最小宽度
28
+
3
29
  ### 1.6.1-beta.12
4
30
 
5
31
  > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
@@ -9,7 +9,14 @@ body {
9
9
  position: relative;
10
10
  }
11
11
 
12
- button {
12
+ .button-group {
13
+ position: absolute;
14
+ z-index: 100;
15
+ top: 5px;
16
+ left: 70px;
17
+ }
18
+
19
+ .button-group button {
13
20
  margin: 20px 0px 0px 20px;
14
21
  min-width: 100px;
15
22
  height: 35px;
@@ -19,10 +26,3 @@ button {
19
26
  color: #ffffff;
20
27
  outline: none;
21
28
  }
22
-
23
- .button-group {
24
- position: absolute;
25
- z-index: 100;
26
- top: 5px;
27
- left: 70px;
28
- }
@@ -4,13 +4,13 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>修改颜色</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
@@ -33,9 +33,9 @@
33
33
  let options = {
34
34
  // viewerType: "model",
35
35
  elementId: "viewer",
36
- id: "6253e9d6b0545a0a6e49bf85",
37
- modelService: "https://static.graphicstone.com/modelApi",
38
- fileService: "https://static.graphicstone.com/fileApi",
36
+
37
+ modelService: "https://static.belife-bim.com/modelApi",
38
+ fileService: "https://static.belife-bim.com/fileApi",
39
39
  };
40
40
  let aboutCamera = {
41
41
  position: [379720.251, 39004.605, 3324.137],
@@ -52,7 +52,7 @@
52
52
 
53
53
  let objectID1 = "QMD+M+4G+HYD+XDRA01+EL002";
54
54
 
55
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
55
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
56
56
  () => {
57
57
  viewer = new BimAir.Viewer(options);
58
58
  this.viewer = viewer;
@@ -5,17 +5,16 @@
5
5
  <title>动画播放</title>
6
6
 
7
7
  <!-- demo的样式 -->
8
- <link rel="stylesheet" href="../assets/demo.css" />
8
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
9
9
  <link
10
10
  rel="stylesheet"
11
11
  href="https://static.belife-bim.com/bimAir/BimAir.css"
12
12
  />
13
- <script src="https://static.graphicstone.com/vue.min.js"></script>
14
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
13
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
14
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
15
15
  </head>
16
16
 
17
17
  <body>
18
-
19
18
  <div id="app">
20
19
  <!-- <div id="viewer">
21
20
  </div> -->
@@ -37,9 +36,9 @@
37
36
  let options = {
38
37
  // viewerType: "model",
39
38
  elementId: "viewer",
40
- id: "6253e9d6b0545a0a6e49bf85",
41
- modelService: "https://static.graphicstone.com/modelApi",
42
- fileService: "https://static.graphicstone.com/fileApi",
39
+
40
+ modelService: "https://static.belife-bim.com/modelApi",
41
+ fileService: "https://static.belife-bim.com/fileApi",
43
42
  };
44
43
  let aboutCamera = {
45
44
  position: new Float64Array([379633.85, 39084.71, 3129.943]),
@@ -55,7 +54,7 @@
55
54
  let model1 = "632273cfbc278049a0898a12";
56
55
  let objectID1 = "QMD+M+4G+HYD+XDRA01+EL002";
57
56
 
58
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
57
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
59
58
  () => {
60
59
  viewer = new BimAir.Viewer(options);
61
60
  this.viewer = viewer;
@@ -4,17 +4,16 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>测量高程</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
17
-
18
17
  <div id="app">
19
18
  <div class="button-group">
20
19
  <button onclick="choosing()">选择高程点</button>
@@ -30,8 +29,8 @@
30
29
  let options = {
31
30
  // viewerType: "model",
32
31
  elementId: "viewer",
33
- modelService: "https://static.graphicstone.com/modelApi",
34
- fileService: "https://static.graphicstone.com/fileApi",
32
+ modelService: "https://static.belife-bim.com/modelApi",
33
+ fileService: "https://static.belife-bim.com/fileApi",
35
34
  };
36
35
  let id = "632273cbbc278049a0898a0e";
37
36
  let model3 = "632273cfbc278049a0898a12";
@@ -43,7 +42,7 @@
43
42
  let point2;
44
43
  let ObjectPreSelector;
45
44
 
46
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
45
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
47
46
  () => {
48
47
  viewer = new BimAir.Viewer(options);
49
48
  this.viewer = viewer;
@@ -4,17 +4,16 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>添加文本标签</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
17
-
18
17
  <div id="app">
19
18
  <div class="button-group">
20
19
  <button onclick="addTextLabel()">添加文本标签</button>
@@ -29,8 +28,8 @@
29
28
  let options = {
30
29
  // viewerType: "model",
31
30
  elementId: "viewer",
32
- modelService: "https://static.graphicstone.com/modelApi",
33
- fileService: "https://static.graphicstone.com/fileApi",
31
+ modelService: "https://static.belife-bim.com/modelApi",
32
+ fileService: "https://static.belife-bim.com/fileApi",
34
33
  };
35
34
  let model2 = "63228db5b1decf1fc6a353b3";
36
35
  let model3 = "63228dd7b1decf1fc6a353cb";
@@ -38,7 +37,7 @@
38
37
  let positionList;
39
38
  let labelArr = [];
40
39
 
41
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
40
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
42
41
  () => {
43
42
  viewer = new BimAir.Viewer(options);
44
43
  this.viewer = viewer;
@@ -91,6 +90,7 @@
91
90
 
92
91
  //右键放开时启用标签方法
93
92
  this.viewer.onLButtonUp.add(() => labelEnable);
93
+ this.viewer.updateDisplay();
94
94
  }
95
95
 
96
96
  function labelDisable(sender, event) {
@@ -6,13 +6,13 @@
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
  <!-- demo的样式 -->
9
- <link rel="stylesheet" href="../assets/demo.css" />
9
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
10
10
  <link
11
11
  rel="stylesheet"
12
12
  href="https://static.belife-bim.com/bimAir/BimAir.css"
13
13
  />
14
- <script src="https://static.graphicstone.com/vue.min.js"></script>
15
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
14
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
15
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
16
16
  </head>
17
17
 
18
18
  <body>
@@ -30,10 +30,10 @@
30
30
  // viewerType: "model",
31
31
  elementId: "viewer",
32
32
  //
33
- modelService: "https://static.graphicstone.com/modelApi",
34
- fileService: "https://static.graphicstone.com/fileApi",
33
+ modelService: "https://static.belife-bim.com/modelApi",
34
+ fileService: "https://static.belife-bim.com/fileApi",
35
35
  };
36
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
36
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
37
37
  () => {
38
38
  let viewer = new BimAir.Viewer(options);
39
39
  viewer
@@ -4,13 +4,13 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>添加鼠标事件获取模型</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
@@ -27,10 +27,10 @@
27
27
  // viewerType: "model",
28
28
  elementId: "viewer",
29
29
 
30
- modelService: "https://static.graphicstone.com/modelApi",
31
- fileService: "https://static.graphicstone.com/fileApi",
30
+ modelService: "https://static.belife-bim.com/modelApi",
31
+ fileService: "https://static.belife-bim.com/fileApi",
32
32
  };
33
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
33
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
34
34
  () => {
35
35
  let viewer = new BimAir.Viewer(options);
36
36
 
@@ -4,17 +4,16 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>更改标签位置</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
17
-
18
17
  <div id="app">
19
18
  <div class="button-group">
20
19
  <button onclick="addTextLabel()">添加文本标签</button>
@@ -30,8 +29,8 @@
30
29
  let options = {
31
30
  // viewerType: "model",
32
31
  elementId: "viewer",
33
- modelService: "https://static.graphicstone.com/modelApi",
34
- fileService: "https://static.graphicstone.com/fileApi",
32
+ modelService: "https://static.belife-bim.com/modelApi",
33
+ fileService: "https://static.belife-bim.com/fileApi",
35
34
  };
36
35
  let model2 = "63228db5b1decf1fc6a353b3";
37
36
  let model3 = "63228dd7b1decf1fc6a353cb";
@@ -40,7 +39,7 @@
40
39
  let labelArr = [];
41
40
  let p_new = [380076.313, 39099.805, 3236.421];
42
41
 
43
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
42
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
44
43
  () => {
45
44
  viewer = new BimAir.Viewer(options);
46
45
  this.viewer = viewer;
@@ -4,17 +4,16 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>视点管理</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
17
-
18
17
  <div id="app">
19
18
  <div class="button-group">
20
19
  <button onclick="getViews()">获取视点</button>
@@ -32,9 +31,9 @@
32
31
  let options = {
33
32
  // viewerType: "model",
34
33
  elementId: "viewer",
35
- id: "6253e9d6b0545a0a6e49bf85",
36
- modelService: "https://static.graphicstone.com/modelApi",
37
- fileService: "https://static.graphicstone.com/fileApi",
34
+
35
+ modelService: "https://static.belife-bim.com/modelApi",
36
+ fileService: "https://static.belife-bim.com/fileApi",
38
37
  };
39
38
 
40
39
  let id = "632273cbbc278049a0898a0e";
@@ -44,7 +43,7 @@
44
43
  let viewer;
45
44
  let lightModels;
46
45
 
47
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
46
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
48
47
  () => {
49
48
  viewer = new BimAir.Viewer(options);
50
49
  this.viewer = viewer;
@@ -3,14 +3,13 @@
3
3
  <title>视角转换</title>
4
4
  <link
5
5
  rel="stylesheet"
6
- href="https://static.graphicstone.com/bimAir/BimAir.css"
6
+ href="https://static.belife-bim.com/bimAir/BimAir.css"
7
7
  />
8
- <script src="https://static.graphicstone.com/vue.min.js"></script>
9
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
8
+ <script src="https://static.belife-bim.com/vue.min.js"></script>
9
+ <script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
10
10
  </head>
11
11
 
12
12
  <body>
13
-
14
13
  <div id="app">
15
14
  <div class="button-group">
16
15
  <button onclick="setScene1()">设置视角1</button>
@@ -26,9 +25,9 @@
26
25
  let options = {
27
26
  // viewerType: "model",
28
27
  elementId: "viewer",
29
- id: "6253e9d6b0545a0a6e49bf85",
30
- modelService: "https://static.graphicstone.com/modelApi",
31
- fileService: "https://static.graphicstone.com/fileApi",
28
+
29
+ modelService: "https://static.belife-bim.com/modelApi",
30
+ fileService: "https://static.belife-bim.com/fileApi",
32
31
  };
33
32
 
34
33
  let aboutCamera = {
@@ -52,17 +51,15 @@
52
51
  let viewer;
53
52
  let lightModels;
54
53
 
55
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
56
- () => {
57
- viewer = new BimAir.Viewer(options);
58
- this.viewer = viewer;
54
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(() => {
55
+ viewer = new BimAir.Viewer(options);
56
+ this.viewer = viewer;
59
57
 
60
- this.viewer.loadModels([id, model1]).then((lightModels) => {
61
- this.lightModels = lightModels;
62
- this.viewer.fitWorld();
63
- });
64
- }
65
- );
58
+ this.viewer.loadModels([id, model1]).then((lightModels) => {
59
+ this.lightModels = lightModels;
60
+ this.viewer.fitWorld();
61
+ });
62
+ });
66
63
 
67
64
  function setScene1() {
68
65
  this.viewer.camera.position = aboutCamera.position;
@@ -4,13 +4,13 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>设置结构树点击事件</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
@@ -26,8 +26,8 @@
26
26
  // viewerType: "project",
27
27
  elementId: "viewer",
28
28
 
29
- modelService: "https://static.graphicstone.com/modelApi",
30
- fileService: "https://static.graphicstone.com/fileApi",
29
+ modelService: "https://static.belife-bim.com/modelApi",
30
+ fileService: "https://static.belife-bim.com/fileApi",
31
31
 
32
32
  components: {
33
33
  structureTree: {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  },
40
40
  };
41
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
41
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
42
42
  () => {
43
43
  let viewer = new BimAir.Viewer(options);
44
44
  viewer.loadModels(["626b4d1ebfe39e58ae7b66a2"]).then(() => {});
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title>参数化建模</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
@@ -31,12 +31,12 @@
31
31
  // viewerType: "model",
32
32
  elementId: "viewer",
33
33
 
34
- modelService: "https://static.graphicstone.com/modelApi",
35
- fileService: "https://static.graphicstone.com/fileApi",
34
+ modelService: "https://static.belife-bim.com/modelApi",
35
+ fileService: "https://static.belife-bim.com/fileApi",
36
36
  };
37
37
 
38
38
  let viewer;
39
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
39
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
40
40
  () => {
41
41
  viewer = new BimAir.Viewer(options);
42
42
  viewer
@@ -4,13 +4,13 @@
4
4
  <meta charset="utf-8" />
5
5
  <title>模型变换</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
@@ -34,9 +34,9 @@
34
34
  let options = {
35
35
  // viewerType: "model",
36
36
  elementId: "viewer",
37
- id: "6253e9d6b0545a0a6e49bf85",
38
- modelService: "http://8.134.85.254:9036/api",
39
- fileService: "http://8.134.85.254:9040/api",
37
+
38
+ modelService: "https://static.belife-bim.com/modelApi",
39
+ fileService: "https://static.belife-bim.com/fileApi",
40
40
  };
41
41
 
42
42
  let viewer;
@@ -49,12 +49,12 @@
49
49
  let rotateTime = 0;
50
50
  let moveTime = 0;
51
51
 
52
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
52
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
53
53
  () => {
54
54
  viewer = new BimAir.Viewer(options);
55
55
 
56
- let shengyazhanModelId = "62e3681f525bed6af87fb383"; //第一次加载升压站模型
57
- let xuexiaoModelId = "62e3543f525bed6af87fb1a5";
56
+ let shengyazhanModelId = "645e06e3ae09ef7882f4ff37"; //第一次加载升压站模型
57
+ let xuexiaoModelId = "645e06e3ae09ef7882f4ff39";
58
58
  viewer.loadModels([shengyazhanModelId]).then((resLightModels) => {
59
59
  viewer.setViewMode(BimAir.Longan.ViewMode.Iso, true);
60
60
  lightModels = resLightModels;
@@ -72,33 +72,33 @@
72
72
  function funLoadmodel() {
73
73
  console.log(tag_load);
74
74
  if (tag_load) {
75
- BimAir.Loader({ isShareArrayBuffer: true }).then(() => {
76
- let shengyazhanModelId = "62e3681f525bed6af87fb383";
77
- let xuexiaoModelId = "62e3543f525bed6af87fb1a5"; //第二次加载的学校模型
78
- viewer.loadModels([xuexiaoModelId]).then((resLightModels) => {
79
- // console.log("模型加载完毕");
80
- lightModels = resLightModels;
81
- let XX_bb = viewer.computeViewBoundingBox(lightModels[0].segment);
82
- let XX_bbCenter = new Float64Array([
83
- (XX_bb[0] + XX_bb[3]) / 2,
84
- (XX_bb[1] + XX_bb[4]) / 2,
85
- (XX_bb[2] + XX_bb[5]) / 2,
86
- ]);
87
- console.log("包围盒点", XX_bb);
88
- console.log("中心点", XX_bbCenter);
89
- console.log(
90
- "中心点",
91
- XX_bbCenter[0],
92
- XX_bbCenter[1],
93
- XX_bbCenter[2]
94
- );
95
- // lightModels = lightModels;
75
+ // BimAir.Loader({ isShareArrayBuffer: true }).then(() => {
76
+ let shengyazhanModelId = "645e06e3ae09ef7882f4ff37";
77
+ let xuexiaoModelId = "645e06e3ae09ef7882f4ff39"; //第二次加载的学校模型
78
+ viewer.loadModels([xuexiaoModelId]).then((resLightModels) => {
79
+ // console.log("模型加载完毕");
80
+ lightModels = resLightModels;
81
+ let XX_bb = viewer.computeViewBoundingBox(lightModels[0].segment);
82
+ let XX_bbCenter = new Float64Array([
83
+ (XX_bb[0] + XX_bb[3]) / 2,
84
+ (XX_bb[1] + XX_bb[4]) / 2,
85
+ (XX_bb[2] + XX_bb[5]) / 2,
86
+ ]);
87
+ console.log("包围盒点", XX_bb);
88
+ console.log("中心点", XX_bbCenter);
89
+ console.log(
90
+ "中心点",
91
+ XX_bbCenter[0],
92
+ XX_bbCenter[1],
93
+ XX_bbCenter[2]
94
+ );
95
+ // lightModels = lightModels;
96
96
 
97
- lightModels[0].translate = [-19.658, 87.682, 0.4]; //手动计算出两模型之间的位置
97
+ lightModels[0].translate = [-19.658, 87.682, 0.4]; //手动计算出两模型之间的位置
98
98
 
99
- viewer.updateDisplay();
100
- });
99
+ viewer.updateDisplay();
101
100
  });
101
+ // });
102
102
  tag_load = false;
103
103
  }
104
104
  }
@@ -4,13 +4,13 @@
4
4
  <meta charset="utf-8" />
5
5
  <title>设置viewHouse</title>
6
6
  <!-- demo的样式 -->
7
- <link rel="stylesheet" href="../assets/demo.css" />
7
+ <link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
8
8
  <link
9
9
  rel="stylesheet"
10
10
  href="https://static.belife-bim.com/bimAir/BimAir.css"
11
11
  />
12
- <script src="https://static.graphicstone.com/vue.min.js"></script>
13
- <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>
14
14
  </head>
15
15
 
16
16
  <body>
@@ -31,9 +31,9 @@
31
31
  let options = {
32
32
  // viewerType: "model",
33
33
  elementId: "viewer",
34
- id: "6253e9d6b0545a0a6e49bf85",
35
- modelService: "http://8.134.85.254:9036/api",
36
- fileService: "http://8.134.85.254:9040/api",
34
+
35
+ modelService: "https://static.belife-bim.com/modelApi",
36
+ fileService: "https://static.belife-bim.com/fileApi",
37
37
  };
38
38
 
39
39
  let home_cameraView = {
@@ -61,11 +61,11 @@
61
61
  let viewer;
62
62
  let lightModels;
63
63
 
64
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
64
+ BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
65
65
  () => {
66
66
  viewer = new BimAir.Viewer(options);
67
67
  //viewer.isUpdateTt = true;
68
- let bangonglouModelId = "62e35430525bed6af87fb12c";
68
+ let bangonglouModelId = "645e06e3ae09ef7882f4ff37";
69
69
  viewer.loadModels([bangonglouModelId]).then((resLightModels) => {
70
70
  lightModels = resLightModels;
71
71
  viewer.camera.position = home_cameraView.position;