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 CHANGED
@@ -3,6 +3,19 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
- export declare function helloFromRust(): string
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 { helloFromRust, init, setClickThrough } = nativeBinding
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratum-rs-overlay",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A high-performance, non-intrusive game overlay library for Electron powered by Rust.",
5
5
  "os": [
6
6
  "win32"