{"_id":"@mapbox/canvas-dial","_rev":"334-4ba1093dfd436eca96e29e538b2e217e","name":"@mapbox/canvas-dial","description":"a dial indicator","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@mapbox/canvas-dial","version":"1.0.0","description":"a dial indicator","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mapbox/canvas-dial.git"},"keywords":["canvas","dial","html5","indicator","visualization"],"author":{"name":"Tom MacWright"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/canvas-dial/issues"},"homepage":"https://github.com/mapbox/canvas-dial","gitHead":"e66fb067b31ee5e3d2aa703991788c8ea8c4a978","_id":"@mapbox/canvas-dial@1.0.0","_shasum":"df5ef11e882a9f09b09c2c4585da5bbb9b82c876","_from":".","_npmVersion":"4.0.2","_nodeVersion":"4.6.2","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"df5ef11e882a9f09b09c2c4585da5bbb9b82c876","tarball":"https://registry.npmjs.org/@mapbox/canvas-dial/-/canvas-dial-1.0.0.tgz","integrity":"sha512-eKsffxrOBTQrBFVhTNdptB5e4dKOEdhY523CGSvmpMUnOMN7+aLWFoGqMnFbzQvwtERh7tx7dONi9wUEYTHZ3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBD4c5ondT85+LcADq5l0jl4/5LZD3c6LXKRD+VbrsdAiEA6FLWrpWevbiTV6wVlTMeKTEU92vT0QSxbeYO9bOtHZw="}]},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/canvas-dial-1.0.0.tgz_1480699745202_0.44633267540484667"},"directories":{}}},"readme":"# canvas-dial\n\nA simple dial or gauge implemented in HTML5 Canvas and designed to be\nperformant and flexible.\n\n## [Demo](http://requirebin.com/?gist=4fe63c664c753fedae1d)\n\n## API\n\n`new Dial(element, options)` create a new dial, owning a single DOM element.\nOptions are listed below\n\n`dial.draw(value)` update the dial to show a new value.\n\n### Options\n\n```js\n  {\n    // the width & height of the gauge canvas element\n    diameter: 20,\n    // the width of the stroke indicating the gauge's background\n    // and foreground values\n    width: 8,\n    // the outer width of the gauge\n    outer: 15,\n    // the gap at the bottom of the gauge, if any\n    gap: 10,\n    // the strokeStyle of the background that indicates\n    // the total range of the gauge\n    background: '#eee',\n    // the strokeStyle of the dial - the part that shows data\n    foreground: '#00f',\n    // the minimum value in the scale.\n    min: 0,\n    // the value from which the gauge starts. 0 is common\n    // for absolute values, 0.5 can be useful for things like\n    // saturation/desaturation\n    start: 0.5,\n    // the maximum value represented by the gauge\n    max: 1\n  }\n```\n","maintainers":[{"email":"yannick.meeus+npm+production+ci@mapbox.com","name":"mbx-npm-ci-production"},{"email":"yannick.meeus+npm+staging+ci@mapbox.com","name":"mbx-npm-ci-staging"},{"email":"yannick.meeus+npm+prod+advanced+actions@mapbox.com","name":"mbx-npm-advanced-actions-production"},{"email":"yannick.meeus+npm+staging+advanced+actions@mapbox.com","name":"mbx-npm-advanced-actions-staging"},{"email":"yannick.meeus+npm+prod+09@mapbox.com","name":"mbx-npm-09-production"},{"email":"yannick.meeus+npm+prod+08@mapbox.com","name":"mbx-npm-08-production"},{"email":"yannick.meeus+npm+prod+07@mapbox.com","name":"mbx-npm-07-production"},{"email":"yannick.meeus+npm+prod+06@mapbox.com","name":"mbx-npm-06-production"},{"email":"yannick.meeus+npm+prod+05@mapbox.com","name":"mbx-npm-05-production"},{"email":"yannick.meeus+npm+prod+04@mapbox.com","name":"mbx-npm-04-production"},{"email":"yannick.meeus+npm+prod+03@mapbox.com","name":"mbx-npm-03-production"},{"email":"yannick.meeus+npm+prod+02@mapbox.com","name":"mbx-npm-02-production"},{"email":"yannick.meeus+npm+prod+01@mapbox.com","name":"mbx-npm-01-production"},{"email":"yannick.meeus@mapbox.com","name":"mbx-npm-02-staging"},{"email":"accounts+npmjs-01@mapbox.com","name":"mapbox-npm-01"},{"email":"accounts+npmjs-02@mapbox.com","name":"mapbox-npm-02"},{"email":"accounts+npmjs-07@mapbox.com","name":"mapbox-npm-07"},{"email":"accounts+npmjs-03@mapbox.com","name":"mapbox-npm-03"},{"email":"accounts+npmjs-04@mapbox.com","name":"mapbox-npm-04"},{"email":"accounts+npmjs-09@mapbox.com","name":"mapbox-npm-09"},{"email":"accounts+npmjs-05@mapbox.com","name":"mapbox-npm-05"},{"email":"accounts+npmjs-06@mapbox.com","name":"mapbox-npm-06"},{"email":"accounts+npmjs-08@mapbox.com","name":"mapbox-npm-08"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"mapbox-npm-advanced-actions"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"mapbox-npm-ci"},{"email":"accounts+npmjs@mapbox.com","name":"mapbox-npm"},{"email":"accounts@mapbox.com","name":"mapbox-admin"},{"email":"accounts+npm-mapbox-machine-user@mapbox.com","name":"mapbox-machine-user"}],"time":{"modified":"2023-01-12T12:41:09.305Z","created":"2016-12-02T17:29:05.765Z","1.0.0":"2016-12-02T17:29:05.765Z"},"homepage":"https://github.com/mapbox/canvas-dial","keywords":["canvas","dial","html5","indicator","visualization"],"repository":{"type":"git","url":"git+https://github.com/mapbox/canvas-dial.git"},"author":{"name":"Tom MacWright"},"bugs":{"url":"https://github.com/mapbox/canvas-dial/issues"},"license":"ISC","readmeFilename":"README.md"}