This commit is contained in:
Zsolt Viczian
2021-08-02 20:34:56 +02:00
parent 21ff1833a8
commit 2e36d83abc
6 changed files with 40 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ Returns the `id` of the object. The `id` is required when connecting objects wit
### addText()
```typescript
addText(topX:number, topY:number, text:string, formatting?:{width:number, height:number,textAlign: string, verticalAlign:string, box: boolean, boxPadding: number}):string
addText(topX:number, topY:number, text:string, formatting?:{width?:number, height?:number,textAlign?: string, verticalAlign?:string, box?: boolean, boxPadding?: number},id?:string):string;
```
Adds text to the drawing.