## 交互
```
{
'intersect': {
'in_use': false,
'click' : {
'type' : '', // url,iframe,modal,function
'param': '',
'data' : '',
},
'hover' : {
'affect': [],
'type' : '', // function
'param' : '',
'data' : '',
},
},
}
```
* 懸浮內容可以用來放置HTML內容,例如:文字、進度條、圖表等,完全自定義其內容和樣式。
| 參數 | 說明 | 格式 | 備注 |
| --- | --- | --- | --- | --- |
| intersect.in_use | 是否開啟交互(點擊與經過) | Boolean | |
| intersect.click | 點擊交互 | Object | 根據不同的點擊交互類型,有不同的參數配置,具體下文中有詳解 |
| intersect.hover | 鼠標經過交互 | Object | |
| intersect.hover.affect | 經過時影響元素 | Array | `['emphasis','label','infobox']`可根據需要自行選用 |
| intersect.hover.type | 經過時觸發的類型 | String | 目前僅有function可用,具體下文中有詳解 |
### 點擊交互 - url
```
'click' : {
'type' : 'url',
'param': '_blank',
'data' : 'http://www.bing.com/',
},
```
### 點擊交互 - iframe
```
'click' : {
'type' : 'iframe',
'param': '{width:1300,height:800}',
'data' : 'http://www.bing.com/',
},
```
### 點擊交互 - modal
```
'click' : {
'type' : 'modal',
'param': '{width:400,height:250}',
'data' : 'Sit ipsum elit est et in voluptate, mollit duis quasi explicabo iste eaque ut',
},
```
### 點擊交互 - function
```
'click' : {
'type' : 'function',
'param': 'abc',
'data' : 'my_call_click',
},
function my_call_click( object_id, param ){
...
}
```
### 經過交互 - function
```
'hover' : {
'affect': [...],
'type' : 'function',
'param' : {'abc':123},
'data' : 'my_call_hover',
},
function my_call_hover( object_id, param ){
...
}
```
- 序言
- 基礎
- 如何使用
- 目錄結構
- 配置數據
- 結構
- global
- style_lib
- default
- emphasis
- status
- environ
- camera
- ground
- light
- ambient_light
- directional_light
- point_light
- 物體數據
- 結構
- 通用參數
- 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
- 攝像機類
- get
- set
- reset
- auto_rotate
- 聯系