From 69abe47e9b827e19256d065e1630d810e33636bd Mon Sep 17 00:00:00 2001 From: zahuifan Date: Mon, 24 Jan 2022 14:49:23 +0800 Subject: [PATCH] feat: add icons to shape list --- ea-scripts/Change shape of selected elements.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ea-scripts/Change shape of selected elements.md b/ea-scripts/Change shape of selected elements.md index ebf371c..8058d0d 100644 --- a/ea-scripts/Change shape of selected elements.md +++ b/ea-scripts/Change shape of selected elements.md @@ -5,9 +5,10 @@ The script allows you to change the shape of selected Rectangles, Diamonds and E ```javascript */ +const shapesDispaly=["○ ellipse","□ rectangle","◇ diamond"]; const shapes=["ellipse","rectangle","diamond"]; elements = ea.getViewSelectedElements().filter(el=>shapes.contains(el.type)); -newShape = await utils.suggester(shapes, shapes); +newShape = await utils.suggester(shapesDispaly, shapes); if(!newShape) return; elements.forEach(el=>el.type = newShape);