mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
text to path
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||

|
||||
|
||||
This script allows you to fit a text element along a selected path (line, arrow, freedraw, ellipse, rectangle, or diamond) in Excalidraw. You can select either a path or a text element, or both:
|
||||
This script allows you to fit a text element along a selected path: line, arrow, freedraw, ellipse, rectangle, or diamond. You can select either a path or a text element, or both:
|
||||
|
||||
- If only a path is selected, you will be prompted to provide the text.
|
||||
- If only a text element is selected and it was previously fitted to a path, the script will use the original path if it is still present in the scene.
|
||||
@@ -9,7 +9,7 @@ This script allows you to fit a text element along a selected path (line, arrow,
|
||||
|
||||
If the path is a perfect circle, you will be prompted to choose whether to fit the text above or below the circle.
|
||||
|
||||
After fitting, the text will no longer be editable as a standard text element or function as a markdown link. Emojis are not supported.
|
||||
After fitting, the text will no longer be editable as a standard text element, but you'll be able to edit it with this script. Text on path cannot function as a markdown link. Emojis are not supported.
|
||||
|
||||
```javascript
|
||||
*/
|
||||
|
||||
@@ -612,7 +612,7 @@ https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea
|
||||
- If both a text and a path are selected, the script will fit the text to the selected path.<br><br>
|
||||
If the path is a perfect circle, you will be prompted to choose whether to fit the text above or below the circle.<br><br>
|
||||
After fitting, the text will no longer be editable as a standard text element or function as a markdown link. Emojis are not supported.<br>
|
||||
<img src='https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/images/text-to-path.jpg'></td></tr></table>
|
||||
<img src='https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/images/scripts-text-to-path.jpg'></td></tr></table>
|
||||
|
||||
## Toggle Grid
|
||||
```excalidraw-script-install
|
||||
|
||||
BIN
images/scripts-text-aura.jpg
Normal file
BIN
images/scripts-text-aura.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user