Skip to content

Commit

Permalink
Merge pull request #174 from renderforest/scale-doc
Browse files Browse the repository at this point in the history
docs: add text scale setter doc to areas api.
  • Loading branch information
narekhovhannisyan authored Apr 12, 2019
2 parents 43ce2f6 + d06d62e commit f219645
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/project-data-api/AREAS_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [Get recommended character count](#get-recommended-character-count)
* [Setters](#setters)
- [Set text](#set-text)
- [Set text scale](#set-text-scale)
- [Set image](#set-image)
- [Set video](#set-video)

Expand Down Expand Up @@ -48,6 +49,16 @@ Renderforest.getProjectData(15220886)
})
```

#### Set text scale

It's possible to set text scale by percentage. The value must be between 80 and 120.
```js
projectDataInstance.getScreen(0)
.getArea(0)
.setText('sample-text')
.setTextScale(120)
```

### Set image

If area is `image`, then sets given image params, otherwise throws error.
Expand Down

0 comments on commit f219645

Please sign in to comment.