Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(extract): optimize image box selection #130

Merged
merged 6 commits into from
Oct 17, 2024

Conversation

zhoushaw
Copy link
Member

This pull request includes a variety of changes to the packages/midscene/tests/ai/evaluate/test-data/antd-pagination/element-snapshot.json file, as well as updates to the packages/shared/src/img/box-select.ts, packages/web-integration/playwright.config.ts, and packages/web-integration/src/debug/index.ts files. The most important updates involve modifying node attributes and improving the logic for checking overlaps in box selection.

Changes to node attributes and index IDs:

Improvements to box selection logic:

  • packages/shared/src/img/box-select.ts: Added functions to check for overlaps and ensure positions are within image bounds, and updated logic to place text boxes in alternative positions if the original position overlaps or is out of bounds.

Other updates:

Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for midscene ready!

Name Link
🔨 Latest commit 945de08
🔍 Latest deploy log https://app.netlify.com/sites/midscene/deploys/67108ab9b61cc80008ef70c7
😎 Deploy Preview https://deploy-preview-130--midscene.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yuyutaotao yuyutaotao merged commit f312cec into main Oct 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants