跳到主要内容

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.
返回对象类型描述原文
highlightsobject为提供的节点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.
includeDistanceboolean是否包含距离信息。
ENWhether to include distance info.
includeStyleboolean是否包含样式信息。
ENWhether to include style info.
colorFormatColorFormat获取配置的颜色格式(默认:hex)。
ENThe color format to get config with (default: hex).
showAccessibilityInfoboolean是否显示无障碍信息(默认值:true)。
ENWhether to show accessibility info (default: true).
返回对象类型描述原文
highlightobject高亮节点的数据。
ENHighlight data for the node.

🔨Overlay.getSourceOrderHighlightObjectForTest

用于源顺序查看器测试。

EN
For Source Order Viewer testing.
参数必填标记类型描述原文
nodeId✔️DOM.NodeId要突出显示的节点的ID。
ENId of the node to highlight.
返回对象类型描述原文
highlightobject为提供的节点ID提供源顺序高亮数据。
ENSource order highlight data for the node id provided.

🔨Overlay.hideHighlight

隐藏任何高亮。

EN
Hides any highlight.

🔨Overlay.highlightNode

高亮显示具有给定 id 或给定 JavaScript 对象包装器的 DOM 节点。必须指定 nodeId 或 objectId 其中之一。

EN
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
参数必填标记类型描述原文
highlightConfig✔️HighlightConfig一个描述高亮外观的描述符。
ENA descriptor for the highlight appearance.
nodeIdDOM.NodeId要突出显示的节点的标识符。
ENIdentifier of the node to highlight.
backendNodeIdDOM.BackendNodeId要突出显示的后端节点标识符。
ENIdentifier of the backend node to highlight.
objectIdRuntime.RemoteObjectId要突出显示的节点的JavaScript对象标识符。
ENJavaScript object id of the node to be highlighted.
selectorstring突出显示相关节点的选择器。
ENSelectors to highlight relevant nodes.

🔨Overlay.highlightQuad

高亮显示给定的四边形。坐标是相对于主框架视口的绝对坐标。

EN
Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
参数必填标记类型描述原文
quad✔️DOM.QuadQuad 高亮显示
ENQuad to highlight
colorDOM.RGBA高亮填充颜色(默认:transparent)。
ENThe highlight fill color (default: transparent).
outlineColorDOM.RGBA高亮轮廓线的颜色(默认:transparent)。
ENThe highlight outline color (default: transparent).

🔨Overlay.highlightRect

高亮指定矩形。坐标是相对于主框架视口的绝对坐标。问题:该方法未正确处理设备像素比(DPR)。如果DPR不为1,当前必须由客户端调整坐标(参见 crbug.com/437807128)。

EN
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. Issue: the method does not handle device pixel ratio (DPR) correctly. The coordinates currently have to be adjusted by the client if DPR is not 1 (see crbug.com/437807128).
参数必填标记类型描述原文
x✔️integerX坐标
ENX coordinate
y✔️integerY 坐标
ENY coordinate
width✔️integer矩形宽度
ENRectangle width
height✔️integer矩形高度
ENRectangle height
colorDOM.RGBA高亮填充颜色(默认值:transparent)。
ENThe highlight fill color (default: transparent).
outlineColorDOM.RGBA高亮轮廓颜色(默认:transparent)。
ENThe highlight outline color (default: transparent).

🔨Overlay.highlightSourceOrder

高亮显示具有给定id或给定JavaScript对象包装器的DOM节点的子元素的源顺序。必须指定nodeId或objectId之一。

EN
Highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
参数必填标记类型描述原文
sourceOrderConfig✔️SourceOrderConfig覆盖层绘制外观的描述符。
ENA descriptor for the appearance of the overlay drawing.
nodeIdDOM.NodeId要突出显示的节点的标识符。
ENIdentifier of the node to highlight.
backendNodeIdDOM.BackendNodeId高亮显示的后端节点标识符。
ENIdentifier of the backend node to highlight.
objectIdRuntime.RemoteObjectId要突出显示的节点的JavaScript对象标识符。
ENJavaScript object id of the node to be highlighted.

🔨Overlay.setInspectMode

进入 'inspect' 模式。在此模式下,用户悬停的元素会被高亮显示。选择元素后,后端会生成 inspectNodeRequested 事件。

EN
Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
参数必填标记类型描述原文
mode✔️InspectMode设置检查模式。
ENSet an inspection mode.
highlightConfigHighlightConfig用于描述悬停节点高亮外观的描述符。如果 enabled == false,则可以省略。
ENA descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.

🔨Overlay.setPausedInDebuggerMessage

参数必填标记类型描述原文
messagestring要显示的消息,同时触发恢复和单步跳过控制。
ENThe message to display, also triggers resume and step over controls.

🔨Overlay.setShowAdHighlights

高亮所有被检测为广告的框架的所有者元素。

EN
Highlights owner element of all frames detected to be ads.
参数必填标记类型描述原文
show✔️booleanTrue for showing ad highlights
ENTrue for showing ad highlights

🔨Overlay.setShowContainerQueryOverlays

参数必填标记类型描述原文
containerQueryHighlightConfigs✔️array[ContainerQueryHighlightConfig]一个节点标识符和突出显示外观描述符的数组。
ENAn array of node identifiers and descriptors for the highlight appearance.

🔨Overlay.setShowDebugBorders

请求后端在图层上显示调试边框

EN
Requests that backend shows debug borders on layers
参数必填标记类型描述原文
show✔️booleanTrue for showing debug borders
ENTrue for showing debug borders

🔨Overlay.setShowFlexOverlays

参数必填标记类型描述原文
flexNodeHighlightConfigs✔️array[FlexNodeHighlightConfig]一个节点标识符和突出显示外观描述符的数组。
ENAn array of node identifiers and descriptors for the highlight appearance.

🔨Overlay.setShowFPSCounter

请求后端显示FPS计数器

EN
Requests that backend shows the FPS counter
参数必填标记类型描述原文
show✔️booleanTrue for showing the FPS counter
ENTrue for showing the FPS counter

🔨Overlay.setShowGridOverlays

使用CSS网格覆盖高亮多个元素。

EN
Highlight multiple elements with the CSS Grid overlay.
参数必填标记类型描述原文
gridNodeHighlightConfigs✔️array[GridNodeHighlightConfig]一个节点标识符和突出显示外观描述符的数组。
ENAn array of node identifiers and descriptors for the highlight appearance.

🔨Overlay.setShowHinge

添加一个双屏幕设备铰链

EN
Add a dual screen device hinge
参数必填标记类型描述原文
hingeConfigHingeConfighinge data,null 表示 hideHinge
ENhinge data, null means hideHinge

🔨Overlay.setShowInspectedElementAnchor

参数必填标记类型描述原文
inspectedElementAnchorConfig✔️InspectedElementAnchorConfig显示锚点的节点标识符。
ENNode identifier for which to show an anchor for.

🔨Overlay.setShowIsolatedElements

在隔离模式下显示元素,并带有覆盖层。

EN
Show elements in isolation mode with overlays.
参数必填标记类型描述原文
isolatedElementHighlightConfigs✔️array[IsolatedElementHighlightConfig]节点标识符和突出显示外观描述符的数组。
ENAn array of node identifiers and descriptors for the highlight appearance.

🔨Overlay.setShowLayoutShiftRegions

请求后端显示布局偏移区域

EN
Requests that backend shows layout shift regions
参数必填标记类型描述原文
result✔️booleanTrue for showing layout shift regions
ENTrue for showing layout shift regions

🔨Overlay.setShowPaintRects

请求后端显示绘制矩形

EN
Requests that backend shows paint rectangles
参数必填标记类型描述原文
result✔️booleanTrue for showing paint rectangles
ENTrue for showing paint rectangles

🔨Overlay.setShowScrollBottleneckRects

请求后端显示滚动瓶颈矩形

EN
Requests that backend shows scroll bottleneck rects
参数必填标记类型描述原文
show✔️booleanTrue for showing scroll bottleneck rects
ENTrue for showing scroll bottleneck rects

🔨Overlay.setShowScrollSnapOverlays

参数必填标记类型描述原文
scrollSnapHighlightConfigs✔️array[ScrollSnapHighlightConfig]一个节点标识符数组及其高亮外观的描述符。
ENAn array of node identifiers and descriptors for the highlight appearance.

🔨Overlay.setShowViewportSizeOnResize

在主框架调整大小时绘制视口尺寸。

EN
Paints viewport size upon main frame resize.
参数必填标记类型描述原文
show✔️boolean是否绘制尺寸。
ENWhether to paint size or not.

🔨Overlay.setShowWindowControlsOverlay

显示PWA的窗口控件覆盖层

EN
Show Window Controls Overlay for PWA
参数必填标记类型描述原文
windowControlsOverlayConfigWindowControlsOverlayConfigWindow Controls Overlay数据,null表示隐藏Window Controls Overlay
ENWindow Controls Overlay data, null means hide Window Controls Overlay

🔨Overlay.highlightFrame❌️

高亮显示具有给定ID的框架的所有者元素。已弃用:由于进程分离(所有者节点可能位于不同进程中),此功能无法可靠工作且无法修复。请在客户端中确定所有者节点并使用highlightNode。

EN
Highlights owner element of the frame with given id. Deprecated: Doesn't work reliably and cannot be fixed due to process separation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.
参数必填标记类型描述原文
frameId✔️Page.FrameId要突出显示的框架标识符。
ENIdentifier of the frame to highlight.
contentColorDOM.RGBA内容框高亮填充颜色(默认:transparent)。
ENThe content box highlight fill color (default: transparent).
contentOutlineColorDOM.RGBA内容框高亮轮廓颜色(默认:透明)。
ENThe content box highlight outline color (default: transparent).

🔨Overlay.setShowHitTestBorders❌️

已弃用,不再产生任何效果。

EN
Deprecated, no longer has any effect.
参数必填标记类型描述原文
show✔️booleanTrue for showing hit-test borders
ENTrue for showing hit-test borders

🔨Overlay.setShowWebVitals❌️

已弃用,不再产生任何效果。

EN
Deprecated, no longer has any effect.
参数必填标记类型描述原文
show✔️boolean

✅️️ Events

👋Overlay.inspectedElementWindowRestored

当用户要求恢复“检查元素”浮动窗口时触发。

EN
Fired when user asks to restore the Inspected Element floating window.
参数必填标记类型描述原文
backendNodeId✔️DOM.BackendNodeId恢复浮动窗口的节点ID。
ENId of the node to restore the floating window for.

👋Overlay.inspectModeCanceled

当用户取消检查模式时触发。

EN
Fired when user cancels the inspect mode.

👋Overlay.inspectNodeRequested

当节点需要被检查时触发。这发生在调用 setInspectMode 方法后,或者用户手动检查元素时。

EN
Fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element.
参数必填标记类型描述原文
backendNodeId✔️DOM.BackendNodeId要检查的节点的Id。
ENId of the node to inspect.

👋Overlay.inspectPanelShowRequested

当用户请求显示检查面板时触发。

EN
Fired when user asks to show the Inspect panel.
参数必填标记类型描述原文
backendNodeId✔️DOM.BackendNodeId要在面板中显示的节点标识符。
ENId of the node to show in the panel.

👋Overlay.nodeHighlightRequested

当节点需要高亮显示时触发。此事件在调用 setInspectMode 后发生。

EN
Fired when the node should be highlighted. This happens after call to setInspectMode.
参数必填标记类型描述原文
nodeId✔️DOM.NodeId

👋Overlay.screenshotRequested

当用户请求捕获页面某个区域的屏幕截图时触发。

EN
Fired when user asks to capture screenshot of some area on the page.
参数必填标记类型描述原文
viewport✔️Page.Viewport要捕获的视口,以设备独立像素(dip)为单位。
ENViewport to capture, in device independent pixels (dip).

✅️️ Types

📌Overlay.BoxStyle

绘制盒子的样式信息。

EN
Style information for drawing a box.

返回类型:object

属性必填标记类型描述原文
fillColorDOM.RGBA方框的背景色(默认:transparent)
ENThe background color for the box (default: transparent)
hatchColorDOM.RGBA方框的填充颜色(默认值:透明)
ENThe hatching color for the box (default: transparent)

📌Overlay.ColorFormat

允许的值:rgbhslhwbhex

EN
Allowed Values: rgb, hsl, hwb, hex

返回类型:string


📌Overlay.ContainerQueryContainerHighlightConfig

返回类型:object

属性必填标记类型描述原文
containerBorderLineStyle容器边框的样式。
ENThe style of the container border.
descendantBorderLineStyle后代元素的边框样式。
ENThe style of the descendants' borders.

📌Overlay.ContainerQueryHighlightConfig

返回类型:object

属性必填标记类型描述原文
containerQueryContainerHighlightConfig✔️ContainerQueryContainerHighlightConfig容器查询容器高亮外观的描述符。
ENA descriptor for the highlight appearance of container query containers.
nodeId✔️DOM.NodeId高亮显示的容器节点的标识符。
ENIdentifier of the container node to highlight.

📌Overlay.ContrastAlgorithm

允许的值:aaaaaapca

EN
Allowed Values: aa, aaa, apca

返回类型:string


📌Overlay.FlexContainerHighlightConfig

用于突出显示Flex容器元素的配置数据。

EN
Configuration data for the highlighting of Flex container elements.

返回类型:object

属性必填标记类型描述原文
containerBorderLineStyle容器边框的样式
ENThe style of the container border
lineSeparatorLineStyle行间分隔符的样式
ENThe style of the separator between lines
itemSeparatorLineStyle项目之间的分隔符样式
ENThe style of the separator between items
mainDistributedSpaceBoxStyle主轴上内容分布空间的对齐方式(justify-content)。
ENStyle of content-distribution space on the main axis (justify-content).
crossDistributedSpaceBoxStyle内容在交叉轴上的分布空间样式(align-content)。
ENStyle of content-distribution space on the cross axis (align-content).
rowGapSpaceBoxStyle由行间距(gap/row-gap)引起的空白区域样式。
ENStyle of empty space caused by row gaps (gap/row-gap).
columnGapSpaceBoxStyle列间隙(gap/column-gap)导致的空白区域的样式。
ENStyle of empty space caused by columns gaps (gap/column-gap).
crossAlignmentLineStyle自对齐线的样式(align-items)。
ENStyle of the self-alignment line (align-items).

📌Overlay.FlexItemHighlightConfig

用于高亮显示 Flex 项目元素的配置数据。

EN
Configuration data for the highlighting of Flex item elements.

返回类型:object

属性必填标记类型描述原文
baseSizeBoxBoxStyle表示项目基准尺寸的框的样式
ENStyle of the box representing the item's base size
baseSizeBorderLineStyle表示项目基础尺寸的盒子边框样式
ENStyle of the border around the box representing the item's base size
flexibilityArrowLineStyle表示项目增长或收缩的箭头样式
ENStyle of the arrow representing if the item grew or shrank

📌Overlay.FlexNodeHighlightConfig

返回类型:object

属性必填标记类型描述原文
flexContainerHighlightConfig✔️FlexContainerHighlightConfigFlex容器高亮外观的描述符。
ENA descriptor for the highlight appearance of flex containers.
nodeId✔️DOM.NodeId要高亮的节点的标识符。
ENIdentifier of the node to highlight.

📌Overlay.GridHighlightConfig

用于高亮显示网格元素的配置数据。

EN
Configuration data for the highlighting of Grid elements.

返回类型:object

属性必填标记类型描述原文
showGridExtensionLinesboolean是否显示从网格单元格到标尺的延伸线(默认值:false)。
ENWhether the extension lines from grid cells to the rulers should be shown (default: false).
showPositiveLineNumbersboolean显示正数行号标签(默认值:false)。
ENShow Positive line number labels (default: false).
showNegativeLineNumbersboolean显示负行号标签(默认值:false)。
ENShow Negative line number labels (default: false).
showAreaNamesboolean显示区域名称标签(默认值:false)。
ENShow area name labels (default: false).
showLineNamesboolean显示行名标签(默认值:false)。
ENShow line name labels (default: false).
showTrackSizesboolean显示轨道尺寸标签(默认值:false)。
ENShow track size labels (default: false).
gridBorderColorDOM.RGBA网格容器边框高亮颜色(默认:transparent)。
ENThe grid container border highlight color (default: transparent).
cellBorderColor❌️DOM.RGBA单元格边框颜色(默认:透明)。已弃用,请改用 rowLineColor 和 columnLineColor。
ENThe cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.
rowLineColorDOM.RGBA行线颜色(默认:transparent)。
ENThe row line color (default: transparent).
columnLineColorDOM.RGBA列线颜色(默认:transparent)。
ENThe column line color (default: transparent).
gridBorderDashboolean网格边框是否为虚线(默认值:false)。
ENWhether the grid border is dashed (default: false).
cellBorderDash❌️boolean单元格边框是否为虚线(默认值:false)。已弃用,请改用 rowLineDash 和 columnLineDash。
ENWhether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.
rowLineDashboolean行线是否为虚线(默认值:false)。
ENWhether row lines are dashed (default: false).
columnLineDashboolean列线是否为虚线(默认值:false)。
ENWhether column lines are dashed (default: false).
rowGapColorDOM.RGBA行间距高亮填充颜色(默认:transparent)。
ENThe row gap highlight fill color (default: transparent).
rowHatchColorDOM.RGBA行间距填充颜色(默认:transparent)。
ENThe row gap hatching fill color (default: transparent).
columnGapColorDOM.RGBA列间距高亮填充颜色(默认:''transparent'')。
ENThe column gap highlight fill color (default: transparent).
columnHatchColorDOM.RGBA列间隙填充的阴影颜色(默认:transparent)。
ENThe column gap hatching fill color (default: transparent).
areaBorderColorDOM.RGBA命名网格区域的边框颜色(默认值:transparent)。
ENThe named grid areas border color (Default: transparent).
gridBackgroundColorDOM.RGBA网格容器背景色(默认:transparent)。
ENThe grid container background color (Default: transparent).

📌Overlay.GridNodeHighlightConfig

持久网格高亮配置

EN
Configurations for Persistent Grid Highlight

返回类型:object

属性必填标记类型描述原文
gridHighlightConfig✔️GridHighlightConfig一个用于描述高亮外观的描述符。
ENA descriptor for the highlight appearance.
nodeId✔️DOM.NodeId要突出显示的节点的标识符。
ENIdentifier of the node to highlight.

📌Overlay.HighlightConfig

页面元素高亮的配置数据。

EN
Configuration data for the highlighting of page elements.

返回类型:object

属性必填标记类型描述原文
showInfoboolean是否应显示节点信息工具提示(默认值:false)。
ENWhether the node info tooltip should be shown (default: false).
showStylesboolean工具提示中是否显示节点样式(默认值:false)。
ENWhether the node styles in the tooltip (default: false).
showRulersboolean是否显示标尺(默认值:false)。
ENWhether the rulers should be shown (default: false).
showAccessibilityInfoboolean是否应显示a11y信息(默认值:true)。
ENWhether the a11y info should be shown (default: true).
showExtensionLinesboolean是否应显示从节点到标尺的延伸线(默认值:false)。
ENWhether the extension lines from node to the rulers should be shown (default: false).
contentColorDOM.RGBA内容框高亮填充颜色(默认:transparent)。
ENThe content box highlight fill color (default: transparent).
paddingColorDOM.RGBA内边距高亮填充颜色(默认:transparent)。
ENThe padding highlight fill color (default: transparent).
borderColorDOM.RGBA边框高亮填充颜色(默认:transparent)。
ENThe border highlight fill color (default: transparent).
marginColorDOM.RGBA边距高亮填充颜色(默认值:transparent)。
ENThe margin highlight fill color (default: transparent).
eventTargetColorDOM.RGBA事件目标元素高亮填充颜色(默认:transparent)。
ENThe event target element highlight fill color (default: transparent).
shapeColorDOM.RGBA形状外部填充颜色(默认:transparent)。
ENThe shape outside fill color (default: transparent).
shapeMarginColorDOM.RGBA形状边距填充颜色(默认:transparent)。
ENThe shape margin fill color (default: transparent).
cssGridColorDOM.RGBA网格布局颜色(默认:transparent)。
ENThe grid layout color (default: transparent).
colorFormatColorFormat用于格式化颜色样式的颜色格式(默认值:hex)。
ENThe color format used to format color styles (default: hex).
gridHighlightConfigGridHighlightConfig网格布局高亮配置(默认:全部透明)。
ENThe grid layout highlight configuration (default: all transparent).
flexContainerHighlightConfigFlexContainerHighlightConfigflex容器高亮配置(默认:全部透明)。
ENThe flex container highlight configuration (default: all transparent).
flexItemHighlightConfigFlexItemHighlightConfigflex item 高亮配置(默认:全部透明)。
ENThe flex item highlight configuration (default: all transparent).
contrastAlgorithmContrastAlgorithm要使用的对比度算法(用于对比比率的计算)(默认值:aa)。
ENThe contrast algorithm to use for the contrast ratio (default: aa).
containerQueryContainerHighlightConfigContainerQueryContainerHighlightConfig容器查询容器高亮配置(默认值:全部透明)。
ENThe container query container highlight configuration (default: all transparent).

📌Overlay.HingeConfig

双屏铰链配置

EN
Configuration for dual screen hinge

返回类型:object

属性必填标记类型描述原文
rect✔️DOM.Rect一个矩形代表铰链
ENA rectangle represent hinge
contentColorDOM.RGBA内容框高亮填充颜色(默认:深色)。
ENThe content box highlight fill color (default: a dark color).
outlineColorDOM.RGBA内容框高亮轮廓颜色(默认:transparent)。
ENThe content box highlight outline color (default: transparent).

📌Overlay.InspectedElementAnchorConfig

返回类型:object

属性必填标记类型描述原文
nodeIdDOM.NodeId要突出显示的节点的标识符。
ENIdentifier of the node to highlight.
backendNodeIdDOM.BackendNodeId要突出显示的后端节点标识符。
ENIdentifier of the backend node to highlight.

📌Overlay.InspectMode

允许的值:searchForNodesearchForUAShadowDOMcaptureAreaScreenshotnone

EN
Allowed Values: searchForNode, searchForUAShadowDOM, captureAreaScreenshot, none

返回类型:string


📌Overlay.IsolatedElementHighlightConfig

返回类型:object

属性必填标记类型描述原文
isolationModeHighlightConfig✔️IsolationModeHighlightConfig一个描述元素在隔离模式下高亮外观的描述符。
ENA descriptor for the highlight appearance of an element in isolation mode.
nodeId✔️DOM.NodeId要突出显示的隔离元素的标识符。
ENIdentifier of the isolated element to highlight.

📌Overlay.IsolationModeHighlightConfig

返回类型:object

属性必填标记类型描述原文
resizerColorDOM.RGBA调整器(resizers)的填充颜色(默认:透明)。
ENThe fill color of the resizers (default: transparent).
resizerHandleColorDOM.RGBA调整大小手柄的填充颜色(默认值:transparent)。
ENThe fill color for resizer handles (default: transparent).
maskColorDOM.RGBA用于覆盖非隔离元素的遮罩填充颜色(默认值:transparent)。
ENThe fill color for the mask covering non-isolated elements (default: transparent).

📌Overlay.LineStyle

绘制线条的样式信息。

EN
Style information for drawing a line.

返回类型:object

属性必填标记类型描述原文
colorDOM.RGBA线条的颜色(默认:transparent)
ENThe color of the line (default: transparent)
patternstring线条样式(默认:实线)
允许取值:dasheddotted
ENThe line pattern (default: solid)
Allowed Values: dashed, dotted

📌Overlay.ScrollSnapContainerHighlightConfig

返回类型:object

属性必填标记类型描述原文
snapportBorderLineStylesnapport 边框的样式(默认值:transparent)
ENThe style of the snapport border (default: transparent)
snapAreaBorderLineStylesnap area 边框的样式(默认:transparent)
ENThe style of the snap area border (default: transparent)
scrollMarginColorDOM.RGBA边距高亮填充颜色(默认:transparent)。
ENThe margin highlight fill color (default: transparent).
scrollPaddingColorDOM.RGBA内边距高亮的填充颜色(默认值:transparent)。
ENThe padding highlight fill color (default: transparent).

📌Overlay.ScrollSnapHighlightConfig

返回类型:object

属性必填标记类型描述原文
scrollSnapContainerHighlightConfig✔️ScrollSnapContainerHighlightConfig滚动捕捉容器高亮外观的描述符。
ENA descriptor for the highlight appearance of scroll snap containers.
nodeId✔️DOM.NodeId要突出显示的节点的标识符。
ENIdentifier of the node to highlight.

📌Overlay.SourceOrderConfig

用于绘制元素子项源顺序的配置数据。

EN
Configuration data for drawing the source order of an elements children.

返回类型:object

属性必填标记类型描述原文
parentOutlineColor✔️DOM.RGBA用于勾勒给定元素轮廓的颜色。
ENthe color to outline the given element in.
childOutlineColor✔️DOM.RGBA用于勾勒子元素轮廓的颜色。
ENthe color to outline the child elements in.

📌Overlay.WindowControlsOverlayConfig

窗口控件叠加层配置

EN
Configuration for Window Controls Overlay

返回类型:object

属性必填标记类型描述原文
showCSS✔️boolean当模拟窗口控件覆盖时,是否应显示标题栏CSS。
ENWhether the title bar CSS should be shown when emulating the Window Controls Overlay.
selectedPlatform✔️string选择用于显示覆盖层的平台。
ENSelected platforms to show the overlay.
themeColor✔️string应用清单中定义的主题颜色。
ENThe theme color defined in app manifest.