{"_id":"infinity-component","_rev":"27-26a50acb513cf166e760d0bd4bde9d16","name":"infinity-component","description":"infinite scrolling with loading and unloading","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"infinity-component","version":"0.0.1","description":"infinite scrolling with loading and unloading","main":"index.js","keywords":["scrolling","loading","unload"],"author":{"name":"Matthew Mueller"},"license":"MIT","component":{"scripts":{"infinity/index.js":"index.js"}},"_id":"infinity-component@0.0.1","dist":{"shasum":"9438227df0d7bee93388f1a68d8842d68704e5ca","tarball":"https://registry.npmjs.org/infinity-component/-/infinity-component-0.0.1.tgz","integrity":"sha512-ThGX0VFAOfXdL+jIzZPZW5NNW7/Pg4Q8M+uxgLXRx/5OTbBfGIPHBhaiXK9ExyxEyQjJCCzrWyQjHE9E1G5RHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA8NOIso7NstDPtq0tK1gYgb8syyH8INJW/+TAMCqVlQIgXCdBkFrfpVIjYs1pfBln7J74NRI3V7faLsXGIl0c354="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.0.2":{"name":"infinity-component","version":"0.0.2","description":"infinite scrolling with loading and unloading","main":"index.js","keywords":["scrolling","loading","unload"],"author":{"name":"Matthew Mueller"},"license":"MIT","component":{"scripts":{"infinity/index.js":"index.js"}},"_id":"infinity-component@0.0.2","dist":{"shasum":"a59d753b9b81b9f7b0dc6ee906f523ea1792ef17","tarball":"https://registry.npmjs.org/infinity-component/-/infinity-component-0.0.2.tgz","integrity":"sha512-OJjnbVX+yHoTau107TTR6aD1DYMm5OWoY6uc9ocEZQrfzsg522znYmm3XA7Il/zQeTGbKl3ARhkuJSJ545JuKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID98qepw1VyzeLPKhcIuUXvys3XKhf7Up17jJ6J+TyvTAiAfl4toDFRPGT7QaTI6Z51Ca10pHpFIhr3a5XLxgu/W9w=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.0.3":{"name":"infinity-component","version":"0.0.3","description":"infinite scrolling with loading and unloading","main":"index.js","keywords":["scrolling","loading","unload"],"author":{"name":"Matthew Mueller"},"license":"MIT","component":{"scripts":{"infinity/index.js":"index.js"}},"_id":"infinity-component@0.0.3","dist":{"shasum":"ecf7f1c3faeeac227007d17242e5307006002177","tarball":"https://registry.npmjs.org/infinity-component/-/infinity-component-0.0.3.tgz","integrity":"sha512-1OGGCHv8SCMUZjGtieHw0YWjFK7SY+x5XpbcLOu7vk57KvecTfPLtuxtIeaJ0MFzAd6xp6mL9dZ/uQrIFXz+Vg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5RW1afUZaaIrPOMgbUbljDbna6o+SVeS1VwHNP9BhwwIhAICJS6x1ev1EqpVhgaL8tjjHJSHQm2uRyvQFwLyg3tRu"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.0.4":{"name":"infinity-component","version":"0.0.4","description":"infinite scrolling with loading and unloading","main":"index.js","keywords":["scrolling","loading","unload"],"dependencies":{"query-component":"*","event-component":"*","throttleit":"*","debounce":"*","emitter-component":"*"},"author":{"name":"Matthew Mueller"},"license":"MIT","component":{"scripts":{"infinity/index.js":"index.js"}},"repository":{"type":"git","url":"https://github.com/component/infinity.git"},"bugs":{"url":"https://github.com/component/infinity/issues"},"_id":"infinity-component@0.0.4","dist":{"shasum":"e7c833c92ac2227404cf5b279a4987469981459e","tarball":"https://registry.npmjs.org/infinity-component/-/infinity-component-0.0.4.tgz","integrity":"sha512-gVBGv36GWifhrfSeVnMS6pmMFx7kSkPCK1OnrgHDCJp3i9e8e+Cp3VfoPaDwMMB2LhxcgAuOgRus6Dkw2DCqLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2Q8D2WMmEn+cJO9pONp1zeCDfTORxZWfiMblRVVjv8AiEAghM7DvyEDckWdHLt3P6z4J3Uevc8nfoXToEXhf5sdOM="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.0.5":{"name":"infinity-component","version":"0.0.5","description":"infinite scrolling with loading and unloading","main":"index.js","keywords":["scrolling","loading","unload"],"dependencies":{"query-component":"*","event-component":"*","throttleit":"*","debounce":"*","emitter-component":"*"},"author":{"name":"Matthew Mueller"},"license":"MIT","component":{"scripts":{"infinity/index.js":"index.js"}},"repository":{"type":"git","url":"https://github.com/component/infinity.git"},"bugs":{"url":"https://github.com/component/infinity/issues"},"_id":"infinity-component@0.0.5","dist":{"shasum":"c19804485cd95d02f5212f84d155859c358f5654","tarball":"https://registry.npmjs.org/infinity-component/-/infinity-component-0.0.5.tgz","integrity":"sha512-iJfOkN273vk3BlvTb8HH737cOAEZel95nSJ+RcLCEXQNZsW/lUol/a0AlLg+p0/3BnfFr/FnCyANUODxKfT6gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoT0BF14KUIT5eFZd4lcwCjPgG5u7ZB3LfwNchbQpGoQIgV03YfpPz7oQxufO1ZKAvY1sewW0a4wj9eoksmk/HTIE="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.0.6":{"name":"infinity-component","version":"0.0.6","description":"infinite scrolling with loading and unloading","main":"index.js","keywords":["scrolling","loading","unload"],"dependencies":{"debounce":"*","component-emitter":"*","component-event":"*","component-query":"*","throttleit":"*"},"browser":{"emitter":"component-emitter","event":"component-event","query":"component-query","throttle":"throttleit"},"author":{"name":"Matthew Mueller"},"license":"MIT","component":{"scripts":{"infinity/index.js":"index.js"}},"repository":{"type":"git","url":"https://github.com/component/infinity.git"},"gitHead":"0bff9420ad76176cab7a4f100e04acb47eb4347f","bugs":{"url":"https://github.com/component/infinity/issues"},"homepage":"https://github.com/component/infinity","_id":"infinity-component@0.0.6","scripts":{},"_shasum":"1f11d9706c29bb4ee9d4675b345aad9550bc4b41","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"timoxley","email":"secoif@gmail.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"timaschew","email":"timaschew@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"1f11d9706c29bb4ee9d4675b345aad9550bc4b41","tarball":"https://registry.npmjs.org/infinity-component/-/infinity-component-0.0.6.tgz","integrity":"sha512-Zz9tsyYXlbts50eyP7WC87Z2HXrkVBFANnH1zRf2TT8RYgpqDhCtRuOa3JzRKt1DJpRWIcDpARocBMk99+aciA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1d/1myNfkrTiK7i7pOJjTPFH19KKFerGnZCDDk7/SzAiAalocq+E//UGFiDDCX9W485GVow591FJNRC2XX/1PExw=="}]}}},"readme":"\n# infinity\n\n  Unload and reload panes while scrolling. Inspired by [airbnb/infinity](http://github.com/airbnb/infinity).\n\n## Installation\n\n  Install with [component(1)](http://component.io):\n\n    $ component install component/infinity\n\n## Example\n\n```js\nvar infinity = require('infinity')(window);\nvar panes = document.querySelectorAll('.pane');\n\nfor(var i = 0, len = panes.length; i < len; i++) {\n  infinity.add(panes[i]);\n}\n\ninfinity.refresh();\n```\n\n## Events\n\n* `loading`: called once before each visible `el` is loaded. useful for batch operations.\n* `load`: called when a `el` is to be loaded.\n* `unloading`: called once before each `el` is unloaded. useful for batch operations.\n* `unload`: called when an `el` is to be unloaded.\n\n## API\n\n### infinity(el)\n\n  Initialize `infinity` with `el`. `el` can be either the `window` or an element with overflow.\n\n### infinity.add(el, ...)\n\n  Add `el` to `infinity`. You may pass any number of arguments\n  to be called with the `load` and `unload` functions. The\n  first argument must be the element node.\n\n```js\ninfinity.add(view.el, view)\n```\n\n### infinity.remove(el)\n\n  Remove an element from `infinity`.\n\n```js\ninfinity.remove(el)\n```\n\n### infinity.load(fn)\n\n  Add a load function. Defaults to a `noop`.\n  The arguments passed to add will be passed\n  through `load`.\n\n```js\ninfinity.load(function(el, view) {\n  // ...\n});\n```\n\n### infinity.unload(fn)\n\n  Add an unload function. Defaults to a `noop`.\n  The arguments passed to add will be passed\n  through `unload`.\n\n```js\ninfinity.unload(function(el, view) {\n  // ...\n});\n```\n\n### infinity.refresh()\n\n  Refresh, loading and unloading elements. Call this\n  after adding elements, removing elements, or moving\n  elements programmatically.\n\n```js\ninfinity.refresh();\n```\n\n### infinity.margin(n)\n\n  Add \"preload margin\" to each side of the container.\n  This will allow you to start loading elements before\n  they appear in viewport. `n` defaults to `0`.\n\n  For example, for `infinity.margin(200)`, the `load`\n  function would trigger when the element is within\n  200px from being in view.\n\n### infinity.unbind()\n\n  Unbind all infinity events\n\n## License\n\n  MIT\n","maintainers":[{"email":"secoif@gmail.com","name":"timoxley"},{"email":"jonathanrichardong@gmail.com","name":"jonathanong"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"nathan@tootallnate.net","name":"tootallnate"},{"email":"clint@anotherway.co.za","name":"clintwood"},{"email":"dnfagnan@gmail.com","name":"thehydroimpulse"},{"email":"me@stephenmathieson.com","name":"stephenmathieson"},{"email":"trevorgerhardt@gmail.com","name":"trevorgerhardt"},{"email":"timaschew@gmail.com","name":"timaschew"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"mattmuelle@gmail.com","name":"mattmueller"}],"time":{"modified":"2022-06-19T01:11:07.799Z","created":"2013-08-07T18:09:23.468Z","0.0.1":"2013-08-07T18:09:24.585Z","0.0.2":"2013-08-07T21:12:21.862Z","0.0.3":"2013-08-08T16:59:10.996Z","0.0.4":"2013-08-28T22:46:50.711Z","0.0.5":"2013-09-19T18:39:30.616Z","0.0.6":"2015-03-16T23:23:30.674Z"},"author":{"name":"Matthew Mueller"},"repository":{"type":"git","url":"https://github.com/component/infinity.git"},"keywords":["scrolling","loading","unload"],"bugs":{"url":"https://github.com/component/infinity/issues"},"license":"MIT","readmeFilename":"Readme.md","users":{"fgribreau":true},"homepage":"https://github.com/component/infinity"}