node-mac-recorder 2.17.3 → 2.17.4

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.
@@ -3,7 +3,8 @@
3
3
  "allow": [
4
4
  "Bash(node:*)",
5
5
  "Bash(chmod:*)",
6
- "Bash(cat:*)"
6
+ "Bash(cat:*)",
7
+ "Bash(git checkout:*)"
7
8
  ],
8
9
  "deny": [],
9
10
  "ask": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.17.3",
3
+ "version": "2.17.4",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -93,47 +93,6 @@ NSString* getCursorType() {
93
93
  return @"help";
94
94
  }
95
95
 
96
- // Additional cursor type detection by image characteristics
97
- if (imageSize.width > 0 && imageSize.height > 0) {
98
- // Progress cursor (spinning wheel or hourglass)
99
- if (imageSize.width >= 16 && imageSize.height >= 16 &&
100
- imageSize.width <= 32 && imageSize.height <= 32 &&
101
- hotSpot.x >= imageSize.width/2 - 4 && hotSpot.x <= imageSize.width/2 + 4 &&
102
- hotSpot.y >= imageSize.height/2 - 4 && hotSpot.y <= imageSize.height/2 + 4) {
103
- return @"progress";
104
- }
105
-
106
- // Zoom cursors (magnifying glass)
107
- if ((imageSize.width >= 20 && imageSize.width <= 28) &&
108
- (imageSize.height >= 20 && imageSize.height <= 28)) {
109
- // Try to differentiate zoom-in vs zoom-out by hotspot position
110
- if (hotSpot.x < imageSize.width/2) {
111
- return @"zoom-out";
112
- } else {
113
- return @"zoom-in";
114
- }
115
- }
116
-
117
- // All-scroll cursor (four arrows)
118
- if (imageSize.width >= 16 && imageSize.height >= 16 &&
119
- hotSpot.x >= imageSize.width/2 - 2 && hotSpot.x <= imageSize.width/2 + 2 &&
120
- hotSpot.y >= imageSize.height/2 - 2 && hotSpot.y <= imageSize.height/2 + 2) {
121
- return @"all-scroll";
122
- }
123
-
124
- // Diagonal resize cursors
125
- if (imageSize.width >= 14 && imageSize.width <= 20 &&
126
- imageSize.height >= 14 && imageSize.height <= 20) {
127
- // NW-SE resize (top-left to bottom-right)
128
- if (hotSpot.x >= 7 && hotSpot.x <= 13 && hotSpot.y >= 7 && hotSpot.y <= 13) {
129
- return @"nwse-resize";
130
- }
131
- // NE-SW resize (top-right to bottom-left)
132
- if (hotSpot.x >= 7 && hotSpot.x <= 13 && hotSpot.y >= 7 && hotSpot.y <= 13) {
133
- return @"nesw-resize";
134
- }
135
- }
136
- }
137
96
 
138
97
  // Check if we're in a drag operation
139
98
  CGEventRef event = CGEventCreate(NULL);