-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add mobile event list * feat: support gesture * feat: 优化事件信息 * fix: no consolelog * chore: keep g2 events names in list * feat: 统一所有图表event map生成方式 * fix: layer events * feat: add plot events test * feat: add swipe & pinch test * feat: add press & pan test * fix: lint * fix: add touch events test * feat: 完善layer事件信息 * fix: layer events types * feat: add event data test * fix: event test
- Loading branch information
1 parent
b42d558
commit b4a8d47
Showing
26 changed files
with
759 additions
and
203 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
import { assign } from '@antv/util'; | ||
import { EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
import { getEventMap, EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = { | ||
onAreaClick: 'area:click', | ||
onAreaDblclick: 'area:dblclick', | ||
onAreaMousemove: 'area:mousemove', | ||
onAreaMouseenter: 'area:mouseenter', | ||
onAreaMouseleave: 'area:mouseleave', | ||
onAreaMousedown: 'area:mousedown', | ||
onAreaMouseup: 'area:mouseup', | ||
onAreaContextmenu: 'area:contextmenu', | ||
onLineClick: 'line:click', | ||
onLineDblclick: 'line:dblclick', | ||
onLineMousemove: 'line:mousemove', | ||
onLineMouseenter: 'line:mouseenter', | ||
onLineMouseleave: 'line:mouseleave', | ||
onLineMousedown: 'line:mousedown', | ||
onLineMouseup: 'line:mouseup', | ||
onLineContextmenu: 'line:contextmenu', | ||
onPointClick: 'point:click', | ||
onPointDblclick: 'point:dblclick', | ||
onPointMousemove: 'point:mousemove', | ||
onPointMouseenter: 'point:mouseenter', | ||
onPointMouseleave: 'point:mouseleave', | ||
onPointMousedown: 'point:mousedown', | ||
onPointMouseup: 'point:mouseup', | ||
onPointContextmenu: 'point:contextmenu', | ||
const componentMap = { | ||
area: 'area', | ||
line: 'line', | ||
point: 'point', | ||
}; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = getEventMap(componentMap); | ||
|
||
assign(EVENT_MAP, SHAPE_EVENT_MAP); | ||
|
||
export { EVENT_MAP, onEvent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
import { assign } from '@antv/util'; | ||
import { EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
import { getEventMap, EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = { | ||
onBarClick: 'interval:click', | ||
onBarDblclick: 'interval:dblclick', | ||
onBarMousemove: 'interval:mousemove', | ||
onBarMouseenter: 'interval:mouseenter', | ||
onBarMouseleave: 'interval:mouseleave', | ||
onBarMousedown: 'interval:mousedown', | ||
onBarMouseup: 'interval:mouseup', | ||
onBarContextmenu: 'interval:contextmenu', | ||
const componentMap = { | ||
bar: 'interval', | ||
}; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = getEventMap(componentMap); | ||
|
||
assign(EVENT_MAP, SHAPE_EVENT_MAP); | ||
|
||
export { EVENT_MAP, onEvent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
import { assign } from '@antv/util'; | ||
import { EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
import { getEventMap, EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = { | ||
onBarClick: 'interval:click', | ||
onBarDblclick: 'interval:dblclick', | ||
onBarMousemove: 'interval:mousemove', | ||
onBarMouseenter: 'interval:mouseenter', | ||
onBarMouseleave: 'interval:mouseleave', | ||
onBarMousedown: 'interval:mousedown', | ||
onBarMouseup: 'interval:mouseup', | ||
onBarContextmenu: 'interval:contextmenu', | ||
const componentMap = { | ||
funnel: 'interval', | ||
}; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = getEventMap(componentMap); | ||
|
||
assign(EVENT_MAP, SHAPE_EVENT_MAP); | ||
|
||
export { EVENT_MAP, onEvent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
import { assign } from '@antv/util'; | ||
import { EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
import { getEventMap, EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = { | ||
onProgressClick: 'interval:click', | ||
onProgressDblclick: 'interval:dblclick', | ||
onProgressMousemove: 'interval:mousemove', | ||
onProgressMousedown: 'interval:mousedown', | ||
onProgressMouseup: 'interval:mouseup', | ||
onProgressMouseenter: 'progress:mouseenter', | ||
onProgressMouseleave: 'progress:mouseleave', | ||
onProgressContextmenu: 'interval:contextmenu', | ||
const componentMap = { | ||
progress: 'interval', | ||
}; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = getEventMap(componentMap); | ||
|
||
assign(EVENT_MAP, SHAPE_EVENT_MAP); | ||
|
||
export { EVENT_MAP, onEvent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
import { assign } from '@antv/util'; | ||
import { EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
import { getEventMap, EVENT_MAP, IEventmap, onEvent } from '../../util/event'; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = { | ||
onRingProgressClick: 'interval:click', | ||
onRingProgressDblclick: 'interval:dblclick', | ||
onRingProgressMousemove: 'interval:mousemove', | ||
onRingProgressMousedown: 'interval:mousedown', | ||
onRingProgressMouseup: 'interval:mouseup', | ||
onRingProgressMouseenter: 'interval:mouseenter', | ||
onRingProgressMouseleave: 'interval:mouseleave', | ||
onRingProgressContextmenu: 'interval:contextmenu', | ||
const componentMap = { | ||
ringProgress: 'interval', | ||
}; | ||
|
||
const SHAPE_EVENT_MAP: IEventmap = getEventMap(componentMap); | ||
|
||
assign(EVENT_MAP, SHAPE_EVENT_MAP); | ||
|
||
export { EVENT_MAP, onEvent }; |
Oops, something went wrong.