|
@@ -910,6 +910,38 @@ getFreeDrawSvgPath(element: <a href="https://github.com/excalidraw/excalidraw/bl
|
910
|
910
|
|
911
|
911
|
This function returns the free draw svg path for the element.
|
912
|
912
|
|
|
913
|
+#### `isLinearElement`
|
|
914
|
+
|
|
915
|
+**How to use**
|
|
916
|
+
|
|
917
|
+```js
|
|
918
|
+import { isLinearElement } from "@excalidraw/excalidraw-next";
|
|
919
|
+```
|
|
920
|
+
|
|
921
|
+**Signature**
|
|
922
|
+
|
|
923
|
+<pre>
|
|
924
|
+isLinearElement(elementType?: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L80">ExcalidrawElement</a>): boolean
|
|
925
|
+</pre>
|
|
926
|
+
|
|
927
|
+This function returns true if the element is linear type (`arrow` |`line`) else returns false.
|
|
928
|
+
|
|
929
|
+#### `getNonDeletedElements`
|
|
930
|
+
|
|
931
|
+**How to use**
|
|
932
|
+
|
|
933
|
+```js
|
|
934
|
+import { getNonDeletedElements } from "@excalidraw/excalidraw-next";
|
|
935
|
+```
|
|
936
|
+
|
|
937
|
+**Signature**
|
|
938
|
+
|
|
939
|
+<pre>
|
|
940
|
+getNonDeletedElements(elements: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L80"> readonly ExcalidrawElement[]</a>): as readonly <a href="https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L90">NonDeletedExcalidrawElement[]</a>
|
|
941
|
+</pre>
|
|
942
|
+
|
|
943
|
+This function returns an array of deleted elements.
|
|
944
|
+
|
913
|
945
|
### Exported constants
|
914
|
946
|
|
915
|
947
|
#### `FONT_FAMILY`
|