Merge branch 'master' of github.com:antvis/g6

This commit is contained in:
huangtong.ht 2018-11-07 23:38:03 +08:00
commit aa67104a75

View File

@ -21,6 +21,7 @@ const EVENT = {
DROP: 'drop', DROP: 'drop',
CONTEXTMENU: 'contextmenu', CONTEXTMENU: 'contextmenu',
MOUSEWHEEL: 'mousewheel', MOUSEWHEEL: 'mousewheel',
WHEEL: 'wheel',
KEYDOWN: 'keydown', KEYDOWN: 'keydown',
KEYUP: 'keyup', KEYUP: 'keyup',
KEYPRESS: 'keypress' KEYPRESS: 'keypress'
@ -29,7 +30,7 @@ const SHAKE_TOLERANCE = 9; // use to tolerate click shake prevent drag shake. Th
// native dom events list: // native dom events list:
const MouseEventTypes = [ EVENT.DBLCLICK, EVENT.MOUSEDOWN, EVENT.MOUSEUP, EVENT.MOUSEENTER, EVENT.MOUSELEAVE, EVENT.MOUSEMOVE, const MouseEventTypes = [ EVENT.DBLCLICK, EVENT.MOUSEDOWN, EVENT.MOUSEUP, EVENT.MOUSEENTER, EVENT.MOUSELEAVE, EVENT.MOUSEMOVE,
EVENT.CONTEXTMENU, EVENT.MOUSEWHEEL ]; EVENT.CONTEXTMENU, EVENT.MOUSEWHEEL, EVENT.WHEEL ];
const KeyboardEventTypes = [ EVENT.KEYDOWN, EVENT.KEYUP, EVENT.KEYPRESS ]; const KeyboardEventTypes = [ EVENT.KEYDOWN, EVENT.KEYUP, EVENT.KEYPRESS ];
const CANVAS = 'canvas:'; const CANVAS = 'canvas:';
function parentNodeHasTag(n, t) { function parentNodeHasTag(n, t) {