feat(vom): discover canvas candidates and resolve visible regions | 发现 canvas 候选并计算可见区域 - #205
Draft
Ljy-0827 wants to merge 3 commits into
Draft
feat(vom): discover canvas candidates and resolve visible regions | 发现 canvas 候选并计算可见区域#205Ljy-0827 wants to merge 3 commits into
Ljy-0827 wants to merge 3 commits into
Conversation
Ljy-0827
added this pull request to stack #210
September 9, 2026 14:08
Ljy-0827
force-pushed
the
feat/canvas-region-discovery
branch
from
September 10, 2026 04:21
fa0952a to
fecb38b
Compare
Ljy-0827
force-pushed
the
feat/canvas-region-discovery
branch
from
September 10, 2026 07:46
fecb38b to
e25061e
Compare
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.
变更概述
在现有观察采集数据上增加 Canvas 候选发现,识别具有可见区域的 Canvas,并提供所属 frame、DOM 身份、元素外框和裁剪区域,为后续视觉选择、ref 注册及截图提供输入。
本 PR 完成内部候选发现与区域计算,尚未接入 observe 输出、注册视觉 ref 或执行截图。
问题与实现
1. 现有采集数据缺少视觉区域判断所需的事实
Canvas 的可见性和截图范围不仅取决于自身尺寸,也受到祖先样式、overflow 裁剪和 frame 边界影响。
2. Canvas 候选需要独立于语义节点筛选
没有名称或 AX 语义的 Canvas 仍可能包含需要观察的内容。
3. 可见区域需要统一处理坐标与祖先裁剪
实现范围与开销
验证