stratum-rs-overlay 1.0.2 → 1.0.3
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.
- package/dist/index.d.ts +14 -1
- package/dist/index.js +3 -2
- package/dist/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
/* auto-generated by NAPI-RS */
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export interface TargetConfig {
|
|
7
|
+
name: string
|
|
8
|
+
mode: string
|
|
9
|
+
}
|
|
10
|
+
export interface OverlayEvent {
|
|
11
|
+
eventType: string
|
|
12
|
+
targetName: string
|
|
13
|
+
x: number
|
|
14
|
+
y: number
|
|
15
|
+
width: number
|
|
16
|
+
height: number
|
|
17
|
+
}
|
|
7
18
|
export declare function init(licenseKeyHex: string): boolean
|
|
8
19
|
export declare function setClickThrough(hwndBuffer: Buffer): void
|
|
20
|
+
export declare function getActiveWindowTitle(): string
|
|
21
|
+
export declare function startTracking(targets: Array<TargetConfig>, callback: (event: OverlayEvent) => void): void
|
package/dist/index.js
CHANGED
|
@@ -310,8 +310,9 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const {
|
|
313
|
+
const { init, setClickThrough, getActiveWindowTitle, startTracking } = nativeBinding
|
|
314
314
|
|
|
315
|
-
module.exports.helloFromRust = helloFromRust
|
|
316
315
|
module.exports.init = init
|
|
317
316
|
module.exports.setClickThrough = setClickThrough
|
|
317
|
+
module.exports.getActiveWindowTitle = getActiveWindowTitle
|
|
318
|
+
module.exports.startTracking = startTracking
|
|
Binary file
|