roll-a-die
Advanced tools
Comparing version 1.0.5 to 1.1.0
{ | ||
"name": "roll-a-die", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "Simple 3D dice roll using CSS3 animation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/roll-a-die.js", |
@@ -14,7 +14,7 @@ # Roll A Die | ||
``` | ||
You can use the [UNPKG](https://unpkg.com) link `https://unpkg.com/roll-a-die@1.0.5/dist/roll-a-die.js`. Remember to update the package number to the most recent. | ||
You can use the [UNPKG](https://unpkg.com) link `https://unpkg.com/roll-a-die@1.1.0/dist/roll-a-die.js`. Remember to update the package number to the most recent. | ||
Call the method with its options. | ||
``` | ||
rollADie({ element, numberDice: 2, callback}); | ||
rollADie({ element, numberOfDice: 2, callback}); | ||
``` | ||
@@ -47,5 +47,5 @@ | ||
``` | ||
rollADie({ element, numberDice: 2, callback}); | ||
rollADie({ element, numberDice: 2, callback, noSound: true}); | ||
rollADie({ element, numberDice: 2, callback, delay: 1000}); | ||
rollADie({ element, numberOfDice: 2, callback}); | ||
rollADie({ element, numberOfDice: 2, callback, noSound: true}); | ||
rollADie({ element, numberOfDice: 2, callback, delay: 1000}); | ||
``` | ||
@@ -56,3 +56,3 @@ | ||
* `element`: The element to render die animation on. | ||
* `numberDice`: The number of dice to use.` | ||
* `numberOfDice`: The number of dice to use.` | ||
* `callback`: Called when animation is finished. Returns an array of the values from throw. | ||
@@ -59,0 +59,0 @@ * `noSound`: Roll the die without sound (Optional). |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103840