Repository navigation
Conversation
基于 upstream/setup-v7 (4c396b2) 重建,内容取自已合并上游的 setup-v7 (8f18853e) 中的 6 个图像相关文件,一次性包含: - 脚本结束时回收全部图像资源(原 PR 主题) - ImageWrapper 追踪上限不再误回收刚创建的 Bitmap - requestScreenCaptureLegacy 统一为单一同步语义、15s 默认超时, 并支持 0/1/2 参重载(修复 Rhino 传入 Undefined 时的重载歧义) - getBrightness 改用 Double 累加、修正区域边界与采样数收敛 - ScreenCaptureManager 绑定加超时、失败不伪装成功、连接不泄漏 - TemplateMatching 拒绝 useGrayscale 与 transparentMask 同时使用 - images/index.ts 的 matchMethod 保留合法的 0 (TM_SQDIFF) JS 产物(dist/assets)由构建任务生成,未纳入提交。
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 72 |
| Duplication | 2 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
images.requestScreenCaptureLegacy()支持 0 / 1 / 2 个参数:无参时自动方向 + 15 秒超时,单参数可传横竖屏或超时时间,双参数为方向 + 超时;修复无参调用时的参数匹配失败。useGrayscale(灰度匹配)与matchMethod(匹配方法)选项;images.getBrightness(img, sampleCount?, region?)获取图像亮度。修复