← Back to LayerTree domain

LayerTree.compositingReasons

Provides the reasons why the given layer was composited.

Domain: LayerTree experimental

Parameters

NameTypeDescription
layerIdLayerIdThe id of the layer for which we want to get the reasons it was composited.

Returns

NameTypeDescription
compositingReasonsarrayA list of strings specifying reasons for the given layer to become composited.
compositingReasonIdsarrayA list of strings specifying reason IDs for the given layer to become composited.

Example Request

{
  "id": 1,
  "method": "LayerTree.compositingReasons",
  "params": {
    "layerId": "layerId-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "compositingReasons": [],
    "compositingReasonIds": []
  }
}

Usage in Node.js

const result = await send('LayerTree.compositingReasons', {"layerId": "layerId-value"});
console.log(result);
// {"compositingReasons": [], "compositingReasonIds": []}