{"name":"stackblur-canvas","version":"2.0.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":"af06af0c13dcd8034a1288bb7785a0fdde29e88e","_id":"stackblur-canvas@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"brettz9","email":"brettz9@yahoo.com"},"dist":{"integrity":"sha512-660gH1SpjeKyfUYnne9nuIya7CDGds6NdIrxzOToSgaSlOqbh7UYGP9VlxlQ8IX7af/nPuAHLkN03l84OesX7Q==","shasum":"4c0ca66ee8453f06ff4e7b4c3100bc1390979f97","tarball":"http://registry-npm.ywwl.com/stackblur-canvas/download/stackblur-canvas-2.0.0.tgz","fileCount":46,"unpackedSize":1209801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4FVRCRA9TVsSAnZWagAA/IMP/RjIoBtIRRmQZCs9qWn3\nApEtVpMZSJBOW1asWgTgnCu342g9dfcXCRh3oaZhsDvxzDYUGntA6r3bU3kj\n3E5p7fkOtRVjeTbK4fWlMVqd55inwq6hhsluqEsdq8ccB7JQ0qL8g6hsqrCj\nOqpZqzkNO/GMjDbUZDzTpquTjgpvcrFesNi2+v8vEsyqtpk2PzFnm0FLSzr5\nX6h1ILXecoiWFbPGvwnc1iAccJeRPE0uugDRt3U1eRkYNaPOjZZCRR8ePzLS\nuYYBa1AlapKgx8Av7wTXDMdBtUpo8jJUTegpLfN0IpZ5/scKGvdtMiVpIvnM\nndqpXJ5Qd+9ZJns2MIga11ImRpHP10GgLTcmVgGTJ8yH3JGGRo9hpbmJvAyk\ni/yuoqVMzQQNpsZTOFP3fYPVe1L2WMkGI/FJpodI87Mi77WeJCFIC9QBGejN\nsF9sVinBJTQoAXmreBFXPBW9lJuj1rivNuyD1K5QqL1xJsHCa/TlhTZjl2EM\nmpZmHWiLqN+X5SoAjzgHjc5xuzBTup1MIzbUMyS0kWO7+ecqpECmqLgSjZIK\nnNRL6XRtDVZOvA304ImPwKZRisoL/gqeEuqwT20swoe3f48ZgL1WO0e9vlJ6\nSCbzNb4Fkxjmp+vDNpQVNqbYDRyZLExyixC9qCBm0VuXjz97h1VbPy+KiCP4\nZV9S\r\n=MPXc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0jfR8xt8wE3dK97GYP+3yZpo7dnyK7ryz/ZfXI0j/7wIhAKj4oVQtejFxuov4d5CqlRa1NS3sJWy6Oc53Ez6YqNkF"}],"size":444454,"noattachment":false,"key":"/stackblur-canvas/-/stackblur-canvas-2.0.0.tgz"},"maintainers":[{"name":"flozz","email":"npm@flogisoft.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stackblur-canvas_2.0.0_1541428560551_0.06234334054453661"},"_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":1541428560728,"_cnpm_publish_time":1541428560728,"dist-tags":{"latest":"3.0.1"}}