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
|
@ -52,7 +52,7 @@ export function restore(
|
|||
|
||||
return {
|
||||
...element,
|
||||
version: element.id ? element.version + 1 : element.version || 0,
|
||||
version: element.version || 0,
|
||||
id: element.id || nanoid(),
|
||||
fillStyle: element.fillStyle || "hachure",
|
||||
strokeWidth: element.strokeWidth || 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue