{"name":"stackblur-canvas","version":"2.1.0","description":"Fast and almost Gaussian blur by Mario Klingemann","main":"dist/stackblur.js","module":"dist/stackblur-es.js","scripts":{"start":"opn http://localhost:8081/demo/ && static -p 8081","eslint":"eslint .","rollup":"rollup -c","open-docs":"npm run docs && opn http://localhost:8081/docs/jsdoc/ && static -p 8081","docs":"rm -rf docs/jsdoc/*;jsdoc --pedantic -c docs/jsdoc-config.json src","test":"npm run eslint && npm run rollup && echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/flozz/StackBlur.git"},"keywords":["stackblur","blur","canvas","gaussian"],"author":{"name":"Mario Klingemann"},"homepage":"http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html","contributors":[{"name":"Brett Zamir"}],"license":"MIT","bugs":{"url":"https://github.com/flozz/StackBlur/issues"},"engines":{},"devDependencies":{"@babel/core":"^7.1.2","eslint":"5.8.0","eslint-config-standard":"12.0.0","eslint-plugin-import":"2.14.0","eslint-plugin-node":"8.0.0","eslint-plugin-promise":"4.0.1","eslint-plugin-standard":"4.0.0","jsdoc":"^3.5.5","node-static":"^0.7.11","opn-cli":"^3.1.0","rollup":"0.67.0","rollup-plugin-babel":"^4.0.3","rollup-plugin-re":"^1.0.7","rollup-plugin-terser":"^3.0.0"},"dependencies":{},"gitHead":"549af53f65f6651e853dd4eaf5af1233a3ed4b70","_id":"stackblur-canvas@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"brettz9","email":"brettz9@yahoo.com"},"dist":{"integrity":"sha512-RwIUB2RMahW1gf0n98b/CpMnGtzepwD5Nn1RRXdg51FU5Sp5VWAbUEsGPQx7qbw7Ljkwwtzci/APw6G+y10k1w==","shasum":"96765c9a21acfaa245fb81a4d15f3cd932939f1e","tarball":"http://registry-npm.ywwl.com/stackblur-canvas/download/stackblur-canvas-2.1.0.tgz","fileCount":46,"unpackedSize":1212107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+pzrCRA9TVsSAnZWagAAeQAP/0rrt2M3vuBV/LYVtLyJ\ndb/r5SkXoBVJ0xjdfrIFXC9ccQ5XlOI8DMzNjpOJHrGHeaju5W5xobNtHeBJ\naT9KjDIzEyElystxXciYvqa4ycqs2BympehOuBEgEcxkVfFWMHDgQD1Y5ToR\ngg1w0FDXC0JCOo/J7P0TiSEMmZrzSQaF5HxXFGwdpE+oVayw2Okd7fIArhun\n8kT7f0s6t2B10c5qAFOZNljCzEit+DJV8xmd1sB53OGMzNKqlBPByqi6w9j2\noMjZmOWqz1pCKFdJMu/N0vY/1tLyCfvYKTNtL+cx96TIEPz4iPE11zgRfC4d\nhEnO1Vq2r0Jkr3rnNanGZmTJUgMe3YBUhE69SLQoJ+0D7MYrKCTyXAceI+1g\nCbFiFzKyJUBtdCjGPEWVLbhM21oVJXGrYYoZ2hnEvhgIgtjOA9VcSorJDNrU\nMYTc4Ayn1/dDFx582SK5RwFo3SqGA9PVX4yy5HBXvYzauX/S6rZmm4CaltXx\n0+5AiZuMjaplQXL1u82i1e8IfRXY1H1OcarUour6dPlX6wxePxe+5fYW9IaR\nnD+DpMT1WjvtzpP4V2JWYzXhs96EMZz0mGAKSnCQ+1tIkRbK3R3N5N10y97C\n1vXZ+tI7QXMtG3TR+Z8zGUtM4PHQbBkEAxs4j26D71+sl2XMNgxA04q14BQB\nCULw\r\n=VFq4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8+oAIcNyiZhK2YwgZ22JHgi5E4r9HcZMilxo76T805QIgWf0Z6+A2XDvIF+ZrQCrRenUcmTABSGbiIT2/IjQMF1g="}],"size":445659,"noattachment":false,"key":"/stackblur-canvas/-/stackblur-canvas-2.1.0.tgz"},"maintainers":[{"name":"flozz","email":"npm@flogisoft.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stackblur-canvas_2.1.0_1543150826191_0.47057741290915045"},"_hasShrinkwrap":false,"deprecated":"Fixed build bug in 2.2.0 as not converting ES6 source for older browsers","readme":"# StackBlur.js\n\n[![NPM Version](https://img.shields.io/npm/v/stackblur-canvas.svg)][pkg-npm]\n[![License](https://img.shields.io/npm/l/stackblur-canvas.svg)](https://github.com/flozz/StackBlur/blob/master/COPYING)\n\nStackBlur.js is a fast, almost Gaussian blur created by Mario Klingemann.\n\n  * **More informations:** <http://incubator.quasimondo.com/processing/fast_blur_deluxe.php>\n  * **Algorithm:** <https://medium.com/better-programming/blurring-image-algorithm-example-in-android-cec81911cd5e>\n  * **Demo:** <http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html>\n\nOriginal source:\n\n  * <http://www.quasimondo.com/StackBlurForCanvas/StackBlur.js>\n\n## Getting Started\n\n### Standalone version\n\nTo use the standalone version,\n\ndownload the [latest zip][dl-zip-master] from Github or clone the repository\n\n```\ngit clone git@github.com:flozz/StackBlur.git\n```\n\nand include the `dist/stackblur.js` or `dist/stackblur.min.js` file in your HTML page:\n\n```html\n<script src=\"StackBlur/dist/stackblur.js\"></script>\n```\n\n### Node\n\nTo use the [NPM package][pkg-npm],\n\ninstall the package:\n\n```\nnpm install --save stackblur-canvas\n```\n\nand require it where needed\n\n```js\nconst StackBlur = require('stackblur-canvas');\n```\n\n### Browsers\n\nIf you are only supporting modern browsers, you may use ES6 Modules directly:\n\n```js\nimport * as StackBlur from\n  './node_modules/stackblur-canvas/dist/stackblur-es.min.js';\n```\n\nOr, if you are using Rollup in your own project, use the [node-resolve](https://github.com/rollup/rollup-plugin-node-resolve) plugin,\nand import by just referencing the module:\n\n```js\nimport * as StackBlur from 'stackblur-canvas';\n```\n\n## API\n\nSee also the docs in [docs/jsdoc](./docs/jsdoc/index.html).\n\n**Image as source:**\n\n```js\nStackBlur.image(sourceImage, targetCanvas, radius, blurAlphaChannel);\n```\n\n  * `sourceImage`: the `HTMLImageElement` or its `id`.\n  * `targetCanvas`: the `HTMLCanvasElement` or its `id`.\n  * `radius`: the radius of the blur.\n  * `blurAlphaChannel`: Set it to `true` if you want to blur a RGBA image (optional, default = `false`)\n\n**RGBA Canvas as source:**\n\n```js\nStackBlur.canvasRGBA(targetCanvas, top_x, top_y, width, height, radius);\n```\n\n  * `targetCanvas`: the `HTMLCanvasElement`.\n  * `top_x`: the horizontal coordinate of the top-left corner of the rectangle to blur.\n  * `top_y`: the vertical coordinate of the top-left corner of the rectangle to blur.\n  * `width`: the width of the rectangle to blur.\n  * `height`: the height of the rectangle to blur.\n  * `radius`: the radius of the blur.\n\n**RGB Canvas as source:**\n\n```js\nStackBlur.canvasRGB(targetCanvas, top_x, top_y, width, height, radius);\n```\n\n  * `targetCanvas`: the `HTMLCanvasElement`.\n  * `top_x`: the horizontal coordinate of the top-left corner of the rectangle to blur.\n  * `top_y`: the vertical coordinate of the top-left corner of the rectangle to blur.\n  * `width`: the width of the rectangle to blur.\n  * `height`: the height of the rectangle to blur.\n  * `radius`: the radius of the blur.\n\n**RGBA ImageData as source:**\n\n```js\nStackBlur.imageDataRGBA(imageData, top_x, top_y, width, height, radius);\n```\n\n  * `imageData`: the canvas' `ImageData`.\n  * `top_x`: the horizontal coordinate of the top-left corner of the rectangle to blur.\n  * `top_y`: the vertical coordinate of the top-left corner of the rectangle to blur.\n  * `width`: the width of the rectangle to blur.\n  * `height`: the height of the rectangle to blur.\n  * `radius`: the radius of the blur.\n\n**RGB ImageData as source:**\n\n```js\nStackBlur.imageDataRGB(imageData, top_x, top_y, width, height, radius);\n```\n\n  * `imageData`: the canvas' `ImageData`.\n  * `top_x`: the horizontal coordinate of the top-left corner of the rectangle to blur.\n  * `top_y`: the vertical coordinate of the top-left corner of the rectangle to blur.\n  * `width`: the width of the rectangle to blur.\n  * `height`: the height of the rectangle to blur.\n  * `radius`: the radius of the blur.\n\n\n## Hacking\n\n### Building\n\nThis library is built using [Rollup](https://rollupjs.org/guide/en).\nIf you change something in the `src/` folder, use the following command\nto re-build the files in the `dist/` folder:\n\n`npm run rollup`\n\n\n[dl-zip-master]: https://github.com/flozz/StackBlur/archive/master.zip\n[pkg-npm]: https://www.npmjs.com/package/stackblur-canvas\n[grunt]: http://gruntjs.com/\n","publish_time":1543150826366,"_cnpm_publish_time":1543150826366,"dist-tags":{"latest":"3.0.1"}}