* updated collab event names * added a canvas to record the mouse movement * can show pointers * temp * can draw multiple pointers using canvas, moved multiplayer canvas to artboard level * using constants to draw the cursors on canvas * can show pointers with different colors * showing proper username * added constants for collab events and namespace * updated the page socket var name * defined a id constant, and resizing the canvas if needed on window resizing, and then clearing it * minor refactor * hide pointer of users leaving the page * moved our the share pointer func * defined separate types * added minor comment * using requestAnimationFrame to improve performance. * added connection checks before emitting events. Added mechanism to try to reconnect manually * using ref to keep animation step id * updated the way using requestAnimationFrame * passing pageId as prop to canvas and pointer canvas * emitting events only if there are more than one realtime editors * added pageId dependency * removed unnecessary prop and using reactive state * remove explicit connection event * maintaining connection state of page level socket * fixed the multipointer text background width |
||
|---|---|---|
| .. | ||
| client | ||
| rts | ||
| server | ||
| util | ||