gs-bim-air 0.0.24 → 0.0.25
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 +8 -2
- package/docs/README.md +2 -1
- package/docs/classes/ComponentSelector.md +105 -0
- package/docs/classes/Material.md +66 -0
- package/docs/classes/Viewer.md +0 -11
- package/docs/interfaces/Options.md +14 -3
- package/docs.zip +0 -0
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +206 -165
- package/lib/BimAir.css +837 -837
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +206 -165
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +206 -165
- package/package.json +1 -1
- package/public/js/fonts//345/276/256/350/275/257/351/233/205/351/273/221.ttf +0 -0
- package/public/js/longan/longan.js +91 -17
- package/public/js/longan/longan.wasm +0 -0
- package/public/js/longanWithoutShareArrayBuffer/longan.js +109 -13
- package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
- package/types/index.d.ts +292 -158
- package/types/index.d.ts.map +1 -1
- package/api/longanModelApi.ts +0 -24
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## 更新日志
|
|
2
|
-
|
|
2
|
+
### 0.0.26
|
|
3
|
+
- 重构renderObject树的结构,更新此版本需同步更新后台
|
|
4
|
+
- 更新public/js里的内核文件,安装此版本需替换js文件夹
|
|
5
|
+
-
|
|
6
|
+
### 0.0.25
|
|
7
|
+
- 重构renderObject树的结构,更新此版本需同步更新后台
|
|
8
|
+
|
|
3
9
|
### 0.0.24
|
|
4
10
|
- 修复Longan.JS_Open_Segment_By_Key不存在问题
|
|
5
11
|
|
|
@@ -15,7 +21,7 @@
|
|
|
15
21
|
- 修复了树节点构件ID为空的BUG
|
|
16
22
|
|
|
17
23
|
### 0.0.21
|
|
18
|
-
- 更新
|
|
24
|
+
- 更新noShareArrayBuffer的内核
|
|
19
25
|
### 0.0.20
|
|
20
26
|
- 修复设置全部构件颜色BUG
|
|
21
27
|
|
package/docs/README.md
CHANGED
|
@@ -67,7 +67,8 @@ gs-bim-air
|
|
|
67
67
|
| Name | Type |
|
|
68
68
|
| :------ | :------ |
|
|
69
69
|
| `config` | `Object` |
|
|
70
|
-
| `config.
|
|
70
|
+
| `config.isInitDataBase?` | `boolean` |
|
|
71
|
+
| `config.isShareArrayBuffer?` | `boolean` |
|
|
71
72
|
| `config.url?` | `string` |
|
|
72
73
|
|
|
73
74
|
#### Returns
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
### Accessors
|
|
46
46
|
|
|
47
47
|
- [clickPos](ComponentSelector.md#clickpos)
|
|
48
|
+
- [edgeSelection](ComponentSelector.md#edgeselection)
|
|
49
|
+
- [faceSelection](ComponentSelector.md#faceselection)
|
|
48
50
|
- [isAreaSelect](ComponentSelector.md#isareaselect)
|
|
51
|
+
- [vertexSelection](ComponentSelector.md#vertexselection)
|
|
49
52
|
- [viewer](ComponentSelector.md#viewer)
|
|
50
53
|
|
|
51
54
|
### Methods
|
|
@@ -368,6 +371,74 @@ Longan.ObjectSelector.clickPos
|
|
|
368
371
|
|
|
369
372
|
___
|
|
370
373
|
|
|
374
|
+
### edgeSelection
|
|
375
|
+
|
|
376
|
+
• `get` **edgeSelection**(): `boolean`
|
|
377
|
+
|
|
378
|
+
获取顶点可选性
|
|
379
|
+
|
|
380
|
+
#### Returns
|
|
381
|
+
|
|
382
|
+
`boolean`
|
|
383
|
+
|
|
384
|
+
#### Inherited from
|
|
385
|
+
|
|
386
|
+
Longan.ObjectSelector.edgeSelection
|
|
387
|
+
|
|
388
|
+
• `set` **edgeSelection**(`onoff`): `void`
|
|
389
|
+
|
|
390
|
+
设置边可选性
|
|
391
|
+
|
|
392
|
+
#### Parameters
|
|
393
|
+
|
|
394
|
+
| Name | Type |
|
|
395
|
+
| :------ | :------ |
|
|
396
|
+
| `onoff` | `boolean` |
|
|
397
|
+
|
|
398
|
+
#### Returns
|
|
399
|
+
|
|
400
|
+
`void`
|
|
401
|
+
|
|
402
|
+
#### Inherited from
|
|
403
|
+
|
|
404
|
+
Longan.ObjectSelector.edgeSelection
|
|
405
|
+
|
|
406
|
+
___
|
|
407
|
+
|
|
408
|
+
### faceSelection
|
|
409
|
+
|
|
410
|
+
• `get` **faceSelection**(): `boolean`
|
|
411
|
+
|
|
412
|
+
获取面可选性
|
|
413
|
+
|
|
414
|
+
#### Returns
|
|
415
|
+
|
|
416
|
+
`boolean`
|
|
417
|
+
|
|
418
|
+
#### Inherited from
|
|
419
|
+
|
|
420
|
+
Longan.ObjectSelector.faceSelection
|
|
421
|
+
|
|
422
|
+
• `set` **faceSelection**(`onoff`): `void`
|
|
423
|
+
|
|
424
|
+
设置面可选性
|
|
425
|
+
|
|
426
|
+
#### Parameters
|
|
427
|
+
|
|
428
|
+
| Name | Type |
|
|
429
|
+
| :------ | :------ |
|
|
430
|
+
| `onoff` | `boolean` |
|
|
431
|
+
|
|
432
|
+
#### Returns
|
|
433
|
+
|
|
434
|
+
`void`
|
|
435
|
+
|
|
436
|
+
#### Inherited from
|
|
437
|
+
|
|
438
|
+
Longan.ObjectSelector.faceSelection
|
|
439
|
+
|
|
440
|
+
___
|
|
441
|
+
|
|
371
442
|
### isAreaSelect
|
|
372
443
|
|
|
373
444
|
• `get` **isAreaSelect**(): `boolean`
|
|
@@ -398,6 +469,40 @@ Longan.ObjectSelector.isAreaSelect
|
|
|
398
469
|
|
|
399
470
|
___
|
|
400
471
|
|
|
472
|
+
### vertexSelection
|
|
473
|
+
|
|
474
|
+
• `get` **vertexSelection**(): `boolean`
|
|
475
|
+
|
|
476
|
+
获取顶点可选性
|
|
477
|
+
|
|
478
|
+
#### Returns
|
|
479
|
+
|
|
480
|
+
`boolean`
|
|
481
|
+
|
|
482
|
+
#### Inherited from
|
|
483
|
+
|
|
484
|
+
Longan.ObjectSelector.vertexSelection
|
|
485
|
+
|
|
486
|
+
• `set` **vertexSelection**(`onoff`): `void`
|
|
487
|
+
|
|
488
|
+
设置顶点可选性
|
|
489
|
+
|
|
490
|
+
#### Parameters
|
|
491
|
+
|
|
492
|
+
| Name | Type |
|
|
493
|
+
| :------ | :------ |
|
|
494
|
+
| `onoff` | `boolean` |
|
|
495
|
+
|
|
496
|
+
#### Returns
|
|
497
|
+
|
|
498
|
+
`void`
|
|
499
|
+
|
|
500
|
+
#### Inherited from
|
|
501
|
+
|
|
502
|
+
Longan.ObjectSelector.vertexSelection
|
|
503
|
+
|
|
504
|
+
___
|
|
505
|
+
|
|
401
506
|
### viewer
|
|
402
507
|
|
|
403
508
|
• `get` **viewer**(): [`Viewer`](Viewer.md)
|
package/docs/classes/Material.md
CHANGED
|
@@ -10,16 +10,20 @@
|
|
|
10
10
|
|
|
11
11
|
### Accessors
|
|
12
12
|
|
|
13
|
+
- [doubleSide](Material.md#doubleside)
|
|
13
14
|
- [styleSegment](Material.md#stylesegment)
|
|
14
15
|
|
|
15
16
|
### Methods
|
|
16
17
|
|
|
17
18
|
- [equals](Material.md#equals)
|
|
18
19
|
- [setColor](Material.md#setcolor)
|
|
20
|
+
- [setEmissive](Material.md#setemissive)
|
|
19
21
|
- [setFloat](Material.md#setfloat)
|
|
20
22
|
- [setImage](Material.md#setimage)
|
|
23
|
+
- [setImageData](Material.md#setimagedata)
|
|
21
24
|
- [setTransparency](Material.md#settransparency)
|
|
22
25
|
- [unsetColor](Material.md#unsetcolor)
|
|
26
|
+
- [unsetEmissive](Material.md#unsetemissive)
|
|
23
27
|
- [unsetFloat](Material.md#unsetfloat)
|
|
24
28
|
- [unsetImage](Material.md#unsetimage)
|
|
25
29
|
- [unsetTransparency](Material.md#unsettransparency)
|
|
@@ -40,6 +44,22 @@
|
|
|
40
44
|
|
|
41
45
|
## Accessors
|
|
42
46
|
|
|
47
|
+
### doubleSide
|
|
48
|
+
|
|
49
|
+
• `set` **doubleSide**(`value`): `void`
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
| Name | Type |
|
|
54
|
+
| :------ | :------ |
|
|
55
|
+
| `value` | `boolean` |
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
`void`
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
43
63
|
### styleSegment
|
|
44
64
|
|
|
45
65
|
• `get` **styleSegment**(): `Segment`
|
|
@@ -97,6 +117,25 @@ ___
|
|
|
97
117
|
|
|
98
118
|
___
|
|
99
119
|
|
|
120
|
+
### setEmissive
|
|
121
|
+
|
|
122
|
+
▸ **setEmissive**(`r`, `g`, `b`, `a`): `void`
|
|
123
|
+
|
|
124
|
+
#### Parameters
|
|
125
|
+
|
|
126
|
+
| Name | Type |
|
|
127
|
+
| :------ | :------ |
|
|
128
|
+
| `r` | `number` |
|
|
129
|
+
| `g` | `number` |
|
|
130
|
+
| `b` | `number` |
|
|
131
|
+
| `a` | `number` |
|
|
132
|
+
|
|
133
|
+
#### Returns
|
|
134
|
+
|
|
135
|
+
`void`
|
|
136
|
+
|
|
137
|
+
___
|
|
138
|
+
|
|
100
139
|
### setFloat
|
|
101
140
|
|
|
102
141
|
▸ **setFloat**(): `void`
|
|
@@ -129,6 +168,23 @@ ___
|
|
|
129
168
|
|
|
130
169
|
___
|
|
131
170
|
|
|
171
|
+
### setImageData
|
|
172
|
+
|
|
173
|
+
▸ **setImageData**(`imageName`, `imageData`): `void`
|
|
174
|
+
|
|
175
|
+
#### Parameters
|
|
176
|
+
|
|
177
|
+
| Name | Type |
|
|
178
|
+
| :------ | :------ |
|
|
179
|
+
| `imageName` | `string` |
|
|
180
|
+
| `imageData` | `ImageData` |
|
|
181
|
+
|
|
182
|
+
#### Returns
|
|
183
|
+
|
|
184
|
+
`void`
|
|
185
|
+
|
|
186
|
+
___
|
|
187
|
+
|
|
132
188
|
### setTransparency
|
|
133
189
|
|
|
134
190
|
▸ **setTransparency**(`transparency`): `void`
|
|
@@ -155,6 +211,16 @@ ___
|
|
|
155
211
|
|
|
156
212
|
___
|
|
157
213
|
|
|
214
|
+
### unsetEmissive
|
|
215
|
+
|
|
216
|
+
▸ **unsetEmissive**(): `void`
|
|
217
|
+
|
|
218
|
+
#### Returns
|
|
219
|
+
|
|
220
|
+
`void`
|
|
221
|
+
|
|
222
|
+
___
|
|
223
|
+
|
|
158
224
|
### unsetFloat
|
|
159
225
|
|
|
160
226
|
▸ **unsetFloat**(): `void`
|
package/docs/classes/Viewer.md
CHANGED
|
@@ -157,7 +157,6 @@
|
|
|
157
157
|
- [pixelPointToWorldPoint](Viewer.md#pixelpointtoworldpoint)
|
|
158
158
|
- [rebind](Viewer.md#rebind)
|
|
159
159
|
- [reset](Viewer.md#reset)
|
|
160
|
-
- [save](Viewer.md#save)
|
|
161
160
|
- [selectByArea](Viewer.md#selectbyarea)
|
|
162
161
|
- [selectByPoint](Viewer.md#selectbypoint)
|
|
163
162
|
- [selectPositionByPoint](Viewer.md#selectpositionbypoint)
|
|
@@ -2266,16 +2265,6 @@ Longan.Viewer.reset
|
|
|
2266
2265
|
|
|
2267
2266
|
___
|
|
2268
2267
|
|
|
2269
|
-
### save
|
|
2270
|
-
|
|
2271
|
-
▸ **save**(): `Promise`<`any`\>
|
|
2272
|
-
|
|
2273
|
-
#### Returns
|
|
2274
|
-
|
|
2275
|
-
`Promise`<`any`\>
|
|
2276
|
-
|
|
2277
|
-
___
|
|
2278
|
-
|
|
2279
2268
|
### selectByArea
|
|
2280
2269
|
|
|
2281
2270
|
▸ **selectByArea**(`winArea`, `type`): `List`<`SelectionKey`\>
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
- [components](Options.md#components)
|
|
11
11
|
- [elementId](Options.md#elementid)
|
|
12
12
|
- [fileService](Options.md#fileservice)
|
|
13
|
-
- [
|
|
13
|
+
- [fonts](Options.md#fonts)
|
|
14
14
|
- [isShowLoading](Options.md#isshowloading)
|
|
15
15
|
- [loaderUrl](Options.md#loaderurl)
|
|
16
16
|
- [modelService](Options.md#modelservice)
|
|
17
|
+
- [tag](Options.md#tag)
|
|
17
18
|
- [toolbarVisible](Options.md#toolbarvisible)
|
|
18
19
|
- [version](Options.md#version)
|
|
19
20
|
- [viewerConfig](Options.md#viewerconfig)
|
|
@@ -39,6 +40,10 @@ ___
|
|
|
39
40
|
| `compass?` | { `position?`: {} ; `visible`: `boolean` } |
|
|
40
41
|
| `compass.position?` | {} |
|
|
41
42
|
| `compass.visible` | `boolean` |
|
|
43
|
+
| `contextMenu?` | { `buttons?`: `ButtonConfig`[] ; `selectedButtons?`: `ButtonConfig`[] ; `visible?`: `boolean` } |
|
|
44
|
+
| `contextMenu.buttons?` | `ButtonConfig`[] |
|
|
45
|
+
| `contextMenu.selectedButtons?` | `ButtonConfig`[] |
|
|
46
|
+
| `contextMenu.visible?` | `boolean` |
|
|
42
47
|
| `property?` | { `tabs?`: { `component`: `any` ; `name`: `string` }[] } |
|
|
43
48
|
| `property.tabs?` | { `component`: `any` ; `name`: `string` }[] |
|
|
44
49
|
| `structureTree?` | { `tabs?`: { `component`: `any` ; `name`: `string` }[] ; `clickFun?`: (`data`: [`TreeNodeObject`](../classes/TreeNodeObject.md)) => `void` } |
|
|
@@ -59,9 +64,9 @@ ___
|
|
|
59
64
|
|
|
60
65
|
___
|
|
61
66
|
|
|
62
|
-
###
|
|
67
|
+
### fonts
|
|
63
68
|
|
|
64
|
-
• `Optional` **
|
|
69
|
+
• `Optional` **fonts**: `string`[]
|
|
65
70
|
|
|
66
71
|
___
|
|
67
72
|
|
|
@@ -83,6 +88,12 @@ ___
|
|
|
83
88
|
|
|
84
89
|
___
|
|
85
90
|
|
|
91
|
+
### tag
|
|
92
|
+
|
|
93
|
+
• `Optional` **tag**: `string`
|
|
94
|
+
|
|
95
|
+
___
|
|
96
|
+
|
|
86
97
|
### toolbarVisible
|
|
87
98
|
|
|
88
99
|
• `Optional` **toolbarVisible**: [`ToolbarVisible`](ToolbarVisible.md)
|
package/docs.zip
ADDED
|
Binary file
|