new Sketch()
Sketch
Members
-
maxMessagesLength :Number
-
How log history queue should be (counted in "moves")
Type:
- Number
Methods
-
undo(uid, sid)
-
Undo the last frame identified by uid and sid
Parameters:
Name Type Description uid
string author (user_id) of frame to undo
sid
string sketch page id (sid)
-
validatePaths(paths)
-
Validate paths if contains only permitted moves
Parameters:
Name Type Description paths
Array.<Paths> list of paths to validate
Returns:
- list of valid paths
- Type
- Array.<Paths>
-
addPaths(client, obj)
-
Draw paths by client
Parameters:
Name Type Description client
Client Author of the paths
obj
Array.<Paths> List of drawen paths parts - bulk netframe
-
destructor()
-
Destructor of Sketch - when sketch is closed Saves Sketch on disk