mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add collaborators names (#1223)
* add random usernames * add username state * add username input * ability to set names * fix tests * set username oon mobile * remove auto generated names * remove commented code * always string * updaate snapshots * maintain username when clearing canvas * Update src/renderer/renderScene.ts Co-Authored-By: Lipis <lipiridis@gmail.com> * add border * fix styles Co-authored-by: Pete Hunt <petehunt@users.noreply.github.com> Co-authored-by: Faustino Kialungila <faustino.kialungila@gmail.com> Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
parent
0c3d34261e
commit
67805bc7a7
13 changed files with 154 additions and 2 deletions
|
@ -37,6 +37,7 @@ export type AppState = {
|
|||
cursorButton: "up" | "down";
|
||||
scrolledOutside: boolean;
|
||||
name: string;
|
||||
username: string;
|
||||
isCollaborating: boolean;
|
||||
isResizing: boolean;
|
||||
isRotating: boolean;
|
||||
|
@ -53,6 +54,7 @@ export type AppState = {
|
|||
};
|
||||
button?: "up" | "down";
|
||||
selectedElementIds?: AppState["selectedElementIds"];
|
||||
username?: string | null;
|
||||
}
|
||||
>;
|
||||
shouldCacheIgnoreZoom: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue