github zsviczian/obsidian-excalidraw-plugin 1.3.13
Excalidraw 1.3.13

latest releases: 2.15.3-beta-2, 2.15.3-beta-1, 2.15.2...
3 years ago

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();

Don't miss a new obsidian-excalidraw-plugin release

NewReleases is sending notifications on new releases.