← Back to LayerTree domain
LayerTree.compositingReasons
Provides the reasons why the given layer was composited.
Domain: LayerTree
experimental
Parameters
| Name | Type | Description |
layerId | LayerId | The id of the layer for which we want to get the reasons it was composited. |
Returns
| Name | Type | Description |
compositingReasons | array | A list of strings specifying reasons for the given layer to become composited. |
compositingReasonIds | array | A 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": []}