Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
fix interpolation bug and deprecate .duration method
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed May 16, 2019
1 parent 95dc34e commit 65ea13c
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 220 deletions.
8 changes: 5 additions & 3 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const {add, remove, isRunning, autoPlay} = TWEEN
* [.Tween#play()](#TWEEN.Tween.Tween+play)
* [.Tween#restart([noDelay])](#TWEEN.Tween.Tween+restart)
* ~~[.Tween#seek(time, [keepPlaying])](#TWEEN.Tween.Tween+seek)~~
* [.Tween#duration(amount)](#TWEEN.Tween.Tween+duration)
* ~~[.Tween#duration(amount)](#TWEEN.Tween.Tween+duration)~~
* [.Tween#to(properties, [duration])](#TWEEN.Tween.Tween+to)
* [.Tween#start(time)](#TWEEN.Tween.Tween+start)
* [.Tween#stop()](#TWEEN.Tween.Tween+stop)
Expand Down Expand Up @@ -145,7 +145,7 @@ let tween = new Tween(myNode, {width:'100px'}).to({width:'300px'}, 2000).start()
* [.Tween#play()](#TWEEN.Tween.Tween+play)
* [.Tween#restart([noDelay])](#TWEEN.Tween.Tween+restart)
* ~~[.Tween#seek(time, [keepPlaying])](#TWEEN.Tween.Tween+seek)~~
* [.Tween#duration(amount)](#TWEEN.Tween.Tween+duration)
* ~~[.Tween#duration(amount)](#TWEEN.Tween.Tween+duration)~~
* [.Tween#to(properties, [duration])](#TWEEN.Tween.Tween+to)
* [.Tween#start(time)](#TWEEN.Tween.Tween+start)
* [.Tween#stop()](#TWEEN.Tween.Tween+stop)
Expand Down Expand Up @@ -314,7 +314,9 @@ tween.seek(500)
```
<a name="TWEEN.Tween.Tween+duration"></a>

#### Tween.Tween#duration(amount)
#### ~~Tween.Tween#duration(amount)~~
***Deprecated***

Sets tween duration

**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)
Expand Down
Loading

0 comments on commit 65ea13c

Please sign in to comment.