puppeteer/new-docs/puppeteer.protocol.layertree.layer.md
2020-07-13 14:01:35 +01:00

2.8 KiB

Home > puppeteer > Protocol > LayerTree > Layer

Protocol.LayerTree.Layer interface

Information about a compositing layer.

Signature:

export interface Layer 

Properties

Property Type Description
anchorX number Transform anchor point X, absent if no transform specified
anchorY number Transform anchor point Y, absent if no transform specified
anchorZ number Transform anchor point Z, absent if no transform specified
backendNodeId DOM.BackendNodeId The backend id for the node associated with this layer.
drawsContent boolean Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
height number Layer height.
invisible boolean Set if layer is not visible.
layerId LayerId The unique id for this layer.
offsetX number Offset from parent layer, X coordinate.
offsetY number Offset from parent layer, Y coordinate.
paintCount integer Indicates how many time this layer has painted.
parentLayerId LayerId The id of parent (not present for root).
scrollRects ScrollRect[] Rectangles scrolling on main thread only.
stickyPositionConstraint StickyPositionConstraint Sticky position constraint information
transform number[] Transformation matrix for layer, default is identity matrix
width number Layer width.