@midscene/android 1.4.0 → 1.4.1-beta-20260212115343.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.
- package/dist/es/cli.mjs +4 -4
- package/dist/es/index.mjs +4 -4
- package/dist/es/mcp-server.mjs +4 -4
- package/dist/lib/cli.js +4 -4
- package/dist/lib/index.js +4 -4
- package/dist/lib/mcp-server.js +4 -4
- package/package.json +4 -4
package/dist/es/cli.mjs
CHANGED
|
@@ -1465,10 +1465,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1465
1465
|
const n = 4;
|
|
1466
1466
|
const startX = Math.round(deltaX < 0 ? width / n * (n - 1) : width / n);
|
|
1467
1467
|
const startY = Math.round(deltaY < 0 ? height / n * (n - 1) : height / n);
|
|
1468
|
-
const
|
|
1469
|
-
const
|
|
1470
|
-
const
|
|
1471
|
-
const
|
|
1468
|
+
const maxPositiveDeltaX = startX;
|
|
1469
|
+
const maxNegativeDeltaX = width - startX;
|
|
1470
|
+
const maxPositiveDeltaY = startY;
|
|
1471
|
+
const maxNegativeDeltaY = height - startY;
|
|
1472
1472
|
deltaX = Math.max(-maxNegativeDeltaX, Math.min(deltaX, maxPositiveDeltaX));
|
|
1473
1473
|
deltaY = Math.max(-maxNegativeDeltaY, Math.min(deltaY, maxPositiveDeltaY));
|
|
1474
1474
|
const endX = Math.round(startX - deltaX);
|
package/dist/es/index.mjs
CHANGED
|
@@ -1367,10 +1367,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1367
1367
|
const n = 4;
|
|
1368
1368
|
const startX = Math.round(deltaX < 0 ? width / n * (n - 1) : width / n);
|
|
1369
1369
|
const startY = Math.round(deltaY < 0 ? height / n * (n - 1) : height / n);
|
|
1370
|
-
const
|
|
1371
|
-
const
|
|
1372
|
-
const
|
|
1373
|
-
const
|
|
1370
|
+
const maxPositiveDeltaX = startX;
|
|
1371
|
+
const maxNegativeDeltaX = width - startX;
|
|
1372
|
+
const maxPositiveDeltaY = startY;
|
|
1373
|
+
const maxNegativeDeltaY = height - startY;
|
|
1374
1374
|
deltaX = Math.max(-maxNegativeDeltaX, Math.min(deltaX, maxPositiveDeltaX));
|
|
1375
1375
|
deltaY = Math.max(-maxNegativeDeltaY, Math.min(deltaY, maxPositiveDeltaY));
|
|
1376
1376
|
const endX = Math.round(startX - deltaX);
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -1464,10 +1464,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1464
1464
|
const n = 4;
|
|
1465
1465
|
const startX = Math.round(deltaX < 0 ? width / n * (n - 1) : width / n);
|
|
1466
1466
|
const startY = Math.round(deltaY < 0 ? height / n * (n - 1) : height / n);
|
|
1467
|
-
const
|
|
1468
|
-
const
|
|
1469
|
-
const
|
|
1470
|
-
const
|
|
1467
|
+
const maxPositiveDeltaX = startX;
|
|
1468
|
+
const maxNegativeDeltaX = width - startX;
|
|
1469
|
+
const maxPositiveDeltaY = startY;
|
|
1470
|
+
const maxNegativeDeltaY = height - startY;
|
|
1471
1471
|
deltaX = Math.max(-maxNegativeDeltaX, Math.min(deltaX, maxPositiveDeltaX));
|
|
1472
1472
|
deltaY = Math.max(-maxNegativeDeltaY, Math.min(deltaY, maxPositiveDeltaY));
|
|
1473
1473
|
const endX = Math.round(startX - deltaX);
|
package/dist/lib/cli.js
CHANGED
|
@@ -1480,10 +1480,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1480
1480
|
const n = 4;
|
|
1481
1481
|
const startX = Math.round(deltaX < 0 ? width / n * (n - 1) : width / n);
|
|
1482
1482
|
const startY = Math.round(deltaY < 0 ? height / n * (n - 1) : height / n);
|
|
1483
|
-
const
|
|
1484
|
-
const
|
|
1485
|
-
const
|
|
1486
|
-
const
|
|
1483
|
+
const maxPositiveDeltaX = startX;
|
|
1484
|
+
const maxNegativeDeltaX = width - startX;
|
|
1485
|
+
const maxPositiveDeltaY = startY;
|
|
1486
|
+
const maxNegativeDeltaY = height - startY;
|
|
1487
1487
|
deltaX = Math.max(-maxNegativeDeltaX, Math.min(deltaX, maxPositiveDeltaX));
|
|
1488
1488
|
deltaY = Math.max(-maxNegativeDeltaY, Math.min(deltaY, maxPositiveDeltaY));
|
|
1489
1489
|
const endX = Math.round(startX - deltaX);
|
package/dist/lib/index.js
CHANGED
|
@@ -1400,10 +1400,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1400
1400
|
const n = 4;
|
|
1401
1401
|
const startX = Math.round(deltaX < 0 ? width / n * (n - 1) : width / n);
|
|
1402
1402
|
const startY = Math.round(deltaY < 0 ? height / n * (n - 1) : height / n);
|
|
1403
|
-
const
|
|
1404
|
-
const
|
|
1405
|
-
const
|
|
1406
|
-
const
|
|
1403
|
+
const maxPositiveDeltaX = startX;
|
|
1404
|
+
const maxNegativeDeltaX = width - startX;
|
|
1405
|
+
const maxPositiveDeltaY = startY;
|
|
1406
|
+
const maxNegativeDeltaY = height - startY;
|
|
1407
1407
|
deltaX = Math.max(-maxNegativeDeltaX, Math.min(deltaX, maxPositiveDeltaX));
|
|
1408
1408
|
deltaY = Math.max(-maxNegativeDeltaY, Math.min(deltaY, maxPositiveDeltaY));
|
|
1409
1409
|
const endX = Math.round(startX - deltaX);
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -1495,10 +1495,10 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
|
|
|
1495
1495
|
const n = 4;
|
|
1496
1496
|
const startX = Math.round(deltaX < 0 ? width / n * (n - 1) : width / n);
|
|
1497
1497
|
const startY = Math.round(deltaY < 0 ? height / n * (n - 1) : height / n);
|
|
1498
|
-
const
|
|
1499
|
-
const
|
|
1500
|
-
const
|
|
1501
|
-
const
|
|
1498
|
+
const maxPositiveDeltaX = startX;
|
|
1499
|
+
const maxNegativeDeltaX = width - startX;
|
|
1500
|
+
const maxPositiveDeltaY = startY;
|
|
1501
|
+
const maxNegativeDeltaY = height - startY;
|
|
1502
1502
|
deltaX = Math.max(-maxNegativeDeltaX, Math.min(deltaX, maxPositiveDeltaX));
|
|
1503
1503
|
deltaY = Math.max(-maxNegativeDeltaY, Math.min(deltaY, maxPositiveDeltaY));
|
|
1504
1504
|
const endX = Math.round(startX - deltaX);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/android",
|
|
3
|
-
"version": "1.4.0",
|
|
3
|
+
"version": "1.4.1-beta-20260212115343.0",
|
|
4
4
|
"description": "Android automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Android UI automation",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@yume-chan/stream-extra": "^1.0.0",
|
|
42
42
|
"appium-adb": "12.12.1",
|
|
43
43
|
"sharp": "^0.34.3",
|
|
44
|
-
"@midscene/
|
|
45
|
-
"@midscene/
|
|
44
|
+
"@midscene/shared": "1.4.1-beta-20260212115343.0",
|
|
45
|
+
"@midscene/core": "1.4.1-beta-20260212115343.0"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
48
|
"@ffmpeg-installer/ffmpeg": "^1.1.0"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"tsx": "^4.19.2",
|
|
57
57
|
"vitest": "3.0.5",
|
|
58
58
|
"zod": "3.24.3",
|
|
59
|
-
"@midscene/playground": "1.4.0"
|
|
59
|
+
"@midscene/playground": "1.4.1-beta-20260212115343.0"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"scripts": {
|