Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

roll-a-die

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roll-a-die - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc