Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.LayerTree.Layer

Headless Chrome Deno API
Latest
interface Protocol.LayerTree.Layer
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { Layer } = Protocol.LayerTree;

Information about a compositing layer.

Properties

layerId: LayerId

The unique id for this layer.

optional
parentLayerId: LayerId

The id of parent (not present for root).

optional
backendNodeId: DOM.BackendNodeId

The backend id for the node associated with this layer.

offsetX: number

Offset from parent layer, X coordinate.

offsetY: number

Offset from parent layer, Y coordinate.

width: number

Layer width.

height: number

Layer height.

optional
transform: number[]

Transformation matrix for layer, default is identity matrix

optional
anchorX: number

Transform anchor point X, absent if no transform specified

optional
anchorY: number

Transform anchor point Y, absent if no transform specified

optional
anchorZ: number

Transform anchor point Z, absent if no transform specified

paintCount: integer

Indicates how many time this layer has painted.

drawsContent: boolean

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

optional
invisible: boolean

Set if layer is not visible.

optional
scrollRects: ScrollRect[]

Rectangles scrolling on main thread only.

optional
stickyPositionConstraint: StickyPositionConstraint

Sticky position constraint information