← Back to LayerTree domain
LayerTree.snapshotCommandLog
Replays the layer snapshot and returns canvas log.
Domain: LayerTree
experimental
Parameters
| Name | Type | Description |
snapshotId | SnapshotId | The id of the layer snapshot. |
Returns
| Name | Type | Description |
commandLog | array | The array of canvas function calls. |
Example Request
{
"id": 1,
"method": "LayerTree.snapshotCommandLog",
"params": {
"snapshotId": "snapshotId-value"
}
}
Example Response
{
"id": 1,
"result": {
"commandLog": []
}
}
Usage in Node.js
const result = await send('LayerTree.snapshotCommandLog', {"snapshotId": "snapshotId-value"});
console.log(result);
// {"commandLog": []}