Appearance
mouseDownEvent ?
MouseDownEvent ?
Kind: global class
new MouseDownEvent(viewer, onDown, onDouble, eventChilds) ?
鼠標(biāo)單擊雙擊的事件監(jiān)聽(tīng),包括場(chǎng)景中的模型元素等,并判斷鼠標(biāo)左右鍵,返回模型坐標(biāo)等。
| Param | Type | Description |
|---|---|---|
| viewer | viewer | -場(chǎng)景類(lèi) |
| onDown | function | 回調(diào)函數(shù),鼠標(biāo)單機(jī)場(chǎng)景中的模型元素,參數(shù)為當(dāng)前移入的模型子網(wǎng)格名字和鼠標(biāo)左右鍵字符串'left'、'right'。 |
| onDouble | function | 回調(diào)函數(shù), 鼠標(biāo)雙擊場(chǎng)景中的模型元素,參數(shù)為當(dāng)前移入的模型子網(wǎng)格名字和鼠標(biāo)左右鍵字符串'left'、'right'。 |
| eventChilds | Array | 需要測(cè)量的模型子元素 |
mouseDownEvent.onMouseUp(event) ?
Kind: instance method of MouseDownEvent
| Param |
|---|
| event |