Constructors
constructor
- new Change<P>(__namedParameters): Change<P>
Parameters
- __namedParameters: {
id: ChangeID;
message?: string;
operations?: Operation[];
presenceChange?: PresenceChange<P>;
}id: ChangeID
Optional
message?: string
Optional
operations?: Operation[]
Optional
presenceChange?: PresenceChange<P>
Properties
Private
Optional
message
message?: string
Private
operations
operations: Operation[]
Private
Optional
presenceChange
presenceChange?: PresenceChange<P> Methods
execute
- execute(root, presences, source): {
opInfos: OperationInfo[];
reverseOps: HistoryOperation<P>[];
} Parameters
- root: CRDTRoot
- presences: Map<string, P>
- source: OpSource
Returns {
opInfos: OperationInfo[];
reverseOps: HistoryOperation<P>[];
}
reverseOps: HistoryOperation<P>[]
getID
- getID(): ChangeID
Returns ChangeID
getMessage
- getMessage(): undefined | string
Returns undefined | string
getOperations
- getOperations(): Operation[]
Returns Operation[]
getPresenceChange
- getPresenceChange(): undefined | PresenceChange<P>
Returns undefined | PresenceChange<P>
hasOperations
- hasOperations(): boolean
Returns boolean
hasPresenceChange
- hasPresenceChange(): boolean
Returns boolean
setActor
- setActor(actorID): void
Returns void
toStruct
- toStruct(): ChangeStruct<P>
Returns ChangeStruct<P>
toTestString
- toTestString(): string
Returns string
Static
create
- create<P>(__namedParameters): Change<P>
Parameters
- __namedParameters: {
id: ChangeID;
message?: string;
operations?: Operation[];
presenceChange?: PresenceChange<P>;
}id: ChangeID
Optional
message?: string
Optional
operations?: Operation[]
Optional
presenceChange?: PresenceChange<P>
Change
represents a unit of modification in the document.