Canvas where to apply Actions.
List of done actions.
List of actions, applied to a shape that doesn't allready exist.
List of undone actions.
List of created shapes.
List of deleted shapes.
associate each peer connected to the last timestamp he sended
Current value of the clock.
Id of the user.
Manage the execution an action that has been received and add it to the doneAction list if the first action is executed on a not existing shape, add it to the queue list if an action is in concurrency with a previous one, execute the "promote" function
action that just arrived and hasn't been processed yet
Manage a problem of concurrency due to a new action, by undoing action that should be executed after the new function, and then re executing all of them in the correct order.
the new action, in concurrency with the previous ones
Set the listeners for Action that need to be apply to the canvas.
set the time stamp to the max between the current time stamp and the last time stamp received from a peer delete all the previous actions which have a time stamp as it can't receive a message concurrent to it anymore.
the new action that just has been executed
add a new peer to the list of the peer time stamps, his time stamp is set to 0
the id of the new connected peer
Return the current value of the timestamp
add a new peer to the list of the peer time stamps, his time stamp is set to 0
the id of the new connected peer
Generated using TypeDoc
A class to manage and apply actions on a Canvas.