{"name":"stackblur-canvas","version":"2.5.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":"pnpm i","start":"open-cli http://localhost:8081/demo/ && http-server -p 8081","eslint":"eslint --ext=js,md,html .","rollup":"rollup -c","docs":"rm -rf docs/jsdoc/*;jsdoc --pedantic -c docs/jsdoc-config.json src","open-docs":"npm run docs && open-cli http://localhost:8081/docs/jsdoc/ && http-server -p 8081","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":{"node":">=0.1.14"},"devDependencies":{"@babel/core":"^7.12.16","@babel/preset-env":"^7.12.16","@brettz9/eslint-plugin":"^1.0.3","@rollup/plugin-babel":"^5.3.0","eslint":"^7.20.0","eslint-config-ash-nazg":"29.0.0","eslint-config-standard":"^16.0.2","eslint-plugin-array-func":"^3.1.7","eslint-plugin-compat":"^3.9.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-html":"^6.1.1","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^32.0.1","eslint-plugin-markdown":"^2.0.0","eslint-plugin-no-unsanitized":"^3.1.4","eslint-plugin-no-use-extend-native":"^0.5.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","eslint-plugin-radar":"^0.2.1","eslint-plugin-standard":"^4.1.0","eslint-plugin-unicorn":"^28.0.1","http-server":"^0.12.3","jsdoc":"^3.6.5","open-cli":"^6.0.1","rollup":"2.39.0","rollup-plugin-re":"^1.0.7","rollup-plugin-terser":"^7.0.2"},"dependencies":{},"gitHead":"1b85fe57ae5c2e7beeff157e1f9f7c7a7082f537","_id":"stackblur-canvas@2.5.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-EeNzTVfj+1In7aSLPKDD03F/ly4RxEuF/EX0YcOG0cKoPXs+SLZxDawQbexQDBzwROs4VKLWTOaZQlZkGBFEIQ==","shasum":"aa87bbed1560fdcd3138fff344fc6a1c413ebac4","tarball":"http://registry-npm.ywwl.com/stackblur-canvas/download/stackblur-canvas-2.5.0.tgz","fileCount":15,"unpackedSize":149384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgK8f3CRA9TVsSAnZWagAAIGAP+gJs5LHxYgeSApQ6Glae\n9KbLP5KgLYjH75y8rLSEKeAVx81HgGRhoT2EqQtGQ8V/T5UEQf/NojqQkmQN\nOlwos6v80YSN9pbR3tHwm2TOhS+8GF2y4HKT6NV5fUWcFzLBNIFD8UU0q8yI\nBAmd0qhVLlwhBzhMO4LRgoCWBZc9C47wBgQ+XbvEvUqRvp55apalkyRwm1tN\nZkvd1PCurMXu+/M2cCaioVqr2gZaJRQmYm1nMyRJCOvUICiarOulusakrLaF\n3IbsZxImkifMDBgpV9WXPbVlLNMABUPnoO/GJKBLERulZLoysx6HdKSNMhxK\nto9tzRWveRIK+E587GedVuni2wQKPSVy8lxKXUzO8XMX+0JPPBvkt3b7r3K+\nIHiqMqLtj7EGn621OVmLGuSUbAzKFIO3RaKeveJ1otqmDdO+js4Jws3DVfYP\nIM9WQLz7RdUVVw6ySkTzpUV2iUsp0oeA9I38nn9wrCsoZLosWVDKTBQ9x+jO\ncqy/ztzYVz5QtB61xi/rTpkqUjND3wCgsUh33pfpwFbJESteUSqhBEvZbJBH\ndMycE66Jb9FWrjgyNp9WUL7zXxZM9qiPDhwRPbPxCDzgwAZYU0tsM/ZKDUNo\nk/mTf3YjPKpjXv6zuZQEM9b41IiaEFURN9mTXfr3Kgx+RLk6vEqLgv4zK0I2\nx5So\r\n=vbu0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM6WzwB5OTgSXsOzDJwzbT+GsSLhiozNYfofOVpvjP1AIhAKw8ECp/S8AM0CfnSmPC5/8GKxTfuUjUKt3THbW78mn9"}],"size":24782,"noattachment":false,"key":"/stackblur-canvas/-/stackblur-canvas-2.5.0.tgz"},"_npmUser":{"name":"brettz9","email":"brettz9@yahoo.com"},"directories":{},"maintainers":[{"name":"brettz9","email":"brettz9@yahoo.com"},{"name":"flozz","email":"npm-2@flogisoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stackblur-canvas_2.5.0_1613481974616_0.4849467721885441"},"_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":1613481974772,"_cnpm_publish_time":1613481974772,"dist-tags":{"latest":"3.0.1"}}