mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
Update AutomateHowTo.md
This commit is contained in:
@@ -38,7 +38,7 @@ You can change styling between adding different elements. My logic for separatin
|
||||
%>
|
||||
```
|
||||
The script will generate the following drawing:
|
||||
![[./images/FristDemo.png]]
|
||||

|
||||
|
||||
## Attributes and functions at a glance
|
||||
Here's the interface implemented by ExcalidrawAutomate:
|
||||
@@ -189,7 +189,7 @@ Allowed values are [HTML color names](https://www.w3schools.com/colors/colors_na
|
||||
|
||||
## Adding objects
|
||||
These functions will add objects to your drawing. The canvas is infinite, and it accepts negative and positive X and Y values. The top left corner x values increase left to right, y values increase top to bottom.
|
||||
![[./images/coordinates.png]]
|
||||

|
||||
|
||||
### addRect(), addDiamond, addEllipse
|
||||
```typescript
|
||||
@@ -298,4 +298,4 @@ This example is similar to the first one, but rotated 90°, and using a template
|
||||
ea.addArrow([[200,0],[200,200]]);
|
||||
await ea.create("My Drawing","myfolder/fordemo/","Excalidraw/Template2.excalidraw",true);
|
||||
%>
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user