@maaxyz/maa-node 5.8.0 → 5.9.0-alpha.1

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 (2) hide show
  1. package/dist/constant.d.ts +11 -3
  2. package/package.json +7 -7
@@ -59,12 +59,17 @@ declare global {
59
59
  >
60
60
 
61
61
  /**
62
- * Win32 screencap method.
62
+ * Win32 screencap method flags.
63
63
  *
64
- * No bitwise OR, select ONE method only.
64
+ * Use bitwise OR to set the methods you need.
65
+ * MaaFramework will test all provided methods and use the fastest available one.
65
66
  *
66
67
  * No default value. Client should choose one as default.
67
68
  *
69
+ * Predefined combinations:
70
+ * - Foreground: DXGI_DesktopDup_Window | ScreenDC
71
+ * - Background: FramePool | PrintWindow
72
+ *
68
73
  * Different applications use different rendering methods, there is no universal solution.
69
74
  *
70
75
  * | Method | Speed | Compatibility | Require Admin | Background Support | Notes |
@@ -87,7 +92,10 @@ declare global {
87
92
  | 'DXGI_DesktopDup'
88
93
  | 'DXGI_DesktopDup_Window'
89
94
  | 'PrintWindow'
90
- | 'ScreenDC',
95
+ | 'ScreenDC'
96
+ | 'All'
97
+ | 'Foreground'
98
+ | 'Background',
91
99
  ScreencapOrInputMethods
92
100
  >
93
101
 
package/package.json CHANGED
@@ -20,13 +20,13 @@
20
20
  "engines": {
21
21
  "node": ">= 20.0.0"
22
22
  },
23
- "version": "5.8.0",
23
+ "version": "5.9.0-alpha.1",
24
24
  "optionalDependencies": {
25
- "@maaxyz/maa-node-darwin-arm64": "5.8.0",
26
- "@maaxyz/maa-node-darwin-x64": "5.8.0",
27
- "@maaxyz/maa-node-linux-arm64": "5.8.0",
28
- "@maaxyz/maa-node-linux-x64": "5.8.0",
29
- "@maaxyz/maa-node-win32-arm64": "5.8.0",
30
- "@maaxyz/maa-node-win32-x64": "5.8.0"
25
+ "@maaxyz/maa-node-darwin-arm64": "5.9.0-alpha.1",
26
+ "@maaxyz/maa-node-darwin-x64": "5.9.0-alpha.1",
27
+ "@maaxyz/maa-node-linux-arm64": "5.9.0-alpha.1",
28
+ "@maaxyz/maa-node-linux-x64": "5.9.0-alpha.1",
29
+ "@maaxyz/maa-node-win32-arm64": "5.9.0-alpha.1",
30
+ "@maaxyz/maa-node-win32-x64": "5.9.0-alpha.1"
31
31
  }
32
32
  }