@thienvu18/designable-shared 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/esm/animation.d.ts +8 -2
  2. package/esm/animation.js +29 -30
  3. package/esm/array.d.ts +163 -37
  4. package/esm/array.js +104 -87
  5. package/esm/clone.d.ts +4 -4
  6. package/esm/clone.js +79 -86
  7. package/esm/compose.d.ts +3 -1
  8. package/esm/compose.js +6 -6
  9. package/esm/coordinate.d.ts +120 -76
  10. package/esm/coordinate.js +480 -411
  11. package/esm/element.d.ts +11 -6
  12. package/esm/element.js +123 -125
  13. package/esm/event.d.ts +162 -75
  14. package/esm/event.js +197 -197
  15. package/esm/globalThisPolyfill.d.ts +1 -1
  16. package/esm/globalThisPolyfill.js +14 -17
  17. package/esm/index.d.ts +17 -17
  18. package/esm/index.js +17 -17
  19. package/esm/instanceof.d.ts +1 -1
  20. package/esm/instanceof.js +9 -10
  21. package/esm/keycode.d.ts +145 -145
  22. package/esm/keycode.js +149 -149
  23. package/esm/lru.d.ts +50 -47
  24. package/esm/lru.js +236 -245
  25. package/esm/observer.d.ts +7 -7
  26. package/esm/observer.js +37 -40
  27. package/esm/request-idle.d.ts +9 -6
  28. package/esm/request-idle.js +6 -6
  29. package/esm/scroller.d.ts +24 -8
  30. package/esm/scroller.js +78 -75
  31. package/esm/subscribable.d.ts +10 -10
  32. package/esm/subscribable.js +39 -40
  33. package/esm/types.d.ts +13 -13
  34. package/esm/types.js +19 -20
  35. package/esm/uid.d.ts +1 -1
  36. package/esm/uid.js +7 -7
  37. package/lib/animation.d.ts +8 -2
  38. package/lib/animation.js +34 -35
  39. package/lib/array.d.ts +163 -37
  40. package/lib/array.js +129 -101
  41. package/lib/clone.d.ts +4 -4
  42. package/lib/clone.js +84 -91
  43. package/lib/compose.d.ts +3 -1
  44. package/lib/compose.js +10 -10
  45. package/lib/coordinate.d.ts +120 -76
  46. package/lib/coordinate.js +538 -440
  47. package/lib/element.d.ts +11 -6
  48. package/lib/element.js +139 -133
  49. package/lib/event.d.ts +162 -75
  50. package/lib/event.js +206 -202
  51. package/lib/globalThisPolyfill.d.ts +1 -1
  52. package/lib/globalThisPolyfill.js +17 -20
  53. package/lib/index.d.ts +17 -17
  54. package/lib/index.js +49 -33
  55. package/lib/instanceof.d.ts +1 -1
  56. package/lib/instanceof.js +13 -14
  57. package/lib/keycode.d.ts +145 -145
  58. package/lib/keycode.js +153 -153
  59. package/lib/lru.d.ts +50 -47
  60. package/lib/lru.js +240 -249
  61. package/lib/observer.d.ts +7 -7
  62. package/lib/observer.js +41 -44
  63. package/lib/request-idle.d.ts +9 -6
  64. package/lib/request-idle.js +14 -11
  65. package/lib/scroller.d.ts +24 -8
  66. package/lib/scroller.js +89 -81
  67. package/lib/subscribable.d.ts +10 -10
  68. package/lib/subscribable.js +43 -44
  69. package/lib/types.d.ts +13 -13
  70. package/lib/types.js +40 -28
  71. package/lib/uid.d.ts +1 -1
  72. package/lib/uid.js +11 -11
  73. package/package.json +15 -15
package/esm/keycode.d.ts CHANGED
@@ -1,147 +1,147 @@
1
1
  export declare enum KeyCode {
2
- Backspace = "Backspace",
3
- Tab = "Tab",
4
- Enter = "Enter",
5
- Shift = "Shift",
6
- Control = "Control",
7
- Alt = "Alt",
8
- CapsLock = "CapsLock",
9
- Escape = "Escape",
10
- Space = " ",
11
- PageUp = "PageUp",
12
- PageDown = "PageDown",
13
- End = "End",
14
- Home = "Home",
15
- ArrowLeft = "ArrowLeft",
16
- ArrowUp = "ArrowUp",
17
- ArrowRight = "ArrowRight",
18
- ArrowDown = "ArrowDown",
19
- Left = "Left",
20
- Up = "Up",
21
- Right = "Right",
22
- Down = "Down",
23
- Insert = "Insert",
24
- Delete = "Delete",
25
- Zero = "0",
26
- ClosedParen = ")",
27
- One = "1",
28
- ExclamationMark = "!",
29
- Two = "2",
30
- AtSign = "@",
31
- Three = "3",
32
- PoundSign = "\u00A3",
33
- Hash = "#",
34
- Four = "4",
35
- DollarSign = "$",
36
- Five = "5",
37
- PercentSign = "%",
38
- Six = "6",
39
- Caret = "^",
40
- Hat = "^",
41
- Seven = "7",
42
- Ampersand = "&",
43
- Eight = "8",
44
- Star = "*",
45
- Asterisk = "*",
46
- Nine = "9",
47
- OpenParen = "(",
48
- a = "a",
49
- b = "b",
50
- c = "c",
51
- d = "d",
52
- e = "e",
53
- f = "f",
54
- g = "g",
55
- h = "h",
56
- i = "i",
57
- j = "j",
58
- k = "k",
59
- l = "l",
60
- m = "m",
61
- n = "n",
62
- o = "o",
63
- p = "p",
64
- q = "q",
65
- r = "r",
66
- s = "s",
67
- t = "t",
68
- u = "u",
69
- v = "v",
70
- w = "w",
71
- x = "x",
72
- y = "y",
73
- z = "z",
74
- A = "A",
75
- B = "B",
76
- C = "C",
77
- D = "D",
78
- E = "E",
79
- F = "F",
80
- G = "G",
81
- H = "H",
82
- I = "I",
83
- J = "J",
84
- K = "K",
85
- L = "L",
86
- M = "M",
87
- N = "N",
88
- O = "O",
89
- P = "P",
90
- Q = "Q",
91
- R = "R",
92
- S = "S",
93
- T = "T",
94
- U = "U",
95
- V = "V",
96
- W = "W",
97
- X = "X",
98
- Y = "Y",
99
- Z = "Z",
100
- Meta = "Meta",
101
- LeftWindowKey = "Meta",
102
- RightWindowKey = "Meta",
103
- Numpad0 = "0",
104
- Numpad1 = "1",
105
- Numpad2 = "2",
106
- Numpad3 = "3",
107
- Numpad4 = "4",
108
- Numpad5 = "5",
109
- Numpad6 = "6",
110
- Numpad7 = "7",
111
- Numpad8 = "8",
112
- Numpad9 = "9",
113
- Multiply = "*",
114
- Add = "+",
115
- Subtract = "-",
116
- DecimalPoint = ".",
117
- MSDecimalPoint = "Decimal",
118
- Divide = "/",
119
- F1 = "F1",
120
- F2 = "F2",
121
- F3 = "F3",
122
- F4 = "F4",
123
- F5 = "F5",
124
- F6 = "F6",
125
- F7 = "F7",
126
- F8 = "F8",
127
- F9 = "F9",
128
- F10 = "F10",
129
- F11 = "F11",
130
- F12 = "F12",
131
- NumLock = "NumLock",
132
- ScrollLock = "ScrollLock",
133
- SemiColon = ";",
134
- Equals = "=",
135
- Comma = ",",
136
- Dash = "-",
137
- Period = ".",
138
- UnderScore = "_",
139
- PlusSign = "+",
140
- ForwardSlash = "/",
141
- Tilde = "~",
142
- GraveAccent = "`",
143
- OpenBracket = "[",
144
- ClosedBracket = "]",
145
- Quote = "'"
2
+ Backspace = 'Backspace',
3
+ Tab = 'Tab',
4
+ Enter = 'Enter',
5
+ Shift = 'Shift',
6
+ Control = 'Control',
7
+ Alt = 'Alt',
8
+ CapsLock = 'CapsLock',
9
+ Escape = 'Escape',
10
+ Space = ' ',
11
+ PageUp = 'PageUp',
12
+ PageDown = 'PageDown',
13
+ End = 'End',
14
+ Home = 'Home',
15
+ ArrowLeft = 'ArrowLeft',
16
+ ArrowUp = 'ArrowUp',
17
+ ArrowRight = 'ArrowRight',
18
+ ArrowDown = 'ArrowDown',
19
+ Left = 'Left',
20
+ Up = 'Up',
21
+ Right = 'Right',
22
+ Down = 'Down',
23
+ Insert = 'Insert',
24
+ Delete = 'Delete',
25
+ Zero = '0',
26
+ ClosedParen = ')',
27
+ One = '1',
28
+ ExclamationMark = '!',
29
+ Two = '2',
30
+ AtSign = '@',
31
+ Three = '3',
32
+ PoundSign = '\u00A3',
33
+ Hash = '#',
34
+ Four = '4',
35
+ DollarSign = '$',
36
+ Five = '5',
37
+ PercentSign = '%',
38
+ Six = '6',
39
+ Caret = '^',
40
+ Hat = '^',
41
+ Seven = '7',
42
+ Ampersand = '&',
43
+ Eight = '8',
44
+ Star = '*',
45
+ Asterisk = '*',
46
+ Nine = '9',
47
+ OpenParen = '(',
48
+ a = 'a',
49
+ b = 'b',
50
+ c = 'c',
51
+ d = 'd',
52
+ e = 'e',
53
+ f = 'f',
54
+ g = 'g',
55
+ h = 'h',
56
+ i = 'i',
57
+ j = 'j',
58
+ k = 'k',
59
+ l = 'l',
60
+ m = 'm',
61
+ n = 'n',
62
+ o = 'o',
63
+ p = 'p',
64
+ q = 'q',
65
+ r = 'r',
66
+ s = 's',
67
+ t = 't',
68
+ u = 'u',
69
+ v = 'v',
70
+ w = 'w',
71
+ x = 'x',
72
+ y = 'y',
73
+ z = 'z',
74
+ A = 'A',
75
+ B = 'B',
76
+ C = 'C',
77
+ D = 'D',
78
+ E = 'E',
79
+ F = 'F',
80
+ G = 'G',
81
+ H = 'H',
82
+ I = 'I',
83
+ J = 'J',
84
+ K = 'K',
85
+ L = 'L',
86
+ M = 'M',
87
+ N = 'N',
88
+ O = 'O',
89
+ P = 'P',
90
+ Q = 'Q',
91
+ R = 'R',
92
+ S = 'S',
93
+ T = 'T',
94
+ U = 'U',
95
+ V = 'V',
96
+ W = 'W',
97
+ X = 'X',
98
+ Y = 'Y',
99
+ Z = 'Z',
100
+ Meta = 'Meta',
101
+ LeftWindowKey = 'Meta',
102
+ RightWindowKey = 'Meta',
103
+ Numpad0 = '0',
104
+ Numpad1 = '1',
105
+ Numpad2 = '2',
106
+ Numpad3 = '3',
107
+ Numpad4 = '4',
108
+ Numpad5 = '5',
109
+ Numpad6 = '6',
110
+ Numpad7 = '7',
111
+ Numpad8 = '8',
112
+ Numpad9 = '9',
113
+ Multiply = '*',
114
+ Add = '+',
115
+ Subtract = '-',
116
+ DecimalPoint = '.',
117
+ MSDecimalPoint = 'Decimal',
118
+ Divide = '/',
119
+ F1 = 'F1',
120
+ F2 = 'F2',
121
+ F3 = 'F3',
122
+ F4 = 'F4',
123
+ F5 = 'F5',
124
+ F6 = 'F6',
125
+ F7 = 'F7',
126
+ F8 = 'F8',
127
+ F9 = 'F9',
128
+ F10 = 'F10',
129
+ F11 = 'F11',
130
+ F12 = 'F12',
131
+ NumLock = 'NumLock',
132
+ ScrollLock = 'ScrollLock',
133
+ SemiColon = ';',
134
+ Equals = '=',
135
+ Comma = ',',
136
+ Dash = '-',
137
+ Period = '.',
138
+ UnderScore = '_',
139
+ PlusSign = '+',
140
+ ForwardSlash = '/',
141
+ Tilde = '~',
142
+ GraveAccent = '`',
143
+ OpenBracket = '[',
144
+ ClosedBracket = ']',
145
+ Quote = "'",
146
146
  }
147
- export declare const getKeyCodeFromEvent: (event: KeyboardEvent) => KeyCode;
147
+ export declare const getKeyCodeFromEvent: (event: KeyboardEvent) => KeyCode
package/esm/keycode.js CHANGED
@@ -1,150 +1,150 @@
1
- export var KeyCode;
2
- (function (KeyCode) {
3
- KeyCode["Backspace"] = "Backspace";
4
- KeyCode["Tab"] = "Tab";
5
- KeyCode["Enter"] = "Enter";
6
- KeyCode["Shift"] = "Shift";
7
- KeyCode["Control"] = "Control";
8
- KeyCode["Alt"] = "Alt";
9
- KeyCode["CapsLock"] = "CapsLock";
10
- KeyCode["Escape"] = "Escape";
11
- KeyCode["Space"] = " ";
12
- KeyCode["PageUp"] = "PageUp";
13
- KeyCode["PageDown"] = "PageDown";
14
- KeyCode["End"] = "End";
15
- KeyCode["Home"] = "Home";
16
- KeyCode["ArrowLeft"] = "ArrowLeft";
17
- KeyCode["ArrowUp"] = "ArrowUp";
18
- KeyCode["ArrowRight"] = "ArrowRight";
19
- KeyCode["ArrowDown"] = "ArrowDown";
20
- KeyCode["Left"] = "Left";
21
- KeyCode["Up"] = "Up";
22
- KeyCode["Right"] = "Right";
23
- KeyCode["Down"] = "Down";
24
- KeyCode["Insert"] = "Insert";
25
- KeyCode["Delete"] = "Delete";
26
- KeyCode["Zero"] = "0";
27
- KeyCode["ClosedParen"] = ")";
28
- KeyCode["One"] = "1";
29
- KeyCode["ExclamationMark"] = "!";
30
- KeyCode["Two"] = "2";
31
- KeyCode["AtSign"] = "@";
32
- KeyCode["Three"] = "3";
33
- KeyCode["PoundSign"] = "\u00A3";
34
- KeyCode["Hash"] = "#";
35
- KeyCode["Four"] = "4";
36
- KeyCode["DollarSign"] = "$";
37
- KeyCode["Five"] = "5";
38
- KeyCode["PercentSign"] = "%";
39
- KeyCode["Six"] = "6";
40
- KeyCode["Caret"] = "^";
41
- KeyCode["Hat"] = "^";
42
- KeyCode["Seven"] = "7";
43
- KeyCode["Ampersand"] = "&";
44
- KeyCode["Eight"] = "8";
45
- KeyCode["Star"] = "*";
46
- KeyCode["Asterisk"] = "*";
47
- KeyCode["Nine"] = "9";
48
- KeyCode["OpenParen"] = "(";
49
- KeyCode["a"] = "a";
50
- KeyCode["b"] = "b";
51
- KeyCode["c"] = "c";
52
- KeyCode["d"] = "d";
53
- KeyCode["e"] = "e";
54
- KeyCode["f"] = "f";
55
- KeyCode["g"] = "g";
56
- KeyCode["h"] = "h";
57
- KeyCode["i"] = "i";
58
- KeyCode["j"] = "j";
59
- KeyCode["k"] = "k";
60
- KeyCode["l"] = "l";
61
- KeyCode["m"] = "m";
62
- KeyCode["n"] = "n";
63
- KeyCode["o"] = "o";
64
- KeyCode["p"] = "p";
65
- KeyCode["q"] = "q";
66
- KeyCode["r"] = "r";
67
- KeyCode["s"] = "s";
68
- KeyCode["t"] = "t";
69
- KeyCode["u"] = "u";
70
- KeyCode["v"] = "v";
71
- KeyCode["w"] = "w";
72
- KeyCode["x"] = "x";
73
- KeyCode["y"] = "y";
74
- KeyCode["z"] = "z";
75
- KeyCode["A"] = "A";
76
- KeyCode["B"] = "B";
77
- KeyCode["C"] = "C";
78
- KeyCode["D"] = "D";
79
- KeyCode["E"] = "E";
80
- KeyCode["F"] = "F";
81
- KeyCode["G"] = "G";
82
- KeyCode["H"] = "H";
83
- KeyCode["I"] = "I";
84
- KeyCode["J"] = "J";
85
- KeyCode["K"] = "K";
86
- KeyCode["L"] = "L";
87
- KeyCode["M"] = "M";
88
- KeyCode["N"] = "N";
89
- KeyCode["O"] = "O";
90
- KeyCode["P"] = "P";
91
- KeyCode["Q"] = "Q";
92
- KeyCode["R"] = "R";
93
- KeyCode["S"] = "S";
94
- KeyCode["T"] = "T";
95
- KeyCode["U"] = "U";
96
- KeyCode["V"] = "V";
97
- KeyCode["W"] = "W";
98
- KeyCode["X"] = "X";
99
- KeyCode["Y"] = "Y";
100
- KeyCode["Z"] = "Z";
101
- KeyCode["Meta"] = "Meta";
102
- KeyCode["LeftWindowKey"] = "Meta";
103
- KeyCode["RightWindowKey"] = "Meta";
104
- KeyCode["Numpad0"] = "0";
105
- KeyCode["Numpad1"] = "1";
106
- KeyCode["Numpad2"] = "2";
107
- KeyCode["Numpad3"] = "3";
108
- KeyCode["Numpad4"] = "4";
109
- KeyCode["Numpad5"] = "5";
110
- KeyCode["Numpad6"] = "6";
111
- KeyCode["Numpad7"] = "7";
112
- KeyCode["Numpad8"] = "8";
113
- KeyCode["Numpad9"] = "9";
114
- KeyCode["Multiply"] = "*";
115
- KeyCode["Add"] = "+";
116
- KeyCode["Subtract"] = "-";
117
- KeyCode["DecimalPoint"] = ".";
118
- KeyCode["MSDecimalPoint"] = "Decimal";
119
- KeyCode["Divide"] = "/";
120
- KeyCode["F1"] = "F1";
121
- KeyCode["F2"] = "F2";
122
- KeyCode["F3"] = "F3";
123
- KeyCode["F4"] = "F4";
124
- KeyCode["F5"] = "F5";
125
- KeyCode["F6"] = "F6";
126
- KeyCode["F7"] = "F7";
127
- KeyCode["F8"] = "F8";
128
- KeyCode["F9"] = "F9";
129
- KeyCode["F10"] = "F10";
130
- KeyCode["F11"] = "F11";
131
- KeyCode["F12"] = "F12";
132
- KeyCode["NumLock"] = "NumLock";
133
- KeyCode["ScrollLock"] = "ScrollLock";
134
- KeyCode["SemiColon"] = ";";
135
- KeyCode["Equals"] = "=";
136
- KeyCode["Comma"] = ",";
137
- KeyCode["Dash"] = "-";
138
- KeyCode["Period"] = ".";
139
- KeyCode["UnderScore"] = "_";
140
- KeyCode["PlusSign"] = "+";
141
- KeyCode["ForwardSlash"] = "/";
142
- KeyCode["Tilde"] = "~";
143
- KeyCode["GraveAccent"] = "`";
144
- KeyCode["OpenBracket"] = "[";
145
- KeyCode["ClosedBracket"] = "]";
146
- KeyCode["Quote"] = "'";
147
- })(KeyCode || (KeyCode = {}));
1
+ export var KeyCode
2
+ ;(function (KeyCode) {
3
+ KeyCode['Backspace'] = 'Backspace'
4
+ KeyCode['Tab'] = 'Tab'
5
+ KeyCode['Enter'] = 'Enter'
6
+ KeyCode['Shift'] = 'Shift'
7
+ KeyCode['Control'] = 'Control'
8
+ KeyCode['Alt'] = 'Alt'
9
+ KeyCode['CapsLock'] = 'CapsLock'
10
+ KeyCode['Escape'] = 'Escape'
11
+ KeyCode['Space'] = ' '
12
+ KeyCode['PageUp'] = 'PageUp'
13
+ KeyCode['PageDown'] = 'PageDown'
14
+ KeyCode['End'] = 'End'
15
+ KeyCode['Home'] = 'Home'
16
+ KeyCode['ArrowLeft'] = 'ArrowLeft'
17
+ KeyCode['ArrowUp'] = 'ArrowUp'
18
+ KeyCode['ArrowRight'] = 'ArrowRight'
19
+ KeyCode['ArrowDown'] = 'ArrowDown'
20
+ KeyCode['Left'] = 'Left'
21
+ KeyCode['Up'] = 'Up'
22
+ KeyCode['Right'] = 'Right'
23
+ KeyCode['Down'] = 'Down'
24
+ KeyCode['Insert'] = 'Insert'
25
+ KeyCode['Delete'] = 'Delete'
26
+ KeyCode['Zero'] = '0'
27
+ KeyCode['ClosedParen'] = ')'
28
+ KeyCode['One'] = '1'
29
+ KeyCode['ExclamationMark'] = '!'
30
+ KeyCode['Two'] = '2'
31
+ KeyCode['AtSign'] = '@'
32
+ KeyCode['Three'] = '3'
33
+ KeyCode['PoundSign'] = '\u00A3'
34
+ KeyCode['Hash'] = '#'
35
+ KeyCode['Four'] = '4'
36
+ KeyCode['DollarSign'] = '$'
37
+ KeyCode['Five'] = '5'
38
+ KeyCode['PercentSign'] = '%'
39
+ KeyCode['Six'] = '6'
40
+ KeyCode['Caret'] = '^'
41
+ KeyCode['Hat'] = '^'
42
+ KeyCode['Seven'] = '7'
43
+ KeyCode['Ampersand'] = '&'
44
+ KeyCode['Eight'] = '8'
45
+ KeyCode['Star'] = '*'
46
+ KeyCode['Asterisk'] = '*'
47
+ KeyCode['Nine'] = '9'
48
+ KeyCode['OpenParen'] = '('
49
+ KeyCode['a'] = 'a'
50
+ KeyCode['b'] = 'b'
51
+ KeyCode['c'] = 'c'
52
+ KeyCode['d'] = 'd'
53
+ KeyCode['e'] = 'e'
54
+ KeyCode['f'] = 'f'
55
+ KeyCode['g'] = 'g'
56
+ KeyCode['h'] = 'h'
57
+ KeyCode['i'] = 'i'
58
+ KeyCode['j'] = 'j'
59
+ KeyCode['k'] = 'k'
60
+ KeyCode['l'] = 'l'
61
+ KeyCode['m'] = 'm'
62
+ KeyCode['n'] = 'n'
63
+ KeyCode['o'] = 'o'
64
+ KeyCode['p'] = 'p'
65
+ KeyCode['q'] = 'q'
66
+ KeyCode['r'] = 'r'
67
+ KeyCode['s'] = 's'
68
+ KeyCode['t'] = 't'
69
+ KeyCode['u'] = 'u'
70
+ KeyCode['v'] = 'v'
71
+ KeyCode['w'] = 'w'
72
+ KeyCode['x'] = 'x'
73
+ KeyCode['y'] = 'y'
74
+ KeyCode['z'] = 'z'
75
+ KeyCode['A'] = 'A'
76
+ KeyCode['B'] = 'B'
77
+ KeyCode['C'] = 'C'
78
+ KeyCode['D'] = 'D'
79
+ KeyCode['E'] = 'E'
80
+ KeyCode['F'] = 'F'
81
+ KeyCode['G'] = 'G'
82
+ KeyCode['H'] = 'H'
83
+ KeyCode['I'] = 'I'
84
+ KeyCode['J'] = 'J'
85
+ KeyCode['K'] = 'K'
86
+ KeyCode['L'] = 'L'
87
+ KeyCode['M'] = 'M'
88
+ KeyCode['N'] = 'N'
89
+ KeyCode['O'] = 'O'
90
+ KeyCode['P'] = 'P'
91
+ KeyCode['Q'] = 'Q'
92
+ KeyCode['R'] = 'R'
93
+ KeyCode['S'] = 'S'
94
+ KeyCode['T'] = 'T'
95
+ KeyCode['U'] = 'U'
96
+ KeyCode['V'] = 'V'
97
+ KeyCode['W'] = 'W'
98
+ KeyCode['X'] = 'X'
99
+ KeyCode['Y'] = 'Y'
100
+ KeyCode['Z'] = 'Z'
101
+ KeyCode['Meta'] = 'Meta'
102
+ KeyCode['LeftWindowKey'] = 'Meta'
103
+ KeyCode['RightWindowKey'] = 'Meta'
104
+ KeyCode['Numpad0'] = '0'
105
+ KeyCode['Numpad1'] = '1'
106
+ KeyCode['Numpad2'] = '2'
107
+ KeyCode['Numpad3'] = '3'
108
+ KeyCode['Numpad4'] = '4'
109
+ KeyCode['Numpad5'] = '5'
110
+ KeyCode['Numpad6'] = '6'
111
+ KeyCode['Numpad7'] = '7'
112
+ KeyCode['Numpad8'] = '8'
113
+ KeyCode['Numpad9'] = '9'
114
+ KeyCode['Multiply'] = '*'
115
+ KeyCode['Add'] = '+'
116
+ KeyCode['Subtract'] = '-'
117
+ KeyCode['DecimalPoint'] = '.'
118
+ KeyCode['MSDecimalPoint'] = 'Decimal'
119
+ KeyCode['Divide'] = '/'
120
+ KeyCode['F1'] = 'F1'
121
+ KeyCode['F2'] = 'F2'
122
+ KeyCode['F3'] = 'F3'
123
+ KeyCode['F4'] = 'F4'
124
+ KeyCode['F5'] = 'F5'
125
+ KeyCode['F6'] = 'F6'
126
+ KeyCode['F7'] = 'F7'
127
+ KeyCode['F8'] = 'F8'
128
+ KeyCode['F9'] = 'F9'
129
+ KeyCode['F10'] = 'F10'
130
+ KeyCode['F11'] = 'F11'
131
+ KeyCode['F12'] = 'F12'
132
+ KeyCode['NumLock'] = 'NumLock'
133
+ KeyCode['ScrollLock'] = 'ScrollLock'
134
+ KeyCode['SemiColon'] = ';'
135
+ KeyCode['Equals'] = '='
136
+ KeyCode['Comma'] = ','
137
+ KeyCode['Dash'] = '-'
138
+ KeyCode['Period'] = '.'
139
+ KeyCode['UnderScore'] = '_'
140
+ KeyCode['PlusSign'] = '+'
141
+ KeyCode['ForwardSlash'] = '/'
142
+ KeyCode['Tilde'] = '~'
143
+ KeyCode['GraveAccent'] = '`'
144
+ KeyCode['OpenBracket'] = '['
145
+ KeyCode['ClosedBracket'] = ']'
146
+ KeyCode['Quote'] = "'"
147
+ })(KeyCode || (KeyCode = {}))
148
148
  export const getKeyCodeFromEvent = (event) => {
149
- return event.key;
150
- };
149
+ return event.key
150
+ }