gs-bim-air 0.1.3-0.15 → 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 +19 -0
- 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 +64 -61
- package/docs/classes/ComponentSelector.md +7 -0
- package/docs/classes/HighlightManager.md +26 -0
- package/docs/classes/InvisibleManager.md +26 -0
- package/docs/classes/IsolationManager.md +26 -0
- package/docs/classes/PanelManager.md +3 -3
- package/docs/classes/Viewer.md +28 -8
- package/docs/interfaces/ToolbarVisible.md +5 -5
- package/docs/options/options.md +1 -1
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +124 -124
- package/lib/BimAir.css +70 -70
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +124 -124
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +124 -124
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
- package/public/js/longan/longan.js +531 -578
- package/public/js/longan/longan.wasm +0 -0
- package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
- package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
package/READMEBETA2.md
CHANGED
|
@@ -108,3 +108,22 @@
|
|
|
108
108
|
],
|
|
109
109
|
},
|
|
110
110
|
```
|
|
111
|
+
|
|
112
|
+
### 0.1.30.16
|
|
113
|
+
|
|
114
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
<body>
|
|
15
|
+
<style>
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
<script type="text/javascript">
|
|
32
|
+
new Vue({
|
|
33
|
+
el: "#app",
|
|
34
|
+
});
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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>
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
### Properties
|
|
18
18
|
|
|
19
19
|
- [downPos](ComponentSelector.md#downpos)
|
|
20
|
+
- [isSelectNotComponent](ComponentSelector.md#isselectnotcomponent)
|
|
20
21
|
- [keyDown](ComponentSelector.md#keydown)
|
|
21
22
|
- [keyPress](ComponentSelector.md#keypress)
|
|
22
23
|
- [keyUp](ComponentSelector.md#keyup)
|
|
@@ -107,6 +108,12 @@ Longan.ObjectSelector.downPos
|
|
|
107
108
|
|
|
108
109
|
___
|
|
109
110
|
|
|
111
|
+
### isSelectNotComponent
|
|
112
|
+
|
|
113
|
+
• **isSelectNotComponent**: `boolean` = `true`
|
|
114
|
+
|
|
115
|
+
___
|
|
116
|
+
|
|
110
117
|
### keyDown
|
|
111
118
|
|
|
112
119
|
• **keyDown**: `List`<(`sender`: `ViewerOperator`, `event`: `ViewerEvent`) => `void`\>
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
- [highlightDatas](HighlightManager.md#highlightdatas)
|
|
25
25
|
- [material](HighlightManager.md#material)
|
|
26
|
+
- [segmentObject](HighlightManager.md#segmentobject)
|
|
27
|
+
- [segmentObjects](HighlightManager.md#segmentobjects)
|
|
26
28
|
- [viewer](HighlightManager.md#viewer)
|
|
27
29
|
|
|
28
30
|
### Methods
|
|
@@ -97,6 +99,30 @@ ___
|
|
|
97
99
|
|
|
98
100
|
___
|
|
99
101
|
|
|
102
|
+
### segmentObject
|
|
103
|
+
|
|
104
|
+
• `get` **segmentObject**(): [`SegmentObject`](SegmentObject.md)
|
|
105
|
+
|
|
106
|
+
获取当前高亮的一个节点
|
|
107
|
+
|
|
108
|
+
#### Returns
|
|
109
|
+
|
|
110
|
+
[`SegmentObject`](SegmentObject.md)
|
|
111
|
+
|
|
112
|
+
___
|
|
113
|
+
|
|
114
|
+
### segmentObjects
|
|
115
|
+
|
|
116
|
+
• `get` **segmentObjects**(): [`SegmentObject`](SegmentObject.md)[]
|
|
117
|
+
|
|
118
|
+
获取当前高亮的全部节点
|
|
119
|
+
|
|
120
|
+
#### Returns
|
|
121
|
+
|
|
122
|
+
[`SegmentObject`](SegmentObject.md)[]
|
|
123
|
+
|
|
124
|
+
___
|
|
125
|
+
|
|
100
126
|
### viewer
|
|
101
127
|
|
|
102
128
|
• `get` **viewer**(): [`Viewer`](Viewer.md)
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
- [invisibleDatas](InvisibleManager.md#invisibledatas)
|
|
25
25
|
- [invisibleStyleSegment](InvisibleManager.md#invisiblestylesegment)
|
|
26
26
|
- [material](InvisibleManager.md#material)
|
|
27
|
+
- [segmentObject](InvisibleManager.md#segmentobject)
|
|
28
|
+
- [segmentObjects](InvisibleManager.md#segmentobjects)
|
|
27
29
|
- [viewer](InvisibleManager.md#viewer)
|
|
28
30
|
|
|
29
31
|
### Methods
|
|
@@ -113,6 +115,30 @@ ___
|
|
|
113
115
|
|
|
114
116
|
___
|
|
115
117
|
|
|
118
|
+
### segmentObject
|
|
119
|
+
|
|
120
|
+
• `get` **segmentObject**(): [`SegmentObject`](SegmentObject.md)
|
|
121
|
+
|
|
122
|
+
获取当前隐藏的一个节点
|
|
123
|
+
|
|
124
|
+
#### Returns
|
|
125
|
+
|
|
126
|
+
[`SegmentObject`](SegmentObject.md)
|
|
127
|
+
|
|
128
|
+
___
|
|
129
|
+
|
|
130
|
+
### segmentObjects
|
|
131
|
+
|
|
132
|
+
• `get` **segmentObjects**(): [`SegmentObject`](SegmentObject.md)[]
|
|
133
|
+
|
|
134
|
+
获取当前隐藏的全部节点
|
|
135
|
+
|
|
136
|
+
#### Returns
|
|
137
|
+
|
|
138
|
+
[`SegmentObject`](SegmentObject.md)[]
|
|
139
|
+
|
|
140
|
+
___
|
|
141
|
+
|
|
116
142
|
### viewer
|
|
117
143
|
|
|
118
144
|
• `get` **viewer**(): [`Viewer`](Viewer.md)
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
- [isolationDatas](IsolationManager.md#isolationdatas)
|
|
25
25
|
- [isolationStyleSegment](IsolationManager.md#isolationstylesegment)
|
|
26
26
|
- [material](IsolationManager.md#material)
|
|
27
|
+
- [segmentObject](IsolationManager.md#segmentobject)
|
|
28
|
+
- [segmentObjects](IsolationManager.md#segmentobjects)
|
|
27
29
|
- [viewer](IsolationManager.md#viewer)
|
|
28
30
|
|
|
29
31
|
### Methods
|
|
@@ -113,6 +115,30 @@ ___
|
|
|
113
115
|
|
|
114
116
|
___
|
|
115
117
|
|
|
118
|
+
### segmentObject
|
|
119
|
+
|
|
120
|
+
• `get` **segmentObject**(): [`SegmentObject`](SegmentObject.md)
|
|
121
|
+
|
|
122
|
+
获取当前隔离的一个节点
|
|
123
|
+
|
|
124
|
+
#### Returns
|
|
125
|
+
|
|
126
|
+
[`SegmentObject`](SegmentObject.md)
|
|
127
|
+
|
|
128
|
+
___
|
|
129
|
+
|
|
130
|
+
### segmentObjects
|
|
131
|
+
|
|
132
|
+
• `get` **segmentObjects**(): [`SegmentObject`](SegmentObject.md)[]
|
|
133
|
+
|
|
134
|
+
获取当前隔离的全部节点
|
|
135
|
+
|
|
136
|
+
#### Returns
|
|
137
|
+
|
|
138
|
+
[`SegmentObject`](SegmentObject.md)[]
|
|
139
|
+
|
|
140
|
+
___
|
|
141
|
+
|
|
116
142
|
### viewer
|
|
117
143
|
|
|
118
144
|
• `get` **viewer**(): [`Viewer`](Viewer.md)
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
### Accessors
|
|
18
18
|
|
|
19
|
-
- [
|
|
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
|
-
###
|
|
46
|
+
### collisionPanel
|
|
47
47
|
|
|
48
|
-
• `get` **
|
|
48
|
+
• `get` **collisionPanel**(): `default`
|
|
49
49
|
|
|
50
50
|
#### Returns
|
|
51
51
|
|
package/docs/classes/Viewer.md
CHANGED
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
- [computeRayTest](Viewer.md#computeraytest)
|
|
145
145
|
- [computeViewBoundingBox](Viewer.md#computeviewboundingbox)
|
|
146
146
|
- [computeViewBoundingBoxByKey](Viewer.md#computeviewboundingboxbykey)
|
|
147
|
+
- [computeViewBoundingBoxes](Viewer.md#computeviewboundingboxes)
|
|
147
148
|
- [convertCoordinate](Viewer.md#convertcoordinate)
|
|
148
149
|
- [convertDCoordinate](Viewer.md#convertdcoordinate)
|
|
149
150
|
- [dispose](Viewer.md#dispose)
|
|
@@ -1867,7 +1868,7 @@ ___
|
|
|
1867
1868
|
|
|
1868
1869
|
### asynBatchSetSegmentsDataFromCache
|
|
1869
1870
|
|
|
1870
|
-
▸ **asynBatchSetSegmentsDataFromCache**(`segKey`, `bytes
|
|
1871
|
+
▸ **asynBatchSetSegmentsDataFromCache**(`segKey`, `bytes`): `void`
|
|
1871
1872
|
|
|
1872
1873
|
#### Parameters
|
|
1873
1874
|
|
|
@@ -1875,7 +1876,6 @@ ___
|
|
|
1875
1876
|
| :------ | :------ |
|
|
1876
1877
|
| `segKey` | `any` |
|
|
1877
1878
|
| `bytes` | `any` |
|
|
1878
|
-
| `isUpdateGeometries` | `boolean` |
|
|
1879
1879
|
|
|
1880
1880
|
#### Returns
|
|
1881
1881
|
|
|
@@ -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
|
|
|
@@ -2110,6 +2110,26 @@ LonganViewer.computeViewBoundingBoxByKey
|
|
|
2110
2110
|
|
|
2111
2111
|
___
|
|
2112
2112
|
|
|
2113
|
+
### computeViewBoundingBoxes
|
|
2114
|
+
|
|
2115
|
+
▸ **computeViewBoundingBoxes**(`segments`): `any`
|
|
2116
|
+
|
|
2117
|
+
#### Parameters
|
|
2118
|
+
|
|
2119
|
+
| Name | Type |
|
|
2120
|
+
| :------ | :------ |
|
|
2121
|
+
| `segments` | `Segment`[] |
|
|
2122
|
+
|
|
2123
|
+
#### Returns
|
|
2124
|
+
|
|
2125
|
+
`any`
|
|
2126
|
+
|
|
2127
|
+
#### Inherited from
|
|
2128
|
+
|
|
2129
|
+
LonganViewer.computeViewBoundingBoxes
|
|
2130
|
+
|
|
2131
|
+
___
|
|
2132
|
+
|
|
2113
2133
|
### convertCoordinate
|
|
2114
2134
|
|
|
2115
2135
|
▸ **convertCoordinate**(`in_coords`, `out_coords`, `in_pos`): `Float32Array`
|
|
@@ -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
|
-
###
|
|
39
|
+
### collision
|
|
40
40
|
|
|
41
|
-
• `Optional` **
|
|
41
|
+
• `Optional` **collision**: `boolean`
|
|
42
42
|
|
|
43
43
|
___
|
|
44
44
|
|
|
45
|
-
###
|
|
45
|
+
### comment
|
|
46
46
|
|
|
47
|
-
• `Optional` **
|
|
47
|
+
• `Optional` **comment**: `boolean`
|
|
48
48
|
|
|
49
49
|
___
|
|
50
50
|
|
package/docs/options/options.md
CHANGED