mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
Merge pull request #386 from 1-2-3/master
feat: add icons to shape list
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user