## 環境配置
```
{
/*...*/
'environ': {
'use_label' : true,
'use_infobox' : true,
'use_icon' : true,
'use_2Dscale' : 1,
'use_stats' : 1,
'use_axis_helper': 1,
'animate_coef' : 1,
'group_navbar': {
'in_use': false,
'category': [
{
'id': 'test',
'label': '測試',
'active': 1,
'row': 1,
},
],
'style': 'top:15px; right:15px;',
},
'fog': {
'in_use': false,
'color': '#777777',
'min': 0,
'max': 2000,
},
},
/*...*/
}
```
| 參數 | 說明 |
| --- | --- |
| use_label | 全局性開啟物體的 **Label** 功能<br />格式范圍:`Boolean`<br />默認值:`true` |
| use_infobox | 全局性開啟物體的 **Infobox** 功能<br />格式范圍:`Boolean`<br />默認值:`true` |
| use_icon | 全局性開啟物體的 **Icon** 功能<br />格式范圍:`Boolean`<br />默認值:`true` |
| use_stats | 顯示性能狀態框<br />格式范圍:`Boolean`<br />默認值:`true` |
| use_axis_helper | 在原點位置標注坐標軸<br />格式范圍:`Boolean`<br />默認值:`true` |
| use_2Dscale | 對于2D元素,同樣按照遠近距離進行縮放<br />格式范圍:`Boolean`<br />默認值:`true` |
| animate_coef | 動畫速率,此值會與所有物體動畫的速率進行乘積后作為最終動畫的速率,如設為0則代表全局無動畫<br />格式范圍:`Number` , 0 ~ 99<br />默認值:`1` |
| fog.in_use | 迷霧效果是否開啟<br />格式范圍:`Boolean`<br />默認值:`false` |
| fog.color | 迷霧顏色<br />格式范圍:`String`<br />默認值:`'#222222'` |
| fog.min | 迷霧近景,小于近景的部分會被遮蓋<br />格式范圍:`Number`<br />默認值:`0` |
| fog.max | 迷霧遠景,大于遠景的部分會被遮蓋<br />格式范圍:`Number`<br />默認值:`1000` |
| group_navbar.in_use | 分組功能是否開啟<br />格式范圍:`Boolean`<br />默認值:`false` |
| group_navbar.style| 分組所屬Div的樣式,一般用于位置固定<br />格式范圍:`String`<br />默認值:`'top:15px; right:15px;'` |
| group_navbar.category[i].id | 分組的ID<br />格式范圍:`String` |
| group_navbar.category[i].label | 分組的顯示名稱<br />格式范圍:`String` |
| group_navbar.category[i].active | 分組是否已默認點選<br />格式范圍:`Boolean` |
| group_navbar.category[i].row | 分組在頂部導航欄中處于第幾行<br />格式范圍:`Number` |
- 序言
- 簡介
- 為何選擇
- 框架特點
- 運行性能
- 開始使用
- 目錄結構
- 運行環境
- 如何使用
- 可視化設計
- 簡介
- 如何使用
- 基礎
- 目錄結構
- 配置數據
- 結構
- global
- style_lib
- default
- emphasis
- status
- environ
- camera
- ground
- light
- ambient_light
- directional_light
- point_light
- designer_data
- 物體數據
- 結構
- 通用參數
- id
- name
- style
- advgeom
- visible
- status
- param
- property
- scale
- align
- position
- rotation
- label
- infobox
- icon
- linkline
- float
- intersect
- animate
- rotate
- shuttle
- pipeline
- flow
- route
- 多個動畫
- 基礎物體
- plane 平面
- circle 圓平面
- ring 環平面
- cube 立方體
- sphere 球體
- cylinder 圓柱體
- torus 圓環體
- tube 管道
- spline 曲面
- wall 墻體
- raise 拔高體
- tetrahedron 正四面體
- octahedron 正八面體
- icosahedron 正二十面體
- 外部三維模型
- 接口
- 開發必讀
- 物體類
- visible
- position
- scale
- rotation
- icon
- label
- infobox
- intersect
- param
- status
- animate
- list
- remove
- add
- update
- query
- 攝像機類
- get
- set
- reset
- auto_rotate
- 雜項
- 聯系