New Excalidraw Automate Functions
getViewElements()
getViewElements():ExcalidrawElement[]
Returns all the elements from the view.
deleteViewElements()
deleteViewElements(elToDelete: ExcalidrawElement[]):boolean
Deletes those elements from the view that match the elements provided as the input parameter.
Example to delete the selected elements from the view:
ea = ExcalidrawAutomate;
ea.setView("active");
el = ea.getViewSelectedElements();
ea.deleteViewElements();