dom-knob
v1.0.0
Published
Get the angle between the center of an element and a mouse/touch on drag.
Downloads
2
Readme
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)