← Back to LayerTree domain

LayerTree.snapshotCommandLog

Replays the layer snapshot and returns canvas log.

Domain: LayerTree experimental

Parameters

NameTypeDescription
snapshotIdSnapshotIdThe id of the layer snapshot.

Returns

NameTypeDescription
commandLogarrayThe 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": []}