mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
use deletedIds map to sync deletions (#936)
* use deletedIds map for sync deletions * refactor how we create data for syncing * fix comments * streamline broadcast API * split broadcast methods
This commit is contained in:
parent
ead6a083d4
commit
b9c75b5bc4
6 changed files with 128 additions and 68 deletions
|
@ -34,6 +34,7 @@ export type AppState = {
|
|||
openMenu: "canvas" | "shape" | null;
|
||||
lastPointerDownWith: PointerType;
|
||||
selectedElementIds: { [id: string]: boolean };
|
||||
deletedIds: { [id: string]: { version: ExcalidrawElement["version"] } };
|
||||
collaborators: Map<string, { pointer?: { x: number; y: number } }>;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue