浏览代码

fix: tweak readme for syncable elements (#3444)

* fix: tweak readme for syncable elements

* fix

* tweak

Co-authored-by: David Luzar <luzar.david@gmail.com>
Aakansha Doshi 4 年之前
父节点
当前提交
d5a270f643
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/packages/excalidraw/README.md
  2. 1 1
      src/packages/excalidraw/README_NEXT.md

+ 1 - 1
src/packages/excalidraw/README.md

@@ -601,7 +601,7 @@ getSyncableElements(elements:  <a href="https://github.com/excalidraw/excalidraw
 import { getSyncableElements } from "@excalidraw/excalidraw";
 ```
 
-This function returns all the deleted elements of the scene.
+Returns all elements including deleted ones, excluding elements which are are invisibly small (e.g. width & height are zero). Useful when you want to sync elements during collaboration.
 
 #### `getElementMap`
 

+ 1 - 1
src/packages/excalidraw/README_NEXT.md

@@ -626,7 +626,7 @@ getSyncableElements(elements:  <a href="https://github.com/excalidraw/excalidraw
 import { getSyncableElements } from "@excalidraw/excalidraw";
 ```
 
-This function returns all the deleted elements of the scene.
+Returns all elements including deleted ones, excluding elements which are are invisibly small (e.g. width & height are zero). Useful when you want to sync elements during collaboration.
 
 #### `getElementMap`