roll-a-die
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "roll-a-die", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Simple 3D dice roll using CSS3 animation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/roll-a-die.js", |
@@ -14,3 +14,3 @@ # Roll A Die | ||
``` | ||
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. | ||
You can use the [UNPKG](https://unpkg.com) link `https://unpkg.com/roll-a-die@1.3.0/dist/roll-a-die.js`. Remember to update the package number to the most recent. | ||
@@ -50,2 +50,3 @@ Call the method with its options. | ||
rollADie({ element, numberOfDice: 2, callback, delay: 1000}); | ||
rollADie({ element, numberOfDice: 2, callback, values: [3, 4]}); | ||
``` | ||
@@ -55,7 +56,8 @@ | ||
* `element`: The element to render die animation on. | ||
* `numberOfDice`: The number of dice to use.` | ||
* `callback`: Called when animation is finished. Returns an array of the values from throw. | ||
* `noSound`: Roll the die without sound (Optional). | ||
* `delay`: Time in milliseconds to delay before removing animations (Optional). | ||
* `element`: The element to render die animation on. Type: HTMLElement | ||
* `numberOfDice`: The number of dice to use.` Type: number | ||
* `callback`: Called when animation is finished. Returns an array of the values from throw. Type: Function | ||
* `noSound`: Roll the die without sound (Optional). Type: boolean | ||
* `delay`: Time in milliseconds to delay before removing animations (Optional). Type: number | ||
* `values`: Values to show on die face. When provided, it overrides library genrated values. (Optional). Type: Array of numbers | ||
@@ -62,0 +64,0 @@ ## Thanks |
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
104629
66