The ID of the snapshot
The ID of the document the snapshot belongs to
The XFDF (serialized annotations) for the snapshot
The author of the snapshot
The name of the snapshot
The [[Document]] the snapshot belongs to
A boolean representing if the snapshot is currently being previewed
Previews this snapshot in the viewer. Throws an error if the document this snapshot belongs to is not currently in view
Exits preview mode. If this snapshot is not currently being previews, no action is taken.
Renames the snapshot.
Throws if the user does not have permission to edit the snapshot.
Deletes the snapshot.
Throws if the user does not have permission to delete the snapshot
Restores the document to the state of this snapshot.
If 'withXfdf' is provided, the document will be restored using the provided XFDF. It is not recommended to use this functionality.
Throws if user does not have permission to restore a snapshot.
Fired when anything about this snapshot changes
Returns a function that can be called to unsubscribe from the event
Fired when the snapshot is deleted
Returns a function that can be called to unsubscribe from the event
Fired when the document is restored to this point in time when this snapshot was taken
Returns a function that can be called to unsubscribe from the event
Fired when this snapshot is enters preview mode or leaves preview mode
Returns a function that can be called to unsubscribe from the event
Generated using TypeDoc
A class representing a snapshot of a document at a certain period of time
Instances of Snapshot get can retrieved from Document.getAllSnapshots or Document.getSnapshotPaginator