LayerTree.Layer

Information about a compositing layer.

{
  "id": "Layer",
  "type": "object",
  "description": "Information about a compositing layer.",
  "properties": [
    {
      "name": "layerId",
      "$ref": "LayerId",
      "description": "The unique id for this layer."
    },
    {
      "name": "parentLayerId",
      "$ref": "LayerId",
      "optional": true,
      "description": "The id of parent (not present for root)."
    },
    {
      "name": "backendNodeId",
      "$ref": "DOM.BackendNodeId",
      "optional": true,
      "description": "The backend id for the node associated with this layer."
    },
    {
      "name": "offsetX",
      "type": "number",
      "description": "Offset from parent layer, X coordinate."
    },
    {
      "name": "offsetY",
      "type": "number",
      "description": "Offset from parent layer, Y coordinate."
    },
    {
      "name": "width",
      "type": "number",
      "description": "Layer width."
    },
    {
      "name": "height",
      "type": "number",
      "description": "Layer height."
    },
    {
      "name": "transform",
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 16,
      "maxItems": 16,
      "optional": true,
      "description": "Transformation matrix for layer, default is identity matrix"
    },
    {
      "name": "anchorX",
      "type": "number",
      "optional": true,
      "description": "Transform anchor point X, absent if no transform specified"
    },
    {
      "name": "anchorY",
      "type": "number",
      "optional": true,
      "description": "Transform anchor point Y, absent if no transform specified"
    },
    {
      "name": "anchorZ",
      "type": "number",
      "optional": true,
      "description": "Transform anchor point Z, absent if no transform specified"
    },
    {
      "name": "paintCount",
      "type": "integer",
      "description": "Indicates how many time this layer has painted."
    },
    {
      "name": "drawsContent",
      "type": "boolean",
      "description": "Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only."
    },
    {
      "name": "invisible",
      "type": "boolean",
      "optional": true,
      "description": "Set if layer is not visible."
    },
    {
      "name": "scrollRects",
      "type": "array",
      "items": {
        "$ref": "ScrollRect"
      },
      "optional": true,
      "description": "Rectangles scrolling on main thread only."
    }
  ]
}