{"_id":"t-dex","_rev":"7-a7acf7b6b36b1430fc888de423df0d61","name":"t-dex","description":"draws a timeline with arbitrary intervals to html canvas","dist-tags":{"latest":"0.8.0"},"versions":{"0.8.0":{"name":"t-dex","version":"0.8.0","description":"draws a timeline with arbitrary intervals to html canvas","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:NHQ/t-dex.git"},"keywords":["html","canvas","timeline","time","interval","jsynth","html","web","audio"],"author":{"name":"johnnyscript.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"328fcb809db7f57eb62a7f2ff504d0975040c42d","readme":"# t-dex\n\nDraws an accurate representation of intervals over time. For HTML canvas. \n\nUse with [browserify](https://github.com/substack/node-browserify).\n\nIt's easy, just pass the function a param object. See the ex.js file for usage.\n\n## from the example ex.js\n\nTo run this example, do:\n```\nnpm install -g browserify opa\ncd /t-dex\nopa -n -e ex.js\n```\n\n```js\nvar timeline = require('t-dex');\n\nvar canvas = document.createElement('canvas');\ncanvas.height = 60;\ncanvas.width = 800;\ncanvas.style.border = '1px solid OrangeRed';\ndocument.body.appendChild(canvas);\n\nvar ctx = canvas.getContext('2d');\n\n// DO THIS\nctx.translate(0.5, 0.5)\n//\n\nvar q = Object(null);\nq.canvas = canvas // required\nq.start = 10.25; // in seconds, required\nq.duration = 12; // in seconds, required\nq.intervals = [1/2, 1/4, 1/8] // at least one required \nq.x = 100 // default 0\nq.y = 20 // default 0\nq.width = 600 // default canvas.width\nq.height = 20  // default canvas.height\nq.fillStyle = null // default to transparet\nq.strokeStyle = 'rgba(20,20,20,.25)' // that is the default\n\ntimeline(q)\n```","_id":"t-dex@0.8.0","dist":{"shasum":"f2f2e9a84cce9b2d0d9054bf69ac5044d6ae8272","tarball":"https://registry.npmjs.org/t-dex/-/t-dex-0.8.0.tgz","integrity":"sha512-1t0uCCea6zuQ1KVb358SGbREZmaMyWlMyVNB2XPPfJmgH+ga+sacx9hl5XUWYX0MbQNzTFozVV6aDpu4Qwwn6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDydLbUx6AzKf16oVlV3ZTzROD8PGugbvsMWQVcqXxmUgIhAL5eg+fcQC4OJoF0rYZy0Lkk8Uva73NXhY3FH9Q7ZT2W"}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"johnnyscript","email":"mostmodernist@gmail.com"},"maintainers":[{"name":"johnnyscript","email":"mostmodernist@gmail.com"}]}},"readme":"# t-dex\n\nDraws an accurate representation of intervals over time. For HTML canvas. \n\nUse with [browserify](https://github.com/substack/node-browserify).\n\nIt's easy, just pass the function a param object. See the ex.js file for usage.\n\n## from the example ex.js\n\nTo run this example, do:\n```\nnpm install -g browserify opa\ncd /t-dex\nopa -n -e ex.js\n```\n\n```js\nvar timeline = require('t-dex');\n\nvar canvas = document.createElement('canvas');\ncanvas.height = 60;\ncanvas.width = 800;\ncanvas.style.border = '1px solid OrangeRed';\ndocument.body.appendChild(canvas);\n\nvar ctx = canvas.getContext('2d');\n\n// DO THIS\nctx.translate(0.5, 0.5)\n//\n\nvar q = Object(null);\nq.canvas = canvas // required\nq.start = 10.25; // in seconds, required\nq.duration = 12; // in seconds, required\nq.intervals = [1/2, 1/4, 1/8] // at least one required \nq.x = 100 // default 0\nq.y = 20 // default 0\nq.width = 600 // default canvas.width\nq.height = 20  // default canvas.height\nq.fillStyle = null // default to transparet\nq.strokeStyle = 'rgba(20,20,20,.25)' // that is the default\n\ntimeline(q)\n```","maintainers":[{"name":"johnnyscript","email":"mostmodernist@gmail.com"}],"time":{"modified":"2022-06-27T03:23:18.591Z","created":"2013-07-27T06:31:42.345Z","0.8.0":"2013-07-27T06:31:43.906Z"},"author":{"name":"johnnyscript.us"},"repository":{"type":"git","url":"git@github.com:NHQ/t-dex.git"},"users":{"rchk":true}}