ScreenSpaceInputBindings
Cesium v1.147 · 中文
Methods
在屏幕空间事件处理器上注册拖动输入绑定。
| Name |
Type |
Description |
handler |
ScreenSpaceEventHandler
|
屏幕空间事件处理器。 |
inputBindings |
Array.<InputBinding>
|
要注册的拖动绑定。 |
dragInputActions |
DragInputActions
|
用于调用以执行拖动操作的回调函数。 |
Returns:
The 拖动输入状态。
Type Definitions
Properties:
| Name |
Type |
Attributes |
Description |
start |
function
|
<optional>
|
在拖动开始时被调用。 |
end |
function
|
<optional>
|
在拖动停止时被调用。 |
change |
function
|
<optional>
|
在拖动移动时被调用。 |
Properties:
| Name |
Type |
Description |
isDragging |
boolean
|
如果正在进行拖动操作,则为真,否则为假。 |
Properties:
| Name |
Type |
Attributes |
Description |
button |
MouseButton
|
|
用于开始/停止拖动的鼠标按钮。 |
modifier |
number
|
<optional>
|
可选择的键盘修饰键,用于注册。 |
Need help? The fastest way to get answers is from the community and team on the
Cesium Forum.