mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2.8 KiB
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. |