"use strict";exports.__esModule=!0,exports.default=void 0;var _event=require("../../webgl/event"),_constant=require("../../common/constant"),_eventEmitter=require("../../common/event-emitter");let prevModelId,prevTime=new Date().getTime();var _default=exports.default=(0,_event.defineWebglEvent)(_constant.ModelMouseEvent.Mousemove,(a,b)=>{a.emit(new _eventEmitter.DTEvent(_constant.ModelMouseEvent.Mousemove,b.params));let c=b.params.component;if(!(c&&c.modelId===prevModelId)){if(prevModelId){let c=a.get(prevModelId);if(c){let d=new _eventEmitter.DTEvent(_constant.ModelMouseEvent.Blur,{...b.params,component:c,object:c.model});c.emit(d),a.emit(d)}}b.type=_constant.ModelMouseEvent.Hover,c&&(c.emit(b),a.emit(b)),prevModelId=c?c.modelId:void 0}});