CaptureSnapshotParameter

@Serializable
data class CaptureSnapshotParameter(val computedStyles: List<String>, val includePaintOrder: Boolean? = null, val includeDOMRects: Boolean? = null, val includeBlendedBackgroundColors: Boolean? = null, val includeTextColorOpacities: Boolean? = null)

Constructors

Link copied to clipboard
constructor(computedStyles: List<String>, includePaintOrder: Boolean? = null, includeDOMRects: Boolean? = null, includeBlendedBackgroundColors: Boolean? = null, includeTextColorOpacities: Boolean? = null)

Properties

Link copied to clipboard

Whitelist of computed styles to return.

Link copied to clipboard

Whether to include blended background colors in the snapshot (default: false). Blended background color is achieved by blending background colors of all elements that overlap with the current element.

Link copied to clipboard

Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot

Link copied to clipboard

Whether to include layout object paint orders into the snapshot.

Link copied to clipboard

Whether to include text color opacity in the snapshot (default: false). An element might have the opacity property set that affects the text color of the element. The final text color opacity is computed based on the opacity of all overlapping elements.