node-mac-recorder 1.16.0 → 1.17.0

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.
@@ -14,7 +14,9 @@
14
14
  "Bash(mkdir:*)",
15
15
  "Bash(/dev/null)",
16
16
  "Bash(ls:*)",
17
- "Bash(touch:*)"
17
+ "Bash(touch:*)",
18
+ "Bash(git add:*)",
19
+ "Bash(git commit:*)"
18
20
  ],
19
21
  "deny": []
20
22
  }
package/index.js CHANGED
@@ -541,27 +541,11 @@ class MacRecorder extends EventEmitter {
541
541
  // Koordinat sistemi belirle: window-relative, display-relative veya global
542
542
  if (options.windowRelative && options.windowInfo) {
543
543
  // Window-relative koordinatlar için pencere bilgilerini kullan
544
- // Y koordinat dönüşümü - pencere kaydındaki gibi
545
- const displays = await this.getDisplays();
546
- const display = displays.find(d => d.id === options.windowInfo.displayId) || displays[0];
547
-
548
- let adjustedX = options.windowInfo.x || 0;
549
- let adjustedY = options.windowInfo.y || 0;
550
-
551
- if (display) {
552
- // Pencere koordinatlarını display-relative yapmak için display offset'ini çıkar
553
- adjustedX = (options.windowInfo.x || 0) - display.x;
554
-
555
- // Y koordinat dönüşümü: CGWindow (top-left) to AVFoundation (bottom-left)
556
- const displayHeight = parseInt(display.resolution.split("x")[1]);
557
- const convertedY = displayHeight - (options.windowInfo.y || 0) - options.windowInfo.height;
558
- adjustedY = Math.max(0, convertedY - display.y);
559
- }
560
-
544
+ // Cursor pozisyonu için Y dönüşümü YAPMA - sadece window offset'ini çıkar
561
545
  this.cursorDisplayInfo = {
562
546
  displayId: options.windowInfo.displayId || null,
563
- x: adjustedX,
564
- y: adjustedY,
547
+ x: options.windowInfo.x || 0,
548
+ y: options.windowInfo.y || 0,
565
549
  width: options.windowInfo.width,
566
550
  height: options.windowInfo.height,
567
551
  windowRelative: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [