{"_id":"chartjs-plugin-deferred","_rev":"15-d85bb4550f59ca47b8d27cd8d1b4ce9a","name":"chartjs-plugin-deferred","description":"Chart.js plugin to defer initial chart updates","dist-tags":{"latest":"2.0.0","next":"2.0.0-beta.1"},"versions":{"0.2.0":{"name":"chartjs-plugin-deferred","homepage":"http://www.chartjs.org","description":"Chart.js plugin to defer initial chart updates","version":"0.2.0","license":"MIT","main":"src/plugin.js","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^2.1.0","gulp-insert":"^0.5.0","gulp-file":"^0.3.0","gulp-replace":"^0.5.4","gulp-rename":"^1.2.2","gulp-streamify":"^1.0.2","gulp-uglify":"^1.5.3","gulp-util":"^3.0.7","gulp-zip":"^3.2.0","merge2":"^1.0.2","path":"^0.12.7","yargs":"^4.7.1"},"gitHead":"e451c40d721f4c6db46c7b88d0cc047f83810162","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@0.2.0","scripts":{},"_shasum":"9d3d708f64db7a1f37fd58fd5e5e8c2aa975f202","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"shasum":"9d3d708f64db7a1f37fd58fd5e5e8c2aa975f202","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-0.2.0.tgz","integrity":"sha512-h7rOuuOhjUzOtAvXsxn/tqKZ0LLZY1pVKNHi2U/f/k92Mne3iH+OqYCvTKQOeqNLi+MQBQv7bZhncice1TjqxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXnz2T3doZKneQtYlucfCa0M15GKSkiBYHK+0TdDWSOAiEA+RwapEgeA16wC2lNBvo/1tpaZMgZCqvnU089DYumsHM="}]},"maintainers":[{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/chartjs-plugin-deferred-0.2.0.tgz_1477242914899_0.0017763448413461447"},"directories":{}},"0.3.0":{"name":"chartjs-plugin-deferred","homepage":"http://www.chartjs.org","description":"Chart.js plugin to defer initial chart updates","version":"0.3.0","license":"MIT","main":"dist/chartjs-plugin-deferred.js","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^3.0.0","gulp-file":"^0.3.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-streamify":"^1.0.2","gulp-uglify":"^1.5.3","gulp-util":"^3.0.7","gulp-zip":"^3.2.0","merge2":"^1.0.2","path":"^0.12.7","rollup":"^0.41.6","rollup-stream":"^1.19.0","vinyl-source-stream":"^1.1.0","yargs":"^4.7.1"},"peerDependencies":{"chart.js":">= 2.5.0 < 3"},"gitHead":"2908c5280015add842cf95568b65a1ca7ece23a1","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@0.3.0","scripts":{},"_shasum":"2c70994e4172535b24ff0662691250730bf65b01","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"shasum":"2c70994e4172535b24ff0662691250730bf65b01","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-0.3.0.tgz","integrity":"sha512-meduA7LkUaYGBIxk8PcNx55+fUZGc3iz1yzoOygCF8v+exe/NRnV+KCrVH2CTnFwg6F/sWtYLMj6q1p3ZL18DQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW63eE4PWGgXks+koC7mgaZM5XcXQqlonhwpvVGZNRhwIgJ6C0+g2ak2nibNbnc+4o/aOroEG2dFFR2atZHBl7xS8="}]},"maintainers":[{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},{"name":"simonbrunel","email":"s.b.npmjs@abysscorp.org"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/chartjs-plugin-deferred-0.3.0.tgz_1493544628061_0.8325364710763097"},"directories":{}},"1.0.0":{"name":"chartjs-plugin-deferred","homepage":"https://chartjs-plugin-deferred.netlify.com","description":"Chart.js plugin to defer initial chart updates","version":"1.0.0","license":"MIT","main":"dist/chartjs-plugin-deferred.js","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"devDependencies":{"eslint-config-chartjs":"^0.1.0","gitbook-cli":"^2.3.2","gulp":"^3.9.1","gulp-eslint":"^4.0.1","gulp-file":"^0.4.0","gulp-rename":"^1.2.2","gulp-replace":"^0.6.1","gulp-streamify":"^1.0.2","gulp-uglify":"^3.0.0","gulp-util":"^3.0.7","gulp-zip":"^4.1.0","merge2":"^1.2.1","mz":"^2.7.0","path":"^0.12.7","rollup":"^0.53.4","rollup-stream":"^1.24.1","vinyl-source-stream":"^2.0.0","yargs":"^10.1.1"},"peerDependencies":{"chart.js":">= 2.6.0 < 3"},"gitHead":"bb46a30c9f1d34728fc1e4e65c6b75f87187f171","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@1.0.0","_npmVersion":"5.1.0","_nodeVersion":"6.12.3","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"integrity":"sha512-8GAPwv4Jwo+NBdD9ZZaijhTSv/g48a3owXaRu3krDxgja6zh2C3/mH8mIq7QBvmw/HiTfllQWYki/KkI1GPe6A==","shasum":"b9de4bb07e016c03d4b61c8a9937e6ed7dc66705","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIopqkSRW66GX7Oh309mxrLl4dXC2E01PzXwnQh4ClwAiEA3ecSzLlGwMQCkbqJNfWvj1Beaw7rbTuu/J3ftHVXONo="}]},"maintainers":[{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},{"name":"simonbrunel","email":"s.b.npmjs@abysscorp.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-plugin-deferred-1.0.0.tgz_1515696300003_0.04241708433255553"},"directories":{}},"1.0.1":{"name":"chartjs-plugin-deferred","homepage":"https://chartjs-plugin-deferred.netlify.com","description":"Chart.js plugin to defer initial chart updates","version":"1.0.1","license":"MIT","main":"dist/chartjs-plugin-deferred.js","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"devDependencies":{"eslint-config-chartjs":"^0.1.0","gitbook-cli":"^2.3.2","gulp":"^3.9.1","gulp-eslint":"^4.0.1","gulp-file":"^0.4.0","gulp-rename":"^1.2.2","gulp-replace":"^0.6.1","gulp-streamify":"^1.0.2","gulp-uglify":"^3.0.0","gulp-util":"^3.0.7","gulp-zip":"^4.1.0","merge2":"^1.2.1","mz":"^2.7.0","path":"^0.12.7","rollup":"^0.53.4","rollup-stream":"^1.24.1","vinyl-source-stream":"^2.0.0","yargs":"^10.1.1"},"peerDependencies":{"chart.js":">= 2.6.0 < 3"},"gitHead":"c74dafbcf48944867ea44d0740c487109db2e304","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@1.0.1","_npmVersion":"5.1.0","_nodeVersion":"6.13.1","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"integrity":"sha512-U/FDFvlCCDBhs+tYm18482VLckWzqfbpYH/Dgp/6x2B9rqwPnaec5iLAbUPDkI0DS1SnWHUynXxtvaLtIR18GA==","shasum":"74a97f38f584a5b180d65d675670a1bf3c97755a","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-1.0.1.tgz","fileCount":37,"unpackedSize":144159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYY1ipX7OZUZETs2rFit73XpIrLKbchW+o7Bu2VJ/2UwIgCjwWQgNTKAOfNXAxXb6qGkXxjqa1WEPgxKQrqmMO1Tk="}]},"maintainers":[{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-plugin-deferred_1.0.1_1521634949452_0.46431391404846667"},"_hasShrinkwrap":false},"1.0.2":{"name":"chartjs-plugin-deferred","homepage":"https://chartjs-plugin-deferred.netlify.app","description":"Chart.js plugin to defer initial chart updates","version":"1.0.2","license":"MIT","main":"dist/chartjs-plugin-deferred.js","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"devDependencies":{"eslint-config-chartjs":"^0.1.0","gitbook-cli":"^2.3.2","gulp":"^3.9.1","gulp-eslint":"^4.0.2","gulp-file":"^0.4.0","gulp-rename":"^1.4.0","gulp-replace":"^0.6.1","gulp-streamify":"^1.0.2","gulp-uglify":"^3.0.2","gulp-util":"^3.0.8","gulp-zip":"^4.2.0","merge2":"^1.4.1","mz":"^2.7.0","rollup":"^0.53.4","rollup-stream":"^1.24.1","vinyl-source-stream":"^2.0.0","yargs":"^10.1.2"},"peerDependencies":{"chart.js":">= 2.6.0 < 3"},"gitHead":"15d442af034b3d89d49d6a499fc0e94cf32a7e51","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@1.0.2","_npmVersion":"5.1.0","_nodeVersion":"6.17.1","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"integrity":"sha512-ZQsTMtfHRRiQMZ3AuAOuMltMHDLb0Qo6JlT2ncEz28BMtQmq9K+D1ACrI1yNOHMYSCJgDTCOIQorgKauOQIVmA==","shasum":"c1a373a8e2fe8e99e674ec0d69d8ae6c1a78bb5f","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-1.0.2.tgz","fileCount":37,"unpackedSize":144611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgO5GjCRA9TVsSAnZWagAAyHIP/1AZpc/C8n9nkw7sUgRe\nvxpDf+VQEaaMQ+o7+0Of/gQU6XmSqkmki8KI6xk5OtVwXEE3+xRJwHzcHHdh\nezmEZ20MxRVV8HMlitJlZW6ZjR8GZQ6ovFwO+7ahNHz4olkzAA1fL2i65/jM\n4oKowTetFGM/7SipQRnJw1xl48xdDuLuKIFkVLaPdVdTkGx8vLzSM1uE27J5\n3DJhLceypAenF3mZWiyep50wjEXytUjNKXMxFOUeLn81dGCeZ0CoI8jwIcyM\nGJm0uvPDOGg3BHCIjmblEjZBJmVSjo0sJRCf6g+oGe4UcdH6INbyw+Y9Zoxs\n+pj8eyJKEj9ifISADl96nj/98ncYUXHCEBjgcAE7md2hLRV3jNBNGIe7+w96\n4MR7afGbol2heknalHf92NqysHf70GX310fIg6Q6rBZMw32rZA1cpGtWKEM/\nuWepbz8rL+W7ihzO8voWROifHLNWozy3T3q9aERgQWncA8eDsv3iazB6b1c4\nrbmaxTYfNsssUWU/BCK6eyVPs44hzu+uICG8WElrfL+x9fbBn8nc0mv/WBu7\nfU/lEzNwzPwdnu6iFSjPWHaL502KRtsskOEFO3Gq+QnZRuT+MOk4DO+5rLKu\nvvGiQ2tQv1J63lICopg60yzetGeoFh52poC8lC5hY+T7mCGoU3wA7ijvqmV4\nOXhF\r\n=feD3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa2NzxILPJ56sHFBOCIR/V5dYYA/luu154Em/JgNJFFgIhAIQN1LZywYYtstUaiBADB3zB7DTldNYcZJPWjGCDnViL"}]},"directories":{},"maintainers":[{"name":"simonbrunel","email":"s.b.npmjs@abysscorp.org"},{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-plugin-deferred_1.0.2_1614516643306_0.5135092190335571"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"chartjs-plugin-deferred","homepage":"https://chartjs-plugin-deferred.netlify.app","description":"Chart.js plugin to defer initial chart updates","version":"2.0.0-beta.1","license":"MIT","main":"dist/chartjs-plugin-deferred.js","module":"dist/chartjs-plugin-deferred.esm.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"scripts":{"bower":"node scripts/create-bower-json","build":"rollup -c","build:dev":"rollup -c --watch","docs":"npm run build && vuepress build docs --no-cache","docs:dev":"npm run build && vuepress dev docs --no-cache","lint":"eslint . --ext .js,.ts --cache","package":"npm run build && node scripts/create-packages.js","test":"npm run test-types","test-types":"tsc -p types/test"},"devDependencies":{"@simonbrunel/vuepress-plugin-versions":"^0.2.0","@typescript-eslint/eslint-plugin":"^5.11.0","@typescript-eslint/parser":"^5.11.0","@vuepress/plugin-google-analytics":"^1.9.7","archiver":"^5.3.0","chart.js":"^3.7.0","eslint":"^8.8.0","eslint-config-chartjs":"^0.3.0","rollup":"^2.67.1","rollup-plugin-terser":"^7.0.2","typescript":"^4.5.5","vuepress":"^1.9.7","vuepress-plugin-redirect":"^1.2.5","vuepress-theme-chartjs":"^0.2.0"},"peerDependencies":{"chart.js":">= 3.0.0"},"gitHead":"6dc3377cf89c1f458ae6dcf7f50ecb7ba42f9feb","readme":"<div align=\"center\">\n  <img src=\"docs/assets/banner.png\"/>\n</div>\n\n[![github](https://img.shields.io/github/release/chartjs/chartjs-plugin-deferred.svg?style=flat-square&maxAge=600)](https://github.com/chartjs/chartjs-plugin-deferred/releases/latest) [![travis](https://img.shields.io/travis/chartjs/chartjs-plugin-deferred.svg?style=flat-square&maxAge=600)](https://travis-ci.org/chartjs/chartjs-plugin-deferred) [![codeclimate](https://img.shields.io/codeclimate/maintainability/chartjs/chartjs-plugin-deferred.svg?style=flat-square&maxAge=600)](https://codeclimate.com/github/chartjs/chartjs-plugin-deferred)\n\n[Chart.js](https://www.chartjs.org/) plugin to defer initial chart updates until the user scrolls and the canvas appears inside the viewport, and thus trigger the initial chart animations when the user is likely to see them.\n\nRequires [Chart.js](https://github.com/chartjs/Chart.js/releases) **3.x**.\n\n## Documentation\n\n- [Introduction](https://chartjs-plugin-deferred.netlify.app/)\n- [Getting Started](https://chartjs-plugin-deferred.netlify.app/getting-started.html)\n- [Options](https://chartjs-plugin-deferred.netlify.app/options.html)\n- [Samples](https://chartjs-plugin-deferred.netlify.app/samples/)\n\n## Example\n\n```javascript\nnew Chart(ctx, {\n  // ... data ...\n  options: {\n    // ... other options ...\n    plugins: {\n      deferred: {\n        xOffset: 150,   // defer until 150px of the canvas width are inside the viewport\n        yOffset: '50%', // defer until 50% of the canvas height are inside the viewport\n        delay: 500      // delay of 500 ms after the canvas is considered inside the viewport\n      }\n    }\n  }\n});\n```\n\n## Development\n\nYou first need to install node dependencies (requires [Node.js](https://nodejs.org/)):\n\n```sh\n> npm install\n```\n\nThe following commands will then be available from the repository root:\n\n```sh\n> npm run build             // build dist files\n> npm run build:dev         // build and watch for changes\n> npm run lint              // perform code linting\n> npm run lint -- --fix     // automatically fix linting problems\n> npm run docs              // generate documentation (`dist/docs`)\n> npm run docs:dev          // generate documentation and watch for changes\n> npm run package           // create tgz and zip archives with dist files\n```\n\n## License\n\n`chartjs-plugin-deferred` is available under the [MIT license](LICENSE.md).\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@2.0.0-beta.1","_nodeVersion":"12.22.9","_npmVersion":"6.14.15","dist":{"integrity":"sha512-HxVlgMH9PBsWZxof5/XZs/HRAg2D0ZW4JSC+Ds29wLXTgaZ4AeCatKXWqH9FYU4FVlnP1quT0RXDd4PcQSQABg==","shasum":"2fd830b11a8a173991dc1e1c3bf4e969b54e82c7","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-2.0.0-beta.1.tgz","fileCount":38,"unpackedSize":106235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiA3N4CRA9TVsSAnZWagAANiwP+gMpK4R2qY6/dln6GihF\nb1d8IP73fXjaQ2xld/SYXKSThl+p/zsd+q98saP4kCclqbyzlZ8caf0qluXL\nd1MqZAYHV5aMuPxFhB+8sIXL6QczMVQm3CQ6lD6wI+eklRxYba/kC4z6iOBI\n0sfScOz8YvY5zQ6xOw1IKRNezMv2oqBWmxnTnoow24CZap7g4S1LyKR2NSkz\nHZVWuGzKy5MYij9YWthav/ExCBBTc+v6g40rDGqvHr0tNbDz+KViiHmi0vVt\nXStIi4kDYwdVwTVfyFB7QDN2u2+miMr3LKk+OxPx/2nFE4SCkucm5HxhPO+P\n9whNRI7e8qkc0yP3pGvVVQI+HXzkINbAxiOkxOXOillY2fJczdu0Y1wiaUBY\noW+el8j8oKqMmzwbHnrRL800RENEHJomcebihjSvtLpzCcKPBD4VstNV5r4N\nV/U73FrsKWq1GogVmO0Ud1pd3D2Z/L8dnbSHL3z4T5Z6ctamz8lSCfSlSqLm\nHavUJkpVoml/r00z+mSHEZCdqa4vdi5Js8WIPJxZjs+w0hzzWGG9hv0szgb1\nQvGduJC0/TxXWBm7pXytCg22VR8NHf/0k9GOVlhtHNli1wkSEPhIvmrtp4UD\nBq10r5PQZer8eXtjKE+RzQiq6Qa2q7nf6ErwY2VWS38I8BnqKklSoRAO9POu\nVsyE\r\n=+xxS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKDhKsuZk/jYxDHBS3RA1+GUBENa4CGgdRbxiWAL20mAIhAKsshKjwmVivtY3O7dasrgeSDvJG0sKiJ7hsL6Z3CLZV"}]},"_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"directories":{},"maintainers":[{"name":"simonbrunel","email":"s.b.npmjs@abysscorp.org"},{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-plugin-deferred_2.0.0-beta.1_1644393336035_0.3061696919162651"},"_hasShrinkwrap":false},"2.0.0":{"name":"chartjs-plugin-deferred","homepage":"https://chartjs-plugin-deferred.netlify.app","description":"Chart.js plugin to defer initial chart updates","version":"2.0.0","license":"MIT","main":"dist/chartjs-plugin-deferred.js","module":"dist/chartjs-plugin-deferred.esm.js","types":"types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"scripts":{"bower":"node scripts/create-bower-json","build":"rollup -c","build:dev":"rollup -c --watch","docs":"npm run build && vuepress build docs --no-cache","docs:dev":"npm run build && vuepress dev docs --no-cache","lint":"eslint . --ext .js,.ts --cache","package":"npm run build && node scripts/create-packages.js","test":"npm run test-types","test-types":"tsc -p types/test"},"devDependencies":{"@simonbrunel/vuepress-plugin-versions":"^0.2.0","@typescript-eslint/eslint-plugin":"^5.11.0","@typescript-eslint/parser":"^5.11.0","@vuepress/plugin-google-analytics":"^1.9.7","archiver":"^5.3.0","chart.js":"^3.7.0","eslint":"^8.8.0","eslint-config-chartjs":"^0.3.0","rollup":"^2.67.1","rollup-plugin-terser":"^7.0.2","typescript":"^4.5.5","vuepress":"^1.9.7","vuepress-plugin-redirect":"^1.2.5","vuepress-theme-chartjs":"^0.2.0"},"peerDependencies":{"chart.js":">= 3.0.0"},"gitHead":"e151b4071eeade8a12a989304ac081b7c6ecb953","bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"_id":"chartjs-plugin-deferred@2.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-jq6b8Wt23WS6zxiX8oVB1MXq4uaJX2KGTyiqnq6xo4ctZPgFkT/FuIEKpJjsF1WkYv7ZQrqrrRg1fLw6O5ZEfQ==","shasum":"6a9546ab9aa172711b5b74ef7f17bc93d061ef84","tarball":"https://registry.npmjs.org/chartjs-plugin-deferred/-/chartjs-plugin-deferred-2.0.0.tgz","fileCount":38,"unpackedSize":106193,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmzwBsJLRk0AEyli3cPOrBxKvbuYZSgnUQGVHvAEc2KAiEA5AIo/ZBdIQ1rGT4Wac/jdb6brELKXbJUVoqhocdmyFA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZYCgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpERA//VIoUAYhGyH8AwNciNSoqz8qLaRaZb3XEfu6UvpHED4xAWFpr\r\nknuE4liaA4UBqrvq4JgPZNycajzYAvmOEncrUp/uUovJOa4D2ezvzJ/nK73W\r\npTce1sExEQaa1xvMLJ5+mPbRsOI5o2IJsKQECoDHISRAwP/Gkh6NmF3ldhEe\r\nZS80oqORbbAsiGuZ/FL2OllpqbO/ZIDOonkxGCDrrCNYSBYak5UtL33xjbpo\r\nRKe09GoNaoOmZ90xwRbAgBW5v739yt1YUPi8BW7Dvlei4//431ElPDIc7TDP\r\nNTR+QmgbqoQRRBi8X3yxGeEJjwkO9azdR8IQYGDQubF9W8J/phnOYBCAj4tJ\r\nL7F+Z49ae8SnSgzvjamtZ9pE9+g3FLk58/zRG1BbRIYdF2+YMH1JeQ4wmfpj\r\nt9VCkZvRlxABNSBeC2O1BodiuP2AiF7R79tG7NXBhqrZLCXfsRiejoFyLK6d\r\n/Jn57W+M5qu5nJna7xj9ZB7r0HJ0njQxbsnTtiPN3ydO5mcmqhJ2wgFY1xdi\r\n9ARfq4UAao0MxtR0SxGxUMNhSA3Z6py0YR3Y657NbshSknpeIBowxN2H63Xk\r\nSiyGrSpmR/V20Fk5Y/bKbtoqQT0JncU82IQVlNeuGPP5UzpD6w1cBSDVB5tw\r\ne4N1oNZD8oLPe5MDy+4z26aosAey3LSV78Y=\r\n=vvfe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"directories":{},"maintainers":[{"name":"simonbrunel","email":"s.b.npmjs@abysscorp.org"},{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-plugin-deferred_2.0.0_1650819232593_0.20002141360984704"},"_hasShrinkwrap":false}},"readme":"<div align=\"center\">\n  <img src=\"docs/assets/banner.png\"/>\n</div>\n\n[![github](https://img.shields.io/github/release/chartjs/chartjs-plugin-deferred.svg?style=flat-square&maxAge=600)](https://github.com/chartjs/chartjs-plugin-deferred/releases/latest) [![travis](https://img.shields.io/travis/chartjs/chartjs-plugin-deferred.svg?style=flat-square&maxAge=600)](https://travis-ci.org/chartjs/chartjs-plugin-deferred) [![codeclimate](https://img.shields.io/codeclimate/maintainability/chartjs/chartjs-plugin-deferred.svg?style=flat-square&maxAge=600)](https://codeclimate.com/github/chartjs/chartjs-plugin-deferred)\n\n[Chart.js](https://www.chartjs.org/) plugin to defer initial chart updates until the user scrolls and the canvas appears inside the viewport, and thus trigger the initial chart animations when the user is likely to see them.\n\nRequires [Chart.js](https://github.com/chartjs/Chart.js/releases) **3.x**.\n\n## Documentation\n\n- [Introduction](https://chartjs-plugin-deferred.netlify.app/)\n- [Getting Started](https://chartjs-plugin-deferred.netlify.app/getting-started.html)\n- [Options](https://chartjs-plugin-deferred.netlify.app/options.html)\n- [Samples](https://chartjs-plugin-deferred.netlify.app/samples/)\n\n## Example\n\n```javascript\nnew Chart(ctx, {\n  // ... data ...\n  options: {\n    // ... other options ...\n    plugins: {\n      deferred: {\n        xOffset: 150,   // defer until 150px of the canvas width are inside the viewport\n        yOffset: '50%', // defer until 50% of the canvas height are inside the viewport\n        delay: 500      // delay of 500 ms after the canvas is considered inside the viewport\n      }\n    }\n  }\n});\n```\n\n## Development\n\nYou first need to install node dependencies (requires [Node.js](https://nodejs.org/)):\n\n```sh\n> npm install\n```\n\nThe following commands will then be available from the repository root:\n\n```sh\n> npm run build             // build dist files\n> npm run build:dev         // build and watch for changes\n> npm run lint              // perform code linting\n> npm run lint -- --fix     // automatically fix linting problems\n> npm run docs              // generate documentation (`dist/docs`)\n> npm run docs:dev          // generate documentation and watch for changes\n> npm run package           // create tgz and zip archives with dist files\n```\n\n## License\n\n`chartjs-plugin-deferred` is available under the [MIT license](LICENSE.md).\n","maintainers":[{"name":"simonbrunel","email":"s.b.npmjs@abysscorp.org"},{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"}],"time":{"modified":"2022-06-13T05:54:16.675Z","created":"2016-10-23T17:15:16.264Z","0.2.0":"2016-10-23T17:15:16.264Z","0.3.0":"2017-04-30T09:30:28.584Z","1.0.0":"2018-01-11T18:45:01.178Z","1.0.1":"2018-03-21T12:22:29.656Z","1.0.2":"2021-02-28T12:50:43.454Z","2.0.0-beta.1":"2022-02-09T07:55:36.182Z","2.0.0":"2022-04-24T16:53:52.750Z"},"homepage":"https://chartjs-plugin-deferred.netlify.app","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-plugin-deferred.git"},"bugs":{"url":"https://github.com/chartjs/chartjs-plugin-deferred/issues"},"license":"MIT","readmeFilename":"README.md","users":{"simonbrunel":true,"chartjs-ci":true}}