@codexo/exojs 0.7.12 → 0.7.13

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 (91) hide show
  1. package/CHANGELOG.md +334 -0
  2. package/dist/esm/core/Application.d.ts +3 -1
  3. package/dist/esm/core/Application.js +7 -6
  4. package/dist/esm/core/Application.js.map +1 -1
  5. package/dist/esm/core/Scene.d.ts +30 -0
  6. package/dist/esm/core/Scene.js +56 -0
  7. package/dist/esm/core/Scene.js.map +1 -1
  8. package/dist/esm/core/SceneManager.js +2 -2
  9. package/dist/esm/core/SceneManager.js.map +1 -1
  10. package/dist/esm/debug/DebugOverlay.js +2 -2
  11. package/dist/esm/debug/DebugOverlay.js.map +1 -1
  12. package/dist/esm/debug/PointerStackLayer.js +1 -1
  13. package/dist/esm/debug/PointerStackLayer.js.map +1 -1
  14. package/dist/esm/index.js +4 -3
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/input/ArcadeStickGamepadMapping.js +18 -19
  17. package/dist/esm/input/ArcadeStickGamepadMapping.js.map +1 -1
  18. package/dist/esm/input/Gamepad.d.ts +164 -62
  19. package/dist/esm/input/Gamepad.js +290 -134
  20. package/dist/esm/input/Gamepad.js.map +1 -1
  21. package/dist/esm/input/GamepadAxis.d.ts +120 -0
  22. package/dist/esm/input/GamepadAxis.js +106 -0
  23. package/dist/esm/input/GamepadAxis.js.map +1 -0
  24. package/dist/esm/input/GamepadButton.d.ts +110 -0
  25. package/dist/esm/input/GamepadButton.js +99 -0
  26. package/dist/esm/input/GamepadButton.js.map +1 -0
  27. package/dist/esm/input/GamepadDefinitions.js +4 -0
  28. package/dist/esm/input/GamepadDefinitions.js.map +1 -1
  29. package/dist/esm/input/GamepadMapping.d.ts +28 -24
  30. package/dist/esm/input/GamepadMapping.js +33 -16
  31. package/dist/esm/input/GamepadMapping.js.map +1 -1
  32. package/dist/esm/input/GamepadPromptLayouts.d.ts +10 -8
  33. package/dist/esm/input/GamepadPromptLayouts.js +21 -20
  34. package/dist/esm/input/GamepadPromptLayouts.js.map +1 -1
  35. package/dist/esm/input/GenericDualAnalogGamepadMapping.d.ts +6 -3
  36. package/dist/esm/input/GenericDualAnalogGamepadMapping.js +55 -46
  37. package/dist/esm/input/GenericDualAnalogGamepadMapping.js.map +1 -1
  38. package/dist/esm/input/InputBinding.d.ts +74 -0
  39. package/dist/esm/input/InputBinding.js +100 -0
  40. package/dist/esm/input/InputBinding.js.map +1 -0
  41. package/dist/esm/input/InputManager.d.ts +79 -33
  42. package/dist/esm/input/InputManager.js +229 -104
  43. package/dist/esm/input/InputManager.js.map +1 -1
  44. package/dist/esm/input/InteractionManager.d.ts +1 -1
  45. package/dist/esm/input/InteractionManager.js +13 -13
  46. package/dist/esm/input/InteractionManager.js.map +1 -1
  47. package/dist/esm/input/JoyConLeftGamepadMapping.d.ts +14 -9
  48. package/dist/esm/input/JoyConLeftGamepadMapping.js +39 -9
  49. package/dist/esm/input/JoyConLeftGamepadMapping.js.map +1 -1
  50. package/dist/esm/input/JoyConRightGamepadMapping.d.ts +14 -9
  51. package/dist/esm/input/JoyConRightGamepadMapping.js +35 -9
  52. package/dist/esm/input/JoyConRightGamepadMapping.js.map +1 -1
  53. package/dist/esm/input/Pointer.d.ts +84 -71
  54. package/dist/esm/input/Pointer.js +71 -71
  55. package/dist/esm/input/Pointer.js.map +1 -1
  56. package/dist/esm/input/SteamDeckGamepadMapping.d.ts +18 -0
  57. package/dist/esm/input/SteamDeckGamepadMapping.js +76 -0
  58. package/dist/esm/input/SteamDeckGamepadMapping.js.map +1 -0
  59. package/dist/esm/input/index.d.ts +7 -4
  60. package/dist/esm/input/types.d.ts +0 -76
  61. package/dist/esm/input/types.js +1 -80
  62. package/dist/esm/input/types.js.map +1 -1
  63. package/dist/esm/resources/CacheFirstStrategy.d.ts +7 -4
  64. package/dist/esm/resources/CacheFirstStrategy.js +11 -8
  65. package/dist/esm/resources/CacheFirstStrategy.js.map +1 -1
  66. package/dist/esm/resources/CacheStrategy.d.ts +14 -6
  67. package/dist/esm/resources/Loader.d.ts +8 -3
  68. package/dist/esm/resources/Loader.js +19 -37
  69. package/dist/esm/resources/Loader.js.map +1 -1
  70. package/dist/esm/resources/NetworkOnlyStrategy.d.ts +3 -0
  71. package/dist/esm/resources/NetworkOnlyStrategy.js +8 -3
  72. package/dist/esm/resources/NetworkOnlyStrategy.js.map +1 -1
  73. package/dist/esm/resources/factories/ImageFactory.d.ts +2 -2
  74. package/dist/esm/resources/factories/ImageFactory.js.map +1 -1
  75. package/dist/esm/resources/factories/TextureFactory.d.ts +2 -2
  76. package/dist/esm/resources/factories/TextureFactory.js.map +1 -1
  77. package/dist/esm/resources/factories/VttFactory.d.ts +3 -3
  78. package/dist/esm/resources/factories/VttFactory.js +83 -6
  79. package/dist/esm/resources/factories/VttFactory.js.map +1 -1
  80. package/dist/exo.esm.js +1390 -795
  81. package/dist/exo.esm.js.map +1 -1
  82. package/package.json +2 -1
  83. package/dist/esm/input/GamepadChannels.d.ts +0 -47
  84. package/dist/esm/input/GamepadChannels.js +0 -53
  85. package/dist/esm/input/GamepadChannels.js.map +0 -1
  86. package/dist/esm/input/GamepadControl.d.ts +0 -33
  87. package/dist/esm/input/GamepadControl.js +0 -42
  88. package/dist/esm/input/GamepadControl.js.map +0 -1
  89. package/dist/esm/input/Input.d.ts +0 -52
  90. package/dist/esm/input/Input.js +0 -90
  91. package/dist/esm/input/Input.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionManager.js","sources":["../../../../src/input/InteractionManager.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAaA;AACA;AACA;AAEA,IAAW,gBAQV;AARD,CAAA,UAAW,gBAAgB,EAAA;AACvB,IAAA,gBAAA,CAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAU;AACV,IAAA,gBAAA,CAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAe;AACf,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AEA,YAAA,IAAI,MAAM,KAAK,IAAI,EAAE;gBACjB;YACJ;QACJ;AAEA,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,EAAE;IAChD;AACH;;;;"}
1
+ {"version":3,"file":"InteractionManager.js","sources":["../../../../src/input/InteractionManager.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAaA;AACA;AACA;AAEA,IAAW,gBAQV;AARD,CAAA,UAAW,gBAAgB,EAAA;AACvB,IAAA,gBAAA,CAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAU;AACV,IAAA,gBAAA,CAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAe;AACf,IAAA,gBAAA,CAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAe;AACf,IAAA,gBAAA,CAAA,gBAAA,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA,GAAA,IAAe;AACf,IAAA,gBAAA,CAAA,gBAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAe;AACf,IAAA,gBAAA,CAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,EAAA,CAAA,GAAA,QAAe;AACf,IAAA,gBAAA,CAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,EAAA,CAAA,GAAA,OAAe;AACnB,CAAC,EARU,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;AA+B3B;AAEA;;;;;;;;;;;;;;;;AAgBG;MACU,kBAAkB,CAAA;AACV,IAAA,IAAI;;IAGb,SAAS,GAAiC,IAAI;;AAG9C,IAAA,iBAAiB,GAAoB,IAAI,GAAG,EAAE;;AAG9C,IAAA,WAAW,GAAoB,IAAI,GAAG,EAAE;;AAGxC,IAAA,cAAc,GAA+C,IAAI,GAAG,EAAE;;IAGtE,qBAAqB,GAAW,CAAC;IAExB,oBAAoB,GA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CAAC;QAC/B;aAAO;AACH,YAAA,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5B;IACJ;IAEQ,aAAa,GAAA;QACjB,IAAI,MAAM,GAAkB,IAAI;QAEhC,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE;YACvC,IAAI,CAAC,GAAsB,IAAI;AAE/B,YAAA,OAAO,CAAC,KAAK,IAAI,EAAE;AACf,gBAAA,IAAI,CAAC,CAAC,MAAM,KAAK,IAAI,EAAE;AACnB,oBAAA,MAAM,GAAG,CAAC,CAAC,MAAM;oBACjB;gBACJ;AAEA,gBAAA,MAAM,CAAC,GAAqB,CAAC,CAAC,UAAU;gBAExC,CAAC,GAAG,CAAC;YACT;AAEA,YAAA,IAAI,MAAM,KAAK,IAAI,EAAE;gBACjB;YACJ;QACJ;AAEA,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,EAAE;IAChD;AACH;;;;"}
@@ -1,14 +1,19 @@
1
- import { GenericDualAnalogGamepadMapping } from './GenericDualAnalogGamepadMapping';
2
- import { GamepadMappingFamily } from './GamepadMapping';
1
+ import { GamepadMapping, GamepadMappingFamily } from './GamepadMapping';
3
2
  /**
4
- * Mapping for the Nintendo Switch Joy-Con (L) held horizontally or used as
5
- * a standalone controller.
3
+ * Mapping for the Nintendo Joy-Con (L) held horizontally as a solo controller.
6
4
  *
7
- * Inherits the {@link GenericDualAnalogGamepadMapping} layout. Because the
8
- * Joy-Con Left has only one physical stick, right-stick channels will never
9
- * receive input when this mapping is active. The SL/SR shoulder buttons are
10
- * surfaced through the standard LeftShoulder/RightShoulder channels.
5
+ * Declares only channels that physically exist on the device — one stick
6
+ * (mapped to {@link GamepadAxis.LeftStickX} / `LeftStickY` and the
7
+ * direction-split equivalents), four face buttons, the SL/SR inner shoulders
8
+ * (routed through the standard shoulder channels), Minus, the Capture
9
+ * button, and the stick-click.
10
+ *
11
+ * Right-stick channels, triggers, Plus/Home, Touchpad, paddles, and
12
+ * auxiliary axes are intentionally absent. Use
13
+ * {@link GamepadMapping.hasChannel} to detect availability before binding
14
+ * inputs that may not exist on every device family.
11
15
  */
12
- export declare class JoyConLeftGamepadMapping extends GenericDualAnalogGamepadMapping {
16
+ export declare class JoyConLeftGamepadMapping extends GamepadMapping {
13
17
  readonly family = GamepadMappingFamily.JoyConLeft;
18
+ constructor();
14
19
  }
@@ -1,17 +1,47 @@
1
- import { GenericDualAnalogGamepadMapping } from './GenericDualAnalogGamepadMapping.js';
2
- import { GamepadMappingFamily } from './GamepadMapping.js';
1
+ import { GamepadAxis } from './GamepadAxis.js';
2
+ import { GamepadButton } from './GamepadButton.js';
3
+ import { GamepadMapping, GamepadMappingFamily } from './GamepadMapping.js';
3
4
 
4
5
  /**
5
- * Mapping for the Nintendo Switch Joy-Con (L) held horizontally or used as
6
- * a standalone controller.
6
+ * Mapping for the Nintendo Joy-Con (L) held horizontally as a solo controller.
7
7
  *
8
- * Inherits the {@link GenericDualAnalogGamepadMapping} layout. Because the
9
- * Joy-Con Left has only one physical stick, right-stick channels will never
10
- * receive input when this mapping is active. The SL/SR shoulder buttons are
11
- * surfaced through the standard LeftShoulder/RightShoulder channels.
8
+ * Declares only channels that physically exist on the device — one stick
9
+ * (mapped to {@link GamepadAxis.LeftStickX} / `LeftStickY` and the
10
+ * direction-split equivalents), four face buttons, the SL/SR inner shoulders
11
+ * (routed through the standard shoulder channels), Minus, the Capture
12
+ * button, and the stick-click.
13
+ *
14
+ * Right-stick channels, triggers, Plus/Home, Touchpad, paddles, and
15
+ * auxiliary axes are intentionally absent. Use
16
+ * {@link GamepadMapping.hasChannel} to detect availability before binding
17
+ * inputs that may not exist on every device family.
12
18
  */
13
- class JoyConLeftGamepadMapping extends GenericDualAnalogGamepadMapping {
19
+ class JoyConLeftGamepadMapping extends GamepadMapping {
14
20
  family = GamepadMappingFamily.JoyConLeft;
21
+ constructor() {
22
+ super([
23
+ new GamepadButton(0, GamepadButton.South),
24
+ new GamepadButton(1, GamepadButton.East),
25
+ new GamepadButton(2, GamepadButton.West),
26
+ new GamepadButton(3, GamepadButton.North),
27
+ // Inner SL/SR shoulders — routed through the standard shoulder channels.
28
+ new GamepadButton(4, GamepadButton.LeftShoulder),
29
+ new GamepadButton(5, GamepadButton.RightShoulder),
30
+ new GamepadButton(8, GamepadButton.Select), // Minus
31
+ new GamepadButton(10, GamepadButton.LeftStick), // stick click
32
+ new GamepadButton(16, GamepadButton.Capture),
33
+ ], [
34
+ // Single physical stick — surfaced through the LeftStick channels so
35
+ // gamepad-agnostic code that binds to "the stick" works regardless of
36
+ // which Joy-Con is held.
37
+ new GamepadAxis(0, GamepadAxis.LeftStickLeft, { invert: true }),
38
+ new GamepadAxis(0, GamepadAxis.LeftStickRight),
39
+ new GamepadAxis(1, GamepadAxis.LeftStickUp, { invert: true }),
40
+ new GamepadAxis(1, GamepadAxis.LeftStickDown),
41
+ new GamepadAxis(0, GamepadAxis.LeftStickX, { bipolar: true }),
42
+ new GamepadAxis(1, GamepadAxis.LeftStickY, { bipolar: true }),
43
+ ]);
44
+ }
15
45
  }
16
46
 
17
47
  export { JoyConLeftGamepadMapping };
@@ -1 +1 @@
1
- {"version":3,"file":"JoyConLeftGamepadMapping.js","sources":["../../../../src/input/JoyConLeftGamepadMapping.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA;;;;;;;;AAQG;AACG,MAAO,wBAAyB,SAAQ,+BAA+B,CAAA;AAChD,IAAA,MAAM,GAAG,oBAAoB,CAAC,UAAU;AACpE;;;;"}
1
+ {"version":3,"file":"JoyConLeftGamepadMapping.js","sources":["../../../../src/input/JoyConLeftGamepadMapping.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAIA;;;;;;;;;;;;;AAaG;AACG,MAAO,wBAAyB,SAAQ,cAAc,CAAA;AACxC,IAAA,MAAM,GAAG,oBAAoB,CAAC,UAAU;AAExD,IAAA,WA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@
1
- import { GenericDualAnalogGamepadMapping } from './GenericDualAnalogGamepadMapping';
2
- import { GamepadMappingFamily } from './GamepadMapping';
1
+ import { GamepadMapping, GamepadMappingFamily } from './GamepadMapping';
3
2
  /**
4
- * Mapping for the Nintendo Switch Joy-Con (R) held horizontally or used as
5
- * a standalone controller.
3
+ * Mapping for the Nintendo Joy-Con (R) held horizontally as a solo controller.
6
4
  *
7
- * Inherits the {@link GenericDualAnalogGamepadMapping} layout. Because the
8
- * Joy-Con Right has only one physical stick, left-stick channels will never
9
- * receive input when this mapping is active. The SL/SR shoulder buttons are
10
- * surfaced through the standard LeftShoulder/RightShoulder channels.
5
+ * Declares only channels that physically exist on the device — one stick
6
+ * (mapped to the LeftStick channels to match the W3C standard layout for the
7
+ * lone reported stick regardless of which Joy-Con reports it), four face
8
+ * buttons, the SL/SR inner shoulders (routed through the standard shoulder
9
+ * channels), Plus, the Home button, and the stick-click.
10
+ *
11
+ * Right-stick channels, triggers, Minus/Capture, Touchpad, paddles, and
12
+ * auxiliary axes are intentionally absent. Use
13
+ * {@link GamepadMapping.hasChannel} to detect availability before binding
14
+ * inputs that may not exist on every device family.
11
15
  */
12
- export declare class JoyConRightGamepadMapping extends GenericDualAnalogGamepadMapping {
16
+ export declare class JoyConRightGamepadMapping extends GamepadMapping {
13
17
  readonly family = GamepadMappingFamily.JoyConRight;
18
+ constructor();
14
19
  }
@@ -1,17 +1,43 @@
1
- import { GenericDualAnalogGamepadMapping } from './GenericDualAnalogGamepadMapping.js';
2
- import { GamepadMappingFamily } from './GamepadMapping.js';
1
+ import { GamepadAxis } from './GamepadAxis.js';
2
+ import { GamepadButton } from './GamepadButton.js';
3
+ import { GamepadMapping, GamepadMappingFamily } from './GamepadMapping.js';
3
4
 
4
5
  /**
5
- * Mapping for the Nintendo Switch Joy-Con (R) held horizontally or used as
6
- * a standalone controller.
6
+ * Mapping for the Nintendo Joy-Con (R) held horizontally as a solo controller.
7
7
  *
8
- * Inherits the {@link GenericDualAnalogGamepadMapping} layout. Because the
9
- * Joy-Con Right has only one physical stick, left-stick channels will never
10
- * receive input when this mapping is active. The SL/SR shoulder buttons are
11
- * surfaced through the standard LeftShoulder/RightShoulder channels.
8
+ * Declares only channels that physically exist on the device — one stick
9
+ * (mapped to the LeftStick channels to match the W3C standard layout for the
10
+ * lone reported stick regardless of which Joy-Con reports it), four face
11
+ * buttons, the SL/SR inner shoulders (routed through the standard shoulder
12
+ * channels), Plus, the Home button, and the stick-click.
13
+ *
14
+ * Right-stick channels, triggers, Minus/Capture, Touchpad, paddles, and
15
+ * auxiliary axes are intentionally absent. Use
16
+ * {@link GamepadMapping.hasChannel} to detect availability before binding
17
+ * inputs that may not exist on every device family.
12
18
  */
13
- class JoyConRightGamepadMapping extends GenericDualAnalogGamepadMapping {
19
+ class JoyConRightGamepadMapping extends GamepadMapping {
14
20
  family = GamepadMappingFamily.JoyConRight;
21
+ constructor() {
22
+ super([
23
+ new GamepadButton(0, GamepadButton.South),
24
+ new GamepadButton(1, GamepadButton.East),
25
+ new GamepadButton(2, GamepadButton.West),
26
+ new GamepadButton(3, GamepadButton.North),
27
+ new GamepadButton(4, GamepadButton.LeftShoulder),
28
+ new GamepadButton(5, GamepadButton.RightShoulder),
29
+ new GamepadButton(9, GamepadButton.Start), // Plus
30
+ new GamepadButton(10, GamepadButton.LeftStick), // stick click
31
+ new GamepadButton(16, GamepadButton.Guide), // Home
32
+ ], [
33
+ new GamepadAxis(0, GamepadAxis.LeftStickLeft, { invert: true }),
34
+ new GamepadAxis(0, GamepadAxis.LeftStickRight),
35
+ new GamepadAxis(1, GamepadAxis.LeftStickUp, { invert: true }),
36
+ new GamepadAxis(1, GamepadAxis.LeftStickDown),
37
+ new GamepadAxis(0, GamepadAxis.LeftStickX, { bipolar: true }),
38
+ new GamepadAxis(1, GamepadAxis.LeftStickY, { bipolar: true }),
39
+ ]);
40
+ }
15
41
  }
16
42
 
17
43
  export { JoyConRightGamepadMapping };
@@ -1 +1 @@
1
- {"version":3,"file":"JoyConRightGamepadMapping.js","sources":["../../../../src/input/JoyConRightGamepadMapping.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA;;;;;;;;AAQG;AACG,MAAO,yBAA0B,SAAQ,+BAA+B,CAAA;AACjD,IAAA,MAAM,GAAG,oBAAoB,CAAC,WAAW;AACrE;;;;"}
1
+ {"version":3,"file":"JoyConRightGamepadMapping.js","sources":["../../../../src/input/JoyConRightGamepadMapping.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAIA;;;;;;;;;;;;;AAaG;AACG,MAAO,yBAA0B,SAAQ,cAAc,CAAA;AACzC,IAAA,MAAM,GAAG,oBAAoB,CAAC,WAAW;AAEzD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CACD;AACI,YAAA,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;AACzC,YAAA,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC;AACxC,YAAA,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC;AACxC,YAAA,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;AACzC,YAAA,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC;AAChD,YAAA,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;YACjD,IAAI,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;YACzC,IAAI,aAAa,CAAC,EAAE,EAAE,aAAa,CAAC,SAAS,CAAC;YAC9C,IAAI,aAAa,CAAC,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC;SAC7C,EACD;AACI,YAAA,IAAI,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC/D,YAAA,IAAI,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC;AAC9C,YAAA,IAAI,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,EAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC/D,YAAA,IAAI,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC;AAC7C,YAAA,IAAI,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7D,YAAA,IAAI,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAChE,SAAA,CACJ;IACL;AACH;;;;"}
@@ -1,7 +1,21 @@
1
1
  import { Vector } from '@/math/Vector';
2
2
  import { Size } from '@/math/Size';
3
3
  import { Flags } from '@/math/Flags';
4
- import { PointerChannel } from '@/input/types';
4
+ declare const pointerChannelBrand: unique symbol;
5
+ /**
6
+ * Branded numeric type identifying a canonical pointer-state input channel.
7
+ * Values are absolute offsets into the engine's shared {@link Float32Array}
8
+ * input channel buffer; the brand keeps the type system from confusing
9
+ * pointer channels with other channel kinds.
10
+ *
11
+ * User code reads channel constants from the {@link Pointer} namespace
12
+ * (`Pointer.X`, `Pointer.Active`, `Pointer.Slot1X`, ...).
13
+ *
14
+ * @internal
15
+ */
16
+ export type PointerChannel = number & {
17
+ readonly [pointerChannelBrand]: void;
18
+ };
5
19
  /**
6
20
  * Bit flags accumulated on a {@link Pointer} between frames so consumers can
7
21
  * detect transient events (entered the canvas, was released, was cancelled)
@@ -87,76 +101,75 @@ export declare class Pointer {
87
101
  private _clearChannels;
88
102
  }
89
103
  /**
90
- * Namespace merged onto the `Pointer` class to expose channel-offset constants.
91
- * All members mirror `PointerChannel` so callers can write `Pointer.Active`, `Pointer.X`, etc.
92
- *
93
- * The un-prefixed members (Active, X, Y, …) address slot 0 (the primary pointer).
94
- * For multi-touch access use `Pointer.Slot{N}Active / Slot{N}X / Slot{N}Y`, or compute:
95
- * `Pointer.X + slotIndex * pointerSlotSize + channelOffset`.
104
+ * Channel-identifier constants merged onto the `Pointer` class. The
105
+ * un-prefixed members (Active, X, Y, …) address slot 0 (the primary
106
+ * pointer). For multi-touch access use `Pointer.Slot{N}Active /
107
+ * Slot{N}X / Slot{N}Y`.
96
108
  */
97
109
  export declare namespace Pointer {
98
- const Active = PointerChannel.Active;
99
- const X = PointerChannel.X;
100
- const Y = PointerChannel.Y;
101
- const Pressure = PointerChannel.Pressure;
102
- const Width = PointerChannel.Width;
103
- const Height = PointerChannel.Height;
104
- const Twist = PointerChannel.Twist;
105
- const TiltX = PointerChannel.TiltX;
106
- const TiltY = PointerChannel.TiltY;
107
- const Left = PointerChannel.Left;
108
- const Right = PointerChannel.Right;
109
- const Middle = PointerChannel.Middle;
110
- const IsMouse = PointerChannel.IsMouse;
111
- const IsTouch = PointerChannel.IsTouch;
112
- const IsPen = PointerChannel.IsPen;
113
- const IsPrimary = PointerChannel.IsPrimary;
114
- const Slot0Active = PointerChannel.Active;
115
- const Slot0X = PointerChannel.X;
116
- const Slot0Y = PointerChannel.Y;
117
- const Slot1Active = PointerChannel.Slot1Active;
118
- const Slot1X = PointerChannel.Slot1X;
119
- const Slot1Y = PointerChannel.Slot1Y;
120
- const Slot2Active = PointerChannel.Slot2Active;
121
- const Slot2X = PointerChannel.Slot2X;
122
- const Slot2Y = PointerChannel.Slot2Y;
123
- const Slot3Active = PointerChannel.Slot3Active;
124
- const Slot3X = PointerChannel.Slot3X;
125
- const Slot3Y = PointerChannel.Slot3Y;
126
- const Slot4Active = PointerChannel.Slot4Active;
127
- const Slot4X = PointerChannel.Slot4X;
128
- const Slot4Y = PointerChannel.Slot4Y;
129
- const Slot5Active = PointerChannel.Slot5Active;
130
- const Slot5X = PointerChannel.Slot5X;
131
- const Slot5Y = PointerChannel.Slot5Y;
132
- const Slot6Active = PointerChannel.Slot6Active;
133
- const Slot6X = PointerChannel.Slot6X;
134
- const Slot6Y = PointerChannel.Slot6Y;
135
- const Slot7Active = PointerChannel.Slot7Active;
136
- const Slot7X = PointerChannel.Slot7X;
137
- const Slot7Y = PointerChannel.Slot7Y;
138
- const Slot8Active = PointerChannel.Slot8Active;
139
- const Slot8X = PointerChannel.Slot8X;
140
- const Slot8Y = PointerChannel.Slot8Y;
141
- const Slot9Active = PointerChannel.Slot9Active;
142
- const Slot9X = PointerChannel.Slot9X;
143
- const Slot9Y = PointerChannel.Slot9Y;
144
- const Slot10Active = PointerChannel.Slot10Active;
145
- const Slot10X = PointerChannel.Slot10X;
146
- const Slot10Y = PointerChannel.Slot10Y;
147
- const Slot11Active = PointerChannel.Slot11Active;
148
- const Slot11X = PointerChannel.Slot11X;
149
- const Slot11Y = PointerChannel.Slot11Y;
150
- const Slot12Active = PointerChannel.Slot12Active;
151
- const Slot12X = PointerChannel.Slot12X;
152
- const Slot12Y = PointerChannel.Slot12Y;
153
- const Slot13Active = PointerChannel.Slot13Active;
154
- const Slot13X = PointerChannel.Slot13X;
155
- const Slot13Y = PointerChannel.Slot13Y;
156
- const Slot14Active = PointerChannel.Slot14Active;
157
- const Slot14X = PointerChannel.Slot14X;
158
- const Slot14Y = PointerChannel.Slot14Y;
159
- const Slot15Active = PointerChannel.Slot15Active;
160
- const Slot15X = PointerChannel.Slot15X;
161
- const Slot15Y = PointerChannel.Slot15Y;
110
+ const Active: PointerChannel;
111
+ const X: PointerChannel;
112
+ const Y: PointerChannel;
113
+ const Pressure: PointerChannel;
114
+ const Width: PointerChannel;
115
+ const Height: PointerChannel;
116
+ const Twist: PointerChannel;
117
+ const TiltX: PointerChannel;
118
+ const TiltY: PointerChannel;
119
+ const Left: PointerChannel;
120
+ const Right: PointerChannel;
121
+ const Middle: PointerChannel;
122
+ const IsMouse: PointerChannel;
123
+ const IsTouch: PointerChannel;
124
+ const IsPen: PointerChannel;
125
+ const IsPrimary: PointerChannel;
126
+ const Slot0Active: PointerChannel;
127
+ const Slot0X: PointerChannel;
128
+ const Slot0Y: PointerChannel;
129
+ const Slot1Active: PointerChannel;
130
+ const Slot1X: PointerChannel;
131
+ const Slot1Y: PointerChannel;
132
+ const Slot2Active: PointerChannel;
133
+ const Slot2X: PointerChannel;
134
+ const Slot2Y: PointerChannel;
135
+ const Slot3Active: PointerChannel;
136
+ const Slot3X: PointerChannel;
137
+ const Slot3Y: PointerChannel;
138
+ const Slot4Active: PointerChannel;
139
+ const Slot4X: PointerChannel;
140
+ const Slot4Y: PointerChannel;
141
+ const Slot5Active: PointerChannel;
142
+ const Slot5X: PointerChannel;
143
+ const Slot5Y: PointerChannel;
144
+ const Slot6Active: PointerChannel;
145
+ const Slot6X: PointerChannel;
146
+ const Slot6Y: PointerChannel;
147
+ const Slot7Active: PointerChannel;
148
+ const Slot7X: PointerChannel;
149
+ const Slot7Y: PointerChannel;
150
+ const Slot8Active: PointerChannel;
151
+ const Slot8X: PointerChannel;
152
+ const Slot8Y: PointerChannel;
153
+ const Slot9Active: PointerChannel;
154
+ const Slot9X: PointerChannel;
155
+ const Slot9Y: PointerChannel;
156
+ const Slot10Active: PointerChannel;
157
+ const Slot10X: PointerChannel;
158
+ const Slot10Y: PointerChannel;
159
+ const Slot11Active: PointerChannel;
160
+ const Slot11X: PointerChannel;
161
+ const Slot11Y: PointerChannel;
162
+ const Slot12Active: PointerChannel;
163
+ const Slot12X: PointerChannel;
164
+ const Slot12Y: PointerChannel;
165
+ const Slot13Active: PointerChannel;
166
+ const Slot13X: PointerChannel;
167
+ const Slot13Y: PointerChannel;
168
+ const Slot14Active: PointerChannel;
169
+ const Slot14X: PointerChannel;
170
+ const Slot14Y: PointerChannel;
171
+ const Slot15Active: PointerChannel;
172
+ const Slot15X: PointerChannel;
173
+ const Slot15Y: PointerChannel;
162
174
  }
175
+ export {};
@@ -1,8 +1,10 @@
1
1
  import { Vector } from '../math/Vector.js';
2
2
  import { Size } from '../math/Size.js';
3
3
  import { Flags } from '../math/Flags.js';
4
- import { PointerChannel, ChannelOffset, pointerSlotSize } from './types.js';
4
+ import { ChannelOffset, pointerSlotSize } from './types.js';
5
5
 
6
+ const pointerCh = (offset) => (ChannelOffset.Pointers + offset);
7
+ const slot = (s, field) => pointerCh(s * pointerSlotSize + field);
6
8
  /**
7
9
  * Bit flags accumulated on a {@link Pointer} between frames so consumers can
8
10
  * detect transient events (entered the canvas, was released, was cancelled)
@@ -226,82 +228,80 @@ class Pointer {
226
228
  }
227
229
  }
228
230
  /**
229
- * Namespace merged onto the `Pointer` class to expose channel-offset constants.
230
- * All members mirror `PointerChannel` so callers can write `Pointer.Active`, `Pointer.X`, etc.
231
- *
232
- * The un-prefixed members (Active, X, Y, …) address slot 0 (the primary pointer).
233
- * For multi-touch access use `Pointer.Slot{N}Active / Slot{N}X / Slot{N}Y`, or compute:
234
- * `Pointer.X + slotIndex * pointerSlotSize + channelOffset`.
231
+ * Channel-identifier constants merged onto the `Pointer` class. The
232
+ * un-prefixed members (Active, X, Y, …) address slot 0 (the primary
233
+ * pointer). For multi-touch access use `Pointer.Slot{N}Active /
234
+ * Slot{N}X / Slot{N}Y`.
235
235
  */
236
236
  // eslint-disable-next-line @typescript-eslint/no-namespace
237
237
  (function (Pointer) {
238
238
  /* eslint-disable @typescript-eslint/naming-convention */
239
239
  // --- Primary-pointer convenience aliases (slot 0) ---
240
- Pointer.Active = PointerChannel.Active;
241
- Pointer.X = PointerChannel.X;
242
- Pointer.Y = PointerChannel.Y;
243
- Pointer.Pressure = PointerChannel.Pressure;
244
- Pointer.Width = PointerChannel.Width;
245
- Pointer.Height = PointerChannel.Height;
246
- Pointer.Twist = PointerChannel.Twist;
247
- Pointer.TiltX = PointerChannel.TiltX;
248
- Pointer.TiltY = PointerChannel.TiltY;
249
- Pointer.Left = PointerChannel.Left;
250
- Pointer.Right = PointerChannel.Right;
251
- Pointer.Middle = PointerChannel.Middle;
252
- Pointer.IsMouse = PointerChannel.IsMouse;
253
- Pointer.IsTouch = PointerChannel.IsTouch;
254
- Pointer.IsPen = PointerChannel.IsPen;
255
- Pointer.IsPrimary = PointerChannel.IsPrimary;
240
+ Pointer.Active = pointerCh(0);
241
+ Pointer.X = pointerCh(1);
242
+ Pointer.Y = pointerCh(2);
243
+ Pointer.Pressure = pointerCh(3);
244
+ Pointer.Width = pointerCh(4);
245
+ Pointer.Height = pointerCh(5);
246
+ Pointer.Twist = pointerCh(6);
247
+ Pointer.TiltX = pointerCh(7);
248
+ Pointer.TiltY = pointerCh(8);
249
+ Pointer.Left = pointerCh(9);
250
+ Pointer.Right = pointerCh(10);
251
+ Pointer.Middle = pointerCh(11);
252
+ Pointer.IsMouse = pointerCh(12);
253
+ Pointer.IsTouch = pointerCh(13);
254
+ Pointer.IsPen = pointerCh(14);
255
+ Pointer.IsPrimary = pointerCh(15);
256
256
  // --- Per-slot Active/X/Y for multi-pointer access ---
257
- Pointer.Slot0Active = PointerChannel.Slot0Active;
258
- Pointer.Slot0X = PointerChannel.Slot0X;
259
- Pointer.Slot0Y = PointerChannel.Slot0Y;
260
- Pointer.Slot1Active = PointerChannel.Slot1Active;
261
- Pointer.Slot1X = PointerChannel.Slot1X;
262
- Pointer.Slot1Y = PointerChannel.Slot1Y;
263
- Pointer.Slot2Active = PointerChannel.Slot2Active;
264
- Pointer.Slot2X = PointerChannel.Slot2X;
265
- Pointer.Slot2Y = PointerChannel.Slot2Y;
266
- Pointer.Slot3Active = PointerChannel.Slot3Active;
267
- Pointer.Slot3X = PointerChannel.Slot3X;
268
- Pointer.Slot3Y = PointerChannel.Slot3Y;
269
- Pointer.Slot4Active = PointerChannel.Slot4Active;
270
- Pointer.Slot4X = PointerChannel.Slot4X;
271
- Pointer.Slot4Y = PointerChannel.Slot4Y;
272
- Pointer.Slot5Active = PointerChannel.Slot5Active;
273
- Pointer.Slot5X = PointerChannel.Slot5X;
274
- Pointer.Slot5Y = PointerChannel.Slot5Y;
275
- Pointer.Slot6Active = PointerChannel.Slot6Active;
276
- Pointer.Slot6X = PointerChannel.Slot6X;
277
- Pointer.Slot6Y = PointerChannel.Slot6Y;
278
- Pointer.Slot7Active = PointerChannel.Slot7Active;
279
- Pointer.Slot7X = PointerChannel.Slot7X;
280
- Pointer.Slot7Y = PointerChannel.Slot7Y;
281
- Pointer.Slot8Active = PointerChannel.Slot8Active;
282
- Pointer.Slot8X = PointerChannel.Slot8X;
283
- Pointer.Slot8Y = PointerChannel.Slot8Y;
284
- Pointer.Slot9Active = PointerChannel.Slot9Active;
285
- Pointer.Slot9X = PointerChannel.Slot9X;
286
- Pointer.Slot9Y = PointerChannel.Slot9Y;
287
- Pointer.Slot10Active = PointerChannel.Slot10Active;
288
- Pointer.Slot10X = PointerChannel.Slot10X;
289
- Pointer.Slot10Y = PointerChannel.Slot10Y;
290
- Pointer.Slot11Active = PointerChannel.Slot11Active;
291
- Pointer.Slot11X = PointerChannel.Slot11X;
292
- Pointer.Slot11Y = PointerChannel.Slot11Y;
293
- Pointer.Slot12Active = PointerChannel.Slot12Active;
294
- Pointer.Slot12X = PointerChannel.Slot12X;
295
- Pointer.Slot12Y = PointerChannel.Slot12Y;
296
- Pointer.Slot13Active = PointerChannel.Slot13Active;
297
- Pointer.Slot13X = PointerChannel.Slot13X;
298
- Pointer.Slot13Y = PointerChannel.Slot13Y;
299
- Pointer.Slot14Active = PointerChannel.Slot14Active;
300
- Pointer.Slot14X = PointerChannel.Slot14X;
301
- Pointer.Slot14Y = PointerChannel.Slot14Y;
302
- Pointer.Slot15Active = PointerChannel.Slot15Active;
303
- Pointer.Slot15X = PointerChannel.Slot15X;
304
- Pointer.Slot15Y = PointerChannel.Slot15Y;
257
+ Pointer.Slot0Active = slot(0, 0);
258
+ Pointer.Slot0X = slot(0, 1);
259
+ Pointer.Slot0Y = slot(0, 2);
260
+ Pointer.Slot1Active = slot(1, 0);
261
+ Pointer.Slot1X = slot(1, 1);
262
+ Pointer.Slot1Y = slot(1, 2);
263
+ Pointer.Slot2Active = slot(2, 0);
264
+ Pointer.Slot2X = slot(2, 1);
265
+ Pointer.Slot2Y = slot(2, 2);
266
+ Pointer.Slot3Active = slot(3, 0);
267
+ Pointer.Slot3X = slot(3, 1);
268
+ Pointer.Slot3Y = slot(3, 2);
269
+ Pointer.Slot4Active = slot(4, 0);
270
+ Pointer.Slot4X = slot(4, 1);
271
+ Pointer.Slot4Y = slot(4, 2);
272
+ Pointer.Slot5Active = slot(5, 0);
273
+ Pointer.Slot5X = slot(5, 1);
274
+ Pointer.Slot5Y = slot(5, 2);
275
+ Pointer.Slot6Active = slot(6, 0);
276
+ Pointer.Slot6X = slot(6, 1);
277
+ Pointer.Slot6Y = slot(6, 2);
278
+ Pointer.Slot7Active = slot(7, 0);
279
+ Pointer.Slot7X = slot(7, 1);
280
+ Pointer.Slot7Y = slot(7, 2);
281
+ Pointer.Slot8Active = slot(8, 0);
282
+ Pointer.Slot8X = slot(8, 1);
283
+ Pointer.Slot8Y = slot(8, 2);
284
+ Pointer.Slot9Active = slot(9, 0);
285
+ Pointer.Slot9X = slot(9, 1);
286
+ Pointer.Slot9Y = slot(9, 2);
287
+ Pointer.Slot10Active = slot(10, 0);
288
+ Pointer.Slot10X = slot(10, 1);
289
+ Pointer.Slot10Y = slot(10, 2);
290
+ Pointer.Slot11Active = slot(11, 0);
291
+ Pointer.Slot11X = slot(11, 1);
292
+ Pointer.Slot11Y = slot(11, 2);
293
+ Pointer.Slot12Active = slot(12, 0);
294
+ Pointer.Slot12X = slot(12, 1);
295
+ Pointer.Slot12Y = slot(12, 2);
296
+ Pointer.Slot13Active = slot(13, 0);
297
+ Pointer.Slot13X = slot(13, 1);
298
+ Pointer.Slot13Y = slot(13, 2);
299
+ Pointer.Slot14Active = slot(14, 0);
300
+ Pointer.Slot14X = slot(14, 1);
301
+ Pointer.Slot14Y = slot(14, 2);
302
+ Pointer.Slot15Active = slot(15, 0);
303
+ Pointer.Slot15X = slot(15, 1);
304
+ Pointer.Slot15Y = slot(15, 2);
305
305
  /* eslint-enable @typescript-eslint/naming-convention */
306
306
  })(Pointer || (Pointer = {}));
307
307