1.0.2 • Published 9 years ago

dartboard v1.0.2

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
9 years ago

Dartboard

A library to add a dartboard to a web app. The board is built with D3 and fires events when a bed is clicked.

demo

Usage

<script src="https://unpkg.com/dartboard/dist/dartboard.js"></script>
var dartboard = new Dartboard('#dartboard');
dartboard.render();

document.querySelector('#dartboard').addEventListener('throw', function(d) {
    console.log(d.detail);
});

Codepen example

1.0.2

9 years ago

1.0.1

9 years ago

1.0.1-beta.1

9 years ago

1.0.1-beta.0

9 years ago

1.0.0

9 years ago