-
Notifications
You must be signed in to change notification settings - Fork 239
Excalidraw Script Engine scripts library
Click to watch the intro video:
See the Excalidraw Script Engine documentation for more details.
Open the script you are interested in and save it to your Obsidian Vault including the first line /*
, or open it in "Raw" and copy the entire contents to Obsidian.
- Box Selected Elements
- Bullet Point
- Connect elements
- Convert text to link with folder and alias
- Create new markdown file and embed into active drawing
- Darken background color
- Dimensions
- Elbow connectors
- Expand rectangles horizontally keep text centered
- Expand rectangles horizontally
- Expand rectangles vertically keep text centered
- Expand rectangles vertically
- Fixed spacing
- Fixed-vertical distance
- Font Family
- Grid
- Lighten background color
- Modify background color opacity
- Modify stroke width of selected elements
- OCR - Optical Character Recognition
- Reverse arrows
- Set Link Alias
- Split text by lines
- Text Align
- Transfer TextElements to Excalidraw markdown metadata
- Zoom to Fit Selected Elements
Author: @zsviczian / Download: link to script
This script will add an encapsulating box around the currently selected elements in Excalidraw.
Author: @zsviczian / Download: link to script
This script will add a small circle to the top left of each text element in the selection and add the text and the "bullet point" into a group.
Author: @zsviczian / Download: link to script
This script will connect two objects with an arrow. If either of the objects are a set of grouped elements (e.g. a text element grouped with an encapsulating rectangle), the script will identify these groups, and connect the arrow to the largest object in the group (assuming you want to connect the arrow to the box around the text element).
Author: original text]]` / Download: link to script
original text
=> `[[selected folder/original text\
Converts text elements to links pointing to a file in a selected folder and with the alias set as the original text. The script will prompt the user to select an existing folder from the vault. @zsviczian|
Author: @zsviczian / Download: link to script
The script will prompt you for a filename, then create a new markdown document with the file name provided, open the new markdown document in an adjacent pane, and embed the markdown document into the active Excalidraw drawing.
Author: @1-2-3 / Download: link to script
This script darkens the background color of the selected element by 2% at a time. You can use this script several times until you are satisfied. It is recommended to set a shortcut key for this script so that you can quickly try to DARKEN and LIGHTEN the color effect. In contrast to the Modify background color opacity
script, the advantage is that the background color of the element is not affected by the canvas color, and the color value does not appear in a strange rgba() form.
Author: @zsviczian / Download: link to script
Currently there is no way to specify the exact location and size of objects in Excalidraw. You can bridge this gap with the following simple script.
Author: @1-2-3 / Download: link to script
This script converts the selected connectors to elbows.
Author: @1-2-3 / Download: link to script
This script expands the width of the selected rectangles until they are all the same width and keep the text centered.
Author: @1-2-3 / Download: link to script
This script expands the width of the selected rectangles until they are all the same width.
Author: @1-2-3 / Download: link to script
This script expands the height of the selected rectangles until they are all the same height and keep the text centered.
Author: @1-2-3 / Download: link to script
This script expands the height of the selected rectangles until they are all the same height.
Author: @1-2-3 / Download: link to script
The script arranges the selected elements horizontally with a fixed spacing. When we create an architecture diagram or mind map, we often need to arrange a large number of elements in a fixed spacing. Fixed spacing
and Fixed vertical Distance
scripts can save us a lot of time.
Author: @1-2-3 / Download: link to script
The script arranges the selected elements vertically with a fixed spacing. When we create an architecture diagram or mind map, we often need to arrange a large number of elements in a fixed spacing. Fixed spacing
and Fixed vertical Distance
scripts can save us a lot of time.
Author: @zsviczian / Download: link to script
Sets font family of the text block (Virgil, Helvetica, Cascadia). Useful if you want to set a keyboard shortcut for selecting font family.
Author: @zsviczian / Download: link to script
The default grid size in Excalidraw is 20. Currently there is no way to change the grid size via the user interface. This script offers a way to bridge this gap.
Author: @1-2-3 / Download: link to script
This script lightens the background color of the selected element by 2% at a time. You can use this script several times until you are satisfied. It is recommended to set a shortcut key for this script so that you can quickly try to DARKEN and LIGHTEN the color effect.In contrast to the Modify background color opacity
script, the advantage is that the background color of the element is not affected by the canvas color, and the color value does not appear in a strange rgba() form.
Author: @1-2-3 / Download: link to script
This script changes the opacity of the background color of the selected boxes. The default background color in Excalidraw is so dark that the text is hard to read. You can lighten the color a bit by setting transparency. And you can tweak the transparency over and over again until you're happy with it. Although excalidraw has the opacity option in its native property Settings, it also changes the transparency of the border. Use this script to change only the opacity of the background color without affecting the border.
Author: @zsviczian / Download: link to script
This script will set the stroke width of selected elements. This is helpful, for example, when you scale freedraw sketches and want to reduce or increase their line width.
Author: @zsviczian / Download: link to script
The script will 1) send the selected image file to taskbone.com to exctract the text from the image, and 2) will add the text to your drawing as a text element.
Author: @zsviczian / Download: link to script
Reverse the direction of arrows within the scope of selected elements.
Author: @zsviczian / Download: link to script
Iterates all of the links in the selected TextElements and prompts the user to set or modify the alias for each link found.
Author: @zsviczian / Download: link to script
Split lines of text into separate text elements for easier reorganization
Author: @zsviczian / Download: link to script
Sets text alignment of text block (cetner, right, left). Useful if you want to set a keyboard shortcut for selecting text alignment.
Author: @zsviczian / Download: link to script
The script will delete the selected text elements from the canvas and will copy the text from these text elements into the Excalidraw markdown file as metadata. This means, that the text will no longer be visible in the drawing, however you will be able to search for the text in Obsidian and find the drawing containing this image.
Author: @zsviczian / Download: link to script
Similar to Excalidraw standard SHIFT+2 feature: Zoom to fit selected elements, but with the ability to zoom to 1000%. Inspiration: #272