New Features:
- Published 5 new ExcalidrawAPI functions:
selectElements: (elements: readonly ExcalidrawElement[]) => void;
sendBackward: (elements: readonly ExcalidrawElement[]) => void;
bringForward: (elements: readonly ExcalidrawElement[]) => void;
sendToBack: (elements: readonly ExcalidrawElement[]) => void;
bringToFront: (elements: readonly ExcalidrawElement[]) => void;
you can access these via ea.getExcalidrawAPI().
- Added ExcalidrawAutomate function for moving elements in the zIndex in the view. To see an example of how the function is used, take a look at Set background color of unclosed line object by adding a shadow clone
moveViewElementToZIndex(elementId:number, newZIndex:number): void;
- I updated/improved two scripts: