dom-knob

1.0.0 • Public • Published

dom-knob

Get the angle between the center of an element and a mouse/touch on drag.

install

npm install knob

example

var knob = require('knob')
 
var elem = document.querySelector('#myKnob')
var callback = function(degrees) {
  console.log(degrees)
}
 
knob(elem, callback)

Readme

Keywords

Package Sidebar

Install

npm i dom-knob

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • olivierrr