Skip to content

Commit

Permalink
Merge pull request #133 from renderforest/add-docs-pushScreen
Browse files Browse the repository at this point in the history
add-docs-pushScreen
  • Loading branch information
emarukyan authored Dec 11, 2018
2 parents 1a2b408 + 4fde8c0 commit 2a0c21a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Welcome to the Renderforest API! You can use our API to:
- [Set video on video holder area](#set-video-on-video-holder-area)
- [Set project colors](#set-project-colors)
- [Set screens](#set-screens)
* [Push Screen](#push-screen)
* [Sounds API](#sounds-api)
- [Get All Sounds](#get-all-sounds)
- [Get Recommended Sounds](#get-recommended-sounds)
Expand Down Expand Up @@ -606,6 +607,11 @@ projectDataInstance.setScreens(_screens)

#### Push screen

Inserts new `screen`, arrange screens by `screen.order` property and normalize orders to have consequent numbers.
In case `screen.order` is less than `0`, then inserts the new `screen` at the beginning of screens.
If `screen.order` property is more than last `screen's` order property, then appends to the end of screens.
Throws `MissingOrderError` if `screen.order` property is missing.

```js
const _screens = projectDataInstance.pushScreen(screen) // Array of screens
```
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@renderforest/sdk-node",
"description": "Renderforest SDK for Node.js",
"version": "0.3.3",
"version": "0.3.4",
"author": "RenderForest LLC",
"bugs": {
"url": "https://github.com/renderforest/renderforest-sdk-node/issues"
Expand Down

0 comments on commit 2a0c21a

Please sign in to comment.