0.18.5 • Published 2 months ago

dddice-js v0.18.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

dddice JavaScript SDK

Integrate live 3D dice rolling into your own projects by leveraging the power of dddice.

Installation

Add to your project's dependencies using your favorite package manager.

npm install dddice-js --save
# or
yarn add dddice-js

Import and initialize the dddice instance.

import { ThreeDDice } from 'dddice-js'

const canvasElement = document.getElementById('dddice'); // get the canvas element to roll dice into
const dddice = new window.ThreeDDice(canvasElement, '<YOUR_API_KEY>');

dddice.start(); // start the renderer
dddice.connect('<YOUR_ROOM_SLUG>'); // connect and listen for room events

// Roll dice
dddice.roll([{
    theme: 'dddice-standard',
    type: 'd20',
}]);

Read the official documentation for usage information.

License

MIT

0.18.5

2 months ago

0.17.20

6 months ago

0.17.23

6 months ago

0.17.2

8 months ago

0.14.9

10 months ago

0.17.13

7 months ago

0.17.16

7 months ago

0.17.19

6 months ago

0.14.0

11 months ago

0.13.2

1 year ago

0.13.3

12 months ago

0.12.0

1 year ago

0.10.9

1 year ago

0.10.6

1 year ago

0.10.3

1 year ago

0.10.4

1 year ago

0.10.0

1 year ago

0.9.16

1 year ago

0.9.17

1 year ago

0.9.7

1 year ago

0.9.4

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.7.0

2 years ago

0.6.8

2 years ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.3

2 years ago