Table of Contents

Class Layer

Namespace
Selenium.WebDriver.BiDi.Cdp.LayerTree
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Information about a compositing layer.

public sealed record Layer : IEquatable<Layer>
Inheritance
Layer
Implements
Inherited Members

Constructors

Layer(LayerId, double, double, double, double, long, bool)

Information about a compositing layer.

public Layer(LayerId LayerId, double OffsetX, double OffsetY, double Width, double Height, long PaintCount, bool DrawsContent)

Parameters

LayerId LayerId

The unique id for this layer.

OffsetX double

Offset from parent layer, X coordinate.

OffsetY double

Offset from parent layer, Y coordinate.

Width double

Layer width.

Height double

Layer height.

PaintCount long

Indicates how many time this layer has painted.

DrawsContent bool

Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.

Properties

AnchorX

Transform anchor point X, absent if no transform specified

public double? AnchorX { get; init; }

Property Value

double?

AnchorY

Transform anchor point Y, absent if no transform specified

public double? AnchorY { get; init; }

Property Value

double?

AnchorZ

Transform anchor point Z, absent if no transform specified

public double? AnchorZ { get; init; }

Property Value

double?

BackendNodeId

The backend id for the node associated with this layer.

public BackendNodeId? BackendNodeId { get; init; }

Property Value

BackendNodeId

DrawsContent

Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.

public bool DrawsContent { get; init; }

Property Value

bool

Height

Layer height.

public double Height { get; init; }

Property Value

double

Invisible

Set if layer is not visible.

public bool? Invisible { get; init; }

Property Value

bool?

LayerId

The unique id for this layer.

public LayerId LayerId { get; init; }

Property Value

LayerId

OffsetX

Offset from parent layer, X coordinate.

public double OffsetX { get; init; }

Property Value

double

OffsetY

Offset from parent layer, Y coordinate.

public double OffsetY { get; init; }

Property Value

double

PaintCount

Indicates how many time this layer has painted.

public long PaintCount { get; init; }

Property Value

long

ParentLayerId

The id of parent (not present for root).

public LayerId? ParentLayerId { get; init; }

Property Value

LayerId

ScrollRects

Rectangles scrolling on main thread only.

public ImmutableArray<ScrollRect>? ScrollRects { get; init; }

Property Value

ImmutableArray<ScrollRect>?

StickyPositionConstraint

Sticky position constraint information

public StickyPositionConstraint? StickyPositionConstraint { get; init; }

Property Value

StickyPositionConstraint

Transform

Transformation matrix for layer, default is identity matrix

public ImmutableArray<double>? Transform { get; init; }

Property Value

ImmutableArray<double>?

Width

Layer width.

public double Width { get; init; }

Property Value

double