mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
36 lines
2.8 KiB
Markdown
36 lines
2.8 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [LayerTree](./puppeteer.protocol.layertree.md) > [Layer](./puppeteer.protocol.layertree.layer.md)
|
|
|
|
## Protocol.LayerTree.Layer interface
|
|
|
|
Information about a compositing layer.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export interface Layer
|
|
```
|
|
|
|
## Properties
|
|
|
|
| Property | Type | Description |
|
|
| --- | --- | --- |
|
|
| [anchorX](./puppeteer.protocol.layertree.layer.anchorx.md) | number | Transform anchor point X, absent if no transform specified |
|
|
| [anchorY](./puppeteer.protocol.layertree.layer.anchory.md) | number | Transform anchor point Y, absent if no transform specified |
|
|
| [anchorZ](./puppeteer.protocol.layertree.layer.anchorz.md) | number | Transform anchor point Z, absent if no transform specified |
|
|
| [backendNodeId](./puppeteer.protocol.layertree.layer.backendnodeid.md) | [DOM.BackendNodeId](./puppeteer.protocol.dom.backendnodeid.md) | The backend id for the node associated with this layer. |
|
|
| [drawsContent](./puppeteer.protocol.layertree.layer.drawscontent.md) | boolean | Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only. |
|
|
| [height](./puppeteer.protocol.layertree.layer.height.md) | number | Layer height. |
|
|
| [invisible](./puppeteer.protocol.layertree.layer.invisible.md) | boolean | Set if layer is not visible. |
|
|
| [layerId](./puppeteer.protocol.layertree.layer.layerid.md) | [LayerId](./puppeteer.protocol.layertree.layerid.md) | The unique id for this layer. |
|
|
| [offsetX](./puppeteer.protocol.layertree.layer.offsetx.md) | number | Offset from parent layer, X coordinate. |
|
|
| [offsetY](./puppeteer.protocol.layertree.layer.offsety.md) | number | Offset from parent layer, Y coordinate. |
|
|
| [paintCount](./puppeteer.protocol.layertree.layer.paintcount.md) | [integer](./puppeteer.protocol.integer.md) | Indicates how many time this layer has painted. |
|
|
| [parentLayerId](./puppeteer.protocol.layertree.layer.parentlayerid.md) | [LayerId](./puppeteer.protocol.layertree.layerid.md) | The id of parent (not present for root). |
|
|
| [scrollRects](./puppeteer.protocol.layertree.layer.scrollrects.md) | [ScrollRect](./puppeteer.protocol.layertree.scrollrect.md)<!-- -->\[\] | Rectangles scrolling on main thread only. |
|
|
| [stickyPositionConstraint](./puppeteer.protocol.layertree.layer.stickypositionconstraint.md) | [StickyPositionConstraint](./puppeteer.protocol.layertree.stickypositionconstraint.md) | Sticky position constraint information |
|
|
| [transform](./puppeteer.protocol.layertree.layer.transform.md) | number\[\] | Transformation matrix for layer, default is identity matrix |
|
|
| [width](./puppeteer.protocol.layertree.layer.width.md) | number | Layer width. |
|
|
|