o-spreadsheet API / Revision
RevisionData
• new Revision(id
, clientId
, commands
, changes?
)
A revision represents a whole client action (Create a sheet, merge a Zone, Undo, ...). A revision contains the following information:
- id: ID of the revision
- commands: CoreCommands that are linked to the action, and should be dispatched in other clients
- clientId: Client who initiated the action
- changes: List of changes applied on the state.
Name | Type |
---|---|
id |
UID |
clientId |
string |
commands |
readonly CoreCommand [] |
changes? |
readonly HistoryChange [] |
• Readonly
clientId: string
RevisionData.clientId
• Readonly
id: UID
RevisionData.id
• get
changes(): readonly HistoryChange
[]
readonly HistoryChange
[]
• get
commands(): readonly CoreCommand
[]
readonly CoreCommand
[]
▸ setChanges(changes
): void
Name | Type |
---|---|
changes |
readonly HistoryChange [] |
void