Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.LayerTree.Layer
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { Layer } = default.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