{"name":"stackblur-canvas","version":"2.2.0","description":"Fast and almost Gaussian blur by Mario Klingemann","main":"dist/stackblur.js","module":"dist/stackblur-es.js","browserslist":{"target":"cover 100%"},"scripts":{"prepublishOnly":"yarn","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.2.0","@babel/preset-env":"^7.2.0","eslint":"5.10.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":"^4.0.0","rollup":"0.67.4","rollup-plugin-babel":"^4.1.0","rollup-plugin-re":"^1.0.7","rollup-plugin-terser":"^3.0.0"},"dependencies":{},"gitHead":"36f2d76a81018430092a30594f6776a97c59cfc3","_id":"stackblur-canvas@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"brettz9","email":"brettz9@yahoo.com"},"dist":{"integrity":"sha512-5Gf8dtlf8k6NbLzuly2NkGrkS/Ahh+I5VUjO7TnFizdJtgpfpLLEdQlLe9umbcnZlitU84kfYjXE67xlSXfhfQ==","shasum":"cacc5924a0744b3e183eb2e6c1d8559c1a17c26e","tarball":"http://registry-npm.ywwl.com/stackblur-canvas/download/stackblur-canvas-2.2.0.tgz","fileCount":47,"unpackedSize":1213230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEbaUCRA9TVsSAnZWagAAUBwP/1er5ygNI3MZKLVvuiVg\nzflZ7YpsIkvhIMfKzcEeFCgl5br7bXeSRjmv3oA7+4F06GEkSGh7bmRw5RXI\nm80IpOJ56MOSVlN2HlXHE2x1QXfbJY+f1pSX2iR779fYYX35oY9EHBTT6EHf\nw6fwbTTDn9P5unWUekwRgWlhMc5DxsxmqIolL/x3xHpkPOUXF0+9gx4WMU9J\n7CLDHGFKdoQ915XWuDvxb4YUCqV3lDg2HR/WOyTw6hJ4V7vOsE2218/Kil6B\nQLbyOKh/2xNdwH4mWIZ9/8u3KlJRecnMqFIAYLoTcUrxfn8G3B8R6Dticjg7\nJurRhN8omoxeWDeMNC7dSL5+QAm1OmtRKF6rKPKJ98lHEwhhBX36CicemZ80\nUNcYF8CTrNoc8NfsD1M1i3PUfS461LWgpu4xqKNk0zUGuiCv5GAZY7pzFtNn\nXYGgLNdbaPFCHWhCsL3YeiOfqd3r3rI3Oofx3d3y0Oqcbj+DTjdOKH9anxyk\nAJQ1erjMu5/G7wOCKRf9cyxFs/YnIoKe9dXni40W3MAKa9PJO2eOR17ybJsS\nKNONoXlcDtZoBSlMxMFA6HfYGAQSaJJEGDskZ2svpPSJR6csM8iLcTGC2Pvk\nGi5ksuGiecAoUzi8C/Iusl2VWVxSzweNWEcNUerMriZlNFdZJMX6toZtJcom\n46ja\r\n=iesC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIe4RBKdNlQCzj4nmlsAOBPkpN8UbcvPBdIFx21gyQCAIgb2fcyofeeAHUWIfI8G95r8FrEVcpPyKP+k0krIY5RCY="}],"size":446237,"noattachment":false,"key":"/stackblur-canvas/-/stackblur-canvas-2.2.0.tgz"},"maintainers":[{"name":"flozz","email":"npm@flogisoft.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stackblur-canvas_2.2.0_1544664723787_0.6748816300629474"},"_hasShrinkwrap":false,"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":1544664723972,"_cnpm_publish_time":1544664723972,"dist-tags":{"latest":"3.0.1"}}