Skip to content

Commit

Permalink
feat: view事件透传
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 authored and lessmost committed Dec 4, 2019
1 parent 04c6894 commit e7ae72a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/util/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ interface IEventmap {
}

const EVENT_MAP: IEventmap = {
onViewClick: 'click',
onViewDblClick: 'dblclick',
onViewMousemove: 'mousemove',
onViewMousedown: 'mousedown',
onViewMouseup: 'mouseup',
onViewMouseenter: 'mouseenter',
onViewMouseleave: 'mouseleave',
onViewContextmenu: 'contextmenu',
onAxisClick: 'axis-label:click',
onAxisDblClick: 'axis-label:dblclick',
onAxisMousemove: 'axis-label:mousemove',
Expand Down

0 comments on commit e7ae72a

Please # to comment.