// 鼠标拾取物体设置勾边
obj.on(THING.EventType.MouseEnter, function(ev) {
ev.object.style.outlineColor = '#FF0000';
});
// 鼠标离开物体取消勾边颜色
obj.on(THING.EventType.MouseLeave, function(ev) {
ev.object.style.outlineColor = null;
});
鼠标滚轮
// 鼠标滚轮
app.on(THING.EventType.MouseWheel, function(ev) {
console.log(ev.delta);
});
鼠标按下
// 鼠标按下
app.on(THING.EventType.MouseDown, function(ev) {
console.log('MouseDown');
});
// 鼠标抬起
app.on(THING.EventType.MouseUp, function(ev) {
console.log('MouseUp');
});
标签:function,鼠标,EventType,app,THING,Thingjs,操作,ev
From: https://blog.51cto.com/u_16182715/7859712