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

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.
package/README.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## 更新日志
2
2
 
3
+ ### 1.6.1-beta.12
4
+
5
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
6
+ >
7
+ > Longan 更新为 v1.6.1-beta.9
8
+
9
+ - fix: 修复天空盒图片请求
10
+ - fix: 修复恢复默认设置报错问题
11
+ - fix: 取消全局设置的 axios 拦截
12
+ - fix: 修复透明闪烁问题
13
+
3
14
  ### 1.6.1-beta.11
4
15
 
5
16
  - feat: 结构树节点拖拽添加确定弹框
@@ -40,7 +40,7 @@
40
40
  BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
41
41
  () => {
42
42
  viewer = new BimAir.Viewer(options);
43
- viewer.loadModels("638dba18cc5b00101d8ebcdb");
43
+ viewer.loadModels("645c5faeae09ef7882f4cfae");
44
44
  }
45
45
  );
46
46
 
@@ -34,22 +34,32 @@
34
34
  };
35
35
 
36
36
  let viewer;
37
- let lightModel;
37
+ let lightModels;
38
38
  BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
39
39
  () => {
40
40
  viewer = new BimAir.Viewer(options);
41
- viewer.loadModels("64477eb8ae09ef7882f446d4").then((lightModels) => {
42
- lightModel = lightModels[0];
41
+ viewer.loadModels("64477eb8ae09ef7882f446d4").then((res) => {
42
+ lightModels = res;
43
43
  });
44
44
  }
45
45
  );
46
46
 
47
47
  function create() {
48
- let componentIds = ["3"];
48
+ // let componentIds = ["3"];
49
+ // let waterEffectConfig = new BimAir.Animation.WaterEffectConfig(
50
+ // viewer,
51
+ // lightModel,
52
+ // componentIds
53
+ // );
54
+ // let waterEffect = new BimAir.Animation.WaterEffect(waterEffectConfig);
55
+ // waterEffect.createPlane().then(() => {
56
+ // viewer.setViewMode(BimAir.Longan.ViewMode.Iso, true);
57
+ // });
58
+
49
59
  let waterEffectConfig = new BimAir.Animation.WaterEffectConfig(
50
60
  viewer,
51
- lightModel,
52
- componentIds
61
+ lightModels[0],
62
+ ["3"]
53
63
  );
54
64
  let waterEffect = new BimAir.Animation.WaterEffect(waterEffectConfig);
55
65
  waterEffect.createPlane().then(() => {