highlightRect
suspend fun highlightRect(args: Overlay.HighlightRectParameter, mode: CommandMode = CommandMode.DEFAULT)
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).
suspend fun highlightRect(x: Int, y: Int, width: Int, height: Int, color: DOM.RGBA? = null, outlineColor: DOM.RGBA? = null)
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).
Parameters
x
X coordinate
y
Y coordinate
width
Rectangle width
height
Rectangle height
color
The highlight fill color (default: transparent).
outlineColor
The highlight outline color (default: transparent).