Skip to content

Commit

Permalink
v1.3.0 Mistakes and erase improvements, configurable speed (might close
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzi committed Feb 14, 2015
1 parent 107a604 commit 9828391
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ The first step is to create a new theater instance. Available options are:

name|default|description
----|-------|-----------
erase|`true`|Whether or not to play the erase animation before writing the following speech.
erase|`true`|Whether or not to play the erase animation before writing the next speech.
autoplay|`true`|If true, plays the scenario automatically. Otherwise, you'll have to call `theater.play()`
locale|`"detect"`|Customize keyboards, see [Keyboards & Localization](#keyboards--localization).
minSpeed|50|Minimum delay between each characters (the lower, the faster)
maxSpeed|600|Maximum delay between each characters (the greater, the slower)

```javascript
var theater = new TheaterJS({ erase: true, autoplay: true, locale: "detect" });
var theater = new TheaterJS({ erase: true, autoplay: true, locale: "detect", minSpeed: 50, maxSpeed: 600 });
```


Expand Down Expand Up @@ -440,6 +442,11 @@ The `emit` method accepts up to three arguments. The first being the "scope", th

# Changelog

* 1.3.0
* minSpeed and maxSpeed are now configurable
* default maxSpeed decreased to 600 (instead of 1000)
* mistakes are repeatable
* erase's speed varies just as "say" scenes
* 1.2.2 Registration as a bower component `bower install theaterjs`
* 1.2.1 Fix html support
* 1.2.0 Adding support for html within the speeches
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TheaterJS",
"version": "1.2.2",
"version": "1.3.0",
"main": "build/theater.js",
"license": "MIT",
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion build/theater.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

TheaterJS.prototype = {
constructor: TheaterJS,
version: "1.2.0",
version: "1.3.0",
keyboards: {},


Expand Down
2 changes: 1 addition & 1 deletion build/theater.min.js

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,6 +1,6 @@
{
"name": "TheaterJS",
"version": "1.2.2",
"version": "1.3.0",
"description": "Typing effect mimicking human behavior.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/theater.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

TheaterJS.prototype = {
constructor: TheaterJS,
version: "1.2.0",
version: "1.3.0",
keyboards: {},


Expand Down

0 comments on commit 9828391

Please sign in to comment.