import { GestureType } from './gestures/gesture' ; export const handlerIDToTag = { } ; const handlers = new Map < number , GestureType > ( ) ; let handlerTag = 1 ; export function getNextHandlerTag ( ) { return handlerTag ++ ; } export function registerHandler ( handlerTag , handler ) { handlers . set ( handlerTag , handler ) ; } export function unregisterHandler ( handlerTag ) { handlers . delete ( handlerTag ) ; } export function findHandler ( handlerTag ) { return handlers . get ( handlerTag ) ; }