@midscene/core 0.19.1-beta-20250616080226.0 → 0.19.1-beta-20250616133247.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/ai-model.js +1 -1
- package/dist/es/{chunk-EYIL4AHP.js → chunk-7EB47UPF.js} +3 -4
- package/dist/{lib/chunk-EYIL4AHP.js.map → es/chunk-7EB47UPF.js.map} +1 -1
- package/dist/es/{chunk-EYEGNQ2F.js → chunk-NQEPCJPP.js} +3 -3
- package/dist/es/index.js +2 -2
- package/dist/es/utils.js +1 -1
- package/dist/lib/ai-model.js +2 -2
- package/dist/lib/{chunk-EYIL4AHP.js → chunk-7EB47UPF.js} +3 -4
- package/dist/{es/chunk-EYIL4AHP.js.map → lib/chunk-7EB47UPF.js.map} +1 -1
- package/dist/lib/{chunk-EYEGNQ2F.js → chunk-NQEPCJPP.js} +3 -3
- package/dist/lib/index.js +12 -12
- package/dist/lib/utils.js +2 -2
- package/package.json +3 -3
- /package/dist/es/{chunk-EYEGNQ2F.js.map → chunk-NQEPCJPP.js.map} +0 -0
- /package/dist/lib/{chunk-EYEGNQ2F.js.map → chunk-NQEPCJPP.js.map} +0 -0
package/dist/es/ai-model.js
CHANGED
|
@@ -643,10 +643,9 @@ function elementByPositionWithElementInfo(treeRoot, position, options) {
|
|
|
643
643
|
if (node?.node) {
|
|
644
644
|
const item = node.node;
|
|
645
645
|
if (item.rect.left <= position.x && position.x <= item.rect.left + item.rect.width && item.rect.top <= position.y && position.y <= item.rect.top + item.rect.height) {
|
|
646
|
-
if (filterPositionElements && item.attributes?.nodeType === NodeType2.POSITION) {
|
|
647
|
-
|
|
646
|
+
if (!(filterPositionElements && item.attributes?.nodeType === NodeType2.POSITION)) {
|
|
647
|
+
matchingElements.push(item);
|
|
648
648
|
}
|
|
649
|
-
matchingElements.push(item);
|
|
650
649
|
}
|
|
651
650
|
}
|
|
652
651
|
for (const child of node.children) {
|
|
@@ -2578,4 +2577,4 @@ export {
|
|
|
2578
2577
|
resizeImageForUiTars
|
|
2579
2578
|
};
|
|
2580
2579
|
|
|
2581
|
-
//# sourceMappingURL=chunk-
|
|
2580
|
+
//# sourceMappingURL=chunk-7EB47UPF.js.map
|