diff --git a/ea-scripts/Modify background color opacity.md b/ea-scripts/Modify background color opacity.md index 5c9bd65..4bb2a6e 100644 --- a/ea-scripts/Modify background color opacity.md +++ b/ea-scripts/Modify background color opacity.md @@ -12,6 +12,9 @@ Although excalidraw has the opacity option in its native property Settings, it a ```javascript */ const alpha = parseFloat(await utils.inputPrompt("Background color opacity?","number","0.6")); +if(isNaN(alpha)) { + return; +} const elements=ea.getViewSelectedElements().filter((el)=>["rectangle","ellipse","diamond","line","image"].includes(el.type)); ea.copyViewElementsToEAforEditing(elements); ea.getElements().forEach((el)=>{