xLF
![](https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/images/scripts-stroke-width.jpg)

liAOrsNLGW0EPODYarM4Nl5PbrmfN1IBBb9X6DhaY0f4e1cHkndetzxlthMjIqguKFH8HqMkFsCzAeA6RWfXCoCwb5X8ymZRbdDT9MvjD3oy8coch2KYdkKfAkRAUTU5Q02z7BlP2UevvwIaHtTIQzit2Cf8hSlL8sgrjYgJFgv

N7Ws11FWJRpnyBNYlh2uUEyanFc9iR2dYAjm
[8tyYHKgdA8umI52gOjEtTzrXMrbhn1isNWGAithwvqHcSCurHUfshvmlFLt7y5MxaNkuUnxb9koxBlexsvr](https://zsviczian.github.io/obsidian-excalidraw-plugin/ExcalidrawScriptsEngine.html)

```javascript
*/
let width = (ea.getViewSelectedElement().strokeWidth??1).toString();
width = await utils.inputPrompt("Width?","number",width);
const elements=ea.getViewSelectedElements();
ea.copyViewElementsToEAforEditing(elements);
ea.getElements().forEach((el)=>el.strokeWidth=width);
ea.addElementsToView(false,false);
```
