Update ExcalidrawScriptsEngine.md

This commit is contained in:
zsviczian
2021-12-12 10:34:27 +01:00
committed by GitHub
parent d7f8429d91
commit f4a045b476

View File

@@ -23,7 +23,9 @@ An Excalidraw script will automatically receive two objects:
- `utils`: There is currently only a single function published on `utils`
- `inputPrompt: (header: string, placeholder?: string, value?: string)`. You need to await the result of inputPrompt. See the example below for details.
## Example Excalidraw Automate script
---------
## Example Excalidraw Automate Scripts
### Add box around selected elements
@@ -156,4 +158,4 @@ elements.forEach((el)=>{
ea.addToGroup([el.id,ellipseId]);
});
ea.addElementsToView();
```
```