gs-bim-air 0.1.3-0.27 → 0.1.3-0.28
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 +8 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234/UV/345/212/250/347/224/273.html +71 -0
- package/docs/README.md +2 -0
- package/docs/classes/Material.md +12 -2
- package/docs/classes/PathRoam.md +9 -9
- package/docs/classes/UvEffect.md +63 -0
- package/docs/classes/UvEffectConfig.md +79 -0
- package/docs/classes/Viewer.md +31 -31
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +48 -18
- package/lib/BimAir.css +123 -123
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +48 -18
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +48 -18
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
- package/public/js/longan/longan.js +172 -168
- 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
|
@@ -199,3 +199,11 @@ viewer.panelManager.structureTree.toggleCallback = (visible) => {
|
|
|
199
199
|
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹。
|
|
200
200
|
- 修复体积测量数值不正确
|
|
201
201
|
- 修复项目碰撞部分节点未加载导致结果不一致
|
|
202
|
+
|
|
203
|
+
### 0.1.30.28
|
|
204
|
+
|
|
205
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
206
|
+
- 添加 uv 动画 demo
|
|
207
|
+
- 修复隐藏其他对象结构树勾选框不变的问题
|
|
208
|
+
- 修复结构树高亮问题
|
|
209
|
+
- 请求贴图方式从 fetch 改为 xhr
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
|
8
|
+
<title>轻量化平台</title>
|
|
9
|
+
<link
|
|
10
|
+
rel="stylesheet"
|
|
11
|
+
href="https://static.belife-bim.com/bimAir/BimAir.css"
|
|
12
|
+
/>
|
|
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
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<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
|
+
<div id="app">
|
|
31
|
+
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<script type="text/javascript">
|
|
35
|
+
new Vue({
|
|
36
|
+
el: "#app",
|
|
37
|
+
});
|
|
38
|
+
let options = {
|
|
39
|
+
// viewerType: "model",
|
|
40
|
+
elementId: "viewer",
|
|
41
|
+
|
|
42
|
+
modelService: "https://static.belife-bim.com/modelApi",
|
|
43
|
+
fileService: "https://static.belife-bim.com/fileApi",
|
|
44
|
+
background: "linear-gradient(#e3fcfc, #f6ffff)",
|
|
45
|
+
};
|
|
46
|
+
BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
|
|
47
|
+
() => {
|
|
48
|
+
let viewer = new BimAir.Viewer(options);
|
|
49
|
+
let src = "https://static.belife-bim.com/images/effect/dynamic.png";
|
|
50
|
+
|
|
51
|
+
let path = [
|
|
52
|
+
84.101, -6.97, -0, 84.43, 48.48, -0, 84.12, 109.24, -0, 18.2,
|
|
53
|
+
109.52, -0, -33.6, 109.3, -0, -36.92, -6.8, -0, 11.19, -7.56, -0,
|
|
54
|
+
75.76, -7.9, -0,
|
|
55
|
+
];
|
|
56
|
+
let uvEffectConfig = new BimAir.Animation.UvEffectConfig(
|
|
57
|
+
viewer,
|
|
58
|
+
"路径1",
|
|
59
|
+
path,
|
|
60
|
+
0.5,
|
|
61
|
+
0.5,
|
|
62
|
+
src,
|
|
63
|
+
[1,1]
|
|
64
|
+
);
|
|
65
|
+
let uvEffect = new BimAir.Animation.uvEffect(uvEffectConfig);
|
|
66
|
+
uvEffect.create();
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
</script>
|
|
70
|
+
</body>
|
|
71
|
+
</html>
|
package/docs/README.md
CHANGED
|
@@ -49,6 +49,8 @@ gs-bim-air
|
|
|
49
49
|
- [StructureTreeManager](classes/StructureTreeManager.md)
|
|
50
50
|
- [StyleManagerBase](classes/StyleManagerBase.md)
|
|
51
51
|
- [TreeNodeObject](classes/TreeNodeObject.md)
|
|
52
|
+
- [UvEffect](classes/UvEffect.md)
|
|
53
|
+
- [UvEffectConfig](classes/UvEffectConfig.md)
|
|
52
54
|
- [ViewPointPanel](classes/ViewPointPanel.md)
|
|
53
55
|
- [Viewer](classes/Viewer.md)
|
|
54
56
|
- [WallEffect](classes/WallEffect.md)
|
package/docs/classes/Material.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
### Accessors
|
|
12
12
|
|
|
13
|
+
- [Image](Material.md#image)
|
|
13
14
|
- [doubleSide](Material.md#doubleside)
|
|
14
15
|
- [styleSegment](Material.md#stylesegment)
|
|
15
16
|
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
|
|
35
36
|
### constructor
|
|
36
37
|
|
|
37
|
-
• **new Material**(`viewer`, `materialName`, `level
|
|
38
|
+
• **new Material**(`viewer`, `materialName`, `level?`)
|
|
38
39
|
|
|
39
40
|
#### Parameters
|
|
40
41
|
|
|
@@ -43,10 +44,19 @@
|
|
|
43
44
|
| `viewer` | [`Viewer`](Viewer.md) | `undefined` |
|
|
44
45
|
| `materialName` | `string` | `undefined` |
|
|
45
46
|
| `level` | `number` | `1` |
|
|
46
|
-
| `segment?` | `Segment` | `undefined` |
|
|
47
47
|
|
|
48
48
|
## Accessors
|
|
49
49
|
|
|
50
|
+
### Image
|
|
51
|
+
|
|
52
|
+
• `get` **Image**(): `Image`
|
|
53
|
+
|
|
54
|
+
#### Returns
|
|
55
|
+
|
|
56
|
+
`Image`
|
|
57
|
+
|
|
58
|
+
___
|
|
59
|
+
|
|
50
60
|
### doubleSide
|
|
51
61
|
|
|
52
62
|
• `set` **doubleSide**(`value`): `void`
|
package/docs/classes/PathRoam.md
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
▸ **addRoamPathAnime**(`roamTime`, `points`, `targets?`, `finishEvent?`): `string`
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
添加一段路径漫游,并返回路径漫游id.
|
|
52
52
|
|
|
53
53
|
#### Parameters
|
|
54
54
|
|
|
@@ -69,7 +69,7 @@ ___
|
|
|
69
69
|
|
|
70
70
|
▸ **existAnime**(`id`): `boolean`
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
是否存在某段路径漫游.
|
|
73
73
|
|
|
74
74
|
#### Parameters
|
|
75
75
|
|
|
@@ -104,7 +104,7 @@ ___
|
|
|
104
104
|
|
|
105
105
|
▸ **pauseAnime**(`id`): `number`
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
暂停某段路径漫游
|
|
108
108
|
|
|
109
109
|
#### Parameters
|
|
110
110
|
|
|
@@ -124,7 +124,7 @@ ___
|
|
|
124
124
|
|
|
125
125
|
▸ **removeAnime**(`id`): `void`
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
删除某段路径漫游
|
|
128
128
|
|
|
129
129
|
#### Parameters
|
|
130
130
|
|
|
@@ -142,7 +142,7 @@ ___
|
|
|
142
142
|
|
|
143
143
|
▸ **restartAnime**(`id`): `void`
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
从头播放某段路径漫游.
|
|
146
146
|
|
|
147
147
|
#### Parameters
|
|
148
148
|
|
|
@@ -160,14 +160,14 @@ ___
|
|
|
160
160
|
|
|
161
161
|
▸ **run**(`ids?`, `keepRunning?`): `void`
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
播放一个或多段路径漫游.
|
|
164
164
|
|
|
165
165
|
#### Parameters
|
|
166
166
|
|
|
167
167
|
| Name | Type | Description |
|
|
168
168
|
| :------ | :------ | :------ |
|
|
169
169
|
| `ids?` | `string`[] | 缺省/null/undefined则为播放全部. |
|
|
170
|
-
| `keepRunning?` | `boolean` | 保持不在ids
|
|
170
|
+
| `keepRunning?` | `boolean` | 保持不在ids的路径漫游继续播放 |
|
|
171
171
|
|
|
172
172
|
#### Returns
|
|
173
173
|
|
|
@@ -179,7 +179,7 @@ ___
|
|
|
179
179
|
|
|
180
180
|
▸ **stop**(): `void`
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
停止全部路径漫游播放
|
|
183
183
|
|
|
184
184
|
#### Returns
|
|
185
185
|
|
|
@@ -191,7 +191,7 @@ ___
|
|
|
191
191
|
|
|
192
192
|
▸ **stopAnime**(`id`, `resetPosition?`): `void`
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
停止一段路径漫游,且将播放进度设为0
|
|
195
195
|
|
|
196
196
|
#### Parameters
|
|
197
197
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[gs-bim-air](../README.md) / UvEffect
|
|
2
|
+
|
|
3
|
+
# Class: UvEffect
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Constructors
|
|
8
|
+
|
|
9
|
+
- [constructor](UvEffect.md#constructor)
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
- [lightModel](UvEffect.md#lightmodel)
|
|
14
|
+
- [shell](UvEffect.md#shell)
|
|
15
|
+
- [uvEffectConfig](UvEffect.md#uveffectconfig)
|
|
16
|
+
|
|
17
|
+
### Methods
|
|
18
|
+
|
|
19
|
+
- [create](UvEffect.md#create)
|
|
20
|
+
|
|
21
|
+
## Constructors
|
|
22
|
+
|
|
23
|
+
### constructor
|
|
24
|
+
|
|
25
|
+
• **new UvEffect**(`uvEffectConfig`)
|
|
26
|
+
|
|
27
|
+
路径创建类
|
|
28
|
+
|
|
29
|
+
#### Parameters
|
|
30
|
+
|
|
31
|
+
| Name | Type |
|
|
32
|
+
| :------ | :------ |
|
|
33
|
+
| `uvEffectConfig` | [`UvEffectConfig`](UvEffectConfig.md) |
|
|
34
|
+
|
|
35
|
+
## Properties
|
|
36
|
+
|
|
37
|
+
### lightModel
|
|
38
|
+
|
|
39
|
+
• **lightModel**: `LightModel`
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### shell
|
|
44
|
+
|
|
45
|
+
• **shell**: `Shell`
|
|
46
|
+
|
|
47
|
+
___
|
|
48
|
+
|
|
49
|
+
### uvEffectConfig
|
|
50
|
+
|
|
51
|
+
• **uvEffectConfig**: [`UvEffectConfig`](UvEffectConfig.md)
|
|
52
|
+
|
|
53
|
+
## Methods
|
|
54
|
+
|
|
55
|
+
### create
|
|
56
|
+
|
|
57
|
+
▸ **create**(): `Promise`<`void`\>
|
|
58
|
+
|
|
59
|
+
创建路径
|
|
60
|
+
|
|
61
|
+
#### Returns
|
|
62
|
+
|
|
63
|
+
`Promise`<`void`\>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[gs-bim-air](../README.md) / UvEffectConfig
|
|
2
|
+
|
|
3
|
+
# Class: UvEffectConfig
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Constructors
|
|
8
|
+
|
|
9
|
+
- [constructor](UvEffectConfig.md#constructor)
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
- [imageScale](UvEffectConfig.md#imagescale)
|
|
14
|
+
- [imageSrc](UvEffectConfig.md#imagesrc)
|
|
15
|
+
- [name](UvEffectConfig.md#name)
|
|
16
|
+
- [path](UvEffectConfig.md#path)
|
|
17
|
+
- [speed](UvEffectConfig.md#speed)
|
|
18
|
+
- [viewer](UvEffectConfig.md#viewer)
|
|
19
|
+
- [width](UvEffectConfig.md#width)
|
|
20
|
+
|
|
21
|
+
## Constructors
|
|
22
|
+
|
|
23
|
+
### constructor
|
|
24
|
+
|
|
25
|
+
• **new UvEffectConfig**(`viewer`, `name`, `path`, `width`, `speed`, `imageSrc`, `imageScale`)
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
| Name | Type | Description |
|
|
30
|
+
| :------ | :------ | :------ |
|
|
31
|
+
| `viewer` | [`Viewer`](Viewer.md) | 需要创建哪个视图下 |
|
|
32
|
+
| `name` | `string` | 路径名 |
|
|
33
|
+
| `path` | `number`[] | 路径点列表 |
|
|
34
|
+
| `width` | `number` | 路径宽带 |
|
|
35
|
+
| `speed` | `number` | 速度 * |
|
|
36
|
+
| `imageSrc` | `string` | - |
|
|
37
|
+
| `imageScale` | [`number`, `number`] | 贴图缩放 |
|
|
38
|
+
|
|
39
|
+
## Properties
|
|
40
|
+
|
|
41
|
+
### imageScale
|
|
42
|
+
|
|
43
|
+
• **imageScale**: [`number`, `number`]
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### imageSrc
|
|
48
|
+
|
|
49
|
+
• **imageSrc**: `string`
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### name
|
|
54
|
+
|
|
55
|
+
• **name**: `string`
|
|
56
|
+
|
|
57
|
+
___
|
|
58
|
+
|
|
59
|
+
### path
|
|
60
|
+
|
|
61
|
+
• **path**: `number`[]
|
|
62
|
+
|
|
63
|
+
___
|
|
64
|
+
|
|
65
|
+
### speed
|
|
66
|
+
|
|
67
|
+
• **speed**: `number`
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### viewer
|
|
72
|
+
|
|
73
|
+
• **viewer**: [`Viewer`](Viewer.md)
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
77
|
+
### width
|
|
78
|
+
|
|
79
|
+
• **width**: `number`
|
package/docs/classes/Viewer.md
CHANGED
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
- [animationManager](Viewer.md#animationmanager)
|
|
86
86
|
- [aspectRatio](Viewer.md#aspectratio)
|
|
87
87
|
- [backgroundColor](Viewer.md#backgroundcolor)
|
|
88
|
+
- [buttonUpIsBusy](Viewer.md#buttonupisbusy)
|
|
88
89
|
- [camera](Viewer.md#camera)
|
|
89
90
|
- [cameraOrientationFixed](Viewer.md#cameraorientationfixed)
|
|
90
91
|
- [collisionTolerance](Viewer.md#collisiontolerance)
|
|
@@ -107,7 +108,6 @@
|
|
|
107
108
|
- [modelKey](Viewer.md#modelkey)
|
|
108
109
|
- [modelSegment](Viewer.md#modelsegment)
|
|
109
110
|
- [options](Viewer.md#options)
|
|
110
|
-
- [recordIsBusy](Viewer.md#recordisbusy)
|
|
111
111
|
- [renderObject](Viewer.md#renderobject)
|
|
112
112
|
- [sceneKey](Viewer.md#scenekey)
|
|
113
113
|
- [sceneSegment](Viewer.md#scenesegment)
|
|
@@ -926,6 +926,36 @@ LonganViewer.backgroundColor
|
|
|
926
926
|
|
|
927
927
|
___
|
|
928
928
|
|
|
929
|
+
### buttonUpIsBusy
|
|
930
|
+
|
|
931
|
+
• `get` **buttonUpIsBusy**(): `boolean`
|
|
932
|
+
|
|
933
|
+
#### Returns
|
|
934
|
+
|
|
935
|
+
`boolean`
|
|
936
|
+
|
|
937
|
+
#### Inherited from
|
|
938
|
+
|
|
939
|
+
LonganViewer.buttonUpIsBusy
|
|
940
|
+
|
|
941
|
+
• `set` **buttonUpIsBusy**(`value`): `void`
|
|
942
|
+
|
|
943
|
+
#### Parameters
|
|
944
|
+
|
|
945
|
+
| Name | Type |
|
|
946
|
+
| :------ | :------ |
|
|
947
|
+
| `value` | `boolean` |
|
|
948
|
+
|
|
949
|
+
#### Returns
|
|
950
|
+
|
|
951
|
+
`void`
|
|
952
|
+
|
|
953
|
+
#### Inherited from
|
|
954
|
+
|
|
955
|
+
LonganViewer.buttonUpIsBusy
|
|
956
|
+
|
|
957
|
+
___
|
|
958
|
+
|
|
929
959
|
### camera
|
|
930
960
|
|
|
931
961
|
• `get` **camera**(): `any`
|
|
@@ -1462,36 +1492,6 @@ Viewer的配置
|
|
|
1462
1492
|
|
|
1463
1493
|
___
|
|
1464
1494
|
|
|
1465
|
-
### recordIsBusy
|
|
1466
|
-
|
|
1467
|
-
• `get` **recordIsBusy**(): `boolean`
|
|
1468
|
-
|
|
1469
|
-
#### Returns
|
|
1470
|
-
|
|
1471
|
-
`boolean`
|
|
1472
|
-
|
|
1473
|
-
#### Inherited from
|
|
1474
|
-
|
|
1475
|
-
LonganViewer.recordIsBusy
|
|
1476
|
-
|
|
1477
|
-
• `set` **recordIsBusy**(`value`): `void`
|
|
1478
|
-
|
|
1479
|
-
#### Parameters
|
|
1480
|
-
|
|
1481
|
-
| Name | Type |
|
|
1482
|
-
| :------ | :------ |
|
|
1483
|
-
| `value` | `boolean` |
|
|
1484
|
-
|
|
1485
|
-
#### Returns
|
|
1486
|
-
|
|
1487
|
-
`void`
|
|
1488
|
-
|
|
1489
|
-
#### Inherited from
|
|
1490
|
-
|
|
1491
|
-
LonganViewer.recordIsBusy
|
|
1492
|
-
|
|
1493
|
-
___
|
|
1494
|
-
|
|
1495
1495
|
### renderObject
|
|
1496
1496
|
|
|
1497
1497
|
• `get` **renderObject**(): `RenderObject`
|