@benjos/create-boilerplate 1.3.2 → 1.3.4

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 (27) hide show
  1. package/package.json +7 -7
  2. package/template-react/package-lock.json +4466 -4488
  3. package/template-react/package.json +45 -46
  4. package/template-react/tsconfig.app.json +12 -6
  5. package/template-vanilla/eslint.config.js +0 -1
  6. package/template-vanilla/package-lock.json +421 -425
  7. package/template-vanilla/package.json +13 -12
  8. package/template-vanilla/src/experiences/cameras/threes/DebugThreeCameraController.ts +2 -2
  9. package/template-vanilla/src/experiences/commands/InitCommand.ts +10 -5
  10. package/template-vanilla/src/experiences/engines/threes/MainThree.ts +8 -8
  11. package/template-vanilla/src/experiences/managers/DebugManager.ts +3 -3
  12. package/template-vanilla/src/experiences/managers/KeyboardManager.ts +2 -2
  13. package/template-vanilla/src/experiences/managers/LoaderManager.ts +1 -1
  14. package/template-vanilla/src/experiences/managers/MouseManager.ts +2 -2
  15. package/template-vanilla/src/experiences/managers/ResizeManager.ts +1 -1
  16. package/template-vanilla/src/experiences/managers/threes/ThreeAssetsManager.ts +5 -6
  17. package/template-vanilla/src/experiences/managers/threes/ThreeCameraControllerManager.ts +1 -1
  18. package/template-vanilla/src/experiences/types/global.d.ts +3 -2
  19. package/template-vanilla/src/experiences/views/htmls/bases/HTMLViewBase.ts +3 -3
  20. package/template-vanilla/src/experiences/views/htmls/loaders/LoaderHTMLView.ts +3 -3
  21. package/template-vanilla/src/experiences/constants/doms/DomEvent.ts +0 -100
  22. package/template-vanilla/src/experiences/constants/doms/KeyboardConstant.ts +0 -250
  23. package/template-vanilla/src/experiences/proxies/bases/PoolProxyBase.ts +0 -61
  24. package/template-vanilla/src/experiences/tools/Action.ts +0 -23
  25. package/template-vanilla/src/experiences/tools/Point.ts +0 -56
  26. package/template-vanilla/src/experiences/utils/AssetUtils.ts +0 -6
  27. package/template-vanilla/src/experiences/utils/DomUtils.ts +0 -28
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "boilerplate",
2
+ "name": "template-vanilla",
3
3
  "private": true,
4
- "version": "1.3.2",
4
+ "version": "1.3.4",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -13,26 +13,27 @@
13
13
  "format:check": "prettier --check ."
14
14
  },
15
15
  "devDependencies": {
16
- "@eslint/js": "^9.39.1",
17
- "@types/eslint__js": "^8.42.3",
16
+ "@eslint/js": "^9.39.2",
18
17
  "@types/howler": "^2.2.12",
19
- "@types/three": "^0.181.0",
20
- "eslint": "^9.39.1",
18
+ "@types/three": "^0.182.0",
19
+ "eslint": "^9.39.2",
21
20
  "eslint-config-prettier": "^10.1.8",
22
21
  "eslint-plugin-prettier": "^5.5.4",
23
22
  "prettier": "^3.7.4",
24
- "sass-embedded": "^1.93.3",
23
+ "sass-embedded": "^1.97.1",
25
24
  "three-perf": "^1.0.11",
26
25
  "typescript": "~5.9.3",
27
- "typescript-eslint": "^8.49.0",
28
- "vite": "^7.2.7",
26
+ "typescript-eslint": "^8.50.1",
27
+ "vite": "^7.3.0",
29
28
  "vite-plugin-glsl": "^1.5.5"
30
29
  },
31
30
  "dependencies": {
31
+ "@benjos/cookware": "^1.0.0",
32
+ "@benjos/spices": "^1.0.1",
32
33
  "@dimforge/rapier3d": "^0.19.3",
33
- "gsap": "^3.14.1",
34
+ "gsap": "^3.14.2",
34
35
  "howler": "^2.2.4",
35
36
  "lil-gui": "^0.21.0",
36
- "three": "^0.181.2"
37
+ "three": "^0.182.0"
37
38
  }
38
- }
39
+ }
@@ -1,6 +1,6 @@
1
+ import { KeyboardConstant } from '@benjos/spices';
1
2
  import { Vector3 } from 'three';
2
3
  import { OrbitControls } from 'three/examples/jsm/Addons.js';
3
- import { KeyboardConstant } from '../../constants/doms/KeyboardConstant';
4
4
  import { CameraId } from '../../constants/experiences/CameraId';
5
5
  import { CameraType } from '../../constants/experiences/CameraType';
6
6
  import MainThree from '../../engines/threes/MainThree';
@@ -21,7 +21,7 @@ export default class DebugThreeCameraController extends ThreeCameraControllerBas
21
21
  };
22
22
  private static readonly _DEFAULT_CAMERA_POSITION: Vector3 = new Vector3(0, 1.5, 3);
23
23
  private static readonly _CONTROLS_DAMPING_FACTOR: number = 0.05;
24
- private static readonly _CONTROLS_CENTER_KEY: string = KeyboardConstant.Codes.ControlLeft;
24
+ private static readonly _CONTROLS_CENTER_KEY: string = KeyboardConstant.CODES.CONTROL_LEFT;
25
25
  //
26
26
  //#endregion
27
27
 
@@ -1,3 +1,4 @@
1
+ import { AssetUtils } from '@benjos/cookware';
1
2
  import { AssetId } from '../constants/experiences/AssetId';
2
3
  import DebugManager from '../managers/DebugManager';
3
4
  import { KeyboardManager } from '../managers/KeyboardManager';
@@ -9,16 +10,20 @@ import ThreeCameraControllerManager from '../managers/threes/ThreeCameraControll
9
10
  import ThreeRaycasterManager from '../managers/threes/ThreeRaycasterManager';
10
11
  import TickerManager from '../managers/TickerManager';
11
12
  import ViewProxy from '../proxies/ViewProxy';
12
- import AssetUtils from '../utils/AssetUtils';
13
13
 
14
14
  export default class InitCommand {
15
15
  public static Init(): void {
16
+ InitCommand._InitUtils();
16
17
  InitCommand._InitProxies();
17
18
  InitCommand._InitManagers();
18
19
  InitCommand._InitCommon();
19
20
  InitCommand._InitThree();
20
21
  }
21
22
 
23
+ private static _InitUtils(): void {
24
+ AssetUtils.init();
25
+ }
26
+
22
27
  private static _InitProxies(): void {
23
28
  ViewProxy.Init();
24
29
  }
@@ -40,9 +45,9 @@ export default class InitCommand {
40
45
  }
41
46
 
42
47
  private static _InitThree(): void {
43
- ThreeAssetsManager.AddHDR(AssetId.THREE_HDR_TEMPLATE, AssetUtils.GetPath('hdrs/template.hdr'));
44
- ThreeAssetsManager.AddModel(AssetId.THREE_GLTF_TEMPLATE, AssetUtils.GetPath('models/template.glb'));
45
- ThreeAssetsManager.AddTexture(AssetId.THREE_TEXTURE_TEMPLATE, AssetUtils.GetPath('textures/template.jpg'));
46
- ThreeAssetsManager.AddFont(AssetId.THREE_FONT_TEMPLATE, AssetUtils.GetPath('fonts/template.typeface.json'));
48
+ ThreeAssetsManager.AddHDR(AssetId.THREE_HDR_TEMPLATE, AssetUtils.getPath('hdrs/template.hdr'));
49
+ ThreeAssetsManager.AddModel(AssetId.THREE_GLTF_TEMPLATE, AssetUtils.getPath('models/template.glb'));
50
+ ThreeAssetsManager.AddTexture(AssetId.THREE_TEXTURE_TEMPLATE, AssetUtils.getPath('textures/template.jpg'));
51
+ ThreeAssetsManager.AddFont(AssetId.THREE_FONT_TEMPLATE, AssetUtils.getPath('fonts/template.typeface.json'));
47
52
  }
48
53
  }
@@ -1,9 +1,10 @@
1
+ import { DomUtils } from '@benjos/cookware';
2
+ import { KeyboardConstant } from '@benjos/spices';
1
3
  import { MeshStandardMaterial, Scene } from 'three';
2
4
  import type ThreeCameraControllerBase from '../../cameras/threes/bases/ThreeCameraControllerBase';
3
5
  import DebugThreeCameraController from '../../cameras/threes/DebugThreeCameraController';
4
6
  import LoaderThreeCameraController from '../../cameras/threes/LoaderThreeCameraController';
5
7
  import MainThreeCameraController from '../../cameras/threes/MainThreeCameraController';
6
- import { KeyboardConstant } from '../../constants/doms/KeyboardConstant';
7
8
  import { CameraId } from '../../constants/experiences/CameraId';
8
9
  import { ViewId } from '../../constants/experiences/ViewId';
9
10
  import DebugManager from '../../managers/DebugManager';
@@ -15,7 +16,6 @@ import ViewProxy from '../../proxies/ViewProxy';
15
16
  import WebGLRendererBase from '../../renderers/threes/bases/WebGLRendererBase';
16
17
  import LoaderRenderer from '../../renderers/threes/LoaderRenderer';
17
18
  import Renderer from '../../renderers/threes/Renderer';
18
- import DomUtils from '../../utils/DomUtils';
19
19
  import LoaderThreeView from '../../views/threes/loaders/LoaderThreeView';
20
20
  import WorldThreeView from '../../views/threes/worlds/WorldThreeView';
21
21
 
@@ -33,12 +33,12 @@ export default class MainThree {
33
33
  //
34
34
  private static readonly _DEBUG_WIREFRAME_MATERIAL_COLOR: number = 0x3f79f3;
35
35
  private static readonly _TOGGLE_SWITCH_TO_DEBUG_CAMERA_KEYS: string[] = [
36
- KeyboardConstant.Codes.ShiftLeft,
37
- KeyboardConstant.Codes.KeyC,
36
+ KeyboardConstant.CODES.SHIFT_LEFT,
37
+ KeyboardConstant.CODES.KEY_C,
38
38
  ];
39
39
  private static readonly _TOGGLE_WIREFRAME_KEYS: string[] = [
40
- KeyboardConstant.Codes.ShiftLeft,
41
- KeyboardConstant.Codes.KeyW,
40
+ KeyboardConstant.CODES.SHIFT_LEFT,
41
+ KeyboardConstant.CODES.KEY_W,
42
42
  ];
43
43
  //
44
44
  //#endregion
@@ -46,8 +46,8 @@ export default class MainThree {
46
46
  public static Init(): void {
47
47
  TickerManager.Add(MainThree.Update);
48
48
 
49
- MainThree._DomElementContainer = DomUtils.GetApp();
50
- MainThree._LoaderDomElementContainer = DomUtils.GetLoader();
49
+ MainThree._DomElementContainer = DomUtils.getApp();
50
+ MainThree._LoaderDomElementContainer = DomUtils.getLoader();
51
51
 
52
52
  MainThree._GenerateScenes();
53
53
  MainThree._GenerateCameras();
@@ -1,6 +1,6 @@
1
+ import { KeyboardConstant } from '@benjos/spices';
1
2
  import GUI from 'lil-gui';
2
3
  import { ThreePerf } from 'three-perf';
3
- import { KeyboardConstant } from '../constants/doms/KeyboardConstant';
4
4
  import MainThree from '../engines/threes/MainThree';
5
5
  import { KeyboardManager } from './KeyboardManager';
6
6
 
@@ -16,8 +16,8 @@ export default class DebugManager {
16
16
  private static readonly _THREE_PERF_ANCHOR_X: 'left' | 'right' = 'left';
17
17
  private static readonly _THREE_PERF_ANCHOR_Y: 'top' | 'bottom' = 'bottom';
18
18
  private static readonly _TOGGLE_HIDDEN_KEYS: string[] = [
19
- KeyboardConstant.Codes.ShiftLeft,
20
- KeyboardConstant.Codes.KeyH,
19
+ KeyboardConstant.CODES.SHIFT_LEFT,
20
+ KeyboardConstant.CODES.KEY_H,
21
21
  ];
22
22
  //
23
23
  //#endregion
@@ -1,5 +1,5 @@
1
- import { DomEvent } from '../constants/doms/DomEvent';
2
- import Action from '../tools/Action';
1
+ import { Action } from '@benjos/cookware';
2
+ import { DomEvent } from '@benjos/spices';
3
3
 
4
4
  export class KeyboardManager {
5
5
  private static readonly _KeyDownsMap = new Map<string, boolean>();
@@ -1,4 +1,4 @@
1
- import Action from '../tools/Action';
1
+ import { Action } from '@benjos/cookware';
2
2
  import ThreeAssetsManager from './threes/ThreeAssetsManager';
3
3
 
4
4
  export default class LoaderManager {
@@ -1,5 +1,5 @@
1
- import { DomEvent } from '../constants/doms/DomEvent';
2
- import Action from '../tools/Action';
1
+ import { Action } from '@benjos/cookware';
2
+ import { DomEvent } from '@benjos/spices';
3
3
 
4
4
  export default class MouseManager {
5
5
  private static _X = 0;
@@ -1,4 +1,4 @@
1
- import Action from '../tools/Action';
1
+ import { Action } from '@benjos/cookware';
2
2
  import TickerManager from './TickerManager';
3
3
 
4
4
  export class ResizeManager {
@@ -1,3 +1,4 @@
1
+ import { Action, AssetUtils } from '@benjos/cookware';
1
2
  import {
2
3
  DataTexture,
3
4
  EquirectangularRefractionMapping,
@@ -12,8 +13,6 @@ import {
12
13
  import { DRACOLoader, Font, FontLoader, GLTFLoader, HDRLoader, type GLTF } from 'three/examples/jsm/Addons.js';
13
14
  import type { AssetId } from '../../constants/experiences/AssetId';
14
15
  import { AssetType } from '../../constants/experiences/AssetType';
15
- import Action from '../../tools/Action';
16
- import AssetUtils from '../../utils/AssetUtils';
17
16
  import LoaderManager from '../LoaderManager';
18
17
 
19
18
  export interface IThreeAssetToLoad {
@@ -25,7 +24,7 @@ export interface IThreeAssetToLoad {
25
24
  totalSize: number;
26
25
  }
27
26
 
28
- export interface IThreeAssetOption {}
27
+ export interface IThreeAssetOption { }
29
28
 
30
29
  export interface IThreeTextureOption extends IThreeAssetOption {
31
30
  colorSpace?: ColorSpace;
@@ -41,9 +40,9 @@ export interface IThreeHDROption extends IThreeAssetOption {
41
40
  colorSpace?: ColorSpace;
42
41
  }
43
42
 
44
- export interface IThreeModelOption extends IThreeAssetOption {}
43
+ export interface IThreeModelOption extends IThreeAssetOption { }
45
44
 
46
- export interface IThreeFontOption extends IThreeAssetOption {}
45
+ export interface IThreeFontOption extends IThreeAssetOption { }
47
46
 
48
47
  export default class ThreeAssetsManager {
49
48
  private static readonly _Assets: Map<string, Texture | DataTexture | GLTF | Font> = new Map<
@@ -80,7 +79,7 @@ export default class ThreeAssetsManager {
80
79
  //#endregion
81
80
 
82
81
  public static Init(): void {
83
- ThreeAssetsManager._DracoLoader.setDecoderPath(AssetUtils.GetPath(ThreeAssetsManager._DRACO_LOADER_PATH));
82
+ ThreeAssetsManager._DracoLoader.setDecoderPath(AssetUtils.getPath(ThreeAssetsManager._DRACO_LOADER_PATH));
84
83
  ThreeAssetsManager._GltfLoader.setDRACOLoader(ThreeAssetsManager._DracoLoader);
85
84
  ThreeAssetsManager._AddCallbacks();
86
85
  }
@@ -1,6 +1,6 @@
1
+ import { Action } from '@benjos/cookware';
1
2
  import type ThreeCameraControllerBase from '../../cameras/threes/bases/ThreeCameraControllerBase';
2
3
  import type { CameraId } from '../../constants/experiences/CameraId';
3
- import Action from '../../tools/Action';
4
4
 
5
5
  export default class ThreeCameraControllerManager {
6
6
  private static readonly _ThreeCameraControllers = new Map<CameraId, ThreeCameraControllerBase>();
@@ -1,4 +1,4 @@
1
- import type { Experience } from './experience';
1
+ import type Experience from '../Experience';
2
2
 
3
3
  declare global {
4
4
  interface Window {
@@ -6,4 +6,5 @@ declare global {
6
6
  }
7
7
  }
8
8
 
9
- export {};
9
+ export { };
10
+
@@ -1,14 +1,14 @@
1
- import { DomEvent } from '../../../constants/doms/DomEvent';
1
+ import { DomUtils } from '@benjos/cookware';
2
+ import { DomEvent } from '@benjos/spices';
2
3
  import type { ViewId } from '../../../constants/experiences/ViewId';
3
4
  import { ViewType } from '../../../constants/experiences/ViewType';
4
- import DomUtils from '../../../utils/DomUtils';
5
5
  import ViewBase from '../../bases/ViewBase';
6
6
 
7
7
  export default abstract class HTMLViewBase extends ViewBase {
8
8
  private readonly _parentElement: HTMLElement;
9
9
  protected readonly _htmlContainer: HTMLDivElement;
10
10
 
11
- constructor(id: ViewId, parentElement: HTMLElement = DomUtils.GetApp()) {
11
+ constructor(id: ViewId, parentElement: HTMLElement = DomUtils.getApp()) {
12
12
  super(id, ViewType.HTML);
13
13
  this._parentElement = parentElement;
14
14
  this._htmlContainer = document.createElement('div');
@@ -1,6 +1,6 @@
1
+ import { DomUtils } from '@benjos/cookware';
1
2
  import { ViewId } from '../../../constants/experiences/ViewId';
2
3
  import LoaderManager from '../../../managers/LoaderManager';
3
- import DomUtils from '../../../utils/DomUtils';
4
4
  import HTMLViewBase from '../bases/HTMLViewBase';
5
5
  import HTMLTemplateLoader from './components/HTMLTemplateLoader';
6
6
 
@@ -8,7 +8,7 @@ export default class LoaderHTMLView extends HTMLViewBase {
8
8
  declare private _htmlLoader: HTMLTemplateLoader;
9
9
 
10
10
  constructor(id: ViewId) {
11
- super(id, DomUtils.GetLoader());
11
+ super(id, DomUtils.getLoader());
12
12
 
13
13
  this._generateLoader();
14
14
 
@@ -19,7 +19,7 @@ export default class LoaderHTMLView extends HTMLViewBase {
19
19
  private _generateLoader(): void {
20
20
  this._htmlLoader = new HTMLTemplateLoader();
21
21
  this._htmlContainer.appendChild(this._htmlLoader.htmlElement);
22
- DomUtils.GetLoader().appendChild(this._htmlContainer);
22
+ DomUtils.getLoader().appendChild(this._htmlContainer);
23
23
  }
24
24
 
25
25
  private readonly _onBeginLoad = (): void => {
@@ -1,100 +0,0 @@
1
- export const DomEvent = {
2
- // Mouse Events
3
- CLICK: 'click',
4
- DOUBLE_CLICK: 'dblclick',
5
- MOUSE_DOWN: 'mousedown',
6
- MOUSE_UP: 'mouseup',
7
- MOUSE_MOVE: 'mousemove',
8
- MOUSE_ENTER: 'mouseenter',
9
- MOUSE_LEAVE: 'mouseleave',
10
- MOUSE_WHEEL: 'wheel',
11
- CONTEXT_MENU: 'contextmenu',
12
-
13
- // Pointer Events
14
- POINTER_DOWN: 'pointerdown',
15
- POINTER_MOVE: 'pointermove',
16
- POINTER_UP: 'pointerup',
17
- POINTER_ENTER: 'pointerenter',
18
- POINTER_LEAVE: 'pointerleave',
19
- POINTER_CANCEL: 'pointercancel',
20
-
21
- // Touch Events
22
- TOUCH_START: 'touchstart',
23
- TOUCH_MOVE: 'touchmove',
24
- TOUCH_END: 'touchend',
25
- TOUCH_CANCEL: 'touchcancel',
26
-
27
- // Keyboard Events
28
- KEY_DOWN: 'keydown',
29
- KEY_UP: 'keyup',
30
- KEY_PRESS: 'keypress',
31
-
32
- // Focus Events
33
- FOCUS: 'focus',
34
- BLUR: 'blur',
35
- FOCUS_IN: 'focusin',
36
- FOCUS_OUT: 'focusout',
37
-
38
- // Form Events
39
- CHANGE: 'change',
40
- INPUT: 'input',
41
- SUBMIT: 'submit',
42
- RESET: 'reset',
43
-
44
- // Document Events
45
- FULLSCREEN_CHANGE: 'fullscreenchange',
46
- FULLSCREEN_ERROR: 'fullscreenerror',
47
- VISIBILITY_CHANGE: 'visibilitychange',
48
-
49
- // Window Events
50
- DOM_CONTENT_LOADED: 'DOMContentLoaded',
51
- READY_STATE_CHANGE: 'readystatechange',
52
- ERROR: 'error',
53
- LOAD: 'load',
54
- UNLOAD: 'unload',
55
- BEFORE_UNLOAD: 'beforeunload',
56
- RESIZE: 'resize',
57
- SCROLL: 'scroll',
58
-
59
- // Clipboard Events
60
- CUT: 'cut',
61
- COPY: 'copy',
62
- PASTE: 'paste',
63
-
64
- // Drag and Drop Events
65
- DRAG: 'drag',
66
- DRAG_START: 'dragstart',
67
- DRAG_END: 'dragend',
68
- DRAG_ENTER: 'dragenter',
69
- DRAG_LEAVE: 'dragleave',
70
- DRAG_OVER: 'dragover',
71
- DROP: 'drop',
72
-
73
- // Media Events
74
- PLAY: 'play',
75
- PAUSE: 'pause',
76
- ENDED: 'ended',
77
- CAN_PLAY: 'canplay',
78
- TIME_UPDATE: 'timeupdate',
79
-
80
- // Animation Events
81
- ANIMATION_START: 'animationstart',
82
- ANIMATION_END: 'animationend',
83
- ANIMATION_ITERATION: 'animationiteration',
84
-
85
- // Transition Events
86
- TRANSITION_START: 'transitionstart',
87
- TRANSITION_END: 'transitionend',
88
- TRANSITION_CANCEL: 'transitioncancel',
89
-
90
- // Other Events
91
- BEFORE_PRINT: 'beforeprint',
92
- AFTER_PRINT: 'afterprint',
93
- HASH_CHANGE: 'hashchange',
94
- POP_STATE: 'popstate',
95
- STORAGE: 'storage',
96
- ONLINE: 'online',
97
- OFFLINE: 'offline',
98
- } as const;
99
-
100
- export type DomEvent = (typeof DomEvent)[keyof typeof DomEvent];
@@ -1,250 +0,0 @@
1
- export const KeyboardConstant = {
2
- Keys: {
3
- Backspace: 'Backspace',
4
- Tab: 'Tab',
5
- Enter: 'Enter',
6
- Shift: 'Shift',
7
- Control: 'Control',
8
- Alt: 'Alt',
9
- Pause: 'Pause',
10
- CapsLock: 'CapsLock',
11
- Escape: 'Escape',
12
- Space: '',
13
- PageUp: 'PageUp',
14
- PageDown: 'PageDown',
15
- End: 'End',
16
- Home: 'Home',
17
- ArrowLeft: 'ArrowLeft',
18
- ArrowUp: 'ArrowUp',
19
- ArrowRight: 'ArrowRight',
20
- ArrowDown: 'ArrowDown',
21
- PrintScreen: 'PrintScreen',
22
- Insert: 'Insert',
23
- Delete: 'Delete',
24
- Digit0: '0',
25
- Digit1: '1',
26
- Digit2: '2',
27
- Digit3: '3',
28
- Digit4: '4',
29
- Digit5: '5',
30
- Digit6: '6',
31
- Digit7: '7',
32
- Digit8: '8',
33
- Digit9: '9',
34
- A: 'A',
35
- B: 'B',
36
- C: 'C',
37
- D: 'D',
38
- E: 'E',
39
- F: 'F',
40
- G: 'G',
41
- H: 'H',
42
- I: 'I',
43
- J: 'J',
44
- K: 'K',
45
- L: 'L',
46
- M: 'M',
47
- N: 'N',
48
- O: 'O',
49
- P: 'P',
50
- Q: 'Q',
51
- R: 'R',
52
- S: 'S',
53
- T: 'T',
54
- U: 'U',
55
- V: 'V',
56
- W: 'W',
57
- X: 'X',
58
- Y: 'Y',
59
- Z: 'Z',
60
- a: 'a',
61
- b: 'b',
62
- c: 'c',
63
- d: 'd',
64
- e: 'e',
65
- f: 'f',
66
- g: 'g',
67
- h: 'h',
68
- i: 'i',
69
- j: 'j',
70
- k: 'k',
71
- l: 'l',
72
- m: 'm',
73
- n: 'n',
74
- o: 'o',
75
- p: 'p',
76
- q: 'q',
77
- r: 'r',
78
- s: 's',
79
- t: 't',
80
- u: 'u',
81
- v: 'v',
82
- w: 'w',
83
- x: 'x',
84
- y: 'y',
85
- z: 'z',
86
- Meta: 'Meta',
87
- ContextMenu: 'ContextMenu',
88
- AudioVolumeMute: 'AudioVolumeMute',
89
- AudioVolumeDown: 'AudioVolumeDown',
90
- AudioVolumeUp: 'AudioVolumeUp',
91
- F1: 'F1',
92
- F2: 'F2',
93
- F3: 'F3',
94
- F4: 'F4',
95
- F5: 'F5',
96
- F6: 'F6',
97
- F7: 'F7',
98
- F8: 'F8',
99
- F9: 'F9',
100
- F10: 'F10',
101
- F11: 'F11',
102
- F12: 'F12',
103
- NumLock: 'NumLock',
104
- ScrollLock: 'ScrollLock',
105
- Semicolon: ';',
106
- Equal: ':',
107
- Comma: ',',
108
- Minus: '-',
109
- Period: '.',
110
- Slash: '/',
111
- Backquote: '`',
112
- BracketLeft: '[',
113
- Backslash: '\\',
114
- BracketRight: ']',
115
- Quote: "'",
116
- Tilde: '~',
117
- Exclamation: '!',
118
- At: '@',
119
- Sharp: '#',
120
- Dollar: '$',
121
- Percent: '%',
122
- Caret: '^',
123
- Ampersand: '&',
124
- Asterisk: '*',
125
- ParenthesisLeft: '(',
126
- ParenthesisRight: ')',
127
- Underscore: '_',
128
- Plus: '+',
129
- OpenBrace: '{',
130
- CloseBrace: '}',
131
- Pipe: '|',
132
- Colon: ':',
133
- Quote2: '"',
134
- AngleBracketLeft: '<',
135
- AngleBracketRight: '>',
136
- QuestionMark: '?',
137
- },
138
-
139
- Codes: {
140
- Backspace: 'Backspace',
141
- Tab: 'Tab',
142
- Enter: 'Enter',
143
- ShiftLeft: 'ShiftLeft',
144
- ShiftRight: 'ShiftRight',
145
- ControlLeft: 'ControlLeft',
146
- ControlRight: 'ControlRight',
147
- AltLeft: 'AltLeft',
148
- AltRight: 'AltRight',
149
- Pause: 'Pause',
150
- CapsLock: 'CapsLock',
151
- Escape: 'Escape',
152
- Space: 'Space',
153
- PageUp: 'PageUp',
154
- PageDown: 'PageDown',
155
- End: 'End',
156
- Home: 'Home',
157
- ArrowLeft: 'ArrowLeft',
158
- ArrowUp: 'ArrowUp',
159
- ArrowRight: 'ArrowRight',
160
- ArrowDown: 'ArrowDown',
161
- PrintScreen: 'PrintScreen',
162
- Insert: 'Insert',
163
- Delete: 'Delete',
164
- Digit0: 'Digit0',
165
- Digit1: 'Digit1',
166
- Digit2: 'Digit2',
167
- Digit3: 'Digit3',
168
- Digit4: 'Digit4',
169
- Digit5: 'Digit5',
170
- Digit6: 'Digit6',
171
- Digit7: 'Digit7',
172
- Digit8: 'Digit8',
173
- Digit9: 'Digit9',
174
- AudioVolumeMute: 'AudioVolumeMute',
175
- AudioVolumeDown: 'AudioVolumeDown',
176
- AudioVolumeUp: 'AudioVolumeUp',
177
- KeyA: 'KeyA',
178
- KeyB: 'KeyB',
179
- KeyC: 'KeyC',
180
- KeyD: 'KeyD',
181
- KeyE: 'KeyE',
182
- KeyF: 'KeyF',
183
- KeyG: 'KeyG',
184
- KeyH: 'KeyH',
185
- KeyI: 'KeyI',
186
- KeyJ: 'KeyJ',
187
- KeyK: 'KeyK',
188
- KeyL: 'KeyL',
189
- KeyM: 'KeyM',
190
- KeyN: 'KeyN',
191
- KeyO: 'KeyO',
192
- KeyP: 'KeyP',
193
- KeyQ: 'KeyQ',
194
- KeyR: 'KeyR',
195
- KeyS: 'KeyS',
196
- KeyT: 'KeyT',
197
- KeyU: 'KeyU',
198
- KeyV: 'KeyV',
199
- KeyW: 'KeyW',
200
- KeyX: 'KeyX',
201
- KeyY: 'KeyY',
202
- KeyZ: 'KeyZ',
203
- MetaLeft: 'MetaLeft',
204
- MetaRight: 'MetaRight',
205
- ContextMenu: 'ContextMenu',
206
- Numpad0: 'Numpad0',
207
- Numpad1: 'Numpad1',
208
- Numpad2: 'Numpad2',
209
- Numpad3: 'Numpad3',
210
- Numpad4: 'Numpad4',
211
- Numpad5: 'Numpad5',
212
- Numpad6: 'Numpad6',
213
- Numpad7: 'Numpad7',
214
- Numpad8: 'Numpad8',
215
- Numpad9: 'Numpad9',
216
- NumpadMultiply: 'NumpadMultiply',
217
- NumpadAdd: 'NumpadAdd',
218
- NumpadSubtract: 'NumpadSubtract',
219
- NumpadDecimal: 'NumpadDecimal',
220
- NumpadDivide: 'NumpadDivide',
221
- NumpadEnter: 'NumpadEnter',
222
- F1: 'F1',
223
- F2: 'F2',
224
- F3: 'F3',
225
- F4: 'F4',
226
- F5: 'F5',
227
- F6: 'F6',
228
- F7: 'F7',
229
- F8: 'F8',
230
- F9: 'F9',
231
- F10: 'F10',
232
- F11: 'F11',
233
- F12: 'F12',
234
- NumLock: 'NumLock',
235
- ScrollLock: 'ScrollLock',
236
- Semicolon: 'Semicolon',
237
- Equal: 'Equal',
238
- Comma: 'Comma',
239
- Minus: 'Minus',
240
- Period: 'Period',
241
- Slash: 'Slash',
242
- Backquote: 'Backquote',
243
- BracketLeft: 'BracketLeft',
244
- Backslash: 'Backslash',
245
- BracketRight: 'BracketRight',
246
- Quote: 'Quote',
247
- },
248
- } as const;
249
-
250
- export type KeyboardConstant = (typeof KeyboardConstant)[keyof typeof KeyboardConstant];