1- import { useClickEvent } from "./click.js" ;
2- import { usePointerEvent } from "./pointer.js" ;
3- import { useMouseEvent } from "./mouse.js" ;
4- import { useWheelEvent } from "./wheel.js" ;
5- import { useKeyEvent } from "./key.js" ;
6- import { useDragEvent , useDropEvent } from "./drag.js" ;
7- import { useClipboardEvent } from "./clipboard.js" ;
8- import { useFocusEvent } from "./focus.js" ;
9- import { useInputEvent } from "./Input.js" ;
10- import { useHashEvent } from "./hash.js" ;
11- import { useCustomEvent } from "./custom-event.js" ;
12- import { useSwipeEvent } from "./swipe.js"
13- const Events = {
14- usePointerEvent,
15- useMouseEvent,
16- useWheelEvent,
17- useKeyEvent,
18- useDragEvent,
19- useDropEvent,
20- useClickEvent,
21- useClipboardEvent,
22- useFocusEvent,
23- useInputEvent,
24- useHashEvent,
25- useCustomEvent,
26- useSwipeEvent,
27- ExtractAll : function ( ) {
28- const keys = Object . keys ( this ) ;
29- for ( let i = 0 ; i < keys . length ; i ++ ) {
30- const key = keys [ i ] ;
31- if ( key !== 'ExtractAll' && key !== 'RemoveAll' ) {
32- globalThis [ key ] = this [ key ] ;
33- }
34- }
35- return this ;
36- } ,
37- RemoveAll : function ( ) {
38- const keys = Object . keys ( this ) ;
39- for ( let i = 0 ; i < keys . length ; i ++ ) {
40- const key = keys [ i ] ;
41- if ( key !== 'RemoveAll' ) {
42- delete globalThis [ key ] ;
43- }
44- }
45- return this ;
46- }
47- }
48- export {
49- usePointerEvent ,
50- useMouseEvent ,
51- useWheelEvent ,
52- useKeyEvent ,
53- useDragEvent ,
54- useDropEvent ,
55- useClickEvent ,
56- useClipboardEvent ,
57- useFocusEvent ,
58- useInputEvent ,
59- useHashEvent ,
60- useCustomEvent ,
61- useSwipeEvent
62- }
63- export default Events
1+ export * from "./click.js" ;
2+ export * from "./pointer.js" ;
3+ export * from "./mouse.js" ;
4+ export * from "./wheel.js" ;
5+ export * from "./key.js" ;
6+ export * from "./drag.js" ;
7+ export * from "./clipboard.js" ;
8+ export * from "./focus.js" ;
9+ export * from "./Input.js" ;
10+ export * from "./hash.js" ;
11+ export * from "./custom-event.js" ;
12+ export * from "./swipe.js"
0 commit comments