gs-bim-air 0.1.3-0.16 → 0.1.3-0.17

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/READMEBETA2.md CHANGED
@@ -109,7 +109,21 @@
109
109
  },
110
110
  ```
111
111
 
112
- ### 0.1.30.16
112
+ ### 0.1.30.16
113
113
 
114
114
  - 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
115
115
  - 修复碰撞卡死问题,修复碰撞跳转定位失败问题
116
+
117
+ ### 0.1.30.17
118
+
119
+ - viewer.computeObjectCollisions 改到了 viewer.panelManager.collisionPanel.computeObjectCollisions,用法如下
120
+
121
+ ```js
122
+ this.viewer.panelManager.collisionPanel
123
+ .computeObjectCollisions(segs, segs, collisionType, (total, current) => {
124
+ console.log("进度:", total, current);
125
+ })
126
+ .then((data) => {
127
+ console.log("碰撞结果:", data);
128
+ });
129
+ ```
@@ -1,69 +1,72 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>设置工具栏与按钮显示隐藏</title>
6
- <link rel="stylesheet" href="https://static.graphicstone.com/bimAir/BimAir.css" />
7
- <script src="https://static.graphicstone.com/vue.min.js"></script>
8
- <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
9
- </head>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>设置工具栏与按钮显示隐藏</title>
6
+ <link
7
+ rel="stylesheet"
8
+ href="https://static.graphicstone.com/bimAir/BimAir.css"
9
+ />
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
+ </head>
10
13
 
11
- <body>
12
- <style>
13
- body {
14
- margin: 0;
15
- padding: 0;
16
- height: 100vh;
17
- }
14
+ <body>
15
+ <style>
16
+ body {
17
+ margin: 0;
18
+ padding: 0;
19
+ height: 100vh;
20
+ }
18
21
 
19
- #app {
20
- height: 100vh;
21
- position: relative;
22
- }
23
- </style>
24
- <div id="app">
25
- <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
26
- </div>
22
+ #app {
23
+ height: 100vh;
24
+ position: relative;
25
+ }
26
+ </style>
27
+ <div id="app">
28
+ <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
29
+ </div>
27
30
 
28
- <script type="text/javascript">
29
- new Vue({
30
- el: "#app",
31
- });
31
+ <script type="text/javascript">
32
+ new Vue({
33
+ el: "#app",
34
+ });
32
35
 
33
- let options = {
34
- elementId: "viewer",
35
- modelService: "https://static.graphicstone.com/modelApi",
36
- fileService: "https://static.graphicstone.com/fileApi",
37
- background: "linear-gradient(#e3fcfc, #f6ffff)",
38
- toolbarVisible: {
39
- leftToolbar: false, //左边工具栏
40
- rightToolbar: true, //右边工具栏
41
- bottomToolbar: true, //底部工具栏
42
- structureTree: true, //左边结构树按钮
43
- property: true, //底部属性按钮
44
- viewPoint: true, //底部视点按钮
45
- measure: true, //底部测量按钮
46
- comment: true, //底部批注按钮
47
- label: true, //底部标签按钮
48
- cut: true, //底部按钮
49
- explosion: true, //底部全局爆炸按钮
50
- proExplosion: true, //底部专业按钮
51
- roam: true, //底部漫游按钮
52
- style: true, //底部样式按钮
53
- crash: true, //底部碰撞按钮
54
- floorPlan: true, //底部楼层平面按钮
55
- twoDDrawing: true, //底部二维图纸按钮
56
- snapshoot: true, //底部快照按钮
57
- setting: true, //底部设置按钮
58
- },
59
- };
36
+ let options = {
37
+ elementId: "viewer",
38
+ modelService: "https://static.graphicstone.com/modelApi",
39
+ fileService: "https://static.graphicstone.com/fileApi",
40
+ background: "linear-gradient(#e3fcfc, #f6ffff)",
41
+ toolbarVisible: {
42
+ leftToolbar: false, //左边工具栏
43
+ rightToolbar: true, //右边工具栏
44
+ bottomToolbar: true, //底部工具栏
45
+ structureTree: true, //左边结构树按钮
46
+ property: true, //底部属性按钮
47
+ viewPoint: true, //底部视点按钮
48
+ measure: true, //底部测量按钮
49
+ comment: true, //底部批注按钮
50
+ label: true, //底部标签按钮
51
+ cut: true, //底部按钮
52
+ explosion: true, //底部全局爆炸按钮
53
+ proExplosion: true, //底部专业按钮
54
+ roam: true, //底部漫游按钮
55
+ style: true, //底部样式按钮
56
+ collision: true, //底部碰撞按钮
57
+ floorPlan: true, //底部楼层平面按钮
58
+ twoDDrawing: true, //底部二维图纸按钮
59
+ snapshoot: true, //底部快照按钮
60
+ setting: true, //底部设置按钮
61
+ },
62
+ };
60
63
 
61
- BimAir.Loader({
62
- url: "https://static.graphicstone.com/bimAir",
63
- }).then(() => {
64
- let viewer = new BimAir.Viewer(options);
65
- viewer.loadModels(["626b4d1ebfe39e58ae7b66a2"]).then(() => {});
66
- });
67
- </script>
68
- </body>
64
+ BimAir.Loader({
65
+ url: "https://static.graphicstone.com/bimAir",
66
+ }).then(() => {
67
+ let viewer = new BimAir.Viewer(options);
68
+ viewer.loadModels(["626b4d1ebfe39e58ae7b66a2"]).then(() => {});
69
+ });
70
+ </script>
71
+ </body>
69
72
  </html>
@@ -16,7 +16,7 @@
16
16
 
17
17
  ### Accessors
18
18
 
19
- - [crashPanel](PanelManager.md#crashpanel)
19
+ - [collisionPanel](PanelManager.md#collisionpanel)
20
20
  - [drawingPanel](PanelManager.md#drawingpanel)
21
21
  - [propertyPanel](PanelManager.md#propertypanel)
22
22
  - [snapshoot](PanelManager.md#snapshoot)
@@ -43,9 +43,9 @@ ViewerManagerBase.constructor
43
43
 
44
44
  ## Accessors
45
45
 
46
- ### crashPanel
46
+ ### collisionPanel
47
47
 
48
- • `get` **crashPanel**(): `default`
48
+ • `get` **collisionPanel**(): `default`
49
49
 
50
50
  #### Returns
51
51
 
@@ -1996,12 +1996,12 @@ ___
1996
1996
 
1997
1997
  #### Parameters
1998
1998
 
1999
- | Name | Type |
2000
- | :------ | :------ |
2001
- | `one` | `Segment` |
2002
- | `two` | `Segment` |
2003
- | `type` | `CollisionType` |
2004
- | `softDiatance?` | `number` |
1999
+ | Name | Type | Description |
2000
+ | :------ | :------ | :------ |
2001
+ | `one` | `Segment` | 碰撞的一个Segment |
2002
+ | `two` | `Segment` | 碰撞的另一个Segment |
2003
+ | `type` | `CollisionType` | 碰撞类型 |
2004
+ | `softDiatance?` | `number` | 软碰撞距离 |
2005
2005
 
2006
2006
  #### Returns
2007
2007
 
@@ -7,8 +7,8 @@
7
7
  ### Properties
8
8
 
9
9
  - [bottomToolbar](ToolbarVisible.md#bottomtoolbar)
10
+ - [collision](ToolbarVisible.md#collision)
10
11
  - [comment](ToolbarVisible.md#comment)
11
- - [crash](ToolbarVisible.md#crash)
12
12
  - [cut](ToolbarVisible.md#cut)
13
13
  - [explosion](ToolbarVisible.md#explosion)
14
14
  - [floorPlan](ToolbarVisible.md#floorplan)
@@ -36,15 +36,15 @@
36
36
 
37
37
  ___
38
38
 
39
- ### comment
39
+ ### collision
40
40
 
41
- • `Optional` **comment**: `boolean`
41
+ • `Optional` **collision**: `boolean`
42
42
 
43
43
  ___
44
44
 
45
- ### crash
45
+ ### comment
46
46
 
47
- • `Optional` **crash**: `boolean`
47
+ • `Optional` **comment**: `boolean`
48
48
 
49
49
  ___
50
50
 
@@ -21,7 +21,7 @@ let options = {
21
21
  proExplosion: true, //底部专业按钮
22
22
  roam: true, //底部漫游按钮
23
23
  style: true, //底部样式按钮
24
- crash: true, //底部碰撞按钮
24
+ collision: true, //底部碰撞按钮
25
25
  floorPlan: true, //底部楼层平面按钮
26
26
  twoDDrawing: true, //底部二维图纸按钮
27
27
  snapshoot: true, //底部快照按钮