@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.
@@ -16,7 +16,7 @@ import {
16
16
  resizeImageForUiTars,
17
17
  systemPromptToLocateElement,
18
18
  vlmPlanning
19
- } from "./chunk-EYIL4AHP.js";
19
+ } from "./chunk-7EB47UPF.js";
20
20
  export {
21
21
  AIActionType,
22
22
  AiAssert,
@@ -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
- return;
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-EYIL4AHP.js.map
2580
+ //# sourceMappingURL=chunk-7EB47UPF.js.map