Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface Protocol.LayerTree.Layer
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
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