Overlay🧪
此域提供了与在被检查页面上方绘图相关的各种功能。
EN
This domain provides various functionality related to drawing atop the inspected page.
✅️️ Methods
🔨Overlay.disable
禁用域通知。
EN
Disables domain notifications.
🔨Overlay.enable
启用域通知。
EN
Enables domain notifications.
🔨Overlay.getGridHighlightObjectsForTest
用于持久化网格测试。
EN
For Persistent Grid testing.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| nodeIds | ✔️ | array[DOM.NodeId] | 获取高亮对象的节点ID。 | ENIds of the node to get highlight object for. |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| highlights | object | 为提供的节点ID提供网格高亮数据。 | ENGrid Highlight data for the node ids provided. |
🔨Overlay.getHighlightObjectForTest
用于测试。
EN
For testing.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| nodeId | ✔️ | DOM.NodeId | 获取高亮对象的节点标识符。 | ENId of the node to get highlight object for. | |
| includeDistance | boolean | 是否包含距离信息。 | ENWhether to include distance info. | ||
| includeStyle | boolean | 是否包含样式信息。 | ENWhether to include style info. | ||
| colorFormat | ColorFormat | 获取配置的颜色格式(默认:hex)。 | ENThe color format to get config with (default: hex). | ||
| showAccessibilityInfo | boolean | 是否显示无障碍信息(默认值:true)。 | ENWhether to show accessibility info (default: true). |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| highlight | object | 高亮节点的数据。 | ENHighlight data for the node. |
🔨Overlay.getSourceOrderHighlightObjectForTest
用于源顺序查看器测试。
EN
For Source Order Viewer testing.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| nodeId | ✔️ | DOM.NodeId | 要突出显示的节点的ID。 | ENId of the node to highlight. |