{"_id":"r-gauges","_rev":"8-0f1d43ab6cd5ed3ac82c105777cbc178","name":"r-gauges","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"r-gauges","version":"0.0.1","description":"React JS implementation of canvas gauges","homepage":"https://github.com/stanurkov/r-gauges","repository":{"type":"git","url":"git+https://github.com/stanurkov/r-gauges.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react","canvas","gauge","gauges","component"],"author":{"name":"Stefan Tanurkov"},"license":"MIT","dependencies":{"prop-types":"^15.6.1","react":"^16.2.0"},"gitHead":"0662a1b74b8f2cb5d960e17f3dff4bc6b7025f8b","bugs":{"url":"https://github.com/stanurkov/r-gauges/issues"},"_id":"r-gauges@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"},"dist":{"integrity":"sha512-t4vy5hKnZOhg6aoxxT4c8q+cBdAEZ2NSyP90bppXtYBv1g1DiimaAC2ptv7KXNxFPySKaZk/yBZDb50qftSWKw==","shasum":"4b424e81caba62120050a86b61d53ce183b53e7d","tarball":"https://registry.npmjs.org/r-gauges/-/r-gauges-0.0.1.tgz","fileCount":5,"unpackedSize":9122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBX4+7rEq7k9mGFpm1MYWFw77ymdxLFvcDdMHSHdqCMAAiEA4b8SlIHDdAfftz6/9sLWVJ9gaGTeMDmUu4cQiA9VDIw="}]},"maintainers":[{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r-gauges_0.0.1_1520709286491_0.40533023144201197"},"_hasShrinkwrap":false},"0.0.2":{"name":"r-gauges","version":"0.0.2","description":"React JS implementation of canvas gauges","homepage":"https://github.com/stanurkov/r-gauges","repository":{"type":"git","url":"git+https://github.com/stanurkov/r-gauges.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react","canvas","gauge","gauges","component"],"author":{"name":"Stefan Tanurkov"},"license":"MIT","dependencies":{"prop-types":"^15.6.1","react":"^16.2.0"},"gitHead":"0892aafd7db9733b69235ba01d7b177562dadd86","bugs":{"url":"https://github.com/stanurkov/r-gauges/issues"},"_id":"r-gauges@0.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"},"dist":{"integrity":"sha512-tN8P1Wbl43oKZym66qDNMyc8snTvvotHbG2hUUDAoLOOi+5AZL+8p7cXYm9VkCO2BFbGil7Cb7fxSo4YkLo5UA==","shasum":"1adedd563510fdea9b6a18a638f777580b90a2ab","tarball":"https://registry.npmjs.org/r-gauges/-/r-gauges-0.0.2.tgz","fileCount":5,"unpackedSize":9912,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDyFmk1RY1sCixD9FBXkfTepUetyCLzT276VK0s8SNo5AiA2lBQ1KWZQywZzonlQJxPErn4KOs3FQCsKdrhkwdwgMg=="}]},"maintainers":[{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r-gauges_0.0.2_1520720851353_0.8621148121456153"},"_hasShrinkwrap":false},"0.0.3":{"name":"r-gauges","version":"0.0.3","description":"React JS implementation of canvas gauges","homepage":"https://github.com/stanurkov/r-gauges","repository":{"type":"git","url":"git+https://github.com/stanurkov/r-gauges.git"},"main":"./dist/index.js","module":"./dist/index.js","scripts":{"build":"babel index.js RGauge.js --out-dir dist"},"keywords":["react","canvas","gauge","gauges","component"],"babel":{"presets":["es2015","react"]},"author":{"name":"Stefan Tanurkov"},"license":"MIT","dependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.4","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.24.1","prop-types":"^15.6.1","react":"^16.2.0"},"gitHead":"133f3a4e114b0a3709a422760dacde3f2fd2552a","bugs":{"url":"https://github.com/stanurkov/r-gauges/issues"},"_id":"r-gauges@0.0.3","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"},"dist":{"integrity":"sha512-hXmXgCdltR4MBaEflhBgFF13jeAf6PVkua9LrT+BlpKHXEfFiyfbiQzUCJEB8AV5/cLjzEKMHGoexlWQDunNnA==","shasum":"27fa6ebbf3f098b7ee6bbdf128a147571ab0638a","tarball":"https://registry.npmjs.org/r-gauges/-/r-gauges-0.0.3.tgz","fileCount":7,"unpackedSize":19279,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFz4oaqdHLoI6jmYpayvJT6fIhRLkTIZ9WwQzqjZQw3uAiEA4phoZFDANyKi9parO7XyrnUu/IkQr7HvO+yFHRdCD/Q="}]},"maintainers":[{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r-gauges_0.0.3_1520722794674_0.903154441861165"},"_hasShrinkwrap":false},"0.0.4":{"name":"r-gauges","version":"0.0.4","description":"React JS implementation of canvas gauges","homepage":"https://github.com/stanurkov/r-gauges","repository":{"type":"git","url":"git+https://github.com/stanurkov/r-gauges.git"},"main":"./dist/index.js","module":"./dist/index.js","scripts":{"build":"babel index.js RGauge.js --out-dir dist"},"keywords":["react","canvas","gauge","gauges","component"],"babel":{"presets":["es2015","react"]},"author":{"name":"Stefan Tanurkov"},"license":"MIT","dependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.4","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.24.1","prop-types":"^15.6.1","react":"^16.2.0"},"gitHead":"eb8ed4f81b198f64176ead849f009dcfbcb714c4","bugs":{"url":"https://github.com/stanurkov/r-gauges/issues"},"_id":"r-gauges@0.0.4","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"},"dist":{"integrity":"sha512-IWtuhl9nPIgcQWGjWFCAW2ca/U4AG/1kyf41595Qvg9+a7pMLyEeLK615+S1x7brKhSKkrt7eZBGvS22gSz6Pw==","shasum":"a4fa631d4810b38922919a77324b0018f176bee3","tarball":"https://registry.npmjs.org/r-gauges/-/r-gauges-0.0.4.tgz","fileCount":7,"unpackedSize":19272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGt6EZeuXL50E8nctmidwT0abL0tDCPd9kyi+gxYoeYbAiAC3HL17hSVFZBixJNDZEsRRC0kAgD3VHe024e5tseTzQ=="}]},"maintainers":[{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r-gauges_0.0.4_1520723041286_0.15342654342467243"},"_hasShrinkwrap":false},"0.0.5":{"name":"r-gauges","version":"0.0.5","description":"React JS implementation of canvas gauges","main":"./dist/index.js","module":"./dist/index.js","scripts":{"build":"babel index.js RGauge.js --out-dir dist"},"homepage":"https://github.com/stanurkov/r-gauges","repository":{"type":"git","url":"git+https://github.com/stanurkov/r-gauges.git"},"babel":{"presets":["es2015","react"]},"keywords":["react","canvas","gauge","gauges","component"],"author":{"name":"Stefan Tanurkov"},"license":"MIT","dependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.4","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.24.1","prop-types":"^15.6.1","react":"^16.2.0"},"gitHead":"b80475cdd4896e42793c812d44d41f49c23c0485","bugs":{"url":"https://github.com/stanurkov/r-gauges/issues"},"_id":"r-gauges@0.0.5","_shasum":"5215904d472096ac6cbf4b43a40be667511f62c5","_from":".","_npmVersion":"3.5.2","_nodeVersion":"8.10.0","_npmUser":{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"},"dist":{"shasum":"5215904d472096ac6cbf4b43a40be667511f62c5","tarball":"https://registry.npmjs.org/r-gauges/-/r-gauges-0.0.5.tgz","fileCount":9,"unpackedSize":101110,"integrity":"sha512-CW4tqAXfVi+uYh07nY9jnhYApPmWNsXp4GT/fPLeveC2G9CPkQmn7FWPX7IJ6l1YV78KKzUupFcysacNMeNEUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZnWS8B6i5Oij5ZUKwKKcISeQVM72q8lMilr4tJQG+AAiAml61LmcdhpK78hSq2oiRGaex29XAUGpR53Lhahkzy8g=="}]},"maintainers":[{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r-gauges_0.0.5_1530103547449_0.8136470636760182"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-10T19:14:46.491Z","0.0.1":"2018-03-10T19:14:46.674Z","modified":"2022-06-25T08:34:22.911Z","0.0.2":"2018-03-10T22:27:31.404Z","0.0.3":"2018-03-10T22:59:54.829Z","0.0.4":"2018-03-10T23:04:01.342Z","0.0.5":"2018-06-27T12:45:47.561Z"},"maintainers":[{"name":"stanurkov","email":"stefan.tanurkov@gmail.com"}],"description":"React JS implementation of canvas gauges","homepage":"https://github.com/stanurkov/r-gauges","keywords":["react","canvas","gauge","gauges","component"],"repository":{"type":"git","url":"git+https://github.com/stanurkov/r-gauges.git"},"author":{"name":"Stefan Tanurkov"},"bugs":{"url":"https://github.com/stanurkov/r-gauges/issues"},"license":"MIT","readme":"# r-gauges\n\n\n[![MIT][mit-image]][mit-url]\n\n> React Wrapper Components for Canvas Gauges Library \n\n\n[mit-image]: https://github.com/stanurkov/observed-object/blob/master/mit.svg\n[mit-url]: https://github.com/stanurkov/r-gauges/blob/master/LICENSE\n[cg-url]: https://canvas-gauges.com/\n\n## Introduction\n\nCanvas Gauges library currently implements two types of HTML canvas-based gauges for presentation of numeric values like temperature, speed, pressure, etc - RadialGauge and LinearGauge.\n\nR-Gauges library provides React Components that basically wrap functionality of Canvas Gauges so it is possible to seamlessly integrate them into your React frontend.\n\n[Documentation on Canvas Gauges is available here][cg-url]\n \n\n## Usage Example\n\nIt would be a good idea to create a component that sets most of all visual properties by itself (or from some configuration storage) and receives only important properties from its parent. So, we create a BlueCompass component that receives only the \"azimuth\" property and change that property from its parent component, MyDirGauge:\n\n```\nclass BlueCompass extends Component {\n\n    render() {\n\n        return (\n            <RadialGauge \n                width={400}\n                height={400}\n                minValue=\"0\"\n                maxValue=\"360\"\n                majorTicks={[\"N\",\"NE\",\"E\",\"SE\",\"S\",\"SW\",\"W\",\"NW\",\"N\"]}\n                minorTicks={22}\n                ticksAngle={360}\n                startAngle={180}\n                strokeTicks={false}\n                highlights={false}\n                colorPlate=\"#33a\"\n                colorMajorTicks=\"#f5f5f5\"\n                colorMinorTicks=\"#ddd\"\n                colorNumbers=\"#ccc\"\n                colorNeedle=\"rgba(240, 128, 128, 1)\"\n                colorNeedleEnd=\"rgba(255, 160, 122, .9)\"\n                valueBox=\"false\"\n                valueTextShadow=\"false\"\n                colorCircleInner=\"#fff\"\n                colorNeedleCircleOuter=\"#ccc\"\n                needleCircleSize=\"15\"\n                needleCircleOuter=\"false\"\n                animationRule=\"linear\"\n                needleType=\"line\"\n                needleStart=\"75\"\n                needleEnd=\"99\"\n                needleWidth=\"3\"\n                borders=\"true\"\n                borderInnerWidth=\"0\"\n                borderMiddleWidth=\"0\"\n                borderOuterWidth=\"10\"\n                colorBorderOuter=\"#ccc\"\n                colorBorderOuterEnd=\"#ccc\"\n                colorNeedleShadowDown=\"#222\"\n                borderShadowWidth=\"0\"\n                animationTarget=\"plate\"\n                units=\"ᵍ\"\n                title=\"DIRECTION\"\n                fontTitleSize=\"19\"\n                colorTitle=\"#f5f5f5\"\n                animationDuration=\"1500\"\n                value={ this.props.azimuth }\n            />\n        );\n    }\n}\n\nclass MyDirGauge extends Component {\n\n    constructor(props, ...params) {\n        super(props, ...params)\n\n        this.state = {\n            value: props.startValue,\n        }\n    }\n\n    componentDidMount() {\n        const self = this;\n\n        this.timer = setInterval(() => {\n            self.setState({ value: 360 * Math.random() })\n        }, 1000 + 5000 * Math.random() );\n    }\n\n    componentWillUnmount() {\n        if (this.timer) {\n            clearInterval(this.timer);\n            this.timer = 0;\n        }\n    }\n\n\n    render() {\n        return (\n            <BlueCompass  \n                azimuth={this.state.value}\n            />                    \n        );\n    }\n}\n\n```\n\n","readmeFilename":"README.md"}